diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 9f5af471f5c3cf..8285730629ccc3 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -605,7 +605,7 @@ jobs: with: persist-credentials: false - name: Dependency review - uses: actions/dependency-review-action@3c4e3dcb1aa7874d2c16be7d79418e9b7efd6261 # v4.8.2 + uses: actions/dependency-review-action@05fe4576374b728f0c523d6a13d64c25081e0803 # v4.8.3 with: license-check: false # We use our own license audit checks diff --git a/CODEOWNERS b/CODEOWNERS index 2c7fa05db850a2..ec22a3281a5ce9 100644 --- a/CODEOWNERS +++ b/CODEOWNERS @@ -401,8 +401,6 @@ build.json @home-assistant/supervisor /tests/components/dsmr_reader/ @sorted-bits @glodenox @erwindouna /homeassistant/components/duckdns/ @tr4nt0r /tests/components/duckdns/ @tr4nt0r -/homeassistant/components/duke_energy/ @hunterjm -/tests/components/duke_energy/ @hunterjm /homeassistant/components/duotecno/ @cereal2nd /tests/components/duotecno/ @cereal2nd /homeassistant/components/dwd_weather_warnings/ @runningman84 @stephan192 @@ -1901,8 +1899,8 @@ build.json @home-assistant/supervisor /tests/components/withings/ @joostlek /homeassistant/components/wiz/ @sbidy @arturpragacz /tests/components/wiz/ @sbidy @arturpragacz -/homeassistant/components/wled/ @frenck -/tests/components/wled/ @frenck +/homeassistant/components/wled/ @frenck @mik-laj +/tests/components/wled/ @frenck @mik-laj /homeassistant/components/wmspro/ @mback2k /tests/components/wmspro/ @mback2k /homeassistant/components/wolflink/ @adamkrol93 @mtielen diff --git a/homeassistant/components/bsblan/sensor.py b/homeassistant/components/bsblan/sensor.py index 4091f5b0f00e3b..72f3fbab2d0f0c 100644 --- a/homeassistant/components/bsblan/sensor.py +++ b/homeassistant/components/bsblan/sensor.py @@ -64,6 +64,8 @@ class BSBLanSensorEntityDescription(SensorEntityDescription): device_class=SensorDeviceClass.ENERGY, native_unit_of_measurement=UnitOfEnergy.KILO_WATT_HOUR, state_class=SensorStateClass.TOTAL_INCREASING, + suggested_display_precision=0, + entity_registry_enabled_default=False, value_fn=lambda data: ( data.sensor.total_energy.value if data.sensor.total_energy is not None diff --git a/homeassistant/components/cast/media_player.py b/homeassistant/components/cast/media_player.py index 5d6f89586bf38e..42a641922f73f2 100644 --- a/homeassistant/components/cast/media_player.py +++ b/homeassistant/components/cast/media_player.py @@ -807,6 +807,7 @@ def state(self) -> MediaPlayerState | None: # The lovelace app loops media to prevent timing out, don't show that if self.app_id == CAST_APP_ID_HOMEASSISTANT_LOVELACE: return MediaPlayerState.PLAYING + if (media_status := self._media_status()[0]) is not None: if media_status.player_state == MEDIA_PLAYER_STATE_PLAYING: return MediaPlayerState.PLAYING @@ -817,19 +818,19 @@ def state(self) -> MediaPlayerState | None: if media_status.player_is_idle: return MediaPlayerState.IDLE - if self._chromecast is not None and self._chromecast.is_idle: - # If library consider us idle, that is our off state - # it takes HDMI status into account for cast devices. - return MediaPlayerState.OFF - if self.app_id in APP_IDS_UNRELIABLE_MEDIA_INFO: # Some apps don't report media status, show the player as playing return MediaPlayerState.PLAYING - if self.app_id is not None: + if self.app_id is not None and self.app_id != pychromecast.config.APP_BACKDROP: # We have an active app return MediaPlayerState.IDLE + if self._chromecast is not None and self._chromecast.is_idle: + # If library consider us idle, that is our off state + # it takes HDMI status into account for cast devices. + return MediaPlayerState.OFF + return None @property diff --git a/homeassistant/components/duke_energy/__init__.py b/homeassistant/components/duke_energy/__init__.py deleted file mode 100644 index bfa89d81c69e87..00000000000000 --- a/homeassistant/components/duke_energy/__init__.py +++ /dev/null @@ -1,22 +0,0 @@ -"""The Duke Energy integration.""" - -from __future__ import annotations - -from homeassistant.core import HomeAssistant - -from .coordinator import DukeEnergyConfigEntry, DukeEnergyCoordinator - - -async def async_setup_entry(hass: HomeAssistant, entry: DukeEnergyConfigEntry) -> bool: - """Set up Duke Energy from a config entry.""" - - coordinator = DukeEnergyCoordinator(hass, entry) - await coordinator.async_config_entry_first_refresh() - entry.runtime_data = coordinator - - return True - - -async def async_unload_entry(hass: HomeAssistant, entry: DukeEnergyConfigEntry) -> bool: - """Unload a config entry.""" - return True diff --git a/homeassistant/components/duke_energy/config_flow.py b/homeassistant/components/duke_energy/config_flow.py deleted file mode 100644 index 78865e69086227..00000000000000 --- a/homeassistant/components/duke_energy/config_flow.py +++ /dev/null @@ -1,67 +0,0 @@ -"""Config flow for Duke Energy integration.""" - -from __future__ import annotations - -import logging -from typing import Any - -from aiodukeenergy import DukeEnergy -from aiohttp import ClientError, ClientResponseError -import voluptuous as vol - -from homeassistant.config_entries import ConfigFlow, ConfigFlowResult -from homeassistant.const import CONF_EMAIL, CONF_PASSWORD, CONF_USERNAME -from homeassistant.helpers.aiohttp_client import async_get_clientsession - -from .const import DOMAIN - -_LOGGER = logging.getLogger(__name__) - -STEP_USER_DATA_SCHEMA = vol.Schema( - { - vol.Required(CONF_USERNAME): str, - vol.Required(CONF_PASSWORD): str, - } -) - - -class DukeEnergyConfigFlow(ConfigFlow, domain=DOMAIN): - """Handle a config flow for Duke Energy.""" - - VERSION = 1 - - async def async_step_user( - self, user_input: dict[str, Any] | None = None - ) -> ConfigFlowResult: - """Handle the initial step.""" - errors: dict[str, str] = {} - if user_input is not None: - session = async_get_clientsession(self.hass) - api = DukeEnergy( - user_input[CONF_USERNAME], user_input[CONF_PASSWORD], session - ) - try: - auth = await api.authenticate() - except ClientResponseError as e: - errors["base"] = "invalid_auth" if e.status == 404 else "cannot_connect" - except ClientError, TimeoutError: - errors["base"] = "cannot_connect" - except Exception: - _LOGGER.exception("Unexpected exception") - errors["base"] = "unknown" - else: - username = auth["internalUserID"].lower() - await self.async_set_unique_id(username) - self._abort_if_unique_id_configured() - email = auth["loginEmailAddress"].lower() - data = { - CONF_EMAIL: email, - CONF_USERNAME: username, - CONF_PASSWORD: user_input[CONF_PASSWORD], - } - self._async_abort_entries_match(data) - return self.async_create_entry(title=email, data=data) - - return self.async_show_form( - step_id="user", data_schema=STEP_USER_DATA_SCHEMA, errors=errors - ) diff --git a/homeassistant/components/duke_energy/const.py b/homeassistant/components/duke_energy/const.py deleted file mode 100644 index 98c973fa2fc162..00000000000000 --- a/homeassistant/components/duke_energy/const.py +++ /dev/null @@ -1,3 +0,0 @@ -"""Constants for the Duke Energy integration.""" - -DOMAIN = "duke_energy" diff --git a/homeassistant/components/duke_energy/coordinator.py b/homeassistant/components/duke_energy/coordinator.py deleted file mode 100644 index d1a78e83ace1e8..00000000000000 --- a/homeassistant/components/duke_energy/coordinator.py +++ /dev/null @@ -1,222 +0,0 @@ -"""Coordinator to handle Duke Energy connections.""" - -from datetime import datetime, timedelta -import logging -from typing import Any, cast - -from aiodukeenergy import DukeEnergy -from aiohttp import ClientError - -from homeassistant.components.recorder import get_instance -from homeassistant.components.recorder.models import ( - StatisticData, - StatisticMeanType, - StatisticMetaData, -) -from homeassistant.components.recorder.statistics import ( - async_add_external_statistics, - get_last_statistics, - statistics_during_period, -) -from homeassistant.config_entries import ConfigEntry -from homeassistant.const import CONF_PASSWORD, CONF_USERNAME, UnitOfEnergy, UnitOfVolume -from homeassistant.core import HomeAssistant, callback -from homeassistant.helpers.aiohttp_client import async_get_clientsession -from homeassistant.helpers.update_coordinator import DataUpdateCoordinator -from homeassistant.util import dt as dt_util -from homeassistant.util.unit_conversion import EnergyConverter - -from .const import DOMAIN - -_LOGGER = logging.getLogger(__name__) - -_SUPPORTED_METER_TYPES = ("ELECTRIC",) - -type DukeEnergyConfigEntry = ConfigEntry[DukeEnergyCoordinator] - - -class DukeEnergyCoordinator(DataUpdateCoordinator[None]): - """Handle inserting statistics.""" - - config_entry: DukeEnergyConfigEntry - - def __init__( - self, hass: HomeAssistant, config_entry: DukeEnergyConfigEntry - ) -> None: - """Initialize the data handler.""" - super().__init__( - hass, - _LOGGER, - config_entry=config_entry, - name="Duke Energy", - # Data is updated daily on Duke Energy. - # Refresh every 12h to be at most 12h behind. - update_interval=timedelta(hours=12), - ) - self.api = DukeEnergy( - config_entry.data[CONF_USERNAME], - config_entry.data[CONF_PASSWORD], - async_get_clientsession(hass), - ) - self._statistic_ids: set = set() - - @callback - def _dummy_listener() -> None: - pass - - # Force the coordinator to periodically update by registering at least one listener. - # Duke Energy does not provide forecast data, so all information is historical. - # This makes _async_update_data get periodically called so we can insert statistics. - self.async_add_listener(_dummy_listener) - - self.config_entry.async_on_unload(self._clear_statistics) - - def _clear_statistics(self) -> None: - """Clear statistics.""" - get_instance(self.hass).async_clear_statistics(list(self._statistic_ids)) - - async def _async_update_data(self) -> None: - """Insert Duke Energy statistics.""" - meters: dict[str, dict[str, Any]] = await self.api.get_meters() - for serial_number, meter in meters.items(): - if ( - not isinstance(meter["serviceType"], str) - or meter["serviceType"] not in _SUPPORTED_METER_TYPES - ): - _LOGGER.debug( - "Skipping unsupported meter type %s", meter["serviceType"] - ) - continue - - id_prefix = f"{meter['serviceType'].lower()}_{serial_number}" - consumption_statistic_id = f"{DOMAIN}:{id_prefix}_energy_consumption" - self._statistic_ids.add(consumption_statistic_id) - _LOGGER.debug( - "Updating Statistics for %s", - consumption_statistic_id, - ) - - last_stat = await get_instance(self.hass).async_add_executor_job( - get_last_statistics, self.hass, 1, consumption_statistic_id, True, set() - ) - if not last_stat: - _LOGGER.debug("Updating statistic for the first time") - usage = await self._async_get_energy_usage(meter) - consumption_sum = 0.0 - last_stats_time = None - else: - usage = await self._async_get_energy_usage( - meter, - last_stat[consumption_statistic_id][0]["start"], - ) - if not usage: - _LOGGER.debug("No recent usage data. Skipping update") - continue - stats = await get_instance(self.hass).async_add_executor_job( - statistics_during_period, - self.hass, - min(usage.keys()), - None, - {consumption_statistic_id}, - "hour", - None, - {"sum"}, - ) - consumption_sum = cast(float, stats[consumption_statistic_id][0]["sum"]) - last_stats_time = stats[consumption_statistic_id][0]["start"] - - consumption_statistics = [] - - for start, data in usage.items(): - if last_stats_time is not None and start.timestamp() <= last_stats_time: - continue - consumption_sum += data["energy"] - - consumption_statistics.append( - StatisticData( - start=start, state=data["energy"], sum=consumption_sum - ) - ) - - name_prefix = ( - f"Duke Energy {meter['serviceType'].capitalize()} {serial_number}" - ) - consumption_metadata = StatisticMetaData( - mean_type=StatisticMeanType.NONE, - has_sum=True, - name=f"{name_prefix} Consumption", - source=DOMAIN, - statistic_id=consumption_statistic_id, - unit_class=EnergyConverter.UNIT_CLASS, - unit_of_measurement=UnitOfEnergy.KILO_WATT_HOUR - if meter["serviceType"] == "ELECTRIC" - else UnitOfVolume.CENTUM_CUBIC_FEET, - ) - - _LOGGER.debug( - "Adding %s statistics for %s", - len(consumption_statistics), - consumption_statistic_id, - ) - async_add_external_statistics( - self.hass, consumption_metadata, consumption_statistics - ) - - async def _async_get_energy_usage( - self, meter: dict[str, Any], start_time: float | None = None - ) -> dict[datetime, dict[str, float | int]]: - """Get energy usage. - - If start_time is None, get usage since account activation (or as far back as possible), - otherwise since start_time - 30 days to allow corrections in data. - - Duke Energy provides hourly data all the way back to ~3 years. - """ - - # All of Duke Energy Service Areas are currently in America/New_York timezone - # May need to re-think this if that ever changes and determine timezone based - # on the service address somehow. - tz = await dt_util.async_get_time_zone("America/New_York") - lookback = timedelta(days=30) - one = timedelta(days=1) - if start_time is None: - # Max 3 years of data - start = dt_util.now(tz) - timedelta(days=3 * 365) - else: - start = datetime.fromtimestamp(start_time, tz=tz) - lookback - agreement_date = dt_util.parse_datetime(meter["agreementActiveDate"]) - if agreement_date is not None: - start = max(agreement_date.replace(tzinfo=tz), start) - - start = start.replace(hour=0, minute=0, second=0, microsecond=0) - end = dt_util.now(tz).replace(hour=0, minute=0, second=0, microsecond=0) - one - _LOGGER.debug("Data lookup range: %s - %s", start, end) - - start_step = max(end - lookback, start) - end_step = end - usage: dict[datetime, dict[str, float | int]] = {} - while True: - _LOGGER.debug("Getting hourly usage: %s - %s", start_step, end_step) - try: - # Get data - results = await self.api.get_energy_usage( - meter["serialNum"], "HOURLY", "DAY", start_step, end_step - ) - usage = {**results["data"], **usage} - - for missing in results["missing"]: - _LOGGER.debug("Missing data: %s", missing) - - # Set next range - end_step = start_step - one - start_step = max(start_step - lookback, start) - - # Make sure we don't go back too far - if end_step < start: - break - except TimeoutError, ClientError: - # ClientError is raised when there is no more data for the range - break - - _LOGGER.debug("Got %s meter usage reads", len(usage)) - return usage diff --git a/homeassistant/components/duke_energy/manifest.json b/homeassistant/components/duke_energy/manifest.json deleted file mode 100644 index cbce6db82a1db3..00000000000000 --- a/homeassistant/components/duke_energy/manifest.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "domain": "duke_energy", - "name": "Duke Energy", - "codeowners": ["@hunterjm"], - "config_flow": true, - "dependencies": ["recorder"], - "documentation": "https://www.home-assistant.io/integrations/duke_energy", - "integration_type": "service", - "iot_class": "cloud_polling", - "requirements": ["aiodukeenergy==0.3.0"] -} diff --git a/homeassistant/components/duke_energy/strings.json b/homeassistant/components/duke_energy/strings.json deleted file mode 100644 index fed005957637a3..00000000000000 --- a/homeassistant/components/duke_energy/strings.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "config": { - "abort": { - "already_configured": "[%key:common::config_flow::abort::already_configured_device%]" - }, - "error": { - "cannot_connect": "[%key:common::config_flow::error::cannot_connect%]", - "invalid_auth": "[%key:common::config_flow::error::invalid_auth%]", - "unknown": "[%key:common::config_flow::error::unknown%]" - }, - "step": { - "user": { - "data": { - "password": "[%key:common::config_flow::data::password%]", - "username": "[%key:common::config_flow::data::username%]" - } - } - } - } -} diff --git a/homeassistant/components/dunehd/media_player.py b/homeassistant/components/dunehd/media_player.py index b30932213856fc..3960d7b6d3a1ec 100644 --- a/homeassistant/components/dunehd/media_player.py +++ b/homeassistant/components/dunehd/media_player.py @@ -33,6 +33,8 @@ | MediaPlayerEntityFeature.PLAY | MediaPlayerEntityFeature.PLAY_MEDIA | MediaPlayerEntityFeature.BROWSE_MEDIA + | MediaPlayerEntityFeature.VOLUME_STEP + | MediaPlayerEntityFeature.VOLUME_MUTE ) diff --git a/homeassistant/components/enphase_envoy/sensor.py b/homeassistant/components/enphase_envoy/sensor.py index 7ea8ae68fdb255..bc82b85eb50fed 100644 --- a/homeassistant/components/enphase_envoy/sensor.py +++ b/homeassistant/components/enphase_envoy/sensor.py @@ -405,8 +405,13 @@ class EnvoyCTSensorEntityDescription(SensorEntityDescription): ) for cttype, key in ( (CtType.NET_CONSUMPTION, "lifetime_net_consumption"), - # Production CT energy_delivered is not used + (CtType.PRODUCTION, "production_ct_energy_delivered"), (CtType.STORAGE, "lifetime_battery_discharged"), + (CtType.TOTAL_CONSUMPTION, "total_consumption_ct_energy_delivered"), + (CtType.BACKFEED, "backfeed_ct_energy_delivered"), + (CtType.LOAD, "load_ct_energy_delivered"), + (CtType.EVSE, "evse_ct_energy_delivered"), + (CtType.PV3P, "pv3p_ct_energy_delivered"), ) ] + [ @@ -423,8 +428,13 @@ class EnvoyCTSensorEntityDescription(SensorEntityDescription): ) for cttype, key in ( (CtType.NET_CONSUMPTION, "lifetime_net_production"), - # Production CT energy_received is not used + (CtType.PRODUCTION, "production_ct_energy_received"), (CtType.STORAGE, "lifetime_battery_charged"), + (CtType.TOTAL_CONSUMPTION, "total_consumption_ct_energy_received"), + (CtType.BACKFEED, "backfeed_ct_energy_received"), + (CtType.LOAD, "load_ct_energy_received"), + (CtType.EVSE, "evse_ct_energy_received"), + (CtType.PV3P, "pv3p_ct_energy_received"), ) ] + [ @@ -441,8 +451,13 @@ class EnvoyCTSensorEntityDescription(SensorEntityDescription): ) for cttype, key in ( (CtType.NET_CONSUMPTION, "net_consumption"), - # Production CT active_power is not used + (CtType.PRODUCTION, "production_ct_power"), (CtType.STORAGE, "battery_discharge"), + (CtType.TOTAL_CONSUMPTION, "total_consumption_ct_power"), + (CtType.BACKFEED, "backfeed_ct_power"), + (CtType.LOAD, "load_ct_power"), + (CtType.EVSE, "evse_ct_power"), + (CtType.PV3P, "pv3p_ct_power"), ) ] + [ @@ -461,6 +476,11 @@ class EnvoyCTSensorEntityDescription(SensorEntityDescription): (CtType.NET_CONSUMPTION, "frequency", "net_ct_frequency"), (CtType.PRODUCTION, "production_ct_frequency", ""), (CtType.STORAGE, "storage_ct_frequency", ""), + (CtType.TOTAL_CONSUMPTION, "total_consumption_ct_frequency", ""), + (CtType.BACKFEED, "backfeed_ct_frequency", ""), + (CtType.LOAD, "load_ct_frequency", ""), + (CtType.EVSE, "evse_ct_frequency", ""), + (CtType.PV3P, "pv3p_ct_frequency", ""), ) ] + [ @@ -480,6 +500,11 @@ class EnvoyCTSensorEntityDescription(SensorEntityDescription): (CtType.NET_CONSUMPTION, "voltage", "net_ct_voltage"), (CtType.PRODUCTION, "production_ct_voltage", ""), (CtType.STORAGE, "storage_voltage", "storage_ct_voltage"), + (CtType.TOTAL_CONSUMPTION, "total_consumption_ct_voltage", ""), + (CtType.BACKFEED, "backfeed_ct_voltage", ""), + (CtType.LOAD, "load_ct_voltage", ""), + (CtType.EVSE, "evse_ct_voltage", ""), + (CtType.PV3P, "pv3p_ct_voltage", ""), ) ] + [ @@ -499,6 +524,11 @@ class EnvoyCTSensorEntityDescription(SensorEntityDescription): (CtType.NET_CONSUMPTION, "net_ct_current"), (CtType.PRODUCTION, "production_ct_current"), (CtType.STORAGE, "storage_ct_current"), + (CtType.TOTAL_CONSUMPTION, "total_consumption_ct_current"), + (CtType.BACKFEED, "backfeed_ct_current"), + (CtType.LOAD, "load_ct_current"), + (CtType.EVSE, "evse_ct_current"), + (CtType.PV3P, "pv3p_ct_current"), ) ] + [ @@ -516,6 +546,11 @@ class EnvoyCTSensorEntityDescription(SensorEntityDescription): (CtType.NET_CONSUMPTION, "net_ct_powerfactor"), (CtType.PRODUCTION, "production_ct_powerfactor"), (CtType.STORAGE, "storage_ct_powerfactor"), + (CtType.TOTAL_CONSUMPTION, "total_consumption_ct_powerfactor"), + (CtType.BACKFEED, "backfeed_ct_powerfactor"), + (CtType.LOAD, "load_ct_powerfactor"), + (CtType.EVSE, "evse_ct_powerfactor"), + (CtType.PV3P, "pv3p_ct_powerfactor"), ) ] + [ @@ -537,6 +572,11 @@ class EnvoyCTSensorEntityDescription(SensorEntityDescription): ), (CtType.PRODUCTION, "production_ct_metering_status", ""), (CtType.STORAGE, "storage_ct_metering_status", ""), + (CtType.TOTAL_CONSUMPTION, "total_consumption_ct_metering_status", ""), + (CtType.BACKFEED, "backfeed_ct_metering_status", ""), + (CtType.LOAD, "load_ct_metering_status", ""), + (CtType.EVSE, "evse_ct_metering_status", ""), + (CtType.PV3P, "pv3p_ct_metering_status", ""), ) ] + [ @@ -557,6 +597,11 @@ class EnvoyCTSensorEntityDescription(SensorEntityDescription): ), (CtType.PRODUCTION, "production_ct_status_flags", ""), (CtType.STORAGE, "storage_ct_status_flags", ""), + (CtType.TOTAL_CONSUMPTION, "total_consumption_ct_status_flags", ""), + (CtType.BACKFEED, "backfeed_ct_status_flags", ""), + (CtType.LOAD, "load_ct_status_flags", ""), + (CtType.EVSE, "evse_ct_status_flags", ""), + (CtType.PV3P, "pv3p_ct_status_flags", ""), ) ] ) diff --git a/homeassistant/components/enphase_envoy/strings.json b/homeassistant/components/enphase_envoy/strings.json index 2866f504d4504a..12ce059967b867 100644 --- a/homeassistant/components/enphase_envoy/strings.json +++ b/homeassistant/components/enphase_envoy/strings.json @@ -160,6 +160,60 @@ "available_energy": { "name": "Available battery energy" }, + "backfeed_ct_current": { + "name": "Backfeed CT current" + }, + "backfeed_ct_current_phase": { + "name": "Backfeed CT current {phase_name}" + }, + "backfeed_ct_energy_delivered": { + "name": "Backfeed CT energy delivered" + }, + "backfeed_ct_energy_delivered_phase": { + "name": "Backfeed CT energy delivered {phase_name}" + }, + "backfeed_ct_energy_received": { + "name": "Backfeed CT energy received" + }, + "backfeed_ct_energy_received_phase": { + "name": "Backfeed CT energy received {phase_name}" + }, + "backfeed_ct_frequency": { + "name": "Frequency backfeed CT" + }, + "backfeed_ct_frequency_phase": { + "name": "Frequency backfeed CT {phase_name}" + }, + "backfeed_ct_metering_status": { + "name": "Metering status backfeed CT" + }, + "backfeed_ct_metering_status_phase": { + "name": "Metering status backfeed CT {phase_name}" + }, + "backfeed_ct_power": { + "name": "Backfeed CT power" + }, + "backfeed_ct_power_phase": { + "name": "Backfeed CT power {phase_name}" + }, + "backfeed_ct_powerfactor": { + "name": "Power factor backfeed CT" + }, + "backfeed_ct_powerfactor_phase": { + "name": "Power factor backfeed CT {phase_name}" + }, + "backfeed_ct_status_flags": { + "name": "Meter status flags active backfeed CT" + }, + "backfeed_ct_status_flags_phase": { + "name": "Meter status flags active backfeed CT {phase_name}" + }, + "backfeed_ct_voltage": { + "name": "Voltage backfeed CT" + }, + "backfeed_ct_voltage_phase": { + "name": "Voltage backfeed CT {phase_name}" + }, "balanced_net_consumption": { "name": "Balanced net power consumption" }, @@ -211,6 +265,60 @@ "energy_today": { "name": "[%key:component::enphase_envoy::entity::sensor::daily_production::name%]" }, + "evse_ct_current": { + "name": "EVSE CT current" + }, + "evse_ct_current_phase": { + "name": "EVSE CT current {phase_name}" + }, + "evse_ct_energy_delivered": { + "name": "EVSE CT energy delivered" + }, + "evse_ct_energy_delivered_phase": { + "name": "EVSE CT energy delivered {phase_name}" + }, + "evse_ct_energy_received": { + "name": "EVSE CT energy received" + }, + "evse_ct_energy_received_phase": { + "name": "EVSE CT energy received {phase_name}" + }, + "evse_ct_frequency": { + "name": "Frequency EVSE CT" + }, + "evse_ct_frequency_phase": { + "name": "Frequency EVSE CT {phase_name}" + }, + "evse_ct_metering_status": { + "name": "Metering status EVSE CT" + }, + "evse_ct_metering_status_phase": { + "name": "Metering status EVSE CT {phase_name}" + }, + "evse_ct_power": { + "name": "EVSE CT power" + }, + "evse_ct_power_phase": { + "name": "EVSE CT power {phase_name}" + }, + "evse_ct_powerfactor": { + "name": "Power factor EVSE CT" + }, + "evse_ct_powerfactor_phase": { + "name": "Power factor EVSE CT {phase_name}" + }, + "evse_ct_status_flags": { + "name": "Meter status flags active EVSE CT" + }, + "evse_ct_status_flags_phase": { + "name": "Meter status flags active EVSE CT {phase_name}" + }, + "evse_ct_voltage": { + "name": "Voltage EVSE CT" + }, + "evse_ct_voltage_phase": { + "name": "Voltage EVSE CT {phase_name}" + }, "grid_status": { "name": "[%key:component::enphase_envoy::entity::binary_sensor::grid_status::name%]", "state": { @@ -270,6 +378,60 @@ "lifetime_production_phase": { "name": "Lifetime energy production {phase_name}" }, + "load_ct_current": { + "name": "Load CT current" + }, + "load_ct_current_phase": { + "name": "Load CT current {phase_name}" + }, + "load_ct_energy_delivered": { + "name": "Load CT energy delivered" + }, + "load_ct_energy_delivered_phase": { + "name": "Load CT energy delivered {phase_name}" + }, + "load_ct_energy_received": { + "name": "Load CT energy received" + }, + "load_ct_energy_received_phase": { + "name": "Load CT energy received {phase_name}" + }, + "load_ct_frequency": { + "name": "Frequency load CT" + }, + "load_ct_frequency_phase": { + "name": "Frequency load CT {phase_name}" + }, + "load_ct_metering_status": { + "name": "Metering status load CT" + }, + "load_ct_metering_status_phase": { + "name": "Metering status load CT {phase_name}" + }, + "load_ct_power": { + "name": "Load CT power" + }, + "load_ct_power_phase": { + "name": "Load CT power {phase_name}" + }, + "load_ct_powerfactor": { + "name": "Power factor load CT" + }, + "load_ct_powerfactor_phase": { + "name": "Power factor load CT {phase_name}" + }, + "load_ct_status_flags": { + "name": "Meter status flags active load CT" + }, + "load_ct_status_flags_phase": { + "name": "Meter status flags active load CT {phase_name}" + }, + "load_ct_voltage": { + "name": "Voltage load CT" + }, + "load_ct_voltage_phase": { + "name": "Voltage load CT {phase_name}" + }, "max_capacity": { "name": "Battery capacity" }, @@ -331,6 +493,18 @@ "production_ct_current_phase": { "name": "Production CT current {phase_name}" }, + "production_ct_energy_delivered": { + "name": "Production CT energy delivered" + }, + "production_ct_energy_delivered_phase": { + "name": "Production CT energy delivered {phase_name}" + }, + "production_ct_energy_received": { + "name": "Production CT energy received" + }, + "production_ct_energy_received_phase": { + "name": "Production CT energy received {phase_name}" + }, "production_ct_frequency": { "name": "Frequency production CT" }, @@ -343,6 +517,12 @@ "production_ct_metering_status_phase": { "name": "Metering status production CT {phase_name}" }, + "production_ct_power": { + "name": "Production CT power" + }, + "production_ct_power_phase": { + "name": "Production CT power {phase_name}" + }, "production_ct_powerfactor": { "name": "Power factor production CT" }, @@ -361,6 +541,60 @@ "production_ct_voltage_phase": { "name": "Voltage production CT {phase_name}" }, + "pv3p_ct_current": { + "name": "PV3P CT current" + }, + "pv3p_ct_current_phase": { + "name": "PV3P CT current {phase_name}" + }, + "pv3p_ct_energy_delivered": { + "name": "PV3P CT energy delivered" + }, + "pv3p_ct_energy_delivered_phase": { + "name": "PV3P CT energy delivered {phase_name}" + }, + "pv3p_ct_energy_received": { + "name": "PV3P CT energy received" + }, + "pv3p_ct_energy_received_phase": { + "name": "PV3P CT energy received {phase_name}" + }, + "pv3p_ct_frequency": { + "name": "Frequency PV3P CT" + }, + "pv3p_ct_frequency_phase": { + "name": "Frequency PV3P CT {phase_name}" + }, + "pv3p_ct_metering_status": { + "name": "Metering status PV3P CT" + }, + "pv3p_ct_metering_status_phase": { + "name": "Metering status PV3P CT {phase_name}" + }, + "pv3p_ct_power": { + "name": "PV3P CT power" + }, + "pv3p_ct_power_phase": { + "name": "PV3P CT power {phase_name}" + }, + "pv3p_ct_powerfactor": { + "name": "Power factor PV3P CT" + }, + "pv3p_ct_powerfactor_phase": { + "name": "Power factor PV3P CT {phase_name}" + }, + "pv3p_ct_status_flags": { + "name": "Meter status flags active PV3P CT" + }, + "pv3p_ct_status_flags_phase": { + "name": "Meter status flags active PV3P CT {phase_name}" + }, + "pv3p_ct_voltage": { + "name": "Voltage PV3P CT" + }, + "pv3p_ct_voltage_phase": { + "name": "Voltage PV3P CT {phase_name}" + }, "reserve_energy": { "name": "Reserve battery energy" }, @@ -414,6 +648,60 @@ }, "storage_ct_voltage_phase": { "name": "Voltage storage CT {phase_name}" + }, + "total_consumption_ct_current": { + "name": "Total consumption CT current" + }, + "total_consumption_ct_current_phase": { + "name": "Total consumption CT current {phase_name}" + }, + "total_consumption_ct_energy_delivered": { + "name": "Total consumption CT energy delivered" + }, + "total_consumption_ct_energy_delivered_phase": { + "name": "Total consumption CT energy delivered {phase_name}" + }, + "total_consumption_ct_energy_received": { + "name": "Total consumption CT energy received" + }, + "total_consumption_ct_energy_received_phase": { + "name": "Total consumption CT energy received {phase_name}" + }, + "total_consumption_ct_frequency": { + "name": "Frequency total consumption CT" + }, + "total_consumption_ct_frequency_phase": { + "name": "Frequency total consumption CT {phase_name}" + }, + "total_consumption_ct_metering_status": { + "name": "Metering status total consumption CT" + }, + "total_consumption_ct_metering_status_phase": { + "name": "Metering status total consumption CT {phase_name}" + }, + "total_consumption_ct_power": { + "name": "Total consumption CT power" + }, + "total_consumption_ct_power_phase": { + "name": "Total consumption CT power {phase_name}" + }, + "total_consumption_ct_powerfactor": { + "name": "Power factor total consumption CT" + }, + "total_consumption_ct_powerfactor_phase": { + "name": "Power factor total consumption CT {phase_name}" + }, + "total_consumption_ct_status_flags": { + "name": "Meter status flags active total consumption CT" + }, + "total_consumption_ct_status_flags_phase": { + "name": "Meter status flags active total consumption CT {phase_name}" + }, + "total_consumption_ct_voltage": { + "name": "Voltage total consumption CT" + }, + "total_consumption_ct_voltage_phase": { + "name": "Voltage total consumption CT {phase_name}" } }, "switch": { diff --git a/homeassistant/components/evohome/strings.json b/homeassistant/components/evohome/strings.json index f66266f68544e4..6e39b24f8a67e4 100644 --- a/homeassistant/components/evohome/strings.json +++ b/homeassistant/components/evohome/strings.json @@ -1,7 +1,7 @@ { "exceptions": { "zone_only_service": { - "message": "Only zones support the `{service}` service" + "message": "Only zones support the `{service}` action" } }, "services": { diff --git a/homeassistant/components/hdfury/icons.json b/homeassistant/components/hdfury/icons.json index 60123cec6574f3..67c854a761dc7e 100644 --- a/homeassistant/components/hdfury/icons.json +++ b/homeassistant/components/hdfury/icons.json @@ -6,6 +6,12 @@ } }, "number": { + "audio_unmute": { + "default": "mdi:volume-high" + }, + "earc_unmute": { + "default": "mdi:volume-high" + }, "oled_fade": { "default": "mdi:cellphone-information" }, diff --git a/homeassistant/components/hdfury/number.py b/homeassistant/components/hdfury/number.py index 3693c5171bac72..3f36fbab18a036 100644 --- a/homeassistant/components/hdfury/number.py +++ b/homeassistant/components/hdfury/number.py @@ -31,6 +31,32 @@ class HDFuryNumberEntityDescription(NumberEntityDescription): NUMBERS: tuple[HDFuryNumberEntityDescription, ...] = ( + HDFuryNumberEntityDescription( + key="unmutecnt", + translation_key="audio_unmute", + entity_registry_enabled_default=False, + mode=NumberMode.BOX, + native_min_value=50, + native_max_value=1000, + native_step=1, + device_class=NumberDeviceClass.DURATION, + native_unit_of_measurement=UnitOfTime.MILLISECONDS, + entity_category=EntityCategory.CONFIG, + set_value_fn=lambda client, value: client.set_audio_unmute(value), + ), + HDFuryNumberEntityDescription( + key="earcunmutecnt", + translation_key="earc_unmute", + entity_registry_enabled_default=False, + mode=NumberMode.BOX, + native_min_value=0, + native_max_value=1000, + native_step=1, + device_class=NumberDeviceClass.DURATION, + native_unit_of_measurement=UnitOfTime.MILLISECONDS, + entity_category=EntityCategory.CONFIG, + set_value_fn=lambda client, value: client.set_earc_unmute(value), + ), HDFuryNumberEntityDescription( key="oledfade", translation_key="oled_fade", diff --git a/homeassistant/components/hdfury/strings.json b/homeassistant/components/hdfury/strings.json index 54a09bd9485550..e7ade56c937138 100644 --- a/homeassistant/components/hdfury/strings.json +++ b/homeassistant/components/hdfury/strings.json @@ -41,6 +41,12 @@ } }, "number": { + "audio_unmute": { + "name": "Unmute delay" + }, + "earc_unmute": { + "name": "eARC unmute delay" + }, "oled_fade": { "name": "OLED fade timer" }, diff --git a/homeassistant/components/indevolt/strings.json b/homeassistant/components/indevolt/strings.json index 6705d3b8678595..ad5bab3e517cf7 100644 --- a/homeassistant/components/indevolt/strings.json +++ b/homeassistant/components/indevolt/strings.json @@ -57,8 +57,8 @@ "battery_charge_discharge_state": { "name": "Battery charge/discharge state", "state": { - "charging": "Charging", - "discharging": "Discharging", + "charging": "[%key:common::state::charging%]", + "discharging": "[%key:common::state::discharging%]", "static": "Static" } }, diff --git a/homeassistant/components/sma/strings.json b/homeassistant/components/sma/strings.json index 55f2d2512b74d8..8a662a889aa6f9 100644 --- a/homeassistant/components/sma/strings.json +++ b/homeassistant/components/sma/strings.json @@ -38,6 +38,12 @@ "ssl": "[%key:common::config_flow::data::ssl%]", "verify_ssl": "[%key:common::config_flow::data::verify_ssl%]" }, + "data_description": { + "group": "[%key:component::sma::config::step::user::data_description::group%]", + "host": "[%key:component::sma::config::step::user::data_description::host%]", + "ssl": "[%key:component::sma::config::step::user::data_description::ssl%]", + "verify_ssl": "[%key:component::sma::config::step::user::data_description::verify_ssl%]" + }, "description": "Use the following form to reconfigure your SMA device.", "title": "Reconfigure SMA Solar Integration" }, @@ -50,7 +56,11 @@ "verify_ssl": "[%key:common::config_flow::data::verify_ssl%]" }, "data_description": { - "host": "The hostname or IP address of your SMA device." + "group": "The group of your SMA device, where the Modbus connection is configured", + "host": "The hostname or IP address of your SMA device", + "password": "The password for your SMA device", + "ssl": "Whether to use SSL to connect to your SMA device. This is required for newer SMA devices, but older devices do not support SSL", + "verify_ssl": "Whether to verify SSL certificates. Disable only if you have a self-signed certificate" }, "description": "Enter your SMA device information.", "title": "Set up SMA Solar" diff --git a/homeassistant/components/smartthings/icons.json b/homeassistant/components/smartthings/icons.json index 72995be6f698c8..29ccf6fd59e26f 100644 --- a/homeassistant/components/smartthings/icons.json +++ b/homeassistant/components/smartthings/icons.json @@ -177,6 +177,12 @@ "on": "mdi:lightbulb-on" } }, + "do_not_disturb": { + "default": "mdi:minus-circle-off", + "state": { + "on": "mdi:minus-circle" + } + }, "dry_plus": { "default": "mdi:heat-wave" }, diff --git a/homeassistant/components/smartthings/manifest.json b/homeassistant/components/smartthings/manifest.json index 82b74081f17bba..4a3454c73cb0ef 100644 --- a/homeassistant/components/smartthings/manifest.json +++ b/homeassistant/components/smartthings/manifest.json @@ -34,5 +34,5 @@ "iot_class": "cloud_push", "loggers": ["pysmartthings"], "quality_scale": "bronze", - "requirements": ["pysmartthings==3.5.3"] + "requirements": ["pysmartthings==3.6.0"] } diff --git a/homeassistant/components/smartthings/sensor.py b/homeassistant/components/smartthings/sensor.py index 0282fb9ca3da10..de823b85f55c0b 100644 --- a/homeassistant/components/smartthings/sensor.py +++ b/homeassistant/components/smartthings/sensor.py @@ -95,6 +95,7 @@ ROBOT_CLEANER_MOVEMENT_MAP = { "powerOff": "off", + "washingMop": "washing_mop", } OVEN_MODE = { @@ -880,6 +881,7 @@ class SmartThingsSensorEntityDescription(SensorEntityDescription): "after", "cleaning", "pause", + "washing_mop", ], device_class=SensorDeviceClass.ENUM, value_fn=lambda value: ROBOT_CLEANER_MOVEMENT_MAP.get(value, value), diff --git a/homeassistant/components/smartthings/strings.json b/homeassistant/components/smartthings/strings.json index 625f878625992d..9d9c4ea0dcbb99 100644 --- a/homeassistant/components/smartthings/strings.json +++ b/homeassistant/components/smartthings/strings.json @@ -718,7 +718,8 @@ "off": "[%key:common::state::off%]", "pause": "[%key:common::state::paused%]", "point": "Point", - "reserve": "Reserve" + "reserve": "Reserve", + "washing_mop": "Washing mop" } }, "robot_cleaner_turbo_mode": { @@ -858,6 +859,9 @@ "display_lighting": { "name": "Display lighting" }, + "do_not_disturb": { + "name": "Do not disturb" + }, "dry_plus": { "name": "Dry plus" }, diff --git a/homeassistant/components/smartthings/switch.py b/homeassistant/components/smartthings/switch.py index 682d6f80493efe..c0e66d285b7a6f 100644 --- a/homeassistant/components/smartthings/switch.py +++ b/homeassistant/components/smartthings/switch.py @@ -162,6 +162,14 @@ class SmartThingsDishwasherWashingOptionSwitchEntityDescription( status_attribute=Attribute.STATUS, entity_category=EntityCategory.CONFIG, ), + Capability.CUSTOM_DO_NOT_DISTURB_MODE: SmartThingsSwitchEntityDescription( + key=Capability.CUSTOM_DO_NOT_DISTURB_MODE, + translation_key="do_not_disturb", + status_attribute=Attribute.DO_NOT_DISTURB, + entity_category=EntityCategory.CONFIG, + on_command=Command.DO_NOT_DISTURB_ON, + off_command=Command.DO_NOT_DISTURB_OFF, + ), } DISHWASHER_WASHING_OPTIONS_TO_SWITCHES: dict[ Attribute | str, SmartThingsDishwasherWashingOptionSwitchEntityDescription diff --git a/homeassistant/components/template/sensor.py b/homeassistant/components/template/sensor.py index 1b3ac858c4cde2..a3184c4ba9818d 100644 --- a/homeassistant/components/template/sensor.py +++ b/homeassistant/components/template/sensor.py @@ -257,6 +257,9 @@ def _validate_state( ) -> StateType | date | datetime | Decimal | None: """Validate the state.""" if self._numeric_state_expected: + if not isinstance(result, bool) and isinstance(result, (int, float)): + return result + return template_validators.number(self, CONF_STATE)(result) if result is None or self.device_class not in ( diff --git a/homeassistant/components/wled/manifest.json b/homeassistant/components/wled/manifest.json index 977479a8b1906b..b14c5df25ef35b 100644 --- a/homeassistant/components/wled/manifest.json +++ b/homeassistant/components/wled/manifest.json @@ -1,7 +1,7 @@ { "domain": "wled", "name": "WLED", - "codeowners": ["@frenck"], + "codeowners": ["@frenck", "@mik-laj"], "config_flow": true, "documentation": "https://www.home-assistant.io/integrations/wled", "integration_type": "device", diff --git a/homeassistant/components/zha/__init__.py b/homeassistant/components/zha/__init__.py index 16c64fd90169aa..335a0939b05137 100644 --- a/homeassistant/components/zha/__init__.py +++ b/homeassistant/components/zha/__init__.py @@ -274,6 +274,9 @@ def update_config(event: Event) -> None: async def async_unload_entry(hass: HomeAssistant, config_entry: ConfigEntry) -> bool: """Unload ZHA config entry.""" + if not await hass.config_entries.async_unload_platforms(config_entry, PLATFORMS): + return False + ha_zha_data = get_zha_data(hass) ha_zha_data.config_entry = None @@ -281,6 +284,8 @@ async def async_unload_entry(hass: HomeAssistant, config_entry: ConfigEntry) -> await ha_zha_data.gateway_proxy.shutdown() ha_zha_data.gateway_proxy = None + ha_zha_data.update_coordinator = None + # clean up any remaining entity metadata # (entities that have been discovered but not yet added to HA) # suppress KeyError because we don't know what state we may @@ -291,7 +296,7 @@ async def async_unload_entry(hass: HomeAssistant, config_entry: ConfigEntry) -> websocket_api.async_unload_api(hass) - return await hass.config_entries.async_unload_platforms(config_entry, PLATFORMS) + return True async def async_migrate_entry(hass: HomeAssistant, config_entry: ConfigEntry) -> bool: diff --git a/homeassistant/generated/config_flows.py b/homeassistant/generated/config_flows.py index cbb5542d493cf6..e4b5f3fa0eec18 100644 --- a/homeassistant/generated/config_flows.py +++ b/homeassistant/generated/config_flows.py @@ -161,7 +161,6 @@ "dsmr", "dsmr_reader", "duckdns", - "duke_energy", "dunehd", "duotecno", "dwd_weather_warnings", diff --git a/homeassistant/generated/integrations.json b/homeassistant/generated/integrations.json index 0bdb5625a1febc..65ab1a7a4bdd55 100644 --- a/homeassistant/generated/integrations.json +++ b/homeassistant/generated/integrations.json @@ -1497,12 +1497,6 @@ "config_flow": true, "iot_class": "cloud_polling" }, - "duke_energy": { - "name": "Duke Energy", - "integration_type": "service", - "config_flow": true, - "iot_class": "cloud_polling" - }, "dunehd": { "name": "Dune HD", "integration_type": "device", diff --git a/requirements_all.txt b/requirements_all.txt index 2896fcffa8dd26..544763f603ff08 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -235,9 +235,6 @@ aiodiscover==2.7.1 # homeassistant.components.dnsip aiodns==4.0.0 -# homeassistant.components.duke_energy -aiodukeenergy==0.3.0 - # homeassistant.components.eafm aioeafm==0.1.2 @@ -2476,7 +2473,7 @@ pysmappee==0.2.29 pysmarlaapi==1.0.1 # homeassistant.components.smartthings -pysmartthings==3.5.3 +pysmartthings==3.6.0 # homeassistant.components.smarty pysmarty2==0.10.3 diff --git a/requirements_test_all.txt b/requirements_test_all.txt index c8c79d3c3b9d46..409aac1b66097c 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -226,9 +226,6 @@ aiodiscover==2.7.1 # homeassistant.components.dnsip aiodns==4.0.0 -# homeassistant.components.duke_energy -aiodukeenergy==0.3.0 - # homeassistant.components.eafm aioeafm==0.1.2 @@ -2108,7 +2105,7 @@ pysmappee==0.2.29 pysmarlaapi==1.0.1 # homeassistant.components.smartthings -pysmartthings==3.5.3 +pysmartthings==3.6.0 # homeassistant.components.smarty pysmarty2==0.10.3 diff --git a/script/hassfest/quality_scale.py b/script/hassfest/quality_scale.py index 9e168700f55ec6..6930b968e5253a 100644 --- a/script/hassfest/quality_scale.py +++ b/script/hassfest/quality_scale.py @@ -295,7 +295,6 @@ class Rule: "dsmr", "dsmr_reader", "dublin_bus_transport", - "duke_energy", "dunehd", "duotecno", "dwd_weather_warnings", @@ -1273,7 +1272,6 @@ class Rule: "dsmr", "dsmr_reader", "dublin_bus_transport", - "duke_energy", "dunehd", "duotecno", "dwd_weather_warnings", diff --git a/tests/components/adguard/__init__.py b/tests/components/adguard/__init__.py index 1d5a3444d7a8ee..4d8ae091dc5336 100644 --- a/tests/components/adguard/__init__.py +++ b/tests/components/adguard/__init__.py @@ -1,23 +1 @@ """Tests for the AdGuard Home integration.""" - -from collections.abc import AsyncGenerator -from unittest.mock import patch - -from homeassistant.core import HomeAssistant - -from tests.common import MockConfigEntry - - -async def setup_integration( - hass: HomeAssistant, - config_entry: MockConfigEntry, - adguard_mock: AsyncGenerator, -) -> None: - """Fixture for setting up the component.""" - config_entry.add_to_hass(hass) - with patch( - "homeassistant.components.adguard.AdGuardHome", - return_value=adguard_mock, - ): - await hass.config_entries.async_setup(config_entry.entry_id) - await hass.async_block_till_done() diff --git a/tests/components/adguard/conftest.py b/tests/components/adguard/conftest.py index a2e248536968dc..5c81e888322ae4 100644 --- a/tests/components/adguard/conftest.py +++ b/tests/components/adguard/conftest.py @@ -1,6 +1,7 @@ """Common fixtures for the adguard tests.""" -from unittest.mock import AsyncMock +from collections.abc import Generator +from unittest.mock import AsyncMock, patch from adguardhome import AdGuardHome from adguardhome.filtering import AdGuardHomeFiltering @@ -12,7 +13,7 @@ from adguardhome.update import AdGuardHomeAvailableUpdate, AdGuardHomeUpdate import pytest -from homeassistant.components.adguard import DOMAIN +from homeassistant.components.adguard import DOMAIN, PLATFORMS from homeassistant.const import ( CONF_HOST, CONF_PASSWORD, @@ -20,7 +21,9 @@ CONF_SSL, CONF_USERNAME, CONF_VERIFY_SSL, + Platform, ) +from homeassistant.core import HomeAssistant from tests.common import MockConfigEntry @@ -43,8 +46,8 @@ def mock_config_entry() -> MockConfigEntry: @pytest.fixture -async def mock_adguard() -> AsyncMock: - """Fixture for setting up the component.""" +def mock_adguard() -> Generator[AsyncMock]: + """Return a mocked AdGuard Home client.""" adguard_mock = AsyncMock(spec=AdGuardHome) adguard_mock.filtering = AsyncMock(spec=AdGuardHomeFiltering) adguard_mock.parental = AsyncMock(spec=AdGuardHomeParental) @@ -86,4 +89,31 @@ async def mock_adguard() -> AsyncMock: ) ) - return adguard_mock + with patch( + "homeassistant.components.adguard.AdGuardHome", + return_value=adguard_mock, + ): + yield adguard_mock + + +@pytest.fixture +def platforms() -> list[Platform]: + """Fixture to specify platforms to test.""" + return PLATFORMS + + +@pytest.fixture +async def init_integration( + hass: HomeAssistant, + mock_config_entry: MockConfigEntry, + mock_adguard: AsyncMock, + platforms: list[Platform], +) -> MockConfigEntry: + """Set up the AdGuard Home integration for testing.""" + mock_config_entry.add_to_hass(hass) + + with patch("homeassistant.components.adguard.PLATFORMS", platforms): + await hass.config_entries.async_setup(mock_config_entry.entry_id) + await hass.async_block_till_done() + + return mock_config_entry diff --git a/tests/components/adguard/test_init.py b/tests/components/adguard/test_init.py index bc939251fb3c57..6cbedd76be2fbb 100644 --- a/tests/components/adguard/test_init.py +++ b/tests/components/adguard/test_init.py @@ -1,25 +1,28 @@ """Tests for the AdGuard Home.""" -from unittest.mock import AsyncMock, patch +from unittest.mock import AsyncMock from adguardhome import AdGuardHomeConnectionError +import pytest from homeassistant.config_entries import ConfigEntryState +from homeassistant.const import Platform from homeassistant.core import HomeAssistant -from . import setup_integration - from tests.common import MockConfigEntry +@pytest.fixture +def platforms() -> list[Platform]: + """Fixture to specify platforms to test.""" + return [] + + +@pytest.mark.usefixtures("init_integration") async def test_setup( - hass: HomeAssistant, - mock_adguard: AsyncMock, mock_config_entry: MockConfigEntry, ) -> None: """Test the adguard setup.""" - with patch("homeassistant.components.adguard.PLATFORMS", []): - await setup_integration(hass, mock_config_entry, mock_adguard) assert mock_config_entry.state is ConfigEntryState.LOADED @@ -31,5 +34,8 @@ async def test_setup_failed( """Test the adguard setup failed.""" mock_adguard.version.side_effect = AdGuardHomeConnectionError("Connection error") - await setup_integration(hass, mock_config_entry, mock_adguard) + mock_config_entry.add_to_hass(hass) + await hass.config_entries.async_setup(mock_config_entry.entry_id) + await hass.async_block_till_done() + assert mock_config_entry.state is ConfigEntryState.SETUP_RETRY diff --git a/tests/components/adguard/test_sensor.py b/tests/components/adguard/test_sensor.py index 1930288c04dba4..75f653d15d338d 100644 --- a/tests/components/adguard/test_sensor.py +++ b/tests/components/adguard/test_sensor.py @@ -1,7 +1,5 @@ """Tests for the AdGuard Home sensor entities.""" -from unittest.mock import AsyncMock, patch - import pytest from syrupy.assertion import SnapshotAssertion @@ -9,21 +7,21 @@ from homeassistant.core import HomeAssistant from homeassistant.helpers import entity_registry as er -from . import setup_integration - from tests.common import MockConfigEntry, snapshot_platform -@pytest.mark.usefixtures("entity_registry_enabled_by_default") +@pytest.fixture +def platforms() -> list[Platform]: + """Fixture to specify platforms to test.""" + return [Platform.SENSOR] + + +@pytest.mark.usefixtures("entity_registry_enabled_by_default", "init_integration") async def test_sensors( hass: HomeAssistant, entity_registry: er.EntityRegistry, snapshot: SnapshotAssertion, - mock_adguard: AsyncMock, mock_config_entry: MockConfigEntry, ) -> None: """Test the adguard sensor platform.""" - with patch("homeassistant.components.adguard.PLATFORMS", [Platform.SENSOR]): - await setup_integration(hass, mock_config_entry, mock_adguard) - await snapshot_platform(hass, entity_registry, snapshot, mock_config_entry.entry_id) diff --git a/tests/components/adguard/test_service.py b/tests/components/adguard/test_service.py index 03af9e890e02d3..5eaf33e9f00b5d 100644 --- a/tests/components/adguard/test_service.py +++ b/tests/components/adguard/test_service.py @@ -2,7 +2,7 @@ from collections.abc import Callable from typing import Any -from unittest.mock import AsyncMock, patch +from unittest.mock import AsyncMock import pytest @@ -14,22 +14,22 @@ SERVICE_REFRESH, SERVICE_REMOVE_URL, ) +from homeassistant.const import Platform from homeassistant.core import HomeAssistant -from . import setup_integration +pytestmark = pytest.mark.usefixtures("init_integration") -from tests.common import MockConfigEntry + +@pytest.fixture +def platforms() -> list[Platform]: + """Fixture to specify platforms to test.""" + return [] async def test_service_registration( hass: HomeAssistant, - mock_adguard: AsyncMock, - mock_config_entry: MockConfigEntry, ) -> None: """Test the adguard services be registered.""" - with patch("homeassistant.components.adguard.PLATFORMS", []): - await setup_integration(hass, mock_config_entry, mock_adguard) - services = hass.services.async_services_for_domain(DOMAIN) assert len(services) == 5 @@ -73,15 +73,11 @@ async def test_service_registration( async def test_service( hass: HomeAssistant, mock_adguard: AsyncMock, - mock_config_entry: MockConfigEntry, service: str, service_call_data: dict, call_assertion: Callable[[AsyncMock], Any], ) -> None: """Test the adguard services be unregistered with unloading last entry.""" - with patch("homeassistant.components.adguard.PLATFORMS", []): - await setup_integration(hass, mock_config_entry, mock_adguard) - await hass.services.async_call( DOMAIN, service, diff --git a/tests/components/adguard/test_switch.py b/tests/components/adguard/test_switch.py index 00014a6e5d8105..96d6081b587a1a 100644 --- a/tests/components/adguard/test_switch.py +++ b/tests/components/adguard/test_switch.py @@ -3,7 +3,7 @@ from collections.abc import Callable import logging from typing import Any -from unittest.mock import AsyncMock, patch +from unittest.mock import AsyncMock from adguardhome import AdGuardHomeError import pytest @@ -14,23 +14,26 @@ from homeassistant.core import HomeAssistant from homeassistant.helpers import entity_registry as er -from . import setup_integration - from tests.common import MockConfigEntry, snapshot_platform +@pytest.fixture +def platforms() -> list[Platform]: + """Fixture to specify platforms to test.""" + return [Platform.SWITCH] + + +pytestmark = pytest.mark.usefixtures("init_integration") + + @pytest.mark.usefixtures("entity_registry_enabled_by_default") async def test_switch( hass: HomeAssistant, entity_registry: er.EntityRegistry, snapshot: SnapshotAssertion, - mock_adguard: AsyncMock, mock_config_entry: MockConfigEntry, ) -> None: """Test the adguard switch platform.""" - with patch("homeassistant.components.adguard.PLATFORMS", [Platform.SWITCH]): - await setup_integration(hass, mock_config_entry, mock_adguard) - await snapshot_platform(hass, entity_registry, snapshot, mock_config_entry.entry_id) @@ -103,15 +106,11 @@ async def test_switch( async def test_switch_actions( hass: HomeAssistant, mock_adguard: AsyncMock, - mock_config_entry: MockConfigEntry, switch_name: str, service: str, call_assertion: Callable[[AsyncMock], Any], ) -> None: """Test the adguard switch actions.""" - with patch("homeassistant.components.adguard.PLATFORMS", [Platform.SWITCH]): - await setup_integration(hass, mock_config_entry, mock_adguard) - await hass.services.async_call( "switch", service, @@ -138,7 +137,6 @@ async def test_switch_actions( async def test_switch_action_failed( hass: HomeAssistant, mock_adguard: AsyncMock, - mock_config_entry: MockConfigEntry, caplog: pytest.LogCaptureFixture, service: str, expected_message: str, @@ -146,9 +144,6 @@ async def test_switch_action_failed( """Test the adguard switch actions.""" caplog.set_level(logging.ERROR) - with patch("homeassistant.components.adguard.PLATFORMS", [Platform.SWITCH]): - await setup_integration(hass, mock_config_entry, mock_adguard) - mock_adguard.enable_protection.side_effect = AdGuardHomeError("Boom") mock_adguard.disable_protection.side_effect = AdGuardHomeError("Boom") diff --git a/tests/components/adguard/test_update.py b/tests/components/adguard/test_update.py index bdc5a71b81d492..b0709d32152dcc 100644 --- a/tests/components/adguard/test_update.py +++ b/tests/components/adguard/test_update.py @@ -12,22 +12,23 @@ from homeassistant.exceptions import HomeAssistantError from homeassistant.helpers import entity_registry as er -from . import setup_integration - from tests.common import MockConfigEntry, snapshot_platform +@pytest.fixture +def platforms() -> list[Platform]: + """Fixture to specify platforms to test.""" + return [Platform.UPDATE] + + +@pytest.mark.usefixtures("init_integration") async def test_update( hass: HomeAssistant, entity_registry: er.EntityRegistry, snapshot: SnapshotAssertion, - mock_adguard: AsyncMock, mock_config_entry: MockConfigEntry, ) -> None: """Test the adguard update platform.""" - with patch("homeassistant.components.adguard.PLATFORMS", [Platform.UPDATE]): - await setup_integration(hass, mock_config_entry, mock_adguard) - await snapshot_platform(hass, entity_registry, snapshot, mock_config_entry.entry_id) @@ -41,41 +42,38 @@ async def test_update_disabled( disabled=True, ) + mock_config_entry.add_to_hass(hass) with patch("homeassistant.components.adguard.PLATFORMS", [Platform.UPDATE]): - await setup_integration(hass, mock_config_entry, mock_adguard) + await hass.config_entries.async_setup(mock_config_entry.entry_id) + await hass.async_block_till_done() assert not hass.states.async_all() +@pytest.mark.usefixtures("init_integration") async def test_update_install( hass: HomeAssistant, mock_adguard: AsyncMock, - mock_config_entry: MockConfigEntry, ) -> None: """Test the adguard update installation.""" - with patch("homeassistant.components.adguard.PLATFORMS", [Platform.UPDATE]): - await setup_integration(hass, mock_config_entry, mock_adguard) - await hass.services.async_call( "update", "install", {"entity_id": "update.adguard_home"}, blocking=True, ) + mock_adguard.update.begin_update.assert_called_once() +@pytest.mark.usefixtures("init_integration") async def test_update_install_failed( hass: HomeAssistant, mock_adguard: AsyncMock, - mock_config_entry: MockConfigEntry, ) -> None: """Test the adguard update install failed.""" mock_adguard.update.begin_update.side_effect = AdGuardHomeError("boom") - with patch("homeassistant.components.adguard.PLATFORMS", [Platform.UPDATE]): - await setup_integration(hass, mock_config_entry, mock_adguard) - with pytest.raises(HomeAssistantError): await hass.services.async_call( "update", diff --git a/tests/components/airos/test_config_flow.py b/tests/components/airos/test_config_flow.py index 994400bd2db44a..8ed8ca3ac35220 100644 --- a/tests/components/airos/test_config_flow.py +++ b/tests/components/airos/test_config_flow.py @@ -213,6 +213,7 @@ async def test_reauth_flow_scenario( ap_fixture: AirOSData, mock_airos_client: AsyncMock, mock_config_entry: MockConfigEntry, + mock_setup_entry: AsyncMock, ) -> None: """Test successful reauthentication.""" mock_config_entry.add_to_hass(hass) @@ -220,11 +221,15 @@ async def test_reauth_flow_scenario( mock_airos_client.login.side_effect = AirOSConnectionAuthenticationError await hass.config_entries.async_setup(mock_config_entry.entry_id) - flow = await hass.config_entries.flow.async_init( - DOMAIN, - context={"source": SOURCE_REAUTH, "entry_id": mock_config_entry.entry_id}, - data=mock_config_entry.data, - ) + with patch( + "homeassistant.components.airos.config_flow.async_get_firmware_data", + side_effect=AirOSConnectionAuthenticationError, + ): + flow = await hass.config_entries.flow.async_init( + DOMAIN, + context={"source": SOURCE_REAUTH, "entry_id": mock_config_entry.entry_id}, + data=mock_config_entry.data, + ) assert flow["type"] == FlowResultType.FORM assert flow["step_id"] == REAUTH_STEP @@ -236,20 +241,22 @@ async def test_reauth_flow_scenario( hostname=ap_fixture.host.hostname, ) + mock_firmware = AsyncMock(return_value=valid_data) with ( patch( "homeassistant.components.airos.config_flow.async_get_firmware_data", - new=AsyncMock(return_value=valid_data), + new=mock_firmware, ), patch( "homeassistant.components.airos.async_get_firmware_data", - new=AsyncMock(return_value=valid_data), + new=mock_firmware, ), ): result = await hass.config_entries.flow.async_configure( flow["flow_id"], user_input={CONF_PASSWORD: NEW_PASSWORD}, ) + await hass.async_block_till_done(wait_background_tasks=True) # Always test resolution assert result["type"] is FlowResultType.ABORT diff --git a/tests/components/arcam_fmj/test_config_flow.py b/tests/components/arcam_fmj/test_config_flow.py index 1a578fc613de70..c153350551d18c 100644 --- a/tests/components/arcam_fmj/test_config_flow.py +++ b/tests/components/arcam_fmj/test_config_flow.py @@ -70,6 +70,15 @@ def dummy_client_fixture() -> Generator[MagicMock]: yield client.return_value +@pytest.fixture(autouse=True) +def mock_setup_entry() -> Generator[AsyncMock]: + """Override async_setup_entry.""" + with patch( + "homeassistant.components.arcam_fmj.async_setup_entry", return_value=True + ) as mock_setup: + yield mock_setup + + async def test_ssdp(hass: HomeAssistant) -> None: """Test a ssdp import flow.""" result = await hass.config_entries.flow.async_init( diff --git a/tests/components/axis/test_init.py b/tests/components/axis/test_init.py index 89737325440e7f..234bc4c8b01810 100644 --- a/tests/components/axis/test_init.py +++ b/tests/components/axis/test_init.py @@ -19,18 +19,16 @@ async def test_setup_entry(config_entry_setup: MockConfigEntry) -> None: async def test_setup_entry_fails( hass: HomeAssistant, config_entry: MockConfigEntry ) -> None: - """Test successful setup of entry.""" + """Test failed setup of entry.""" config_entry.add_to_hass(hass) - mock_device = Mock() - mock_device.async_setup = AsyncMock(return_value=False) - - with patch.object(axis, "AxisHub") as mock_device_class: - mock_device_class.return_value = mock_device - - assert not await hass.config_entries.async_setup(config_entry.entry_id) + with patch( + "homeassistant.components.axis.get_axis_api", + side_effect=axis.CannotConnect, + ): + await hass.config_entries.async_setup(config_entry.entry_id) - assert config_entry.state is ConfigEntryState.SETUP_ERROR + assert config_entry.state is ConfigEntryState.SETUP_RETRY async def test_unload_entry( diff --git a/tests/components/bsblan/snapshots/test_sensor.ambr b/tests/components/bsblan/snapshots/test_sensor.ambr index 80f8a38ac0b13d..e8d128d37758e9 100644 --- a/tests/components/bsblan/snapshots/test_sensor.ambr +++ b/tests/components/bsblan/snapshots/test_sensor.ambr @@ -139,7 +139,7 @@ 'object_id_base': 'Total energy', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 2, + 'suggested_display_precision': 0, }), }), 'original_device_class': , diff --git a/tests/components/bsblan/test_sensor.py b/tests/components/bsblan/test_sensor.py index 465e313b6b7be6..2eeedf90386975 100644 --- a/tests/components/bsblan/test_sensor.py +++ b/tests/components/bsblan/test_sensor.py @@ -3,6 +3,7 @@ from unittest.mock import AsyncMock from freezegun.api import FrozenDateTimeFactory +import pytest from syrupy.assertion import SnapshotAssertion from homeassistant.const import Platform @@ -18,6 +19,7 @@ ENTITY_TOTAL_ENERGY = "sensor.bsb_lan_total_energy" +@pytest.mark.usefixtures("entity_registry_enabled_by_default") async def test_sensor_entity_properties( hass: HomeAssistant, mock_bsblan: AsyncMock, diff --git a/tests/components/cast/test_media_player.py b/tests/components/cast/test_media_player.py index 8a7cf3fe56ffd7..5dfb99e3f2db90 100644 --- a/tests/components/cast/test_media_player.py +++ b/tests/components/cast/test_media_player.py @@ -2385,3 +2385,42 @@ async def test_ha_cast(hass: HomeAssistant, ha_controller_mock) -> None: chromecast.unregister_handler.reset_mock() unregister_cb() chromecast.unregister_handler.assert_not_called() + + +async def test_entity_media_states_active_app_reported_idle( + hass: HomeAssistant, entity_registry: er.EntityRegistry +) -> None: + """Test entity state when app is active but device reports idle (fixes #160814).""" + entity_id = "media_player.speaker" + info = get_fake_chromecast_info() + chromecast, _ = await async_setup_media_player_cast(hass, info) + cast_status_cb, conn_status_cb, _ = get_status_callbacks(chromecast) + + # Connect the device + connection_status = MagicMock() + connection_status.status = "CONNECTED" + conn_status_cb(connection_status) + await hass.async_block_till_done() + + # Scenario: Custom App is running (e.g. DashCast), but device reports is_idle=True + chromecast.app_id = "84912283" # Example Custom App ID + chromecast.is_idle = True # Device thinks it's idle/standby + + # Trigger a status update + cast_status = MagicMock() + cast_status_cb(cast_status) + await hass.async_block_till_done() + + state = hass.states.get(entity_id) + assert state is not None + assert state.state == "idle" + + # Scenario: Backdrop (Screensaver) is running. Should still be OFF. + chromecast.app_id = pychromecast.config.APP_BACKDROP + chromecast.is_idle = True + + cast_status_cb(cast_status) + await hass.async_block_till_done() + + state = hass.states.get(entity_id) + assert state.state == "off" diff --git a/tests/components/ccm15/test_config_flow.py b/tests/components/ccm15/test_config_flow.py index 01da3282885702..3171d4006cbee9 100644 --- a/tests/components/ccm15/test_config_flow.py +++ b/tests/components/ccm15/test_config_flow.py @@ -79,7 +79,9 @@ async def test_form_invalid_host( assert result2["type"] is FlowResultType.CREATE_ENTRY -async def test_form_cannot_connect(hass: HomeAssistant) -> None: +async def test_form_cannot_connect( + hass: HomeAssistant, mock_setup_entry: AsyncMock +) -> None: """Test we handle cannot connect error.""" result = await hass.config_entries.flow.async_init( DOMAIN, context={"source": config_entries.SOURCE_USER} @@ -111,7 +113,9 @@ async def test_form_cannot_connect(hass: HomeAssistant) -> None: assert result2["type"] is FlowResultType.CREATE_ENTRY -async def test_form_unexpected_error(hass: HomeAssistant) -> None: +async def test_form_unexpected_error( + hass: HomeAssistant, mock_setup_entry: AsyncMock +) -> None: """Test we handle cannot connect error.""" result = await hass.config_entries.flow.async_init( DOMAIN, context={"source": config_entries.SOURCE_USER} diff --git a/tests/components/daikin/test_config_flow.py b/tests/components/daikin/test_config_flow.py index 612ae7ab649fee..4333050388caa6 100644 --- a/tests/components/daikin/test_config_flow.py +++ b/tests/components/daikin/test_config_flow.py @@ -1,7 +1,8 @@ """Tests for the Daikin config flow.""" +from collections.abc import Generator from ipaddress import ip_address -from unittest.mock import PropertyMock, patch +from unittest.mock import AsyncMock, PropertyMock, patch from aiohttp import ClientError, web_exceptions from pydaikin.exceptions import DaikinException @@ -20,6 +21,15 @@ HOST = "127.0.0.1" +@pytest.fixture(autouse=True) +def mock_setup_entry() -> Generator[AsyncMock]: + """Override async_setup_entry.""" + with patch( + "homeassistant.components.daikin.async_setup_entry", return_value=True + ) as mock_setup: + yield mock_setup + + @pytest.fixture def mock_daikin(): """Mock pydaikin.""" diff --git a/tests/components/duke_energy/__init__.py b/tests/components/duke_energy/__init__.py deleted file mode 100644 index 2750d9d806e568..00000000000000 --- a/tests/components/duke_energy/__init__.py +++ /dev/null @@ -1 +0,0 @@ -"""Tests for the Duke Energy integration.""" diff --git a/tests/components/duke_energy/conftest.py b/tests/components/duke_energy/conftest.py deleted file mode 100644 index f82a2353557447..00000000000000 --- a/tests/components/duke_energy/conftest.py +++ /dev/null @@ -1,90 +0,0 @@ -"""Common fixtures for the Duke Energy tests.""" - -from collections.abc import Generator -from unittest.mock import AsyncMock, patch - -import pytest - -from homeassistant.components.duke_energy.const import DOMAIN -from homeassistant.const import CONF_EMAIL, CONF_PASSWORD, CONF_USERNAME -from homeassistant.core import HomeAssistant -from homeassistant.util import dt as dt_util - -from tests.common import MockConfigEntry -from tests.typing import RecorderInstanceContextManager - - -@pytest.fixture -async def mock_recorder_before_hass( - async_test_recorder: RecorderInstanceContextManager, -) -> None: - """Set up recorder.""" - - -@pytest.fixture -def mock_setup_entry() -> Generator[AsyncMock]: - """Override async_setup_entry.""" - with patch( - "homeassistant.components.duke_energy.async_setup_entry", - return_value=True, - ) as mock_setup_entry: - yield mock_setup_entry - - -@pytest.fixture -def mock_config_entry(hass: HomeAssistant) -> Generator[AsyncMock]: - """Return the default mocked config entry.""" - config_entry = MockConfigEntry( - domain=DOMAIN, - data={ - CONF_EMAIL: "test@example.com", - CONF_USERNAME: "test-username", - CONF_PASSWORD: "test-password", - }, - ) - config_entry.add_to_hass(hass) - return config_entry - - -@pytest.fixture -def mock_api() -> Generator[AsyncMock]: - """Mock a successful Duke Energy API.""" - with ( - patch( - "homeassistant.components.duke_energy.config_flow.DukeEnergy", - autospec=True, - ) as mock_api, - patch( - "homeassistant.components.duke_energy.coordinator.DukeEnergy", - new=mock_api, - ), - ): - api = mock_api.return_value - api.authenticate.return_value = { - "loginEmailAddress": "TEST@EXAMPLE.COM", - "internalUserID": "test-username", - } - api.get_meters.return_value = {} - yield api - - -@pytest.fixture -def mock_api_with_meters(mock_api: AsyncMock) -> AsyncMock: - """Mock a successful Duke Energy API with meters.""" - mock_api.get_meters.return_value = { - "123": { - "serialNum": "123", - "serviceType": "ELECTRIC", - "agreementActiveDate": "2000-01-01", - }, - } - mock_api.get_energy_usage.return_value = { - "data": { - dt_util.now(): { - "energy": 1.3, - "temperature": 70, - } - }, - "missing": [], - } - return mock_api diff --git a/tests/components/duke_energy/test_config_flow.py b/tests/components/duke_energy/test_config_flow.py deleted file mode 100644 index 652267c9aac484..00000000000000 --- a/tests/components/duke_energy/test_config_flow.py +++ /dev/null @@ -1,118 +0,0 @@ -"""Test the Duke Energy config flow.""" - -from unittest.mock import AsyncMock, Mock - -from aiohttp import ClientError, ClientResponseError -import pytest - -from homeassistant import config_entries -from homeassistant.components.duke_energy.const import DOMAIN -from homeassistant.components.recorder import Recorder -from homeassistant.const import CONF_EMAIL, CONF_PASSWORD, CONF_USERNAME -from homeassistant.core import HomeAssistant -from homeassistant.data_entry_flow import FlowResultType - - -async def test_user( - hass: HomeAssistant, - recorder_mock: Recorder, - mock_api: AsyncMock, - mock_setup_entry: AsyncMock, -) -> None: - """Test user config.""" - result = await hass.config_entries.flow.async_init( - DOMAIN, context={"source": config_entries.SOURCE_USER} - ) - assert result.get("type") is FlowResultType.FORM - assert result.get("step_id") == "user" - - # test with all provided - result = await hass.config_entries.flow.async_configure( - result["flow_id"], - {CONF_USERNAME: "test-username", CONF_PASSWORD: "test-password"}, - ) - assert result.get("type") is FlowResultType.CREATE_ENTRY - assert result.get("title") == "test@example.com" - - data = result.get("data") - assert data - assert data[CONF_USERNAME] == "test-username" - assert data[CONF_PASSWORD] == "test-password" - assert data[CONF_EMAIL] == "test@example.com" - - -async def test_abort_if_already_setup( - hass: HomeAssistant, - recorder_mock: Recorder, - mock_api: AsyncMock, - mock_config_entry: AsyncMock, -) -> None: - """Test we abort if the email is already setup.""" - result = await hass.config_entries.flow.async_init( - DOMAIN, - context={"source": config_entries.SOURCE_USER}, - data={ - CONF_USERNAME: "test-username", - CONF_PASSWORD: "test-password", - }, - ) - assert result - assert result.get("type") is FlowResultType.ABORT - assert result.get("reason") == "already_configured" - - -async def test_abort_if_already_setup_alternate_username( - hass: HomeAssistant, - recorder_mock: Recorder, - mock_api: AsyncMock, - mock_config_entry: AsyncMock, -) -> None: - """Test we abort if the email is already setup.""" - result = await hass.config_entries.flow.async_init( - DOMAIN, - context={"source": config_entries.SOURCE_USER}, - data={ - CONF_USERNAME: "test@example.com", - CONF_PASSWORD: "test-password", - }, - ) - assert result - assert result.get("type") is FlowResultType.ABORT - assert result.get("reason") == "already_configured" - - -@pytest.mark.parametrize( - ("side_effect", "expected_error"), - [ - (ClientResponseError(None, None, status=404), "invalid_auth"), - (ClientResponseError(None, None, status=500), "cannot_connect"), - (TimeoutError(), "cannot_connect"), - (ClientError(), "cannot_connect"), - (Exception(), "unknown"), - ], -) -async def test_api_errors( - hass: HomeAssistant, - recorder_mock: Recorder, - mock_api: Mock, - side_effect, - expected_error, -) -> None: - """Test the failure scenarios.""" - mock_api.authenticate.side_effect = side_effect - result = await hass.config_entries.flow.async_init( - DOMAIN, - context={"source": config_entries.SOURCE_USER}, - data={CONF_USERNAME: "test-username", CONF_PASSWORD: "test-password"}, - ) - assert result.get("type") is FlowResultType.FORM - assert result.get("errors") == {"base": expected_error} - - mock_api.authenticate.side_effect = None - - # test with all provided - result = await hass.config_entries.flow.async_configure( - result["flow_id"], - {CONF_USERNAME: "test-username", CONF_PASSWORD: "test-password"}, - ) - assert result.get("type") is FlowResultType.CREATE_ENTRY diff --git a/tests/components/duke_energy/test_coordinator.py b/tests/components/duke_energy/test_coordinator.py deleted file mode 100644 index 77ac9e8c2bfe0b..00000000000000 --- a/tests/components/duke_energy/test_coordinator.py +++ /dev/null @@ -1,44 +0,0 @@ -"""Tests for the SolarEdge coordinator services.""" - -from datetime import timedelta -from unittest.mock import Mock, patch - -from freezegun.api import FrozenDateTimeFactory - -from homeassistant.components.recorder import Recorder -from homeassistant.core import HomeAssistant -from homeassistant.util import dt as dt_util - -from tests.common import MockConfigEntry, async_fire_time_changed - - -async def test_update( - hass: HomeAssistant, - mock_config_entry: MockConfigEntry, - mock_api_with_meters: Mock, - freezer: FrozenDateTimeFactory, - recorder_mock: Recorder, -) -> None: - """Test Coordinator.""" - mock_config_entry.add_to_hass(hass) - await hass.config_entries.async_setup(mock_config_entry.entry_id) - - assert mock_api_with_meters.get_meters.call_count == 1 - # 3 years of data - assert mock_api_with_meters.get_energy_usage.call_count == 37 - - with patch( - "homeassistant.components.duke_energy.coordinator.get_last_statistics", - return_value={ - "duke_energy:electric_123_energy_consumption": [ - {"start": dt_util.now().timestamp()} - ] - }, - ): - freezer.tick(timedelta(hours=12)) - async_fire_time_changed(hass) - await hass.async_block_till_done(wait_background_tasks=True) - - assert mock_api_with_meters.get_meters.call_count == 2 - # Now have stats, so only one call - assert mock_api_with_meters.get_energy_usage.call_count == 38 diff --git a/tests/components/elkm1/test_config_flow.py b/tests/components/elkm1/test_config_flow.py index d50c9720e6d991..4ec3e6289d214e 100644 --- a/tests/components/elkm1/test_config_flow.py +++ b/tests/components/elkm1/test_config_flow.py @@ -849,15 +849,19 @@ async def test_unknown_exception(hass: HomeAssistant) -> None: async def test_form_invalid_auth(hass: HomeAssistant) -> None: """Test we handle invalid auth error.""" - result = await hass.config_entries.flow.async_init( - DOMAIN, context={"source": config_entries.SOURCE_USER} - ) + with _patch_discovery(no_device=True): + result = await hass.config_entries.flow.async_init( + DOMAIN, context={"source": config_entries.SOURCE_USER} + ) mocked_elk = mock_elk(invalid_auth=True, sync_complete=True) - with patch( - "homeassistant.components.elkm1.config_flow.Elk", - return_value=mocked_elk, + with ( + _patch_discovery(no_device=True), + patch( + "homeassistant.components.elkm1.config_flow.Elk", + return_value=mocked_elk, + ), ): result2 = await hass.config_entries.flow.async_configure( result["flow_id"], @@ -914,15 +918,19 @@ async def test_form_invalid_auth(hass: HomeAssistant) -> None: async def test_form_invalid_auth_no_password(hass: HomeAssistant) -> None: """Test we handle invalid auth error when no password is provided.""" - result = await hass.config_entries.flow.async_init( - DOMAIN, context={"source": config_entries.SOURCE_USER} - ) + with _patch_discovery(no_device=True): + result = await hass.config_entries.flow.async_init( + DOMAIN, context={"source": config_entries.SOURCE_USER} + ) mocked_elk = mock_elk(invalid_auth=True, sync_complete=True) - with patch( - "homeassistant.components.elkm1.config_flow.Elk", - return_value=mocked_elk, + with ( + _patch_discovery(no_device=True), + patch( + "homeassistant.components.elkm1.config_flow.Elk", + return_value=mocked_elk, + ), ): result2 = await hass.config_entries.flow.async_configure( result["flow_id"], @@ -1991,6 +1999,7 @@ async def test_reconfigure_nonsecure( mocked_elk = mock_elk(invalid_auth=False, sync_complete=True) with ( + _patch_discovery(no_device=True), _patch_elk(mocked_elk), patch( "homeassistant.components.elkm1.async_setup_entry", diff --git a/tests/components/emulated_roku/test_config_flow.py b/tests/components/emulated_roku/test_config_flow.py index 0b0efb83967257..6de0090887734b 100644 --- a/tests/components/emulated_roku/test_config_flow.py +++ b/tests/components/emulated_roku/test_config_flow.py @@ -1,5 +1,10 @@ """Tests for emulated_roku config flow.""" +from collections.abc import Generator +from unittest.mock import AsyncMock, patch + +import pytest + from homeassistant import config_entries from homeassistant.components.emulated_roku import config_flow from homeassistant.core import HomeAssistant @@ -8,6 +13,15 @@ from tests.common import MockConfigEntry +@pytest.fixture(autouse=True) +def mock_setup_entry() -> Generator[AsyncMock]: + """Override async_setup_entry.""" + with patch( + "homeassistant.components.emulated_roku.async_setup_entry", return_value=True + ) as mock_setup: + yield mock_setup + + async def test_flow_works(hass: HomeAssistant) -> None: """Test that config flow works.""" result = await hass.config_entries.flow.async_init( diff --git a/tests/components/enphase_envoy/fixtures/envoy_metered_batt_relay.json b/tests/components/enphase_envoy/fixtures/envoy_metered_batt_relay.json index ec75a7994ae69c..16e97fa720e3bb 100644 --- a/tests/components/enphase_envoy/fixtures/envoy_metered_batt_relay.json +++ b/tests/components/enphase_envoy/fixtures/envoy_metered_batt_relay.json @@ -196,6 +196,66 @@ "measurement_type": "storage", "metering_status": "normal", "status_flags": [] + }, + "backfeed": { + "eid": "100000040", + "timestamp": 1708006120, + "energy_delivered": 41234, + "energy_received": 42345, + "active_power": 104, + "power_factor": 0.24, + "voltage": 114, + "current": 0.5, + "frequency": 50.4, + "state": "enabled", + "measurement_type": "backfeed", + "metering_status": "normal", + "status_flags": [] + }, + "load": { + "eid": "100000050", + "timestamp": 1708006120, + "energy_delivered": 51234, + "energy_received": 52345, + "active_power": 105, + "power_factor": 0.25, + "voltage": 115, + "current": 0.6, + "frequency": 50.6, + "state": "enabled", + "measurement_type": "load", + "metering_status": "normal", + "status_flags": [] + }, + "evse": { + "eid": "100000060", + "timestamp": 1708006120, + "energy_delivered": 61234, + "energy_received": 62345, + "active_power": 106, + "power_factor": 0.26, + "voltage": 116, + "current": 0.7, + "frequency": 50.7, + "state": "enabled", + "measurement_type": "evse", + "metering_status": "normal", + "status_flags": [] + }, + "pv3p": { + "eid": "100000070", + "timestamp": 1708006120, + "energy_delivered": 71234, + "energy_received": 72345, + "active_power": 107, + "power_factor": 0.27, + "voltage": 117, + "current": 0.8, + "frequency": 50.8, + "state": "enabled", + "measurement_type": "pv3p", + "metering_status": "normal", + "status_flags": [] } }, "ctmeters_phases": { @@ -339,6 +399,194 @@ "metering_status": "normal", "status_flags": [] } + }, + "backfeed": { + "L1": { + "eid": "100000041", + "timestamp": 1708006121, + "energy_delivered": 412341, + "energy_received": 423451, + "active_power": 114, + "power_factor": 0.24, + "voltage": 114, + "current": 4.1, + "frequency": 50.4, + "state": "enabled", + "measurement_type": "backfeed", + "metering_status": "normal", + "status_flags": [] + }, + "L2": { + "eid": "100000042", + "timestamp": 1708006122, + "energy_delivered": 412342, + "energy_received": 423452, + "active_power": 124, + "power_factor": 0.24, + "voltage": 114, + "current": 4.2, + "frequency": 50.4, + "state": "enabled", + "measurement_type": "backfeed", + "metering_status": "normal", + "status_flags": [] + }, + "L3": { + "eid": "100000042", + "timestamp": 1708006123, + "energy_delivered": 412343, + "energy_received": 423453, + "active_power": 134, + "power_factor": 0.24, + "voltage": 114, + "current": 4.3, + "frequency": 50.4, + "state": "enabled", + "measurement_type": "backfeed", + "metering_status": "normal", + "status_flags": [] + } + }, + "load": { + "L1": { + "eid": "100000051", + "timestamp": 1708006121, + "energy_delivered": 512341, + "energy_received": 523451, + "active_power": 115, + "power_factor": 0.25, + "voltage": 115, + "current": 5.1, + "frequency": 50.6, + "state": "enabled", + "measurement_type": "load", + "metering_status": "normal", + "status_flags": [] + }, + "L2": { + "eid": "100000052", + "timestamp": 1708006122, + "energy_delivered": 512342, + "energy_received": 523452, + "active_power": 125, + "power_factor": 0.25, + "voltage": 115, + "current": 5.2, + "frequency": 50.6, + "state": "enabled", + "measurement_type": "load", + "metering_status": "normal", + "status_flags": [] + }, + "L3": { + "eid": "100000052", + "timestamp": 1708006123, + "energy_delivered": 512343, + "energy_received": 523453, + "active_power": 135, + "power_factor": 0.25, + "voltage": 115, + "current": 5.3, + "frequency": 50.6, + "state": "enabled", + "measurement_type": "load", + "metering_status": "normal", + "status_flags": [] + } + }, + "evse": { + "L1": { + "eid": "100000061", + "timestamp": 1708006121, + "energy_delivered": 612341, + "energy_received": 623451, + "active_power": 116, + "power_factor": 0.26, + "voltage": 116, + "current": 6.1, + "frequency": 50.6, + "state": "enabled", + "measurement_type": "evse", + "metering_status": "normal", + "status_flags": [] + }, + "L2": { + "eid": "100000062", + "timestamp": 1708006122, + "energy_delivered": 612342, + "energy_received": 623452, + "active_power": 126, + "power_factor": 0.26, + "voltage": 116, + "current": 6.2, + "frequency": 50.6, + "state": "enabled", + "measurement_type": "evse", + "metering_status": "normal", + "status_flags": [] + }, + "L3": { + "eid": "100000063", + "timestamp": 1708006123, + "energy_delivered": 612343, + "energy_received": 623453, + "active_power": 136, + "power_factor": 0.26, + "voltage": 116, + "current": 6.3, + "frequency": 50.6, + "state": "enabled", + "measurement_type": "evse", + "metering_status": "normal", + "status_flags": [] + } + }, + "pv3p": { + "L1": { + "eid": "100000071", + "timestamp": 1708006127, + "energy_delivered": 712341, + "energy_received": 723451, + "active_power": 117, + "power_factor": 0.27, + "voltage": 117, + "current": 7.1, + "frequency": 50.7, + "state": "enabled", + "measurement_type": "pv3p", + "metering_status": "normal", + "status_flags": [] + }, + "L2": { + "eid": "100000072", + "timestamp": 1708006122, + "energy_delivered": 712342, + "energy_received": 723452, + "active_power": 127, + "power_factor": 0.27, + "voltage": 117, + "current": 7.2, + "frequency": 50.7, + "state": "enabled", + "measurement_type": "pv3p", + "metering_status": "normal", + "status_flags": [] + }, + "L3": { + "eid": "100000073", + "timestamp": 1708006123, + "energy_delivered": 712343, + "energy_received": 723453, + "active_power": 137, + "power_factor": 0.27, + "voltage": 117, + "current": 7.3, + "frequency": 50.7, + "state": "enabled", + "measurement_type": "pv3p", + "metering_status": "normal", + "status_flags": [] + } } }, "ctmeter_production": { diff --git a/tests/components/enphase_envoy/snapshots/test_diagnostics.ambr b/tests/components/enphase_envoy/snapshots/test_diagnostics.ambr index 6d1e167db51ea1..9320e0dad7c8b4 100644 --- a/tests/components/enphase_envoy/snapshots/test_diagnostics.ambr +++ b/tests/components/enphase_envoy/snapshots/test_diagnostics.ambr @@ -2932,26 +2932,26 @@ 'disabled_by': 'integration', 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.inverter_1_dc_voltage', + 'entity_id': 'sensor.inverter_1_ac_current', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'DC voltage', + 'object_id_base': 'AC current', 'options': dict({ }), - 'original_device_class': 'voltage', + 'original_device_class': 'current', 'original_icon': None, - 'original_name': 'DC voltage', + 'original_name': 'AC current', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'dc_voltage', - 'unique_id': '1_dc_voltage', - 'unit_of_measurement': 'V', + 'translation_key': 'ac_current', + 'unique_id': '1_ac_current', + 'unit_of_measurement': 'A', }), 'state': None, }), @@ -2971,26 +2971,26 @@ 'disabled_by': 'integration', 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.inverter_1_dc_current', + 'entity_id': 'sensor.inverter_1_ac_voltage', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'DC current', + 'object_id_base': 'AC voltage', 'options': dict({ }), - 'original_device_class': 'current', + 'original_device_class': 'voltage', 'original_icon': None, - 'original_name': 'DC current', + 'original_name': 'AC voltage', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'dc_current', - 'unique_id': '1_dc_current', - 'unit_of_measurement': 'A', + 'translation_key': 'ac_voltage', + 'unique_id': '1_ac_voltage', + 'unit_of_measurement': 'V', }), 'state': None, }), @@ -3010,26 +3010,26 @@ 'disabled_by': 'integration', 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.inverter_1_ac_voltage', + 'entity_id': 'sensor.inverter_1_dc_current', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'AC voltage', + 'object_id_base': 'DC current', 'options': dict({ }), - 'original_device_class': 'voltage', + 'original_device_class': 'current', 'original_icon': None, - 'original_name': 'AC voltage', + 'original_name': 'DC current', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'ac_voltage', - 'unique_id': '1_ac_voltage', - 'unit_of_measurement': 'V', + 'translation_key': 'dc_current', + 'unique_id': '1_dc_current', + 'unit_of_measurement': 'A', }), 'state': None, }), @@ -3049,26 +3049,26 @@ 'disabled_by': 'integration', 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.inverter_1_ac_current', + 'entity_id': 'sensor.inverter_1_dc_voltage', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'AC current', + 'object_id_base': 'DC voltage', 'options': dict({ }), - 'original_device_class': 'current', + 'original_device_class': 'voltage', 'original_icon': None, - 'original_name': 'AC current', + 'original_name': 'DC voltage', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'ac_current', - 'unique_id': '1_ac_current', - 'unit_of_measurement': 'A', + 'translation_key': 'dc_voltage', + 'unique_id': '1_dc_voltage', + 'unit_of_measurement': 'V', }), 'state': None, }), @@ -3078,7 +3078,7 @@ ]), 'area_id': None, 'capabilities': dict({ - 'state_class': 'measurement', + 'state_class': 'total', }), 'categories': dict({ }), @@ -3088,26 +3088,26 @@ 'disabled_by': 'integration', 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.inverter_1_frequency', + 'entity_id': 'sensor.inverter_1_energy_production_since_previous_report', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Frequency', + 'object_id_base': 'Energy production since previous report', 'options': dict({ }), - 'original_device_class': 'frequency', + 'original_device_class': 'energy', 'original_icon': None, - 'original_name': 'Frequency', + 'original_name': 'Energy production since previous report', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': None, - 'unique_id': '1_ac_frequency', - 'unit_of_measurement': 'Hz', + 'translation_key': 'energy_produced', + 'unique_id': '1_energy_produced', + 'unit_of_measurement': 'mWh', }), 'state': None, }), @@ -3117,7 +3117,7 @@ ]), 'area_id': None, 'capabilities': dict({ - 'state_class': 'measurement', + 'state_class': 'total_increasing', }), 'categories': dict({ }), @@ -3126,27 +3126,27 @@ 'device_class': None, 'disabled_by': 'integration', 'domain': 'sensor', - 'entity_category': 'diagnostic', - 'entity_id': 'sensor.inverter_1_temperature', + 'entity_category': None, + 'entity_id': 'sensor.inverter_1_energy_production_today', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Temperature', + 'object_id_base': 'Energy production today', 'options': dict({ }), - 'original_device_class': 'temperature', + 'original_device_class': 'energy', 'original_icon': None, - 'original_name': 'Temperature', + 'original_name': 'Energy production today', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': None, - 'unique_id': '1_temperature', - 'unit_of_measurement': '°C', + 'translation_key': 'energy_today', + 'unique_id': '1_energy_today', + 'unit_of_measurement': 'Wh', }), 'state': None, }), @@ -3156,7 +3156,7 @@ ]), 'area_id': None, 'capabilities': dict({ - 'state_class': 'total_increasing', + 'state_class': 'measurement', }), 'categories': dict({ }), @@ -3166,29 +3166,26 @@ 'disabled_by': 'integration', 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.inverter_1_lifetime_energy_production', + 'entity_id': 'sensor.inverter_1_frequency', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Lifetime energy production', + 'object_id_base': 'Frequency', 'options': dict({ - 'sensor.private': dict({ - 'suggested_unit_of_measurement': 'kWh', - }), }), - 'original_device_class': 'energy', + 'original_device_class': 'frequency', 'original_icon': None, - 'original_name': 'Lifetime energy production', + 'original_name': 'Frequency', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'lifetime_energy', - 'unique_id': '1_lifetime_energy', - 'unit_of_measurement': 'kWh', + 'translation_key': None, + 'unique_id': '1_ac_frequency', + 'unit_of_measurement': 'Hz', }), 'state': None, }), @@ -3198,7 +3195,7 @@ ]), 'area_id': None, 'capabilities': dict({ - 'state_class': 'total_increasing', + 'state_class': 'measurement', }), 'categories': dict({ }), @@ -3207,27 +3204,27 @@ 'device_class': None, 'disabled_by': 'integration', 'domain': 'sensor', - 'entity_category': None, - 'entity_id': 'sensor.inverter_1_energy_production_today', + 'entity_category': 'diagnostic', + 'entity_id': 'sensor.inverter_1_last_report_duration', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Energy production today', + 'object_id_base': 'Last report duration', 'options': dict({ }), - 'original_device_class': 'energy', + 'original_device_class': 'duration', 'original_icon': None, - 'original_name': 'Energy production today', + 'original_name': 'Last report duration', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'energy_today', - 'unique_id': '1_energy_today', - 'unit_of_measurement': 'Wh', + 'translation_key': 'last_report_duration', + 'unique_id': '1_last_report_duration', + 'unit_of_measurement': 's', }), 'state': None, }), @@ -3236,9 +3233,7 @@ 'aliases': list([ ]), 'area_id': None, - 'capabilities': dict({ - 'state_class': 'measurement', - }), + 'capabilities': None, 'categories': dict({ }), 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', @@ -3246,27 +3241,27 @@ 'device_class': None, 'disabled_by': 'integration', 'domain': 'sensor', - 'entity_category': 'diagnostic', - 'entity_id': 'sensor.inverter_1_last_report_duration', + 'entity_category': None, + 'entity_id': 'sensor.inverter_1_last_reported', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Last report duration', + 'object_id_base': 'Last reported', 'options': dict({ }), - 'original_device_class': 'duration', + 'original_device_class': 'timestamp', 'original_icon': None, - 'original_name': 'Last report duration', + 'original_name': 'Last reported', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'last_report_duration', - 'unique_id': '1_last_report_duration', - 'unit_of_measurement': 's', + 'translation_key': 'last_reported', + 'unique_id': '1_last_reported', + 'unit_of_measurement': None, }), 'state': None, }), @@ -3276,7 +3271,7 @@ ]), 'area_id': None, 'capabilities': dict({ - 'state_class': 'total', + 'state_class': 'total_increasing', }), 'categories': dict({ }), @@ -3286,26 +3281,29 @@ 'disabled_by': 'integration', 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.inverter_1_energy_production_since_previous_report', + 'entity_id': 'sensor.inverter_1_lifetime_energy_production', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Energy production since previous report', + 'object_id_base': 'Lifetime energy production', 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'kWh', + }), }), 'original_device_class': 'energy', 'original_icon': None, - 'original_name': 'Energy production since previous report', + 'original_name': 'Lifetime energy production', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'energy_produced', - 'unique_id': '1_energy_produced', - 'unit_of_measurement': 'mWh', + 'translation_key': 'lifetime_energy', + 'unique_id': '1_lifetime_energy', + 'unit_of_measurement': 'kWh', }), 'state': None, }), @@ -3353,7 +3351,9 @@ 'aliases': list([ ]), 'area_id': None, - 'capabilities': None, + 'capabilities': dict({ + 'state_class': 'measurement', + }), 'categories': dict({ }), 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', @@ -3361,27 +3361,27 @@ 'device_class': None, 'disabled_by': 'integration', 'domain': 'sensor', - 'entity_category': None, - 'entity_id': 'sensor.inverter_1_last_reported', + 'entity_category': 'diagnostic', + 'entity_id': 'sensor.inverter_1_temperature', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Last reported', + 'object_id_base': 'Temperature', 'options': dict({ }), - 'original_device_class': 'timestamp', + 'original_device_class': 'temperature', 'original_icon': None, - 'original_name': 'Last reported', + 'original_name': 'Temperature', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'last_reported', - 'unique_id': '1_last_reported', - 'unit_of_measurement': None, + 'translation_key': None, + 'unique_id': '1_temperature', + 'unit_of_measurement': '°C', }), 'state': None, }), @@ -3485,9 +3485,7 @@ 'aliases': list([ ]), 'area_id': None, - 'capabilities': dict({ - 'state_class': 'total_increasing', - }), + 'capabilities': None, 'categories': dict({ }), 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', @@ -3496,17 +3494,17 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_energy_production_today', + 'entity_id': 'sensor.envoy_<>_energy_production_last_seven_days', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Energy production today', + 'object_id_base': 'Energy production last seven days', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 2, + 'suggested_display_precision': 1, }), 'sensor.private': dict({ 'suggested_unit_of_measurement': 'kWh', @@ -3514,23 +3512,22 @@ }), 'original_device_class': 'energy', 'original_icon': None, - 'original_name': 'Energy production today', + 'original_name': 'Energy production last seven days', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'daily_production', - 'unique_id': '<>_daily_production', + 'translation_key': 'seven_days_production', + 'unique_id': '<>_seven_days_production', 'unit_of_measurement': 'kWh', }), 'state': dict({ 'attributes': dict({ 'device_class': 'energy', - 'friendly_name': 'Envoy <> Energy production today', - 'state_class': 'total_increasing', + 'friendly_name': 'Envoy <> Energy production last seven days', 'unit_of_measurement': 'kWh', }), - 'entity_id': 'sensor.envoy_<>_energy_production_today', + 'entity_id': 'sensor.envoy_<>_energy_production_last_seven_days', 'state': '1.234', }), }), @@ -3539,7 +3536,9 @@ 'aliases': list([ ]), 'area_id': None, - 'capabilities': None, + 'capabilities': dict({ + 'state_class': 'total_increasing', + }), 'categories': dict({ }), 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', @@ -3548,17 +3547,17 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_energy_production_last_seven_days', + 'entity_id': 'sensor.envoy_<>_energy_production_today', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Energy production last seven days', + 'object_id_base': 'Energy production today', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 1, + 'suggested_display_precision': 2, }), 'sensor.private': dict({ 'suggested_unit_of_measurement': 'kWh', @@ -3566,22 +3565,23 @@ }), 'original_device_class': 'energy', 'original_icon': None, - 'original_name': 'Energy production last seven days', + 'original_name': 'Energy production today', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'seven_days_production', - 'unique_id': '<>_seven_days_production', + 'translation_key': 'daily_production', + 'unique_id': '<>_daily_production', 'unit_of_measurement': 'kWh', }), 'state': dict({ 'attributes': dict({ 'device_class': 'energy', - 'friendly_name': 'Envoy <> Energy production last seven days', + 'friendly_name': 'Envoy <> Energy production today', + 'state_class': 'total_increasing', 'unit_of_measurement': 'kWh', }), - 'entity_id': 'sensor.envoy_<>_energy_production_last_seven_days', + 'entity_id': 'sensor.envoy_<>_energy_production_today', 'state': '1.234', }), }), @@ -3753,23 +3753,23 @@ ]), 'disabled_by': None, 'entry_type': None, - 'hw_version': '<>56789', + 'hw_version': None, 'identifiers': list([ list([ 'enphase_envoy', - '<>', + '1', ]), ]), 'labels': list([ ]), 'manufacturer': 'Enphase', - 'model': 'Envoy, phases: 3, phase mode: split, net-consumption CT, production CT, storage CT', + 'model': 'Inverter', 'model_id': None, - 'name': 'Envoy <>', + 'name': 'Inverter 1', 'name_by_user': None, 'primary_config_entry': '45a36e55aaddb2007c5f6602e0c38e72', - 'serial_number': '<>', - 'sw_version': '7.1.2', + 'serial_number': '1', + 'sw_version': None, }), 'entities': list([ dict({ @@ -3788,42 +3788,39 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_current_power_production', + 'entity_id': 'sensor.inverter_1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Current power production', + 'object_id_base': None, 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 3, - }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': 'kW', + 'suggested_display_precision': 0, }), }), 'original_device_class': 'power', 'original_icon': None, - 'original_name': 'Current power production', + 'original_name': None, 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'current_power_production', - 'unique_id': '<>_production', - 'unit_of_measurement': 'kW', + 'translation_key': None, + 'unique_id': '1', + 'unit_of_measurement': 'W', }), 'state': dict({ 'attributes': dict({ 'device_class': 'power', - 'friendly_name': 'Envoy <> Current power production', + 'friendly_name': 'Inverter 1', 'state_class': 'measurement', - 'unit_of_measurement': 'kW', + 'unit_of_measurement': 'W', }), - 'entity_id': 'sensor.envoy_<>_current_power_production', - 'state': '1.234', + 'entity_id': 'sensor.inverter_1', + 'state': '1', }), }), dict({ @@ -3832,104 +3829,77 @@ ]), 'area_id': None, 'capabilities': dict({ - 'state_class': 'total_increasing', + 'state_class': 'measurement', }), 'categories': dict({ }), 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', 'config_subentry_id': None, 'device_class': None, - 'disabled_by': None, + 'disabled_by': 'integration', 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_energy_production_today', + 'entity_id': 'sensor.inverter_1_ac_current', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Energy production today', + 'object_id_base': 'AC current', 'options': dict({ - 'sensor': dict({ - 'suggested_display_precision': 2, - }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': 'kWh', - }), }), - 'original_device_class': 'energy', + 'original_device_class': 'current', 'original_icon': None, - 'original_name': 'Energy production today', + 'original_name': 'AC current', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'daily_production', - 'unique_id': '<>_daily_production', - 'unit_of_measurement': 'kWh', - }), - 'state': dict({ - 'attributes': dict({ - 'device_class': 'energy', - 'friendly_name': 'Envoy <> Energy production today', - 'state_class': 'total_increasing', - 'unit_of_measurement': 'kWh', - }), - 'entity_id': 'sensor.envoy_<>_energy_production_today', - 'state': '1.234', + 'translation_key': 'ac_current', + 'unique_id': '1_ac_current', + 'unit_of_measurement': 'A', }), + 'state': None, }), dict({ 'entity': dict({ 'aliases': list([ ]), 'area_id': None, - 'capabilities': None, + 'capabilities': dict({ + 'state_class': 'measurement', + }), 'categories': dict({ }), 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', 'config_subentry_id': None, 'device_class': None, - 'disabled_by': None, + 'disabled_by': 'integration', 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_energy_production_last_seven_days', + 'entity_id': 'sensor.inverter_1_ac_voltage', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Energy production last seven days', + 'object_id_base': 'AC voltage', 'options': dict({ - 'sensor': dict({ - 'suggested_display_precision': 1, - }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': 'kWh', - }), }), - 'original_device_class': 'energy', + 'original_device_class': 'voltage', 'original_icon': None, - 'original_name': 'Energy production last seven days', + 'original_name': 'AC voltage', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'seven_days_production', - 'unique_id': '<>_seven_days_production', - 'unit_of_measurement': 'kWh', - }), - 'state': dict({ - 'attributes': dict({ - 'device_class': 'energy', - 'friendly_name': 'Envoy <> Energy production last seven days', - 'unit_of_measurement': 'kWh', - }), - 'entity_id': 'sensor.envoy_<>_energy_production_last_seven_days', - 'state': '1.234', + 'translation_key': 'ac_voltage', + 'unique_id': '1_ac_voltage', + 'unit_of_measurement': 'V', }), + 'state': None, }), dict({ 'entity': dict({ @@ -3937,53 +3907,38 @@ ]), 'area_id': None, 'capabilities': dict({ - 'state_class': 'total_increasing', + 'state_class': 'measurement', }), 'categories': dict({ }), 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', 'config_subentry_id': None, 'device_class': None, - 'disabled_by': None, + 'disabled_by': 'integration', 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_lifetime_energy_production', + 'entity_id': 'sensor.inverter_1_dc_current', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Lifetime energy production', + 'object_id_base': 'DC current', 'options': dict({ - 'sensor': dict({ - 'suggested_display_precision': 3, - }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': 'MWh', - }), }), - 'original_device_class': 'energy', + 'original_device_class': 'current', 'original_icon': None, - 'original_name': 'Lifetime energy production', + 'original_name': 'DC current', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'lifetime_production', - 'unique_id': '<>_lifetime_production', - 'unit_of_measurement': 'MWh', - }), - 'state': dict({ - 'attributes': dict({ - 'device_class': 'energy', - 'friendly_name': 'Envoy <> Lifetime energy production', - 'state_class': 'total_increasing', - 'unit_of_measurement': 'MWh', - }), - 'entity_id': 'sensor.envoy_<>_lifetime_energy_production', - 'state': '0.00<>', + 'translation_key': 'dc_current', + 'unique_id': '1_dc_current', + 'unit_of_measurement': 'A', }), + 'state': None, }), dict({ 'entity': dict({ @@ -3998,46 +3953,31 @@ 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', 'config_subentry_id': None, 'device_class': None, - 'disabled_by': None, + 'disabled_by': 'integration', 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_current_power_consumption', + 'entity_id': 'sensor.inverter_1_dc_voltage', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Current power consumption', + 'object_id_base': 'DC voltage', 'options': dict({ - 'sensor': dict({ - 'suggested_display_precision': 3, - }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': 'kW', - }), }), - 'original_device_class': 'power', + 'original_device_class': 'voltage', 'original_icon': None, - 'original_name': 'Current power consumption', + 'original_name': 'DC voltage', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'current_power_consumption', - 'unique_id': '<>_consumption', - 'unit_of_measurement': 'kW', - }), - 'state': dict({ - 'attributes': dict({ - 'device_class': 'power', - 'friendly_name': 'Envoy <> Current power consumption', - 'state_class': 'measurement', - 'unit_of_measurement': 'kW', - }), - 'entity_id': 'sensor.envoy_<>_current_power_consumption', - 'state': '1.234', + 'translation_key': 'dc_voltage', + 'unique_id': '1_dc_voltage', + 'unit_of_measurement': 'V', }), + 'state': None, }), dict({ 'entity': dict({ @@ -4045,104 +3985,77 @@ ]), 'area_id': None, 'capabilities': dict({ - 'state_class': 'total_increasing', + 'state_class': 'total', }), 'categories': dict({ }), 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', 'config_subentry_id': None, 'device_class': None, - 'disabled_by': None, + 'disabled_by': 'integration', 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_energy_consumption_today', + 'entity_id': 'sensor.inverter_1_energy_production_since_previous_report', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Energy consumption today', + 'object_id_base': 'Energy production since previous report', 'options': dict({ - 'sensor': dict({ - 'suggested_display_precision': 2, - }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': 'kWh', - }), }), 'original_device_class': 'energy', 'original_icon': None, - 'original_name': 'Energy consumption today', + 'original_name': 'Energy production since previous report', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'daily_consumption', - 'unique_id': '<>_daily_consumption', - 'unit_of_measurement': 'kWh', - }), - 'state': dict({ - 'attributes': dict({ - 'device_class': 'energy', - 'friendly_name': 'Envoy <> Energy consumption today', - 'state_class': 'total_increasing', - 'unit_of_measurement': 'kWh', - }), - 'entity_id': 'sensor.envoy_<>_energy_consumption_today', - 'state': '1.234', + 'translation_key': 'energy_produced', + 'unique_id': '1_energy_produced', + 'unit_of_measurement': 'mWh', }), + 'state': None, }), dict({ 'entity': dict({ 'aliases': list([ ]), 'area_id': None, - 'capabilities': None, + 'capabilities': dict({ + 'state_class': 'total_increasing', + }), 'categories': dict({ }), 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', 'config_subentry_id': None, 'device_class': None, - 'disabled_by': None, + 'disabled_by': 'integration', 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_energy_consumption_last_seven_days', + 'entity_id': 'sensor.inverter_1_energy_production_today', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Energy consumption last seven days', + 'object_id_base': 'Energy production today', 'options': dict({ - 'sensor': dict({ - 'suggested_display_precision': 1, - }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': 'kWh', - }), }), 'original_device_class': 'energy', 'original_icon': None, - 'original_name': 'Energy consumption last seven days', + 'original_name': 'Energy production today', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'seven_days_consumption', - 'unique_id': '<>_seven_days_consumption', - 'unit_of_measurement': 'kWh', - }), - 'state': dict({ - 'attributes': dict({ - 'device_class': 'energy', - 'friendly_name': 'Envoy <> Energy consumption last seven days', - 'unit_of_measurement': 'kWh', - }), - 'entity_id': 'sensor.envoy_<>_energy_consumption_last_seven_days', - 'state': '1.234', + 'translation_key': 'energy_today', + 'unique_id': '1_energy_today', + 'unit_of_measurement': 'Wh', }), + 'state': None, }), dict({ 'entity': dict({ @@ -4150,53 +4063,38 @@ ]), 'area_id': None, 'capabilities': dict({ - 'state_class': 'total_increasing', + 'state_class': 'measurement', }), 'categories': dict({ }), 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', 'config_subentry_id': None, 'device_class': None, - 'disabled_by': None, + 'disabled_by': 'integration', 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_lifetime_energy_consumption', + 'entity_id': 'sensor.inverter_1_frequency', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Lifetime energy consumption', + 'object_id_base': 'Frequency', 'options': dict({ - 'sensor': dict({ - 'suggested_display_precision': 3, - }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': 'MWh', - }), }), - 'original_device_class': 'energy', + 'original_device_class': 'frequency', 'original_icon': None, - 'original_name': 'Lifetime energy consumption', + 'original_name': 'Frequency', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'lifetime_consumption', - 'unique_id': '<>_lifetime_consumption', - 'unit_of_measurement': 'MWh', - }), - 'state': dict({ - 'attributes': dict({ - 'device_class': 'energy', - 'friendly_name': 'Envoy <> Lifetime energy consumption', - 'state_class': 'total_increasing', - 'unit_of_measurement': 'MWh', - }), - 'entity_id': 'sensor.envoy_<>_lifetime_energy_consumption', - 'state': '0.00<>', + 'translation_key': None, + 'unique_id': '1_ac_frequency', + 'unit_of_measurement': 'Hz', }), + 'state': None, }), dict({ 'entity': dict({ @@ -4213,30 +4111,27 @@ 'device_class': None, 'disabled_by': 'integration', 'domain': 'sensor', - 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_balanced_net_power_consumption', + 'entity_category': 'diagnostic', + 'entity_id': 'sensor.inverter_1_last_report_duration', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Balanced net power consumption', + 'object_id_base': 'Last report duration', 'options': dict({ - 'sensor.private': dict({ - 'suggested_unit_of_measurement': 'kW', - }), }), - 'original_device_class': 'power', + 'original_device_class': 'duration', 'original_icon': None, - 'original_name': 'Balanced net power consumption', + 'original_name': 'Last report duration', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'balanced_net_consumption', - 'unique_id': '<>_balanced_net_consumption', - 'unit_of_measurement': 'kW', + 'translation_key': 'last_report_duration', + 'unique_id': '1_last_report_duration', + 'unit_of_measurement': 's', }), 'state': None, }), @@ -4245,9 +4140,7 @@ 'aliases': list([ ]), 'area_id': None, - 'capabilities': dict({ - 'state_class': 'total', - }), + 'capabilities': None, 'categories': dict({ }), 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', @@ -4256,29 +4149,26 @@ 'disabled_by': 'integration', 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_lifetime_balanced_net_energy_consumption', + 'entity_id': 'sensor.inverter_1_last_reported', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Lifetime balanced net energy consumption', + 'object_id_base': 'Last reported', 'options': dict({ - 'sensor.private': dict({ - 'suggested_unit_of_measurement': 'kWh', - }), }), - 'original_device_class': 'energy', + 'original_device_class': 'timestamp', 'original_icon': None, - 'original_name': 'Lifetime balanced net energy consumption', + 'original_name': 'Last reported', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'lifetime_balanced_net_consumption', - 'unique_id': '<>_lifetime_balanced_net_consumption', - 'unit_of_measurement': 'kWh', + 'translation_key': 'last_reported', + 'unique_id': '1_last_reported', + 'unit_of_measurement': None, }), 'state': None, }), @@ -4288,7 +4178,7 @@ ]), 'area_id': None, 'capabilities': dict({ - 'state_class': 'measurement', + 'state_class': 'total_increasing', }), 'categories': dict({ }), @@ -4298,29 +4188,29 @@ 'disabled_by': 'integration', 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_current_power_production_l1', + 'entity_id': 'sensor.inverter_1_lifetime_energy_production', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Current power production l1', + 'object_id_base': 'Lifetime energy production', 'options': dict({ 'sensor.private': dict({ - 'suggested_unit_of_measurement': 'kW', + 'suggested_unit_of_measurement': 'kWh', }), }), - 'original_device_class': 'power', + 'original_device_class': 'energy', 'original_icon': None, - 'original_name': 'Current power production l1', + 'original_name': 'Lifetime energy production', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'current_power_production_phase', - 'unique_id': '<>_production_l1', - 'unit_of_measurement': 'kW', + 'translation_key': 'lifetime_energy', + 'unique_id': '1_lifetime_energy', + 'unit_of_measurement': 'kWh', }), 'state': None, }), @@ -4330,7 +4220,7 @@ ]), 'area_id': None, 'capabilities': dict({ - 'state_class': 'total_increasing', + 'state_class': 'measurement', }), 'categories': dict({ }), @@ -4339,30 +4229,27 @@ 'device_class': None, 'disabled_by': 'integration', 'domain': 'sensor', - 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_energy_production_today_l1', + 'entity_category': 'diagnostic', + 'entity_id': 'sensor.inverter_1_lifetime_maximum_power', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Energy production today l1', + 'object_id_base': 'Lifetime maximum power', 'options': dict({ - 'sensor.private': dict({ - 'suggested_unit_of_measurement': 'kWh', - }), }), - 'original_device_class': 'energy', + 'original_device_class': 'power', 'original_icon': None, - 'original_name': 'Energy production today l1', + 'original_name': 'Lifetime maximum power', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'daily_production_phase', - 'unique_id': '<>_daily_production_l1', - 'unit_of_measurement': 'kWh', + 'translation_key': 'max_reported', + 'unique_id': '1_max_reported', + 'unit_of_measurement': 'W', }), 'state': None, }), @@ -4371,7 +4258,9 @@ 'aliases': list([ ]), 'area_id': None, - 'capabilities': None, + 'capabilities': dict({ + 'state_class': 'measurement', + }), 'categories': dict({ }), 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', @@ -4379,158 +4268,196 @@ 'device_class': None, 'disabled_by': 'integration', 'domain': 'sensor', - 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_energy_production_last_seven_days_l1', + 'entity_category': 'diagnostic', + 'entity_id': 'sensor.inverter_1_temperature', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Energy production last seven days l1', + 'object_id_base': 'Temperature', 'options': dict({ - 'sensor.private': dict({ - 'suggested_unit_of_measurement': 'kWh', - }), }), - 'original_device_class': 'energy', + 'original_device_class': 'temperature', 'original_icon': None, - 'original_name': 'Energy production last seven days l1', + 'original_name': 'Temperature', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'seven_days_production_phase', - 'unique_id': '<>_seven_days_production_l1', - 'unit_of_measurement': 'kWh', + 'translation_key': None, + 'unique_id': '1_temperature', + 'unit_of_measurement': '°C', }), 'state': None, }), + ]), + }), + dict({ + 'device': dict({ + 'area_id': None, + 'config_entries': list([ + '45a36e55aaddb2007c5f6602e0c38e72', + ]), + 'config_entries_subentries': dict({ + '45a36e55aaddb2007c5f6602e0c38e72': list([ + None, + ]), + }), + 'configuration_url': None, + 'connections': list([ + ]), + 'disabled_by': None, + 'entry_type': None, + 'hw_version': None, + 'identifiers': list([ + list([ + 'enphase_envoy', + '482520020939', + ]), + ]), + 'labels': list([ + ]), + 'manufacturer': 'Enphase', + 'model': 'IQ Meter Collar', + 'model_id': None, + 'name': 'Collar 482520020939', + 'name_by_user': None, + 'primary_config_entry': '45a36e55aaddb2007c5f6602e0c38e72', + 'serial_number': '482520020939', + 'sw_version': '3.0.6-D0', + }), + 'entities': list([ dict({ 'entity': dict({ 'aliases': list([ ]), 'area_id': None, - 'capabilities': dict({ - 'state_class': 'total_increasing', - }), + 'capabilities': None, 'categories': dict({ }), 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', 'config_subentry_id': None, 'device_class': None, - 'disabled_by': 'integration', - 'domain': 'sensor', - 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_lifetime_energy_production_l1', + 'disabled_by': None, + 'domain': 'binary_sensor', + 'entity_category': 'diagnostic', + 'entity_id': 'binary_sensor.collar_482520020939_communicating', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Lifetime energy production l1', + 'object_id_base': 'Communicating', 'options': dict({ - 'sensor.private': dict({ - 'suggested_unit_of_measurement': 'MWh', - }), }), - 'original_device_class': 'energy', + 'original_device_class': 'connectivity', 'original_icon': None, - 'original_name': 'Lifetime energy production l1', + 'original_name': 'Communicating', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'lifetime_production_phase', - 'unique_id': '<>_lifetime_production_l1', - 'unit_of_measurement': 'MWh', + 'translation_key': 'communicating', + 'unique_id': '482520020939_communicating', + 'unit_of_measurement': None, + }), + 'state': dict({ + 'attributes': dict({ + 'device_class': 'connectivity', + 'friendly_name': 'Collar 482520020939 Communicating', + }), + 'entity_id': 'binary_sensor.collar_482520020939_communicating', + 'state': 'on', }), - 'state': None, }), dict({ 'entity': dict({ 'aliases': list([ ]), 'area_id': None, - 'capabilities': dict({ - 'state_class': 'measurement', - }), + 'capabilities': None, 'categories': dict({ }), 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', 'config_subentry_id': None, 'device_class': None, - 'disabled_by': 'integration', + 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_current_power_production_l2', + 'entity_id': 'sensor.collar_482520020939_admin_state', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Current power production l2', + 'object_id_base': 'Admin state', 'options': dict({ - 'sensor.private': dict({ - 'suggested_unit_of_measurement': 'kW', - }), }), - 'original_device_class': 'power', + 'original_device_class': None, 'original_icon': None, - 'original_name': 'Current power production l2', + 'original_name': 'Admin state', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'current_power_production_phase', - 'unique_id': '<>_production_l2', - 'unit_of_measurement': 'kW', + 'translation_key': 'admin_state', + 'unique_id': '482520020939_admin_state_str', + 'unit_of_measurement': None, + }), + 'state': dict({ + 'attributes': dict({ + 'friendly_name': 'Collar 482520020939 Admin state', + }), + 'entity_id': 'sensor.collar_482520020939_admin_state', + 'state': 'on_grid', }), - 'state': None, }), dict({ 'entity': dict({ 'aliases': list([ ]), 'area_id': None, - 'capabilities': dict({ - 'state_class': 'total_increasing', - }), + 'capabilities': None, 'categories': dict({ }), 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', 'config_subentry_id': None, 'device_class': None, - 'disabled_by': 'integration', + 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_energy_production_today_l2', + 'entity_id': 'sensor.collar_482520020939_grid_status', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Energy production today l2', + 'object_id_base': 'Grid status', 'options': dict({ - 'sensor.private': dict({ - 'suggested_unit_of_measurement': 'kWh', - }), }), - 'original_device_class': 'energy', + 'original_device_class': None, 'original_icon': None, - 'original_name': 'Energy production today l2', + 'original_name': 'Grid status', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'daily_production_phase', - 'unique_id': '<>_daily_production_l2', - 'unit_of_measurement': 'kWh', + 'translation_key': 'grid_status', + 'unique_id': '482520020939_grid_state', + 'unit_of_measurement': None, + }), + 'state': dict({ + 'attributes': dict({ + 'friendly_name': 'Collar 482520020939 Grid status', + }), + 'entity_id': 'sensor.collar_482520020939_grid_status', + 'state': 'on_grid', }), - 'state': None, }), dict({ 'entity': dict({ @@ -4543,76 +4470,81 @@ 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', 'config_subentry_id': None, 'device_class': None, - 'disabled_by': 'integration', + 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_energy_production_last_seven_days_l2', + 'entity_id': 'sensor.collar_482520020939_last_reported', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Energy production last seven days l2', + 'object_id_base': 'Last reported', 'options': dict({ - 'sensor.private': dict({ - 'suggested_unit_of_measurement': 'kWh', - }), }), - 'original_device_class': 'energy', + 'original_device_class': 'timestamp', 'original_icon': None, - 'original_name': 'Energy production last seven days l2', + 'original_name': 'Last reported', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'seven_days_production_phase', - 'unique_id': '<>_seven_days_production_l2', - 'unit_of_measurement': 'kWh', + 'translation_key': 'last_reported', + 'unique_id': '482520020939_last_reported', + 'unit_of_measurement': None, }), - 'state': None, - }), - dict({ - 'entity': dict({ - 'aliases': list([ - ]), - 'area_id': None, - 'capabilities': dict({ - 'state_class': 'total_increasing', + 'state': dict({ + 'attributes': dict({ + 'device_class': 'timestamp', + 'friendly_name': 'Collar 482520020939 Last reported', }), + 'entity_id': 'sensor.collar_482520020939_last_reported', + 'state': '2025-07-19T15:42:39+00:00', + }), + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': None, 'categories': dict({ }), 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', 'config_subentry_id': None, 'device_class': None, - 'disabled_by': 'integration', + 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_lifetime_energy_production_l2', + 'entity_id': 'sensor.collar_482520020939_mid_state', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Lifetime energy production l2', + 'object_id_base': 'MID state', 'options': dict({ - 'sensor.private': dict({ - 'suggested_unit_of_measurement': 'MWh', - }), }), - 'original_device_class': 'energy', + 'original_device_class': None, 'original_icon': None, - 'original_name': 'Lifetime energy production l2', + 'original_name': 'MID state', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'lifetime_production_phase', - 'unique_id': '<>_lifetime_production_l2', - 'unit_of_measurement': 'MWh', + 'translation_key': 'mid_state', + 'unique_id': '482520020939_mid_state', + 'unit_of_measurement': None, + }), + 'state': dict({ + 'attributes': dict({ + 'friendly_name': 'Collar 482520020939 MID state', + }), + 'entity_id': 'sensor.collar_482520020939_mid_state', + 'state': 'close', }), - 'state': None, }), dict({ 'entity': dict({ @@ -4627,76 +4559,124 @@ 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', 'config_subentry_id': None, 'device_class': None, - 'disabled_by': 'integration', + 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_current_power_production_l3', + 'entity_id': 'sensor.collar_482520020939_temperature', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Current power production l3', + 'object_id_base': 'Temperature', 'options': dict({ - 'sensor.private': dict({ - 'suggested_unit_of_measurement': 'kW', + 'sensor': dict({ + 'suggested_display_precision': 1, }), }), - 'original_device_class': 'power', + 'original_device_class': 'temperature', 'original_icon': None, - 'original_name': 'Current power production l3', + 'original_name': 'Temperature', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'current_power_production_phase', - 'unique_id': '<>_production_l3', - 'unit_of_measurement': 'kW', + 'translation_key': None, + 'unique_id': '482520020939_temperature', + 'unit_of_measurement': '°C', }), - 'state': None, + 'state': dict({ + 'attributes': dict({ + 'device_class': 'temperature', + 'friendly_name': 'Collar 482520020939 Temperature', + 'state_class': 'measurement', + 'unit_of_measurement': '°C', + }), + 'entity_id': 'sensor.collar_482520020939_temperature', + 'state': '42', + }), + }), + ]), + }), + dict({ + 'device': dict({ + 'area_id': None, + 'config_entries': list([ + '45a36e55aaddb2007c5f6602e0c38e72', + ]), + 'config_entries_subentries': dict({ + '45a36e55aaddb2007c5f6602e0c38e72': list([ + None, + ]), }), + 'configuration_url': None, + 'connections': list([ + ]), + 'disabled_by': None, + 'entry_type': None, + 'hw_version': None, + 'identifiers': list([ + list([ + 'enphase_envoy', + '482523040549', + ]), + ]), + 'labels': list([ + ]), + 'manufacturer': 'Enphase', + 'model': 'C6 COMBINER CONTROLLER', + 'model_id': None, + 'name': 'C6 Combiner 482523040549', + 'name_by_user': None, + 'primary_config_entry': '45a36e55aaddb2007c5f6602e0c38e72', + 'serial_number': '482523040549', + 'sw_version': '0.1.20-D1', + }), + 'entities': list([ dict({ 'entity': dict({ 'aliases': list([ ]), 'area_id': None, - 'capabilities': dict({ - 'state_class': 'total_increasing', - }), + 'capabilities': None, 'categories': dict({ }), 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', 'config_subentry_id': None, 'device_class': None, - 'disabled_by': 'integration', - 'domain': 'sensor', - 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_energy_production_today_l3', + 'disabled_by': None, + 'domain': 'binary_sensor', + 'entity_category': 'diagnostic', + 'entity_id': 'binary_sensor.c6_combiner_482523040549_communicating', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Energy production today l3', + 'object_id_base': 'Communicating', 'options': dict({ - 'sensor.private': dict({ - 'suggested_unit_of_measurement': 'kWh', - }), }), - 'original_device_class': 'energy', + 'original_device_class': 'connectivity', 'original_icon': None, - 'original_name': 'Energy production today l3', + 'original_name': 'Communicating', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'daily_production_phase', - 'unique_id': '<>_daily_production_l3', - 'unit_of_measurement': 'kWh', + 'translation_key': 'communicating', + 'unique_id': '482523040549_communicating', + 'unit_of_measurement': None, + }), + 'state': dict({ + 'attributes': dict({ + 'device_class': 'connectivity', + 'friendly_name': 'C6 Combiner 482523040549 Communicating', + }), + 'entity_id': 'binary_sensor.c6_combiner_482523040549_communicating', + 'state': 'on', }), - 'state': None, }), dict({ 'entity': dict({ @@ -4709,118 +4689,162 @@ 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', 'config_subentry_id': None, 'device_class': None, - 'disabled_by': 'integration', + 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_energy_production_last_seven_days_l3', + 'entity_id': 'sensor.c6_combiner_482523040549_last_reported', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Energy production last seven days l3', + 'object_id_base': 'Last reported', 'options': dict({ - 'sensor.private': dict({ - 'suggested_unit_of_measurement': 'kWh', - }), }), - 'original_device_class': 'energy', + 'original_device_class': 'timestamp', 'original_icon': None, - 'original_name': 'Energy production last seven days l3', + 'original_name': 'Last reported', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'seven_days_production_phase', - 'unique_id': '<>_seven_days_production_l3', - 'unit_of_measurement': 'kWh', + 'translation_key': 'last_reported', + 'unique_id': '482523040549_last_reported', + 'unit_of_measurement': None, }), - 'state': None, + 'state': dict({ + 'attributes': dict({ + 'device_class': 'timestamp', + 'friendly_name': 'C6 Combiner 482523040549 Last reported', + }), + 'entity_id': 'sensor.c6_combiner_482523040549_last_reported', + 'state': '2025-07-19T17:17:31+00:00', + }), + }), + ]), + }), + dict({ + 'device': dict({ + 'area_id': None, + 'config_entries': list([ + '45a36e55aaddb2007c5f6602e0c38e72', + ]), + 'config_entries_subentries': dict({ + '45a36e55aaddb2007c5f6602e0c38e72': list([ + None, + ]), }), + 'configuration_url': None, + 'connections': list([ + ]), + 'disabled_by': None, + 'entry_type': None, + 'hw_version': None, + 'identifiers': list([ + list([ + 'enphase_envoy', + '654321', + ]), + ]), + 'labels': list([ + ]), + 'manufacturer': 'Enphase', + 'model': 'Enpower', + 'model_id': None, + 'name': 'Enpower 654321', + 'name_by_user': None, + 'primary_config_entry': '45a36e55aaddb2007c5f6602e0c38e72', + 'serial_number': '654321', + 'sw_version': '1.2.2064_release/20.34', + }), + 'entities': list([ dict({ 'entity': dict({ 'aliases': list([ ]), 'area_id': None, - 'capabilities': dict({ - 'state_class': 'total_increasing', - }), + 'capabilities': None, 'categories': dict({ }), 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', 'config_subentry_id': None, 'device_class': None, - 'disabled_by': 'integration', - 'domain': 'sensor', - 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_lifetime_energy_production_l3', + 'disabled_by': None, + 'domain': 'binary_sensor', + 'entity_category': 'diagnostic', + 'entity_id': 'binary_sensor.enpower_654321_communicating', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Lifetime energy production l3', + 'object_id_base': 'Communicating', 'options': dict({ - 'sensor.private': dict({ - 'suggested_unit_of_measurement': 'MWh', - }), }), - 'original_device_class': 'energy', + 'original_device_class': 'connectivity', 'original_icon': None, - 'original_name': 'Lifetime energy production l3', + 'original_name': 'Communicating', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'lifetime_production_phase', - 'unique_id': '<>_lifetime_production_l3', - 'unit_of_measurement': 'MWh', + 'translation_key': 'communicating', + 'unique_id': '654321_communicating', + 'unit_of_measurement': None, + }), + 'state': dict({ + 'attributes': dict({ + 'device_class': 'connectivity', + 'friendly_name': 'Enpower 654321 Communicating', + }), + 'entity_id': 'binary_sensor.enpower_654321_communicating', + 'state': 'on', }), - 'state': None, }), dict({ 'entity': dict({ 'aliases': list([ ]), 'area_id': None, - 'capabilities': dict({ - 'state_class': 'measurement', - }), + 'capabilities': None, 'categories': dict({ }), 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', 'config_subentry_id': None, 'device_class': None, - 'disabled_by': 'integration', - 'domain': 'sensor', + 'disabled_by': None, + 'domain': 'binary_sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_current_power_consumption_l1', + 'entity_id': 'binary_sensor.enpower_654321_grid_status', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Current power consumption l1', + 'object_id_base': 'Grid status', 'options': dict({ - 'sensor.private': dict({ - 'suggested_unit_of_measurement': 'kW', - }), }), - 'original_device_class': 'power', + 'original_device_class': None, 'original_icon': None, - 'original_name': 'Current power consumption l1', + 'original_name': 'Grid status', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'current_power_consumption_phase', - 'unique_id': '<>_consumption_l1', - 'unit_of_measurement': 'kW', + 'translation_key': 'grid_status', + 'unique_id': '654321_mains_oper_state', + 'unit_of_measurement': None, + }), + 'state': dict({ + 'attributes': dict({ + 'friendly_name': 'Enpower 654321 Grid status', + }), + 'entity_id': 'binary_sensor.enpower_654321_grid_status', + 'state': 'on', }), - 'state': None, }), dict({ 'entity': dict({ @@ -4828,81 +4852,53 @@ ]), 'area_id': None, 'capabilities': dict({ - 'state_class': 'total_increasing', + 'max': 100.0, + 'min': 0.0, + 'mode': 'auto', + 'step': 1.0, }), 'categories': dict({ }), 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', 'config_subentry_id': None, 'device_class': None, - 'disabled_by': 'integration', - 'domain': 'sensor', + 'disabled_by': None, + 'domain': 'number', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_energy_consumption_today_l1', + 'entity_id': 'number.enpower_654321_reserve_battery_level', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Energy consumption today l1', + 'object_id_base': 'Reserve battery level', 'options': dict({ - 'sensor.private': dict({ - 'suggested_unit_of_measurement': 'kWh', - }), }), - 'original_device_class': 'energy', + 'original_device_class': 'battery', 'original_icon': None, - 'original_name': 'Energy consumption today l1', + 'original_name': 'Reserve battery level', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'daily_consumption_phase', - 'unique_id': '<>_daily_consumption_l1', - 'unit_of_measurement': 'kWh', + 'translation_key': 'reserve_soc', + 'unique_id': '654321_reserve_soc', + 'unit_of_measurement': '%', }), - 'state': None, - }), - dict({ - 'entity': dict({ - 'aliases': list([ - ]), - 'area_id': None, - 'capabilities': None, - 'categories': dict({ - }), - 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', - 'config_subentry_id': None, - 'device_class': None, - 'disabled_by': 'integration', - 'domain': 'sensor', - 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_energy_consumption_last_seven_days_l1', - 'has_entity_name': True, - 'hidden_by': None, - 'icon': None, - 'labels': list([ - ]), - 'name': None, - 'object_id_base': 'Energy consumption last seven days l1', - 'options': dict({ - 'sensor.private': dict({ - 'suggested_unit_of_measurement': 'kWh', - }), + 'state': dict({ + 'attributes': dict({ + 'device_class': 'battery', + 'friendly_name': 'Enpower 654321 Reserve battery level', + 'max': 100.0, + 'min': 0.0, + 'mode': 'auto', + 'step': 1.0, + 'unit_of_measurement': '%', }), - 'original_device_class': 'energy', - 'original_icon': None, - 'original_name': 'Energy consumption last seven days l1', - 'platform': 'enphase_envoy', - 'previous_unique_id': None, - 'suggested_object_id': None, - 'supported_features': 0, - 'translation_key': 'seven_days_consumption_phase', - 'unique_id': '<>_seven_days_consumption_l1', - 'unit_of_measurement': 'kWh', + 'entity_id': 'number.enpower_654321_reserve_battery_level', + 'state': '15.0', }), - 'state': None, }), dict({ 'entity': dict({ @@ -4910,83 +4906,97 @@ ]), 'area_id': None, 'capabilities': dict({ - 'state_class': 'total_increasing', + 'options': list([ + 'backup', + 'self_consumption', + 'savings', + ]), }), 'categories': dict({ }), 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', 'config_subentry_id': None, 'device_class': None, - 'disabled_by': 'integration', - 'domain': 'sensor', + 'disabled_by': None, + 'domain': 'select', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_lifetime_energy_consumption_l1', + 'entity_id': 'select.enpower_654321_storage_mode', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Lifetime energy consumption l1', + 'object_id_base': 'Storage mode', 'options': dict({ - 'sensor.private': dict({ - 'suggested_unit_of_measurement': 'MWh', - }), }), - 'original_device_class': 'energy', + 'original_device_class': None, 'original_icon': None, - 'original_name': 'Lifetime energy consumption l1', + 'original_name': 'Storage mode', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'lifetime_consumption_phase', - 'unique_id': '<>_lifetime_consumption_l1', - 'unit_of_measurement': 'MWh', + 'translation_key': 'storage_mode', + 'unique_id': '654321_storage_mode', + 'unit_of_measurement': None, + }), + 'state': dict({ + 'attributes': dict({ + 'friendly_name': 'Enpower 654321 Storage mode', + 'options': list([ + 'backup', + 'self_consumption', + 'savings', + ]), + }), + 'entity_id': 'select.enpower_654321_storage_mode', + 'state': 'self_consumption', }), - 'state': None, }), dict({ 'entity': dict({ 'aliases': list([ ]), 'area_id': None, - 'capabilities': dict({ - 'state_class': 'measurement', - }), + 'capabilities': None, 'categories': dict({ }), 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', 'config_subentry_id': None, 'device_class': None, - 'disabled_by': 'integration', + 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_current_power_consumption_l2', + 'entity_id': 'sensor.enpower_654321_last_reported', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Current power consumption l2', + 'object_id_base': 'Last reported', 'options': dict({ - 'sensor.private': dict({ - 'suggested_unit_of_measurement': 'kW', - }), }), - 'original_device_class': 'power', + 'original_device_class': 'timestamp', 'original_icon': None, - 'original_name': 'Current power consumption l2', + 'original_name': 'Last reported', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'current_power_consumption_phase', - 'unique_id': '<>_consumption_l2', - 'unit_of_measurement': 'kW', + 'translation_key': 'last_reported', + 'unique_id': '654321_last_reported', + 'unit_of_measurement': None, + }), + 'state': dict({ + 'attributes': dict({ + 'device_class': 'timestamp', + 'friendly_name': 'Enpower 654321 Last reported', + }), + 'entity_id': 'sensor.enpower_654321_last_reported', + 'state': '2023-09-26T23:04:07+00:00', }), - 'state': None, }), dict({ 'entity': dict({ @@ -4994,41 +5004,50 @@ ]), 'area_id': None, 'capabilities': dict({ - 'state_class': 'total_increasing', + 'state_class': 'measurement', }), 'categories': dict({ }), 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', 'config_subentry_id': None, 'device_class': None, - 'disabled_by': 'integration', + 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_energy_consumption_today_l2', + 'entity_id': 'sensor.enpower_654321_temperature', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Energy consumption today l2', + 'object_id_base': 'Temperature', 'options': dict({ - 'sensor.private': dict({ - 'suggested_unit_of_measurement': 'kWh', + 'sensor': dict({ + 'suggested_display_precision': 1, }), }), - 'original_device_class': 'energy', + 'original_device_class': 'temperature', 'original_icon': None, - 'original_name': 'Energy consumption today l2', + 'original_name': 'Temperature', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'daily_consumption_phase', - 'unique_id': '<>_daily_consumption_l2', - 'unit_of_measurement': 'kWh', + 'translation_key': None, + 'unique_id': '654321_temperature', + 'unit_of_measurement': '°C', + }), + 'state': dict({ + 'attributes': dict({ + 'device_class': 'temperature', + 'friendly_name': 'Enpower 654321 Temperature', + 'state_class': 'measurement', + 'unit_of_measurement': '°C', + }), + 'entity_id': 'sensor.enpower_654321_temperature', + 'state': '26.1111111111111', }), - 'state': None, }), dict({ 'entity': dict({ @@ -5041,77 +5060,118 @@ 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', 'config_subentry_id': None, 'device_class': None, - 'disabled_by': 'integration', - 'domain': 'sensor', + 'disabled_by': None, + 'domain': 'switch', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_energy_consumption_last_seven_days_l2', + 'entity_id': 'switch.enpower_654321_charge_from_grid', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Energy consumption last seven days l2', + 'object_id_base': 'Charge from grid', 'options': dict({ - 'sensor.private': dict({ - 'suggested_unit_of_measurement': 'kWh', - }), }), - 'original_device_class': 'energy', + 'original_device_class': None, 'original_icon': None, - 'original_name': 'Energy consumption last seven days l2', + 'original_name': 'Charge from grid', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'seven_days_consumption_phase', - 'unique_id': '<>_seven_days_consumption_l2', - 'unit_of_measurement': 'kWh', + 'translation_key': 'charge_from_grid', + 'unique_id': '654321_charge_from_grid', + 'unit_of_measurement': None, + }), + 'state': dict({ + 'attributes': dict({ + 'friendly_name': 'Enpower 654321 Charge from grid', + }), + 'entity_id': 'switch.enpower_654321_charge_from_grid', + 'state': 'on', }), - 'state': None, }), dict({ 'entity': dict({ 'aliases': list([ ]), 'area_id': None, - 'capabilities': dict({ - 'state_class': 'total_increasing', - }), + 'capabilities': None, 'categories': dict({ }), 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', 'config_subentry_id': None, 'device_class': None, - 'disabled_by': 'integration', - 'domain': 'sensor', + 'disabled_by': None, + 'domain': 'switch', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_lifetime_energy_consumption_l2', + 'entity_id': 'switch.enpower_654321_grid_enabled', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Lifetime energy consumption l2', + 'object_id_base': 'Grid enabled', 'options': dict({ - 'sensor.private': dict({ - 'suggested_unit_of_measurement': 'MWh', - }), }), - 'original_device_class': 'energy', + 'original_device_class': None, 'original_icon': None, - 'original_name': 'Lifetime energy consumption l2', + 'original_name': 'Grid enabled', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'lifetime_consumption_phase', - 'unique_id': '<>_lifetime_consumption_l2', - 'unit_of_measurement': 'MWh', + 'translation_key': 'grid_enabled', + 'unique_id': '654321_mains_admin_state', + 'unit_of_measurement': None, }), - 'state': None, + 'state': dict({ + 'attributes': dict({ + 'friendly_name': 'Enpower 654321 Grid enabled', + }), + 'entity_id': 'switch.enpower_654321_grid_enabled', + 'state': 'on', + }), + }), + ]), + }), + dict({ + 'device': dict({ + 'area_id': None, + 'config_entries': list([ + '45a36e55aaddb2007c5f6602e0c38e72', + ]), + 'config_entries_subentries': dict({ + '45a36e55aaddb2007c5f6602e0c38e72': list([ + None, + ]), }), + 'configuration_url': None, + 'connections': list([ + ]), + 'disabled_by': None, + 'entry_type': None, + 'hw_version': '<>56789', + 'identifiers': list([ + list([ + 'enphase_envoy', + '<>', + ]), + ]), + 'labels': list([ + ]), + 'manufacturer': 'Enphase', + 'model': 'Envoy, phases: 3, phase mode: split, net-consumption CT, production CT, storage CT', + 'model_id': None, + 'name': 'Envoy <>', + 'name_by_user': None, + 'primary_config_entry': '45a36e55aaddb2007c5f6602e0c38e72', + 'serial_number': '<>', + 'sw_version': '7.1.2', + }), + 'entities': list([ dict({ 'entity': dict({ 'aliases': list([ @@ -5125,34 +5185,43 @@ 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', 'config_subentry_id': None, 'device_class': None, - 'disabled_by': 'integration', + 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_current_power_consumption_l3', + 'entity_id': 'sensor.envoy_<>_available_battery_energy', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Current power consumption l3', + 'object_id_base': 'Available battery energy', 'options': dict({ - 'sensor.private': dict({ - 'suggested_unit_of_measurement': 'kW', + 'sensor': dict({ + 'suggested_display_precision': 0, }), }), - 'original_device_class': 'power', + 'original_device_class': 'energy_storage', 'original_icon': None, - 'original_name': 'Current power consumption l3', + 'original_name': 'Available battery energy', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'current_power_consumption_phase', - 'unique_id': '<>_consumption_l3', - 'unit_of_measurement': 'kW', + 'translation_key': 'available_energy', + 'unique_id': '<>_available_energy', + 'unit_of_measurement': 'Wh', + }), + 'state': dict({ + 'attributes': dict({ + 'device_class': 'energy_storage', + 'friendly_name': 'Envoy <> Available battery energy', + 'state_class': 'measurement', + 'unit_of_measurement': 'Wh', + }), + 'entity_id': 'sensor.envoy_<>_available_battery_energy', + 'state': '525', }), - 'state': None, }), dict({ 'entity': dict({ @@ -5160,7 +5229,7 @@ ]), 'area_id': None, 'capabilities': dict({ - 'state_class': 'total_increasing', + 'state_class': 'measurement', }), 'categories': dict({ }), @@ -5170,29 +5239,29 @@ 'disabled_by': 'integration', 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_energy_consumption_today_l3', + 'entity_id': 'sensor.envoy_<>_backfeed_ct_current', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Energy consumption today l3', + 'object_id_base': 'Backfeed CT current', 'options': dict({ 'sensor.private': dict({ - 'suggested_unit_of_measurement': 'kWh', + 'suggested_unit_of_measurement': 'A', }), }), - 'original_device_class': 'energy', + 'original_device_class': 'current', 'original_icon': None, - 'original_name': 'Energy consumption today l3', + 'original_name': 'Backfeed CT current', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'daily_consumption_phase', - 'unique_id': '<>_daily_consumption_l3', - 'unit_of_measurement': 'kWh', + 'translation_key': 'backfeed_ct_current', + 'unique_id': '<>_backfeed_ct_current', + 'unit_of_measurement': 'A', }), 'state': None, }), @@ -5201,7 +5270,9 @@ 'aliases': list([ ]), 'area_id': None, - 'capabilities': None, + 'capabilities': dict({ + 'state_class': 'measurement', + }), 'categories': dict({ }), 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', @@ -5210,29 +5281,29 @@ 'disabled_by': 'integration', 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_energy_consumption_last_seven_days_l3', + 'entity_id': 'sensor.envoy_<>_backfeed_ct_current_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Energy consumption last seven days l3', + 'object_id_base': 'Backfeed CT current l1', 'options': dict({ 'sensor.private': dict({ - 'suggested_unit_of_measurement': 'kWh', + 'suggested_unit_of_measurement': 'A', }), }), - 'original_device_class': 'energy', + 'original_device_class': 'current', 'original_icon': None, - 'original_name': 'Energy consumption last seven days l3', + 'original_name': 'Backfeed CT current l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'seven_days_consumption_phase', - 'unique_id': '<>_seven_days_consumption_l3', - 'unit_of_measurement': 'kWh', + 'translation_key': 'backfeed_ct_current_phase', + 'unique_id': '<>_backfeed_ct_current_l1', + 'unit_of_measurement': 'A', }), 'state': None, }), @@ -5242,7 +5313,7 @@ ]), 'area_id': None, 'capabilities': dict({ - 'state_class': 'total_increasing', + 'state_class': 'measurement', }), 'categories': dict({ }), @@ -5252,29 +5323,29 @@ 'disabled_by': 'integration', 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_lifetime_energy_consumption_l3', + 'entity_id': 'sensor.envoy_<>_backfeed_ct_current_l2', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Lifetime energy consumption l3', + 'object_id_base': 'Backfeed CT current l2', 'options': dict({ 'sensor.private': dict({ - 'suggested_unit_of_measurement': 'MWh', + 'suggested_unit_of_measurement': 'A', }), }), - 'original_device_class': 'energy', + 'original_device_class': 'current', 'original_icon': None, - 'original_name': 'Lifetime energy consumption l3', + 'original_name': 'Backfeed CT current l2', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'lifetime_consumption_phase', - 'unique_id': '<>_lifetime_consumption_l3', - 'unit_of_measurement': 'MWh', + 'translation_key': 'backfeed_ct_current_phase', + 'unique_id': '<>_backfeed_ct_current_l2', + 'unit_of_measurement': 'A', }), 'state': None, }), @@ -5294,29 +5365,29 @@ 'disabled_by': 'integration', 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_balanced_net_power_consumption_l1', + 'entity_id': 'sensor.envoy_<>_backfeed_ct_current_l3', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Balanced net power consumption l1', + 'object_id_base': 'Backfeed CT current l3', 'options': dict({ 'sensor.private': dict({ - 'suggested_unit_of_measurement': 'kW', + 'suggested_unit_of_measurement': 'A', }), }), - 'original_device_class': 'power', + 'original_device_class': 'current', 'original_icon': None, - 'original_name': 'Balanced net power consumption l1', + 'original_name': 'Backfeed CT current l3', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'balanced_net_consumption_phase', - 'unique_id': '<>_balanced_net_consumption_l1', - 'unit_of_measurement': 'kW', + 'translation_key': 'backfeed_ct_current_phase', + 'unique_id': '<>_backfeed_ct_current_l3', + 'unit_of_measurement': 'A', }), 'state': None, }), @@ -5326,41 +5397,53 @@ ]), 'area_id': None, 'capabilities': dict({ - 'state_class': 'total', + 'state_class': 'total_increasing', }), 'categories': dict({ }), 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', 'config_subentry_id': None, 'device_class': None, - 'disabled_by': 'integration', + 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_lifetime_balanced_net_energy_consumption_l1', + 'entity_id': 'sensor.envoy_<>_backfeed_ct_energy_delivered', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Lifetime balanced net energy consumption l1', + 'object_id_base': 'Backfeed CT energy delivered', 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), 'sensor.private': dict({ - 'suggested_unit_of_measurement': 'kWh', + 'suggested_unit_of_measurement': 'MWh', }), }), 'original_device_class': 'energy', 'original_icon': None, - 'original_name': 'Lifetime balanced net energy consumption l1', + 'original_name': 'Backfeed CT energy delivered', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'lifetime_balanced_net_consumption_phase', - 'unique_id': '<>_lifetime_balanced_net_consumption_l1', - 'unit_of_measurement': 'kWh', + 'translation_key': 'backfeed_ct_energy_delivered', + 'unique_id': '<>_backfeed_ct_energy_delivered', + 'unit_of_measurement': 'MWh', + }), + 'state': dict({ + 'attributes': dict({ + 'device_class': 'energy', + 'friendly_name': 'Envoy <> Backfeed CT energy delivered', + 'state_class': 'total_increasing', + 'unit_of_measurement': 'MWh', + }), + 'entity_id': 'sensor.envoy_<>_backfeed_ct_energy_delivered', + 'state': '0.04<>', }), - 'state': None, }), dict({ 'entity': dict({ @@ -5368,7 +5451,7 @@ ]), 'area_id': None, 'capabilities': dict({ - 'state_class': 'measurement', + 'state_class': 'total_increasing', }), 'categories': dict({ }), @@ -5378,29 +5461,29 @@ 'disabled_by': 'integration', 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_balanced_net_power_consumption_l2', + 'entity_id': 'sensor.envoy_<>_backfeed_ct_energy_delivered_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Balanced net power consumption l2', + 'object_id_base': 'Backfeed CT energy delivered l1', 'options': dict({ 'sensor.private': dict({ - 'suggested_unit_of_measurement': 'kW', + 'suggested_unit_of_measurement': 'MWh', }), }), - 'original_device_class': 'power', + 'original_device_class': 'energy', 'original_icon': None, - 'original_name': 'Balanced net power consumption l2', + 'original_name': 'Backfeed CT energy delivered l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'balanced_net_consumption_phase', - 'unique_id': '<>_balanced_net_consumption_l2', - 'unit_of_measurement': 'kW', + 'translation_key': 'backfeed_ct_energy_delivered_phase', + 'unique_id': '<>_backfeed_ct_energy_delivered_l1', + 'unit_of_measurement': 'MWh', }), 'state': None, }), @@ -5410,7 +5493,7 @@ ]), 'area_id': None, 'capabilities': dict({ - 'state_class': 'total', + 'state_class': 'total_increasing', }), 'categories': dict({ }), @@ -5420,29 +5503,29 @@ 'disabled_by': 'integration', 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_lifetime_balanced_net_energy_consumption_l2', + 'entity_id': 'sensor.envoy_<>_backfeed_ct_energy_delivered_l2', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Lifetime balanced net energy consumption l2', + 'object_id_base': 'Backfeed CT energy delivered l2', 'options': dict({ 'sensor.private': dict({ - 'suggested_unit_of_measurement': 'kWh', + 'suggested_unit_of_measurement': 'MWh', }), }), 'original_device_class': 'energy', 'original_icon': None, - 'original_name': 'Lifetime balanced net energy consumption l2', + 'original_name': 'Backfeed CT energy delivered l2', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'lifetime_balanced_net_consumption_phase', - 'unique_id': '<>_lifetime_balanced_net_consumption_l2', - 'unit_of_measurement': 'kWh', + 'translation_key': 'backfeed_ct_energy_delivered_phase', + 'unique_id': '<>_backfeed_ct_energy_delivered_l2', + 'unit_of_measurement': 'MWh', }), 'state': None, }), @@ -5452,7 +5535,7 @@ ]), 'area_id': None, 'capabilities': dict({ - 'state_class': 'measurement', + 'state_class': 'total_increasing', }), 'categories': dict({ }), @@ -5462,29 +5545,29 @@ 'disabled_by': 'integration', 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_balanced_net_power_consumption_l3', + 'entity_id': 'sensor.envoy_<>_backfeed_ct_energy_delivered_l3', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Balanced net power consumption l3', + 'object_id_base': 'Backfeed CT energy delivered l3', 'options': dict({ 'sensor.private': dict({ - 'suggested_unit_of_measurement': 'kW', + 'suggested_unit_of_measurement': 'MWh', }), }), - 'original_device_class': 'power', + 'original_device_class': 'energy', 'original_icon': None, - 'original_name': 'Balanced net power consumption l3', + 'original_name': 'Backfeed CT energy delivered l3', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'balanced_net_consumption_phase', - 'unique_id': '<>_balanced_net_consumption_l3', - 'unit_of_measurement': 'kW', + 'translation_key': 'backfeed_ct_energy_delivered_phase', + 'unique_id': '<>_backfeed_ct_energy_delivered_l3', + 'unit_of_measurement': 'MWh', }), 'state': None, }), @@ -5494,41 +5577,53 @@ ]), 'area_id': None, 'capabilities': dict({ - 'state_class': 'total', + 'state_class': 'total_increasing', }), 'categories': dict({ }), 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', 'config_subentry_id': None, 'device_class': None, - 'disabled_by': 'integration', + 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_lifetime_balanced_net_energy_consumption_l3', + 'entity_id': 'sensor.envoy_<>_backfeed_ct_energy_received', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Lifetime balanced net energy consumption l3', + 'object_id_base': 'Backfeed CT energy received', 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), 'sensor.private': dict({ - 'suggested_unit_of_measurement': 'kWh', + 'suggested_unit_of_measurement': 'MWh', }), }), 'original_device_class': 'energy', 'original_icon': None, - 'original_name': 'Lifetime balanced net energy consumption l3', + 'original_name': 'Backfeed CT energy received', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'lifetime_balanced_net_consumption_phase', - 'unique_id': '<>_lifetime_balanced_net_consumption_l3', - 'unit_of_measurement': 'kWh', + 'translation_key': 'backfeed_ct_energy_received', + 'unique_id': '<>_backfeed_ct_energy_received', + 'unit_of_measurement': 'MWh', + }), + 'state': dict({ + 'attributes': dict({ + 'device_class': 'energy', + 'friendly_name': 'Envoy <> Backfeed CT energy received', + 'state_class': 'total_increasing', + 'unit_of_measurement': 'MWh', + }), + 'entity_id': 'sensor.envoy_<>_backfeed_ct_energy_received', + 'state': '0.042345', }), - 'state': None, }), dict({ 'entity': dict({ @@ -5543,46 +5638,34 @@ 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', 'config_subentry_id': None, 'device_class': None, - 'disabled_by': None, + 'disabled_by': 'integration', 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_lifetime_net_energy_consumption', + 'entity_id': 'sensor.envoy_<>_backfeed_ct_energy_received_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Lifetime net energy consumption', + 'object_id_base': 'Backfeed CT energy received l1', 'options': dict({ - 'sensor': dict({ - 'suggested_display_precision': 3, - }), 'sensor.private': dict({ 'suggested_unit_of_measurement': 'MWh', }), }), 'original_device_class': 'energy', 'original_icon': None, - 'original_name': 'Lifetime net energy consumption', + 'original_name': 'Backfeed CT energy received l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'lifetime_net_consumption', - 'unique_id': '<>_lifetime_net_consumption', + 'translation_key': 'backfeed_ct_energy_received_phase', + 'unique_id': '<>_backfeed_ct_energy_received_l1', 'unit_of_measurement': 'MWh', }), - 'state': dict({ - 'attributes': dict({ - 'device_class': 'energy', - 'friendly_name': 'Envoy <> Lifetime net energy consumption', - 'state_class': 'total_increasing', - 'unit_of_measurement': 'MWh', - }), - 'entity_id': 'sensor.envoy_<>_lifetime_net_energy_consumption', - 'state': '0.02<>', - }), + 'state': None, }), dict({ 'entity': dict({ @@ -5597,46 +5680,34 @@ 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', 'config_subentry_id': None, 'device_class': None, - 'disabled_by': None, + 'disabled_by': 'integration', 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_lifetime_battery_energy_discharged', + 'entity_id': 'sensor.envoy_<>_backfeed_ct_energy_received_l2', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Lifetime battery energy discharged', + 'object_id_base': 'Backfeed CT energy received l2', 'options': dict({ - 'sensor': dict({ - 'suggested_display_precision': 3, - }), 'sensor.private': dict({ 'suggested_unit_of_measurement': 'MWh', }), }), 'original_device_class': 'energy', 'original_icon': None, - 'original_name': 'Lifetime battery energy discharged', + 'original_name': 'Backfeed CT energy received l2', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'lifetime_battery_discharged', - 'unique_id': '<>_lifetime_battery_discharged', + 'translation_key': 'backfeed_ct_energy_received_phase', + 'unique_id': '<>_backfeed_ct_energy_received_l2', 'unit_of_measurement': 'MWh', }), - 'state': dict({ - 'attributes': dict({ - 'device_class': 'energy', - 'friendly_name': 'Envoy <> Lifetime battery energy discharged', - 'state_class': 'total_increasing', - 'unit_of_measurement': 'MWh', - }), - 'entity_id': 'sensor.envoy_<>_lifetime_battery_energy_discharged', - 'state': '0.03<>', - }), + 'state': None, }), dict({ 'entity': dict({ @@ -5651,46 +5722,34 @@ 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', 'config_subentry_id': None, 'device_class': None, - 'disabled_by': None, + 'disabled_by': 'integration', 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_lifetime_net_energy_production', + 'entity_id': 'sensor.envoy_<>_backfeed_ct_energy_received_l3', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Lifetime net energy production', + 'object_id_base': 'Backfeed CT energy received l3', 'options': dict({ - 'sensor': dict({ - 'suggested_display_precision': 3, - }), 'sensor.private': dict({ 'suggested_unit_of_measurement': 'MWh', }), }), 'original_device_class': 'energy', 'original_icon': None, - 'original_name': 'Lifetime net energy production', + 'original_name': 'Backfeed CT energy received l3', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'lifetime_net_production', - 'unique_id': '<>_lifetime_net_production', + 'translation_key': 'backfeed_ct_energy_received_phase', + 'unique_id': '<>_backfeed_ct_energy_received_l3', 'unit_of_measurement': 'MWh', }), - 'state': dict({ - 'attributes': dict({ - 'device_class': 'energy', - 'friendly_name': 'Envoy <> Lifetime net energy production', - 'state_class': 'total_increasing', - 'unit_of_measurement': 'MWh', - }), - 'entity_id': 'sensor.envoy_<>_lifetime_net_energy_production', - 'state': '0.022345', - }), + 'state': None, }), dict({ 'entity': dict({ @@ -5698,7 +5757,7 @@ ]), 'area_id': None, 'capabilities': dict({ - 'state_class': 'total_increasing', + 'state_class': 'measurement', }), 'categories': dict({ }), @@ -5708,42 +5767,42 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_lifetime_battery_energy_charged', + 'entity_id': 'sensor.envoy_<>_backfeed_ct_power', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Lifetime battery energy charged', + 'object_id_base': 'Backfeed CT power', 'options': dict({ 'sensor': dict({ 'suggested_display_precision': 3, }), 'sensor.private': dict({ - 'suggested_unit_of_measurement': 'MWh', + 'suggested_unit_of_measurement': 'kW', }), }), - 'original_device_class': 'energy', + 'original_device_class': 'power', 'original_icon': None, - 'original_name': 'Lifetime battery energy charged', + 'original_name': 'Backfeed CT power', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'lifetime_battery_charged', - 'unique_id': '<>_lifetime_battery_charged', - 'unit_of_measurement': 'MWh', + 'translation_key': 'backfeed_ct_power', + 'unique_id': '<>_backfeed_ct_power', + 'unit_of_measurement': 'kW', }), 'state': dict({ 'attributes': dict({ - 'device_class': 'energy', - 'friendly_name': 'Envoy <> Lifetime battery energy charged', - 'state_class': 'total_increasing', - 'unit_of_measurement': 'MWh', + 'device_class': 'power', + 'friendly_name': 'Envoy <> Backfeed CT power', + 'state_class': 'measurement', + 'unit_of_measurement': 'kW', }), - 'entity_id': 'sensor.envoy_<>_lifetime_battery_energy_charged', - 'state': '0.032345', + 'entity_id': 'sensor.envoy_<>_backfeed_ct_power', + 'state': '0.104', }), }), dict({ @@ -5759,46 +5818,34 @@ 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', 'config_subentry_id': None, 'device_class': None, - 'disabled_by': None, + 'disabled_by': 'integration', 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_current_net_power_consumption', + 'entity_id': 'sensor.envoy_<>_backfeed_ct_power_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Current net power consumption', + 'object_id_base': 'Backfeed CT power l1', 'options': dict({ - 'sensor': dict({ - 'suggested_display_precision': 3, - }), 'sensor.private': dict({ 'suggested_unit_of_measurement': 'kW', }), }), 'original_device_class': 'power', 'original_icon': None, - 'original_name': 'Current net power consumption', + 'original_name': 'Backfeed CT power l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_consumption', - 'unique_id': '<>_net_consumption', + 'translation_key': 'backfeed_ct_power_phase', + 'unique_id': '<>_backfeed_ct_power_l1', 'unit_of_measurement': 'kW', }), - 'state': dict({ - 'attributes': dict({ - 'device_class': 'power', - 'friendly_name': 'Envoy <> Current net power consumption', - 'state_class': 'measurement', - 'unit_of_measurement': 'kW', - }), - 'entity_id': 'sensor.envoy_<>_current_net_power_consumption', - 'state': '0.101', - }), + 'state': None, }), dict({ 'entity': dict({ @@ -5813,46 +5860,34 @@ 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', 'config_subentry_id': None, 'device_class': None, - 'disabled_by': None, + 'disabled_by': 'integration', 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_current_battery_discharge', + 'entity_id': 'sensor.envoy_<>_backfeed_ct_power_l2', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Current battery discharge', + 'object_id_base': 'Backfeed CT power l2', 'options': dict({ - 'sensor': dict({ - 'suggested_display_precision': 3, - }), 'sensor.private': dict({ 'suggested_unit_of_measurement': 'kW', }), }), 'original_device_class': 'power', 'original_icon': None, - 'original_name': 'Current battery discharge', + 'original_name': 'Backfeed CT power l2', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'battery_discharge', - 'unique_id': '<>_battery_discharge', + 'translation_key': 'backfeed_ct_power_phase', + 'unique_id': '<>_backfeed_ct_power_l2', 'unit_of_measurement': 'kW', }), - 'state': dict({ - 'attributes': dict({ - 'device_class': 'power', - 'friendly_name': 'Envoy <> Current battery discharge', - 'state_class': 'measurement', - 'unit_of_measurement': 'kW', - }), - 'entity_id': 'sensor.envoy_<>_current_battery_discharge', - 'state': '0.103', - }), + 'state': None, }), dict({ 'entity': dict({ @@ -5870,26 +5905,29 @@ 'disabled_by': 'integration', 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_frequency_net_consumption_ct', + 'entity_id': 'sensor.envoy_<>_backfeed_ct_power_l3', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Frequency net consumption CT', + 'object_id_base': 'Backfeed CT power l3', 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'kW', + }), }), - 'original_device_class': 'frequency', + 'original_device_class': 'power', 'original_icon': None, - 'original_name': 'Frequency net consumption CT', + 'original_name': 'Backfeed CT power l3', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_ct_frequency', - 'unique_id': '<>_frequency', - 'unit_of_measurement': 'Hz', + 'translation_key': 'backfeed_ct_power_phase', + 'unique_id': '<>_backfeed_ct_power_l3', + 'unit_of_measurement': 'kW', }), 'state': None, }), @@ -5909,26 +5947,29 @@ 'disabled_by': 'integration', 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_frequency_production_ct', + 'entity_id': 'sensor.envoy_<>_balanced_net_power_consumption', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Frequency production CT', + 'object_id_base': 'Balanced net power consumption', 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'kW', + }), }), - 'original_device_class': 'frequency', + 'original_device_class': 'power', 'original_icon': None, - 'original_name': 'Frequency production CT', + 'original_name': 'Balanced net power consumption', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'production_ct_frequency', - 'unique_id': '<>_production_ct_frequency', - 'unit_of_measurement': 'Hz', + 'translation_key': 'balanced_net_consumption', + 'unique_id': '<>_balanced_net_consumption', + 'unit_of_measurement': 'kW', }), 'state': None, }), @@ -5948,26 +5989,29 @@ 'disabled_by': 'integration', 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_frequency_storage_ct', + 'entity_id': 'sensor.envoy_<>_balanced_net_power_consumption_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Frequency storage CT', + 'object_id_base': 'Balanced net power consumption l1', 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'kW', + }), }), - 'original_device_class': 'frequency', + 'original_device_class': 'power', 'original_icon': None, - 'original_name': 'Frequency storage CT', + 'original_name': 'Balanced net power consumption l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'storage_ct_frequency', - 'unique_id': '<>_storage_ct_frequency', - 'unit_of_measurement': 'Hz', + 'translation_key': 'balanced_net_consumption_phase', + 'unique_id': '<>_balanced_net_consumption_l1', + 'unit_of_measurement': 'kW', }), 'state': None, }), @@ -5987,29 +6031,29 @@ 'disabled_by': 'integration', 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_voltage_net_consumption_ct', + 'entity_id': 'sensor.envoy_<>_balanced_net_power_consumption_l2', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Voltage net consumption CT', + 'object_id_base': 'Balanced net power consumption l2', 'options': dict({ 'sensor.private': dict({ - 'suggested_unit_of_measurement': 'V', + 'suggested_unit_of_measurement': 'kW', }), }), - 'original_device_class': 'voltage', + 'original_device_class': 'power', 'original_icon': None, - 'original_name': 'Voltage net consumption CT', + 'original_name': 'Balanced net power consumption l2', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_ct_voltage', - 'unique_id': '<>_voltage', - 'unit_of_measurement': 'V', + 'translation_key': 'balanced_net_consumption_phase', + 'unique_id': '<>_balanced_net_consumption_l2', + 'unit_of_measurement': 'kW', }), 'state': None, }), @@ -6029,29 +6073,29 @@ 'disabled_by': 'integration', 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_voltage_production_ct', + 'entity_id': 'sensor.envoy_<>_balanced_net_power_consumption_l3', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Voltage production CT', + 'object_id_base': 'Balanced net power consumption l3', 'options': dict({ 'sensor.private': dict({ - 'suggested_unit_of_measurement': 'V', + 'suggested_unit_of_measurement': 'kW', }), }), - 'original_device_class': 'voltage', + 'original_device_class': 'power', 'original_icon': None, - 'original_name': 'Voltage production CT', + 'original_name': 'Balanced net power consumption l3', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'production_ct_voltage', - 'unique_id': '<>_production_ct_voltage', - 'unit_of_measurement': 'V', + 'translation_key': 'balanced_net_consumption_phase', + 'unique_id': '<>_balanced_net_consumption_l3', + 'unit_of_measurement': 'kW', }), 'state': None, }), @@ -6068,76 +6112,88 @@ 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', 'config_subentry_id': None, 'device_class': None, - 'disabled_by': 'integration', + 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_voltage_storage_ct', + 'entity_id': 'sensor.envoy_<>_battery', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Voltage storage CT', + 'object_id_base': 'Battery', 'options': dict({ - 'sensor.private': dict({ - 'suggested_unit_of_measurement': 'V', - }), }), - 'original_device_class': 'voltage', + 'original_device_class': 'battery', 'original_icon': None, - 'original_name': 'Voltage storage CT', + 'original_name': 'Battery', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'storage_ct_voltage', - 'unique_id': '<>_storage_voltage', - 'unit_of_measurement': 'V', + 'translation_key': None, + 'unique_id': '<>_battery_level', + 'unit_of_measurement': '%', + }), + 'state': dict({ + 'attributes': dict({ + 'device_class': 'battery', + 'friendly_name': 'Envoy <> Battery', + 'state_class': 'measurement', + 'unit_of_measurement': '%', + }), + 'entity_id': 'sensor.envoy_<>_battery', + 'state': '15', }), - 'state': None, }), dict({ 'entity': dict({ 'aliases': list([ ]), 'area_id': None, - 'capabilities': dict({ - 'state_class': 'measurement', - }), + 'capabilities': None, 'categories': dict({ }), 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', 'config_subentry_id': None, 'device_class': None, - 'disabled_by': 'integration', + 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_net_consumption_ct_current', + 'entity_id': 'sensor.envoy_<>_battery_capacity', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Net consumption CT current', + 'object_id_base': 'Battery capacity', 'options': dict({ - 'sensor.private': dict({ - 'suggested_unit_of_measurement': 'A', + 'sensor': dict({ + 'suggested_display_precision': 0, }), }), - 'original_device_class': 'current', + 'original_device_class': 'energy_storage', 'original_icon': None, - 'original_name': 'Net consumption CT current', + 'original_name': 'Battery capacity', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_ct_current', - 'unique_id': '<>_net_ct_current', - 'unit_of_measurement': 'A', + 'translation_key': 'max_capacity', + 'unique_id': '<>_max_capacity', + 'unit_of_measurement': 'Wh', + }), + 'state': dict({ + 'attributes': dict({ + 'device_class': 'energy_storage', + 'friendly_name': 'Envoy <> Battery capacity', + 'unit_of_measurement': 'Wh', + }), + 'entity_id': 'sensor.envoy_<>_battery_capacity', + 'state': '3500', }), - 'state': None, }), dict({ 'entity': dict({ @@ -6152,39 +6208,51 @@ 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', 'config_subentry_id': None, 'device_class': None, - 'disabled_by': 'integration', + 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_production_ct_current', + 'entity_id': 'sensor.envoy_<>_current_battery_discharge', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Production CT current', + 'object_id_base': 'Current battery discharge', 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), 'sensor.private': dict({ - 'suggested_unit_of_measurement': 'A', + 'suggested_unit_of_measurement': 'kW', }), }), - 'original_device_class': 'current', + 'original_device_class': 'power', 'original_icon': None, - 'original_name': 'Production CT current', + 'original_name': 'Current battery discharge', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'production_ct_current', - 'unique_id': '<>_production_ct_current', - 'unit_of_measurement': 'A', + 'translation_key': 'battery_discharge', + 'unique_id': '<>_battery_discharge', + 'unit_of_measurement': 'kW', }), - 'state': None, - }), - dict({ - 'entity': dict({ - 'aliases': list([ - ]), + 'state': dict({ + 'attributes': dict({ + 'device_class': 'power', + 'friendly_name': 'Envoy <> Current battery discharge', + 'state_class': 'measurement', + 'unit_of_measurement': 'kW', + }), + 'entity_id': 'sensor.envoy_<>_current_battery_discharge', + 'state': '0.103', + }), + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), 'area_id': None, 'capabilities': dict({ 'state_class': 'measurement', @@ -6197,29 +6265,29 @@ 'disabled_by': 'integration', 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_storage_ct_current', + 'entity_id': 'sensor.envoy_<>_current_battery_discharge_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Storage CT current', + 'object_id_base': 'Current battery discharge l1', 'options': dict({ 'sensor.private': dict({ - 'suggested_unit_of_measurement': 'A', + 'suggested_unit_of_measurement': 'kW', }), }), - 'original_device_class': 'current', + 'original_device_class': 'power', 'original_icon': None, - 'original_name': 'Storage CT current', + 'original_name': 'Current battery discharge l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'storage_ct_current', - 'unique_id': '<>_storage_ct_current', - 'unit_of_measurement': 'A', + 'translation_key': 'battery_discharge_phase', + 'unique_id': '<>_battery_discharge_l1', + 'unit_of_measurement': 'kW', }), 'state': None, }), @@ -6239,26 +6307,29 @@ 'disabled_by': 'integration', 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_power_factor_net_consumption_ct', + 'entity_id': 'sensor.envoy_<>_current_battery_discharge_l2', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Power factor net consumption CT', + 'object_id_base': 'Current battery discharge l2', 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'kW', + }), }), - 'original_device_class': 'power_factor', + 'original_device_class': 'power', 'original_icon': None, - 'original_name': 'Power factor net consumption CT', + 'original_name': 'Current battery discharge l2', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_ct_powerfactor', - 'unique_id': '<>_net_ct_powerfactor', - 'unit_of_measurement': None, + 'translation_key': 'battery_discharge_phase', + 'unique_id': '<>_battery_discharge_l2', + 'unit_of_measurement': 'kW', }), 'state': None, }), @@ -6278,26 +6349,29 @@ 'disabled_by': 'integration', 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_power_factor_production_ct', + 'entity_id': 'sensor.envoy_<>_current_battery_discharge_l3', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Power factor production CT', + 'object_id_base': 'Current battery discharge l3', 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'kW', + }), }), - 'original_device_class': 'power_factor', + 'original_device_class': 'power', 'original_icon': None, - 'original_name': 'Power factor production CT', + 'original_name': 'Current battery discharge l3', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'production_ct_powerfactor', - 'unique_id': '<>_production_ct_powerfactor', - 'unit_of_measurement': None, + 'translation_key': 'battery_discharge_phase', + 'unique_id': '<>_battery_discharge_l3', + 'unit_of_measurement': 'kW', }), 'state': None, }), @@ -6314,31 +6388,46 @@ 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', 'config_subentry_id': None, 'device_class': None, - 'disabled_by': 'integration', + 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_power_factor_storage_ct', + 'entity_id': 'sensor.envoy_<>_current_net_power_consumption', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Power factor storage CT', + 'object_id_base': 'Current net power consumption', 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'kW', + }), }), - 'original_device_class': 'power_factor', + 'original_device_class': 'power', 'original_icon': None, - 'original_name': 'Power factor storage CT', + 'original_name': 'Current net power consumption', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'storage_ct_powerfactor', - 'unique_id': '<>_storage_ct_powerfactor', - 'unit_of_measurement': None, + 'translation_key': 'net_consumption', + 'unique_id': '<>_net_consumption', + 'unit_of_measurement': 'kW', + }), + 'state': dict({ + 'attributes': dict({ + 'device_class': 'power', + 'friendly_name': 'Envoy <> Current net power consumption', + 'state_class': 'measurement', + 'unit_of_measurement': 'kW', + }), + 'entity_id': 'sensor.envoy_<>_current_net_power_consumption', + 'state': '0.101', }), - 'state': None, }), dict({ 'entity': dict({ @@ -6346,11 +6435,7 @@ ]), 'area_id': None, 'capabilities': dict({ - 'options': list([ - 'normal', - 'not-metering', - 'check-wiring', - ]), + 'state_class': 'measurement', }), 'categories': dict({ }), @@ -6359,27 +6444,30 @@ 'device_class': None, 'disabled_by': 'integration', 'domain': 'sensor', - 'entity_category': 'diagnostic', - 'entity_id': 'sensor.envoy_<>_metering_status_net_consumption_ct', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_current_net_power_consumption_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Metering status net consumption CT', + 'object_id_base': 'Current net power consumption l1', 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'kW', + }), }), - 'original_device_class': 'enum', + 'original_device_class': 'power', 'original_icon': None, - 'original_name': 'Metering status net consumption CT', + 'original_name': 'Current net power consumption l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_ct_metering_status', - 'unique_id': '<>_net_consumption_ct_metering_status', - 'unit_of_measurement': None, + 'translation_key': 'net_consumption_phase', + 'unique_id': '<>_net_consumption_l1', + 'unit_of_measurement': 'kW', }), 'state': None, }), @@ -6389,11 +6477,7 @@ ]), 'area_id': None, 'capabilities': dict({ - 'options': list([ - 'normal', - 'not-metering', - 'check-wiring', - ]), + 'state_class': 'measurement', }), 'categories': dict({ }), @@ -6402,27 +6486,30 @@ 'device_class': None, 'disabled_by': 'integration', 'domain': 'sensor', - 'entity_category': 'diagnostic', - 'entity_id': 'sensor.envoy_<>_metering_status_production_ct', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_current_net_power_consumption_l2', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Metering status production CT', + 'object_id_base': 'Current net power consumption l2', 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'kW', + }), }), - 'original_device_class': 'enum', + 'original_device_class': 'power', 'original_icon': None, - 'original_name': 'Metering status production CT', + 'original_name': 'Current net power consumption l2', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'production_ct_metering_status', - 'unique_id': '<>_production_ct_metering_status', - 'unit_of_measurement': None, + 'translation_key': 'net_consumption_phase', + 'unique_id': '<>_net_consumption_l2', + 'unit_of_measurement': 'kW', }), 'state': None, }), @@ -6432,11 +6519,7 @@ ]), 'area_id': None, 'capabilities': dict({ - 'options': list([ - 'normal', - 'not-metering', - 'check-wiring', - ]), + 'state_class': 'measurement', }), 'categories': dict({ }), @@ -6445,27 +6528,30 @@ 'device_class': None, 'disabled_by': 'integration', 'domain': 'sensor', - 'entity_category': 'diagnostic', - 'entity_id': 'sensor.envoy_<>_metering_status_storage_ct', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_current_net_power_consumption_l3', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Metering status storage CT', + 'object_id_base': 'Current net power consumption l3', 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'kW', + }), }), - 'original_device_class': 'enum', + 'original_device_class': 'power', 'original_icon': None, - 'original_name': 'Metering status storage CT', + 'original_name': 'Current net power consumption l3', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'storage_ct_metering_status', - 'unique_id': '<>_storage_ct_metering_status', - 'unit_of_measurement': None, + 'translation_key': 'net_consumption_phase', + 'unique_id': '<>_net_consumption_l3', + 'unit_of_measurement': 'kW', }), 'state': None, }), @@ -6474,44 +6560,63 @@ 'aliases': list([ ]), 'area_id': None, - 'capabilities': None, + 'capabilities': dict({ + 'state_class': 'measurement', + }), 'categories': dict({ }), 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', 'config_subentry_id': None, 'device_class': None, - 'disabled_by': 'integration', + 'disabled_by': None, 'domain': 'sensor', - 'entity_category': 'diagnostic', - 'entity_id': 'sensor.envoy_<>_meter_status_flags_active_net_consumption_ct', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_current_power_consumption', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Meter status flags active net consumption CT', + 'object_id_base': 'Current power consumption', 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'kW', + }), }), - 'original_device_class': None, + 'original_device_class': 'power', 'original_icon': None, - 'original_name': 'Meter status flags active net consumption CT', + 'original_name': 'Current power consumption', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_ct_status_flags', - 'unique_id': '<>_net_consumption_ct_status_flags', - 'unit_of_measurement': None, + 'translation_key': 'current_power_consumption', + 'unique_id': '<>_consumption', + 'unit_of_measurement': 'kW', + }), + 'state': dict({ + 'attributes': dict({ + 'device_class': 'power', + 'friendly_name': 'Envoy <> Current power consumption', + 'state_class': 'measurement', + 'unit_of_measurement': 'kW', + }), + 'entity_id': 'sensor.envoy_<>_current_power_consumption', + 'state': '1.234', }), - 'state': None, }), dict({ 'entity': dict({ 'aliases': list([ ]), 'area_id': None, - 'capabilities': None, + 'capabilities': dict({ + 'state_class': 'measurement', + }), 'categories': dict({ }), 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', @@ -6519,27 +6624,30 @@ 'device_class': None, 'disabled_by': 'integration', 'domain': 'sensor', - 'entity_category': 'diagnostic', - 'entity_id': 'sensor.envoy_<>_meter_status_flags_active_production_ct', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_current_power_consumption_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Meter status flags active production CT', + 'object_id_base': 'Current power consumption l1', 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'kW', + }), }), - 'original_device_class': None, + 'original_device_class': 'power', 'original_icon': None, - 'original_name': 'Meter status flags active production CT', + 'original_name': 'Current power consumption l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'production_ct_status_flags', - 'unique_id': '<>_production_ct_status_flags', - 'unit_of_measurement': None, + 'translation_key': 'current_power_consumption_phase', + 'unique_id': '<>_consumption_l1', + 'unit_of_measurement': 'kW', }), 'state': None, }), @@ -6548,7 +6656,9 @@ 'aliases': list([ ]), 'area_id': None, - 'capabilities': None, + 'capabilities': dict({ + 'state_class': 'measurement', + }), 'categories': dict({ }), 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', @@ -6556,28 +6666,31 @@ 'device_class': None, 'disabled_by': 'integration', 'domain': 'sensor', - 'entity_category': 'diagnostic', - 'entity_id': 'sensor.envoy_<>_meter_status_flags_active_storage_ct', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_current_power_consumption_l2', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Meter status flags active storage CT', + 'object_id_base': 'Current power consumption l2', 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'kW', + }), }), - 'original_device_class': None, + 'original_device_class': 'power', 'original_icon': None, - 'original_name': 'Meter status flags active storage CT', + 'original_name': 'Current power consumption l2', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'storage_ct_status_flags', - 'unique_id': '<>_storage_ct_status_flags', - 'unit_of_measurement': None, - }), + 'translation_key': 'current_power_consumption_phase', + 'unique_id': '<>_consumption_l2', + 'unit_of_measurement': 'kW', + }), 'state': None, }), dict({ @@ -6586,7 +6699,7 @@ ]), 'area_id': None, 'capabilities': dict({ - 'state_class': 'total_increasing', + 'state_class': 'measurement', }), 'categories': dict({ }), @@ -6596,29 +6709,29 @@ 'disabled_by': 'integration', 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_lifetime_net_energy_consumption_l1', + 'entity_id': 'sensor.envoy_<>_current_power_consumption_l3', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Lifetime net energy consumption l1', + 'object_id_base': 'Current power consumption l3', 'options': dict({ 'sensor.private': dict({ - 'suggested_unit_of_measurement': 'MWh', + 'suggested_unit_of_measurement': 'kW', }), }), - 'original_device_class': 'energy', + 'original_device_class': 'power', 'original_icon': None, - 'original_name': 'Lifetime net energy consumption l1', + 'original_name': 'Current power consumption l3', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'lifetime_net_consumption_phase', - 'unique_id': '<>_lifetime_net_consumption_l1', - 'unit_of_measurement': 'MWh', + 'translation_key': 'current_power_consumption_phase', + 'unique_id': '<>_consumption_l3', + 'unit_of_measurement': 'kW', }), 'state': None, }), @@ -6628,41 +6741,53 @@ ]), 'area_id': None, 'capabilities': dict({ - 'state_class': 'total_increasing', + 'state_class': 'measurement', }), 'categories': dict({ }), 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', 'config_subentry_id': None, 'device_class': None, - 'disabled_by': 'integration', + 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_lifetime_battery_energy_discharged_l1', + 'entity_id': 'sensor.envoy_<>_current_power_production', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Lifetime battery energy discharged l1', + 'object_id_base': 'Current power production', 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), 'sensor.private': dict({ - 'suggested_unit_of_measurement': 'MWh', + 'suggested_unit_of_measurement': 'kW', }), }), - 'original_device_class': 'energy', + 'original_device_class': 'power', 'original_icon': None, - 'original_name': 'Lifetime battery energy discharged l1', + 'original_name': 'Current power production', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'lifetime_battery_discharged_phase', - 'unique_id': '<>_lifetime_battery_discharged_l1', - 'unit_of_measurement': 'MWh', + 'translation_key': 'current_power_production', + 'unique_id': '<>_production', + 'unit_of_measurement': 'kW', + }), + 'state': dict({ + 'attributes': dict({ + 'device_class': 'power', + 'friendly_name': 'Envoy <> Current power production', + 'state_class': 'measurement', + 'unit_of_measurement': 'kW', + }), + 'entity_id': 'sensor.envoy_<>_current_power_production', + 'state': '1.234', }), - 'state': None, }), dict({ 'entity': dict({ @@ -6670,7 +6795,7 @@ ]), 'area_id': None, 'capabilities': dict({ - 'state_class': 'total_increasing', + 'state_class': 'measurement', }), 'categories': dict({ }), @@ -6680,29 +6805,29 @@ 'disabled_by': 'integration', 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_lifetime_net_energy_production_l1', + 'entity_id': 'sensor.envoy_<>_current_power_production_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Lifetime net energy production l1', + 'object_id_base': 'Current power production l1', 'options': dict({ 'sensor.private': dict({ - 'suggested_unit_of_measurement': 'MWh', + 'suggested_unit_of_measurement': 'kW', }), }), - 'original_device_class': 'energy', + 'original_device_class': 'power', 'original_icon': None, - 'original_name': 'Lifetime net energy production l1', + 'original_name': 'Current power production l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'lifetime_net_production_phase', - 'unique_id': '<>_lifetime_net_production_l1', - 'unit_of_measurement': 'MWh', + 'translation_key': 'current_power_production_phase', + 'unique_id': '<>_production_l1', + 'unit_of_measurement': 'kW', }), 'state': None, }), @@ -6712,7 +6837,7 @@ ]), 'area_id': None, 'capabilities': dict({ - 'state_class': 'total_increasing', + 'state_class': 'measurement', }), 'categories': dict({ }), @@ -6722,29 +6847,29 @@ 'disabled_by': 'integration', 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_lifetime_battery_energy_charged_l1', + 'entity_id': 'sensor.envoy_<>_current_power_production_l2', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Lifetime battery energy charged l1', + 'object_id_base': 'Current power production l2', 'options': dict({ 'sensor.private': dict({ - 'suggested_unit_of_measurement': 'MWh', + 'suggested_unit_of_measurement': 'kW', }), }), - 'original_device_class': 'energy', + 'original_device_class': 'power', 'original_icon': None, - 'original_name': 'Lifetime battery energy charged l1', + 'original_name': 'Current power production l2', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'lifetime_battery_charged_phase', - 'unique_id': '<>_lifetime_battery_charged_l1', - 'unit_of_measurement': 'MWh', + 'translation_key': 'current_power_production_phase', + 'unique_id': '<>_production_l2', + 'unit_of_measurement': 'kW', }), 'state': None, }), @@ -6764,14 +6889,14 @@ 'disabled_by': 'integration', 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_current_net_power_consumption_l1', + 'entity_id': 'sensor.envoy_<>_current_power_production_l3', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Current net power consumption l1', + 'object_id_base': 'Current power production l3', 'options': dict({ 'sensor.private': dict({ 'suggested_unit_of_measurement': 'kW', @@ -6779,13 +6904,13 @@ }), 'original_device_class': 'power', 'original_icon': None, - 'original_name': 'Current net power consumption l1', + 'original_name': 'Current power production l3', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_consumption_phase', - 'unique_id': '<>_net_consumption_l1', + 'translation_key': 'current_power_production_phase', + 'unique_id': '<>_production_l3', 'unit_of_measurement': 'kW', }), 'state': None, @@ -6795,51 +6920,58 @@ 'aliases': list([ ]), 'area_id': None, - 'capabilities': dict({ - 'state_class': 'measurement', - }), + 'capabilities': None, 'categories': dict({ }), 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', 'config_subentry_id': None, 'device_class': None, - 'disabled_by': 'integration', + 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_current_battery_discharge_l1', + 'entity_id': 'sensor.envoy_<>_energy_consumption_last_seven_days', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Current battery discharge l1', + 'object_id_base': 'Energy consumption last seven days', 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 1, + }), 'sensor.private': dict({ - 'suggested_unit_of_measurement': 'kW', + 'suggested_unit_of_measurement': 'kWh', }), }), - 'original_device_class': 'power', + 'original_device_class': 'energy', 'original_icon': None, - 'original_name': 'Current battery discharge l1', + 'original_name': 'Energy consumption last seven days', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'battery_discharge_phase', - 'unique_id': '<>_battery_discharge_l1', - 'unit_of_measurement': 'kW', + 'translation_key': 'seven_days_consumption', + 'unique_id': '<>_seven_days_consumption', + 'unit_of_measurement': 'kWh', + }), + 'state': dict({ + 'attributes': dict({ + 'device_class': 'energy', + 'friendly_name': 'Envoy <> Energy consumption last seven days', + 'unit_of_measurement': 'kWh', + }), + 'entity_id': 'sensor.envoy_<>_energy_consumption_last_seven_days', + 'state': '1.234', }), - 'state': None, }), dict({ 'entity': dict({ 'aliases': list([ ]), 'area_id': None, - 'capabilities': dict({ - 'state_class': 'measurement', - }), + 'capabilities': None, 'categories': dict({ }), 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', @@ -6848,26 +6980,29 @@ 'disabled_by': 'integration', 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_frequency_net_consumption_ct_l1', + 'entity_id': 'sensor.envoy_<>_energy_consumption_last_seven_days_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Frequency net consumption CT l1', + 'object_id_base': 'Energy consumption last seven days l1', 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'kWh', + }), }), - 'original_device_class': 'frequency', + 'original_device_class': 'energy', 'original_icon': None, - 'original_name': 'Frequency net consumption CT l1', + 'original_name': 'Energy consumption last seven days l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_ct_frequency_phase', - 'unique_id': '<>_frequency_l1', - 'unit_of_measurement': 'Hz', + 'translation_key': 'seven_days_consumption_phase', + 'unique_id': '<>_seven_days_consumption_l1', + 'unit_of_measurement': 'kWh', }), 'state': None, }), @@ -6876,9 +7011,7 @@ 'aliases': list([ ]), 'area_id': None, - 'capabilities': dict({ - 'state_class': 'measurement', - }), + 'capabilities': None, 'categories': dict({ }), 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', @@ -6887,26 +7020,29 @@ 'disabled_by': 'integration', 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_frequency_production_ct_l1', + 'entity_id': 'sensor.envoy_<>_energy_consumption_last_seven_days_l2', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Frequency production CT l1', + 'object_id_base': 'Energy consumption last seven days l2', 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'kWh', + }), }), - 'original_device_class': 'frequency', + 'original_device_class': 'energy', 'original_icon': None, - 'original_name': 'Frequency production CT l1', + 'original_name': 'Energy consumption last seven days l2', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'production_ct_frequency_phase', - 'unique_id': '<>_production_ct_frequency_l1', - 'unit_of_measurement': 'Hz', + 'translation_key': 'seven_days_consumption_phase', + 'unique_id': '<>_seven_days_consumption_l2', + 'unit_of_measurement': 'kWh', }), 'state': None, }), @@ -6915,9 +7051,7 @@ 'aliases': list([ ]), 'area_id': None, - 'capabilities': dict({ - 'state_class': 'measurement', - }), + 'capabilities': None, 'categories': dict({ }), 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', @@ -6926,26 +7060,29 @@ 'disabled_by': 'integration', 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_frequency_storage_ct_l1', + 'entity_id': 'sensor.envoy_<>_energy_consumption_last_seven_days_l3', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Frequency storage CT l1', + 'object_id_base': 'Energy consumption last seven days l3', 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'kWh', + }), }), - 'original_device_class': 'frequency', + 'original_device_class': 'energy', 'original_icon': None, - 'original_name': 'Frequency storage CT l1', + 'original_name': 'Energy consumption last seven days l3', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'storage_ct_frequency_phase', - 'unique_id': '<>_storage_ct_frequency_l1', - 'unit_of_measurement': 'Hz', + 'translation_key': 'seven_days_consumption_phase', + 'unique_id': '<>_seven_days_consumption_l3', + 'unit_of_measurement': 'kWh', }), 'state': None, }), @@ -6955,41 +7092,53 @@ ]), 'area_id': None, 'capabilities': dict({ - 'state_class': 'measurement', + 'state_class': 'total_increasing', }), 'categories': dict({ }), 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', 'config_subentry_id': None, 'device_class': None, - 'disabled_by': 'integration', + 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_voltage_net_consumption_ct_l1', + 'entity_id': 'sensor.envoy_<>_energy_consumption_today', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Voltage net consumption CT l1', + 'object_id_base': 'Energy consumption today', 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 2, + }), 'sensor.private': dict({ - 'suggested_unit_of_measurement': 'V', + 'suggested_unit_of_measurement': 'kWh', }), }), - 'original_device_class': 'voltage', + 'original_device_class': 'energy', 'original_icon': None, - 'original_name': 'Voltage net consumption CT l1', + 'original_name': 'Energy consumption today', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_ct_voltage_phase', - 'unique_id': '<>_voltage_l1', - 'unit_of_measurement': 'V', + 'translation_key': 'daily_consumption', + 'unique_id': '<>_daily_consumption', + 'unit_of_measurement': 'kWh', + }), + 'state': dict({ + 'attributes': dict({ + 'device_class': 'energy', + 'friendly_name': 'Envoy <> Energy consumption today', + 'state_class': 'total_increasing', + 'unit_of_measurement': 'kWh', + }), + 'entity_id': 'sensor.envoy_<>_energy_consumption_today', + 'state': '1.234', }), - 'state': None, }), dict({ 'entity': dict({ @@ -6997,7 +7146,7 @@ ]), 'area_id': None, 'capabilities': dict({ - 'state_class': 'measurement', + 'state_class': 'total_increasing', }), 'categories': dict({ }), @@ -7007,29 +7156,29 @@ 'disabled_by': 'integration', 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_voltage_production_ct_l1', + 'entity_id': 'sensor.envoy_<>_energy_consumption_today_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Voltage production CT l1', + 'object_id_base': 'Energy consumption today l1', 'options': dict({ 'sensor.private': dict({ - 'suggested_unit_of_measurement': 'V', + 'suggested_unit_of_measurement': 'kWh', }), }), - 'original_device_class': 'voltage', + 'original_device_class': 'energy', 'original_icon': None, - 'original_name': 'Voltage production CT l1', + 'original_name': 'Energy consumption today l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'production_ct_voltage_phase', - 'unique_id': '<>_production_ct_voltage_l1', - 'unit_of_measurement': 'V', + 'translation_key': 'daily_consumption_phase', + 'unique_id': '<>_daily_consumption_l1', + 'unit_of_measurement': 'kWh', }), 'state': None, }), @@ -7039,7 +7188,7 @@ ]), 'area_id': None, 'capabilities': dict({ - 'state_class': 'measurement', + 'state_class': 'total_increasing', }), 'categories': dict({ }), @@ -7049,29 +7198,29 @@ 'disabled_by': 'integration', 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_voltage_storage_ct_l1', + 'entity_id': 'sensor.envoy_<>_energy_consumption_today_l2', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Voltage storage CT l1', + 'object_id_base': 'Energy consumption today l2', 'options': dict({ 'sensor.private': dict({ - 'suggested_unit_of_measurement': 'V', + 'suggested_unit_of_measurement': 'kWh', }), }), - 'original_device_class': 'voltage', + 'original_device_class': 'energy', 'original_icon': None, - 'original_name': 'Voltage storage CT l1', + 'original_name': 'Energy consumption today l2', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'storage_ct_voltage_phase', - 'unique_id': '<>_storage_voltage_l1', - 'unit_of_measurement': 'V', + 'translation_key': 'daily_consumption_phase', + 'unique_id': '<>_daily_consumption_l2', + 'unit_of_measurement': 'kWh', }), 'state': None, }), @@ -7081,7 +7230,7 @@ ]), 'area_id': None, 'capabilities': dict({ - 'state_class': 'measurement', + 'state_class': 'total_increasing', }), 'categories': dict({ }), @@ -7091,29 +7240,29 @@ 'disabled_by': 'integration', 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_net_consumption_ct_current_l1', + 'entity_id': 'sensor.envoy_<>_energy_consumption_today_l3', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Net consumption CT current l1', + 'object_id_base': 'Energy consumption today l3', 'options': dict({ 'sensor.private': dict({ - 'suggested_unit_of_measurement': 'A', + 'suggested_unit_of_measurement': 'kWh', }), }), - 'original_device_class': 'current', + 'original_device_class': 'energy', 'original_icon': None, - 'original_name': 'Net consumption CT current l1', + 'original_name': 'Energy consumption today l3', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_ct_current_phase', - 'unique_id': '<>_net_ct_current_l1', - 'unit_of_measurement': 'A', + 'translation_key': 'daily_consumption_phase', + 'unique_id': '<>_daily_consumption_l3', + 'unit_of_measurement': 'kWh', }), 'state': None, }), @@ -7122,51 +7271,58 @@ 'aliases': list([ ]), 'area_id': None, - 'capabilities': dict({ - 'state_class': 'measurement', - }), + 'capabilities': None, 'categories': dict({ }), 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', 'config_subentry_id': None, 'device_class': None, - 'disabled_by': 'integration', + 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_production_ct_current_l1', + 'entity_id': 'sensor.envoy_<>_energy_production_last_seven_days', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Production CT current l1', + 'object_id_base': 'Energy production last seven days', 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 1, + }), 'sensor.private': dict({ - 'suggested_unit_of_measurement': 'A', + 'suggested_unit_of_measurement': 'kWh', }), }), - 'original_device_class': 'current', + 'original_device_class': 'energy', 'original_icon': None, - 'original_name': 'Production CT current l1', + 'original_name': 'Energy production last seven days', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'production_ct_current_phase', - 'unique_id': '<>_production_ct_current_l1', - 'unit_of_measurement': 'A', + 'translation_key': 'seven_days_production', + 'unique_id': '<>_seven_days_production', + 'unit_of_measurement': 'kWh', + }), + 'state': dict({ + 'attributes': dict({ + 'device_class': 'energy', + 'friendly_name': 'Envoy <> Energy production last seven days', + 'unit_of_measurement': 'kWh', + }), + 'entity_id': 'sensor.envoy_<>_energy_production_last_seven_days', + 'state': '1.234', }), - 'state': None, }), dict({ 'entity': dict({ 'aliases': list([ ]), 'area_id': None, - 'capabilities': dict({ - 'state_class': 'measurement', - }), + 'capabilities': None, 'categories': dict({ }), 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', @@ -7175,29 +7331,29 @@ 'disabled_by': 'integration', 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_storage_ct_current_l1', + 'entity_id': 'sensor.envoy_<>_energy_production_last_seven_days_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Storage CT current l1', + 'object_id_base': 'Energy production last seven days l1', 'options': dict({ 'sensor.private': dict({ - 'suggested_unit_of_measurement': 'A', + 'suggested_unit_of_measurement': 'kWh', }), }), - 'original_device_class': 'current', + 'original_device_class': 'energy', 'original_icon': None, - 'original_name': 'Storage CT current l1', + 'original_name': 'Energy production last seven days l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'storage_ct_current_phase', - 'unique_id': '<>_storage_ct_current_l1', - 'unit_of_measurement': 'A', + 'translation_key': 'seven_days_production_phase', + 'unique_id': '<>_seven_days_production_l1', + 'unit_of_measurement': 'kWh', }), 'state': None, }), @@ -7206,9 +7362,7 @@ 'aliases': list([ ]), 'area_id': None, - 'capabilities': dict({ - 'state_class': 'measurement', - }), + 'capabilities': None, 'categories': dict({ }), 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', @@ -7217,26 +7371,29 @@ 'disabled_by': 'integration', 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_power_factor_net_consumption_ct_l1', + 'entity_id': 'sensor.envoy_<>_energy_production_last_seven_days_l2', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Power factor net consumption CT l1', + 'object_id_base': 'Energy production last seven days l2', 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'kWh', + }), }), - 'original_device_class': 'power_factor', + 'original_device_class': 'energy', 'original_icon': None, - 'original_name': 'Power factor net consumption CT l1', + 'original_name': 'Energy production last seven days l2', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_ct_powerfactor_phase', - 'unique_id': '<>_net_ct_powerfactor_l1', - 'unit_of_measurement': None, + 'translation_key': 'seven_days_production_phase', + 'unique_id': '<>_seven_days_production_l2', + 'unit_of_measurement': 'kWh', }), 'state': None, }), @@ -7245,9 +7402,7 @@ 'aliases': list([ ]), 'area_id': None, - 'capabilities': dict({ - 'state_class': 'measurement', - }), + 'capabilities': None, 'categories': dict({ }), 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', @@ -7256,26 +7411,29 @@ 'disabled_by': 'integration', 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_power_factor_production_ct_l1', + 'entity_id': 'sensor.envoy_<>_energy_production_last_seven_days_l3', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Power factor production CT l1', + 'object_id_base': 'Energy production last seven days l3', 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'kWh', + }), }), - 'original_device_class': 'power_factor', + 'original_device_class': 'energy', 'original_icon': None, - 'original_name': 'Power factor production CT l1', + 'original_name': 'Energy production last seven days l3', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'production_ct_powerfactor_phase', - 'unique_id': '<>_production_ct_powerfactor_l1', - 'unit_of_measurement': None, + 'translation_key': 'seven_days_production_phase', + 'unique_id': '<>_seven_days_production_l3', + 'unit_of_measurement': 'kWh', }), 'state': None, }), @@ -7285,38 +7443,53 @@ ]), 'area_id': None, 'capabilities': dict({ - 'state_class': 'measurement', + 'state_class': 'total_increasing', }), 'categories': dict({ }), 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', 'config_subentry_id': None, 'device_class': None, - 'disabled_by': 'integration', + 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_power_factor_storage_ct_l1', + 'entity_id': 'sensor.envoy_<>_energy_production_today', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Power factor storage CT l1', + 'object_id_base': 'Energy production today', 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 2, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'kWh', + }), }), - 'original_device_class': 'power_factor', + 'original_device_class': 'energy', 'original_icon': None, - 'original_name': 'Power factor storage CT l1', + 'original_name': 'Energy production today', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'storage_ct_powerfactor_phase', - 'unique_id': '<>_storage_ct_powerfactor_l1', - 'unit_of_measurement': None, + 'translation_key': 'daily_production', + 'unique_id': '<>_daily_production', + 'unit_of_measurement': 'kWh', + }), + 'state': dict({ + 'attributes': dict({ + 'device_class': 'energy', + 'friendly_name': 'Envoy <> Energy production today', + 'state_class': 'total_increasing', + 'unit_of_measurement': 'kWh', + }), + 'entity_id': 'sensor.envoy_<>_energy_production_today', + 'state': '1.234', }), - 'state': None, }), dict({ 'entity': dict({ @@ -7324,11 +7497,7 @@ ]), 'area_id': None, 'capabilities': dict({ - 'options': list([ - 'normal', - 'not-metering', - 'check-wiring', - ]), + 'state_class': 'total_increasing', }), 'categories': dict({ }), @@ -7337,27 +7506,30 @@ 'device_class': None, 'disabled_by': 'integration', 'domain': 'sensor', - 'entity_category': 'diagnostic', - 'entity_id': 'sensor.envoy_<>_metering_status_net_consumption_ct_l1', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_energy_production_today_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Metering status net consumption CT l1', + 'object_id_base': 'Energy production today l1', 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'kWh', + }), }), - 'original_device_class': 'enum', + 'original_device_class': 'energy', 'original_icon': None, - 'original_name': 'Metering status net consumption CT l1', + 'original_name': 'Energy production today l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_ct_metering_status_phase', - 'unique_id': '<>_net_consumption_ct_metering_status_l1', - 'unit_of_measurement': None, + 'translation_key': 'daily_production_phase', + 'unique_id': '<>_daily_production_l1', + 'unit_of_measurement': 'kWh', }), 'state': None, }), @@ -7367,11 +7539,7 @@ ]), 'area_id': None, 'capabilities': dict({ - 'options': list([ - 'normal', - 'not-metering', - 'check-wiring', - ]), + 'state_class': 'total_increasing', }), 'categories': dict({ }), @@ -7380,27 +7548,30 @@ 'device_class': None, 'disabled_by': 'integration', 'domain': 'sensor', - 'entity_category': 'diagnostic', - 'entity_id': 'sensor.envoy_<>_metering_status_production_ct_l1', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_energy_production_today_l2', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Metering status production CT l1', + 'object_id_base': 'Energy production today l2', 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'kWh', + }), }), - 'original_device_class': 'enum', + 'original_device_class': 'energy', 'original_icon': None, - 'original_name': 'Metering status production CT l1', + 'original_name': 'Energy production today l2', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'production_ct_metering_status_phase', - 'unique_id': '<>_production_ct_metering_status_l1', - 'unit_of_measurement': None, + 'translation_key': 'daily_production_phase', + 'unique_id': '<>_daily_production_l2', + 'unit_of_measurement': 'kWh', }), 'state': None, }), @@ -7410,11 +7581,7 @@ ]), 'area_id': None, 'capabilities': dict({ - 'options': list([ - 'normal', - 'not-metering', - 'check-wiring', - ]), + 'state_class': 'total_increasing', }), 'categories': dict({ }), @@ -7423,27 +7590,30 @@ 'device_class': None, 'disabled_by': 'integration', 'domain': 'sensor', - 'entity_category': 'diagnostic', - 'entity_id': 'sensor.envoy_<>_metering_status_storage_ct_l1', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_energy_production_today_l3', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Metering status storage CT l1', + 'object_id_base': 'Energy production today l3', 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'kWh', + }), }), - 'original_device_class': 'enum', + 'original_device_class': 'energy', 'original_icon': None, - 'original_name': 'Metering status storage CT l1', + 'original_name': 'Energy production today l3', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'storage_ct_metering_status_phase', - 'unique_id': '<>_storage_ct_metering_status_l1', - 'unit_of_measurement': None, + 'translation_key': 'daily_production_phase', + 'unique_id': '<>_daily_production_l3', + 'unit_of_measurement': 'kWh', }), 'state': None, }), @@ -7452,7 +7622,9 @@ 'aliases': list([ ]), 'area_id': None, - 'capabilities': None, + 'capabilities': dict({ + 'state_class': 'measurement', + }), 'categories': dict({ }), 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', @@ -7460,27 +7632,30 @@ 'device_class': None, 'disabled_by': 'integration', 'domain': 'sensor', - 'entity_category': 'diagnostic', - 'entity_id': 'sensor.envoy_<>_meter_status_flags_active_net_consumption_ct_l1', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_evse_ct_current', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Meter status flags active net consumption CT l1', + 'object_id_base': 'EVSE CT current', 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'A', + }), }), - 'original_device_class': None, + 'original_device_class': 'current', 'original_icon': None, - 'original_name': 'Meter status flags active net consumption CT l1', + 'original_name': 'EVSE CT current', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_ct_status_flags_phase', - 'unique_id': '<>_net_consumption_ct_status_flags_l1', - 'unit_of_measurement': None, + 'translation_key': 'evse_ct_current', + 'unique_id': '<>_evse_ct_current', + 'unit_of_measurement': 'A', }), 'state': None, }), @@ -7489,7 +7664,9 @@ 'aliases': list([ ]), 'area_id': None, - 'capabilities': None, + 'capabilities': dict({ + 'state_class': 'measurement', + }), 'categories': dict({ }), 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', @@ -7497,27 +7674,30 @@ 'device_class': None, 'disabled_by': 'integration', 'domain': 'sensor', - 'entity_category': 'diagnostic', - 'entity_id': 'sensor.envoy_<>_meter_status_flags_active_production_ct_l1', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_evse_ct_current_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Meter status flags active production CT l1', + 'object_id_base': 'EVSE CT current l1', 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'A', + }), }), - 'original_device_class': None, + 'original_device_class': 'current', 'original_icon': None, - 'original_name': 'Meter status flags active production CT l1', + 'original_name': 'EVSE CT current l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'production_ct_status_flags_phase', - 'unique_id': '<>_production_ct_status_flags_l1', - 'unit_of_measurement': None, + 'translation_key': 'evse_ct_current_phase', + 'unique_id': '<>_evse_ct_current_l1', + 'unit_of_measurement': 'A', }), 'state': None, }), @@ -7526,7 +7706,9 @@ 'aliases': list([ ]), 'area_id': None, - 'capabilities': None, + 'capabilities': dict({ + 'state_class': 'measurement', + }), 'categories': dict({ }), 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', @@ -7534,27 +7716,30 @@ 'device_class': None, 'disabled_by': 'integration', 'domain': 'sensor', - 'entity_category': 'diagnostic', - 'entity_id': 'sensor.envoy_<>_meter_status_flags_active_storage_ct_l1', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_evse_ct_current_l2', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Meter status flags active storage CT l1', + 'object_id_base': 'EVSE CT current l2', 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'A', + }), }), - 'original_device_class': None, + 'original_device_class': 'current', 'original_icon': None, - 'original_name': 'Meter status flags active storage CT l1', + 'original_name': 'EVSE CT current l2', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'storage_ct_status_flags_phase', - 'unique_id': '<>_storage_ct_status_flags_l1', - 'unit_of_measurement': None, + 'translation_key': 'evse_ct_current_phase', + 'unique_id': '<>_evse_ct_current_l2', + 'unit_of_measurement': 'A', }), 'state': None, }), @@ -7564,7 +7749,7 @@ ]), 'area_id': None, 'capabilities': dict({ - 'state_class': 'total_increasing', + 'state_class': 'measurement', }), 'categories': dict({ }), @@ -7574,29 +7759,29 @@ 'disabled_by': 'integration', 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_lifetime_net_energy_consumption_l2', + 'entity_id': 'sensor.envoy_<>_evse_ct_current_l3', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Lifetime net energy consumption l2', + 'object_id_base': 'EVSE CT current l3', 'options': dict({ 'sensor.private': dict({ - 'suggested_unit_of_measurement': 'MWh', + 'suggested_unit_of_measurement': 'A', }), }), - 'original_device_class': 'energy', + 'original_device_class': 'current', 'original_icon': None, - 'original_name': 'Lifetime net energy consumption l2', + 'original_name': 'EVSE CT current l3', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'lifetime_net_consumption_phase', - 'unique_id': '<>_lifetime_net_consumption_l2', - 'unit_of_measurement': 'MWh', + 'translation_key': 'evse_ct_current_phase', + 'unique_id': '<>_evse_ct_current_l3', + 'unit_of_measurement': 'A', }), 'state': None, }), @@ -7613,34 +7798,46 @@ 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', 'config_subentry_id': None, 'device_class': None, - 'disabled_by': 'integration', + 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_lifetime_battery_energy_discharged_l2', + 'entity_id': 'sensor.envoy_<>_evse_ct_energy_delivered', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Lifetime battery energy discharged l2', + 'object_id_base': 'EVSE CT energy delivered', 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), 'sensor.private': dict({ 'suggested_unit_of_measurement': 'MWh', }), }), 'original_device_class': 'energy', 'original_icon': None, - 'original_name': 'Lifetime battery energy discharged l2', + 'original_name': 'EVSE CT energy delivered', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'lifetime_battery_discharged_phase', - 'unique_id': '<>_lifetime_battery_discharged_l2', + 'translation_key': 'evse_ct_energy_delivered', + 'unique_id': '<>_evse_ct_energy_delivered', 'unit_of_measurement': 'MWh', }), - 'state': None, + 'state': dict({ + 'attributes': dict({ + 'device_class': 'energy', + 'friendly_name': 'Envoy <> EVSE CT energy delivered', + 'state_class': 'total_increasing', + 'unit_of_measurement': 'MWh', + }), + 'entity_id': 'sensor.envoy_<>_evse_ct_energy_delivered', + 'state': '0.06<>', + }), }), dict({ 'entity': dict({ @@ -7658,14 +7855,14 @@ 'disabled_by': 'integration', 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_lifetime_net_energy_production_l2', + 'entity_id': 'sensor.envoy_<>_evse_ct_energy_delivered_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Lifetime net energy production l2', + 'object_id_base': 'EVSE CT energy delivered l1', 'options': dict({ 'sensor.private': dict({ 'suggested_unit_of_measurement': 'MWh', @@ -7673,13 +7870,13 @@ }), 'original_device_class': 'energy', 'original_icon': None, - 'original_name': 'Lifetime net energy production l2', + 'original_name': 'EVSE CT energy delivered l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'lifetime_net_production_phase', - 'unique_id': '<>_lifetime_net_production_l2', + 'translation_key': 'evse_ct_energy_delivered_phase', + 'unique_id': '<>_evse_ct_energy_delivered_l1', 'unit_of_measurement': 'MWh', }), 'state': None, @@ -7700,14 +7897,14 @@ 'disabled_by': 'integration', 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_lifetime_battery_energy_charged_l2', + 'entity_id': 'sensor.envoy_<>_evse_ct_energy_delivered_l2', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Lifetime battery energy charged l2', + 'object_id_base': 'EVSE CT energy delivered l2', 'options': dict({ 'sensor.private': dict({ 'suggested_unit_of_measurement': 'MWh', @@ -7715,13 +7912,13 @@ }), 'original_device_class': 'energy', 'original_icon': None, - 'original_name': 'Lifetime battery energy charged l2', + 'original_name': 'EVSE CT energy delivered l2', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'lifetime_battery_charged_phase', - 'unique_id': '<>_lifetime_battery_charged_l2', + 'translation_key': 'evse_ct_energy_delivered_phase', + 'unique_id': '<>_evse_ct_energy_delivered_l2', 'unit_of_measurement': 'MWh', }), 'state': None, @@ -7732,7 +7929,7 @@ ]), 'area_id': None, 'capabilities': dict({ - 'state_class': 'measurement', + 'state_class': 'total_increasing', }), 'categories': dict({ }), @@ -7742,29 +7939,29 @@ 'disabled_by': 'integration', 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_current_net_power_consumption_l2', + 'entity_id': 'sensor.envoy_<>_evse_ct_energy_delivered_l3', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Current net power consumption l2', + 'object_id_base': 'EVSE CT energy delivered l3', 'options': dict({ 'sensor.private': dict({ - 'suggested_unit_of_measurement': 'kW', + 'suggested_unit_of_measurement': 'MWh', }), }), - 'original_device_class': 'power', + 'original_device_class': 'energy', 'original_icon': None, - 'original_name': 'Current net power consumption l2', + 'original_name': 'EVSE CT energy delivered l3', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_consumption_phase', - 'unique_id': '<>_net_consumption_l2', - 'unit_of_measurement': 'kW', + 'translation_key': 'evse_ct_energy_delivered_phase', + 'unique_id': '<>_evse_ct_energy_delivered_l3', + 'unit_of_measurement': 'MWh', }), 'state': None, }), @@ -7774,41 +7971,53 @@ ]), 'area_id': None, 'capabilities': dict({ - 'state_class': 'measurement', + 'state_class': 'total_increasing', }), 'categories': dict({ }), 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', 'config_subentry_id': None, 'device_class': None, - 'disabled_by': 'integration', + 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_current_battery_discharge_l2', + 'entity_id': 'sensor.envoy_<>_evse_ct_energy_received', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Current battery discharge l2', + 'object_id_base': 'EVSE CT energy received', 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), 'sensor.private': dict({ - 'suggested_unit_of_measurement': 'kW', + 'suggested_unit_of_measurement': 'MWh', }), }), - 'original_device_class': 'power', + 'original_device_class': 'energy', 'original_icon': None, - 'original_name': 'Current battery discharge l2', + 'original_name': 'EVSE CT energy received', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'battery_discharge_phase', - 'unique_id': '<>_battery_discharge_l2', - 'unit_of_measurement': 'kW', + 'translation_key': 'evse_ct_energy_received', + 'unique_id': '<>_evse_ct_energy_received', + 'unit_of_measurement': 'MWh', + }), + 'state': dict({ + 'attributes': dict({ + 'device_class': 'energy', + 'friendly_name': 'Envoy <> EVSE CT energy received', + 'state_class': 'total_increasing', + 'unit_of_measurement': 'MWh', + }), + 'entity_id': 'sensor.envoy_<>_evse_ct_energy_received', + 'state': '0.062345', }), - 'state': None, }), dict({ 'entity': dict({ @@ -7816,7 +8025,7 @@ ]), 'area_id': None, 'capabilities': dict({ - 'state_class': 'measurement', + 'state_class': 'total_increasing', }), 'categories': dict({ }), @@ -7826,26 +8035,29 @@ 'disabled_by': 'integration', 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_frequency_net_consumption_ct_l2', + 'entity_id': 'sensor.envoy_<>_evse_ct_energy_received_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Frequency net consumption CT l2', + 'object_id_base': 'EVSE CT energy received l1', 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'MWh', + }), }), - 'original_device_class': 'frequency', + 'original_device_class': 'energy', 'original_icon': None, - 'original_name': 'Frequency net consumption CT l2', + 'original_name': 'EVSE CT energy received l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_ct_frequency_phase', - 'unique_id': '<>_frequency_l2', - 'unit_of_measurement': 'Hz', + 'translation_key': 'evse_ct_energy_received_phase', + 'unique_id': '<>_evse_ct_energy_received_l1', + 'unit_of_measurement': 'MWh', }), 'state': None, }), @@ -7855,7 +8067,7 @@ ]), 'area_id': None, 'capabilities': dict({ - 'state_class': 'measurement', + 'state_class': 'total_increasing', }), 'categories': dict({ }), @@ -7865,26 +8077,29 @@ 'disabled_by': 'integration', 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_frequency_production_ct_l2', + 'entity_id': 'sensor.envoy_<>_evse_ct_energy_received_l2', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Frequency production CT l2', + 'object_id_base': 'EVSE CT energy received l2', 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'MWh', + }), }), - 'original_device_class': 'frequency', + 'original_device_class': 'energy', 'original_icon': None, - 'original_name': 'Frequency production CT l2', + 'original_name': 'EVSE CT energy received l2', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'production_ct_frequency_phase', - 'unique_id': '<>_production_ct_frequency_l2', - 'unit_of_measurement': 'Hz', + 'translation_key': 'evse_ct_energy_received_phase', + 'unique_id': '<>_evse_ct_energy_received_l2', + 'unit_of_measurement': 'MWh', }), 'state': None, }), @@ -7894,7 +8109,7 @@ ]), 'area_id': None, 'capabilities': dict({ - 'state_class': 'measurement', + 'state_class': 'total_increasing', }), 'categories': dict({ }), @@ -7904,26 +8119,29 @@ 'disabled_by': 'integration', 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_frequency_storage_ct_l2', + 'entity_id': 'sensor.envoy_<>_evse_ct_energy_received_l3', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Frequency storage CT l2', + 'object_id_base': 'EVSE CT energy received l3', 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'MWh', + }), }), - 'original_device_class': 'frequency', + 'original_device_class': 'energy', 'original_icon': None, - 'original_name': 'Frequency storage CT l2', + 'original_name': 'EVSE CT energy received l3', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'storage_ct_frequency_phase', - 'unique_id': '<>_storage_ct_frequency_l2', - 'unit_of_measurement': 'Hz', + 'translation_key': 'evse_ct_energy_received_phase', + 'unique_id': '<>_evse_ct_energy_received_l3', + 'unit_of_measurement': 'MWh', }), 'state': None, }), @@ -7940,34 +8158,46 @@ 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', 'config_subentry_id': None, 'device_class': None, - 'disabled_by': 'integration', + 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_voltage_net_consumption_ct_l2', + 'entity_id': 'sensor.envoy_<>_evse_ct_power', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Voltage net consumption CT l2', + 'object_id_base': 'EVSE CT power', 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), 'sensor.private': dict({ - 'suggested_unit_of_measurement': 'V', + 'suggested_unit_of_measurement': 'kW', }), }), - 'original_device_class': 'voltage', + 'original_device_class': 'power', 'original_icon': None, - 'original_name': 'Voltage net consumption CT l2', + 'original_name': 'EVSE CT power', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_ct_voltage_phase', - 'unique_id': '<>_voltage_l2', - 'unit_of_measurement': 'V', + 'translation_key': 'evse_ct_power', + 'unique_id': '<>_evse_ct_power', + 'unit_of_measurement': 'kW', + }), + 'state': dict({ + 'attributes': dict({ + 'device_class': 'power', + 'friendly_name': 'Envoy <> EVSE CT power', + 'state_class': 'measurement', + 'unit_of_measurement': 'kW', + }), + 'entity_id': 'sensor.envoy_<>_evse_ct_power', + 'state': '0.106', }), - 'state': None, }), dict({ 'entity': dict({ @@ -7985,29 +8215,29 @@ 'disabled_by': 'integration', 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_voltage_production_ct_l2', + 'entity_id': 'sensor.envoy_<>_evse_ct_power_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Voltage production CT l2', + 'object_id_base': 'EVSE CT power l1', 'options': dict({ 'sensor.private': dict({ - 'suggested_unit_of_measurement': 'V', + 'suggested_unit_of_measurement': 'kW', }), }), - 'original_device_class': 'voltage', + 'original_device_class': 'power', 'original_icon': None, - 'original_name': 'Voltage production CT l2', + 'original_name': 'EVSE CT power l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'production_ct_voltage_phase', - 'unique_id': '<>_production_ct_voltage_l2', - 'unit_of_measurement': 'V', + 'translation_key': 'evse_ct_power_phase', + 'unique_id': '<>_evse_ct_power_l1', + 'unit_of_measurement': 'kW', }), 'state': None, }), @@ -8027,29 +8257,29 @@ 'disabled_by': 'integration', 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_voltage_storage_ct_l2', + 'entity_id': 'sensor.envoy_<>_evse_ct_power_l2', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Voltage storage CT l2', + 'object_id_base': 'EVSE CT power l2', 'options': dict({ 'sensor.private': dict({ - 'suggested_unit_of_measurement': 'V', + 'suggested_unit_of_measurement': 'kW', }), }), - 'original_device_class': 'voltage', + 'original_device_class': 'power', 'original_icon': None, - 'original_name': 'Voltage storage CT l2', + 'original_name': 'EVSE CT power l2', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'storage_ct_voltage_phase', - 'unique_id': '<>_storage_voltage_l2', - 'unit_of_measurement': 'V', + 'translation_key': 'evse_ct_power_phase', + 'unique_id': '<>_evse_ct_power_l2', + 'unit_of_measurement': 'kW', }), 'state': None, }), @@ -8069,29 +8299,29 @@ 'disabled_by': 'integration', 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_net_consumption_ct_current_l2', + 'entity_id': 'sensor.envoy_<>_evse_ct_power_l3', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Net consumption CT current l2', + 'object_id_base': 'EVSE CT power l3', 'options': dict({ 'sensor.private': dict({ - 'suggested_unit_of_measurement': 'A', + 'suggested_unit_of_measurement': 'kW', }), }), - 'original_device_class': 'current', + 'original_device_class': 'power', 'original_icon': None, - 'original_name': 'Net consumption CT current l2', + 'original_name': 'EVSE CT power l3', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_ct_current_phase', - 'unique_id': '<>_net_ct_current_l2', - 'unit_of_measurement': 'A', + 'translation_key': 'evse_ct_power_phase', + 'unique_id': '<>_evse_ct_power_l3', + 'unit_of_measurement': 'kW', }), 'state': None, }), @@ -8111,29 +8341,26 @@ 'disabled_by': 'integration', 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_production_ct_current_l2', + 'entity_id': 'sensor.envoy_<>_frequency_backfeed_ct', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Production CT current l2', + 'object_id_base': 'Frequency backfeed CT', 'options': dict({ - 'sensor.private': dict({ - 'suggested_unit_of_measurement': 'A', - }), }), - 'original_device_class': 'current', + 'original_device_class': 'frequency', 'original_icon': None, - 'original_name': 'Production CT current l2', + 'original_name': 'Frequency backfeed CT', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'production_ct_current_phase', - 'unique_id': '<>_production_ct_current_l2', - 'unit_of_measurement': 'A', + 'translation_key': 'backfeed_ct_frequency', + 'unique_id': '<>_backfeed_ct_frequency', + 'unit_of_measurement': 'Hz', }), 'state': None, }), @@ -8153,29 +8380,26 @@ 'disabled_by': 'integration', 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_storage_ct_current_l2', + 'entity_id': 'sensor.envoy_<>_frequency_backfeed_ct_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Storage CT current l2', + 'object_id_base': 'Frequency backfeed CT l1', 'options': dict({ - 'sensor.private': dict({ - 'suggested_unit_of_measurement': 'A', - }), }), - 'original_device_class': 'current', + 'original_device_class': 'frequency', 'original_icon': None, - 'original_name': 'Storage CT current l2', + 'original_name': 'Frequency backfeed CT l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'storage_ct_current_phase', - 'unique_id': '<>_storage_ct_current_l2', - 'unit_of_measurement': 'A', + 'translation_key': 'backfeed_ct_frequency_phase', + 'unique_id': '<>_backfeed_ct_frequency_l1', + 'unit_of_measurement': 'Hz', }), 'state': None, }), @@ -8195,26 +8419,26 @@ 'disabled_by': 'integration', 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_power_factor_net_consumption_ct_l2', + 'entity_id': 'sensor.envoy_<>_frequency_backfeed_ct_l2', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Power factor net consumption CT l2', + 'object_id_base': 'Frequency backfeed CT l2', 'options': dict({ }), - 'original_device_class': 'power_factor', + 'original_device_class': 'frequency', 'original_icon': None, - 'original_name': 'Power factor net consumption CT l2', + 'original_name': 'Frequency backfeed CT l2', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_ct_powerfactor_phase', - 'unique_id': '<>_net_ct_powerfactor_l2', - 'unit_of_measurement': None, + 'translation_key': 'backfeed_ct_frequency_phase', + 'unique_id': '<>_backfeed_ct_frequency_l2', + 'unit_of_measurement': 'Hz', }), 'state': None, }), @@ -8234,26 +8458,26 @@ 'disabled_by': 'integration', 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_power_factor_production_ct_l2', + 'entity_id': 'sensor.envoy_<>_frequency_backfeed_ct_l3', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Power factor production CT l2', + 'object_id_base': 'Frequency backfeed CT l3', 'options': dict({ }), - 'original_device_class': 'power_factor', + 'original_device_class': 'frequency', 'original_icon': None, - 'original_name': 'Power factor production CT l2', + 'original_name': 'Frequency backfeed CT l3', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'production_ct_powerfactor_phase', - 'unique_id': '<>_production_ct_powerfactor_l2', - 'unit_of_measurement': None, + 'translation_key': 'backfeed_ct_frequency_phase', + 'unique_id': '<>_backfeed_ct_frequency_l3', + 'unit_of_measurement': 'Hz', }), 'state': None, }), @@ -8273,26 +8497,26 @@ 'disabled_by': 'integration', 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_power_factor_storage_ct_l2', + 'entity_id': 'sensor.envoy_<>_frequency_evse_ct', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Power factor storage CT l2', + 'object_id_base': 'Frequency EVSE CT', 'options': dict({ }), - 'original_device_class': 'power_factor', + 'original_device_class': 'frequency', 'original_icon': None, - 'original_name': 'Power factor storage CT l2', + 'original_name': 'Frequency EVSE CT', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'storage_ct_powerfactor_phase', - 'unique_id': '<>_storage_ct_powerfactor_l2', - 'unit_of_measurement': None, + 'translation_key': 'evse_ct_frequency', + 'unique_id': '<>_evse_ct_frequency', + 'unit_of_measurement': 'Hz', }), 'state': None, }), @@ -8302,11 +8526,7 @@ ]), 'area_id': None, 'capabilities': dict({ - 'options': list([ - 'normal', - 'not-metering', - 'check-wiring', - ]), + 'state_class': 'measurement', }), 'categories': dict({ }), @@ -8315,27 +8535,27 @@ 'device_class': None, 'disabled_by': 'integration', 'domain': 'sensor', - 'entity_category': 'diagnostic', - 'entity_id': 'sensor.envoy_<>_metering_status_net_consumption_ct_l2', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_frequency_evse_ct_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Metering status net consumption CT l2', + 'object_id_base': 'Frequency EVSE CT l1', 'options': dict({ }), - 'original_device_class': 'enum', + 'original_device_class': 'frequency', 'original_icon': None, - 'original_name': 'Metering status net consumption CT l2', + 'original_name': 'Frequency EVSE CT l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_ct_metering_status_phase', - 'unique_id': '<>_net_consumption_ct_metering_status_l2', - 'unit_of_measurement': None, + 'translation_key': 'evse_ct_frequency_phase', + 'unique_id': '<>_evse_ct_frequency_l1', + 'unit_of_measurement': 'Hz', }), 'state': None, }), @@ -8345,11 +8565,7 @@ ]), 'area_id': None, 'capabilities': dict({ - 'options': list([ - 'normal', - 'not-metering', - 'check-wiring', - ]), + 'state_class': 'measurement', }), 'categories': dict({ }), @@ -8358,27 +8574,27 @@ 'device_class': None, 'disabled_by': 'integration', 'domain': 'sensor', - 'entity_category': 'diagnostic', - 'entity_id': 'sensor.envoy_<>_metering_status_production_ct_l2', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_frequency_evse_ct_l2', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Metering status production CT l2', + 'object_id_base': 'Frequency EVSE CT l2', 'options': dict({ }), - 'original_device_class': 'enum', + 'original_device_class': 'frequency', 'original_icon': None, - 'original_name': 'Metering status production CT l2', + 'original_name': 'Frequency EVSE CT l2', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'production_ct_metering_status_phase', - 'unique_id': '<>_production_ct_metering_status_l2', - 'unit_of_measurement': None, + 'translation_key': 'evse_ct_frequency_phase', + 'unique_id': '<>_evse_ct_frequency_l2', + 'unit_of_measurement': 'Hz', }), 'state': None, }), @@ -8388,11 +8604,7 @@ ]), 'area_id': None, 'capabilities': dict({ - 'options': list([ - 'normal', - 'not-metering', - 'check-wiring', - ]), + 'state_class': 'measurement', }), 'categories': dict({ }), @@ -8401,27 +8613,27 @@ 'device_class': None, 'disabled_by': 'integration', 'domain': 'sensor', - 'entity_category': 'diagnostic', - 'entity_id': 'sensor.envoy_<>_metering_status_storage_ct_l2', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_frequency_evse_ct_l3', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Metering status storage CT l2', + 'object_id_base': 'Frequency EVSE CT l3', 'options': dict({ }), - 'original_device_class': 'enum', + 'original_device_class': 'frequency', 'original_icon': None, - 'original_name': 'Metering status storage CT l2', + 'original_name': 'Frequency EVSE CT l3', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'storage_ct_metering_status_phase', - 'unique_id': '<>_storage_ct_metering_status_l2', - 'unit_of_measurement': None, + 'translation_key': 'evse_ct_frequency_phase', + 'unique_id': '<>_evse_ct_frequency_l3', + 'unit_of_measurement': 'Hz', }), 'state': None, }), @@ -8430,7 +8642,9 @@ 'aliases': list([ ]), 'area_id': None, - 'capabilities': None, + 'capabilities': dict({ + 'state_class': 'measurement', + }), 'categories': dict({ }), 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', @@ -8438,27 +8652,27 @@ 'device_class': None, 'disabled_by': 'integration', 'domain': 'sensor', - 'entity_category': 'diagnostic', - 'entity_id': 'sensor.envoy_<>_meter_status_flags_active_net_consumption_ct_l2', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_frequency_load_ct', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Meter status flags active net consumption CT l2', + 'object_id_base': 'Frequency load CT', 'options': dict({ }), - 'original_device_class': None, + 'original_device_class': 'frequency', 'original_icon': None, - 'original_name': 'Meter status flags active net consumption CT l2', + 'original_name': 'Frequency load CT', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_ct_status_flags_phase', - 'unique_id': '<>_net_consumption_ct_status_flags_l2', - 'unit_of_measurement': None, + 'translation_key': 'load_ct_frequency', + 'unique_id': '<>_load_ct_frequency', + 'unit_of_measurement': 'Hz', }), 'state': None, }), @@ -8467,7 +8681,9 @@ 'aliases': list([ ]), 'area_id': None, - 'capabilities': None, + 'capabilities': dict({ + 'state_class': 'measurement', + }), 'categories': dict({ }), 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', @@ -8475,27 +8691,27 @@ 'device_class': None, 'disabled_by': 'integration', 'domain': 'sensor', - 'entity_category': 'diagnostic', - 'entity_id': 'sensor.envoy_<>_meter_status_flags_active_production_ct_l2', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_frequency_load_ct_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Meter status flags active production CT l2', + 'object_id_base': 'Frequency load CT l1', 'options': dict({ }), - 'original_device_class': None, + 'original_device_class': 'frequency', 'original_icon': None, - 'original_name': 'Meter status flags active production CT l2', + 'original_name': 'Frequency load CT l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'production_ct_status_flags_phase', - 'unique_id': '<>_production_ct_status_flags_l2', - 'unit_of_measurement': None, + 'translation_key': 'load_ct_frequency_phase', + 'unique_id': '<>_load_ct_frequency_l1', + 'unit_of_measurement': 'Hz', }), 'state': None, }), @@ -8504,7 +8720,9 @@ 'aliases': list([ ]), 'area_id': None, - 'capabilities': None, + 'capabilities': dict({ + 'state_class': 'measurement', + }), 'categories': dict({ }), 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', @@ -8512,27 +8730,27 @@ 'device_class': None, 'disabled_by': 'integration', 'domain': 'sensor', - 'entity_category': 'diagnostic', - 'entity_id': 'sensor.envoy_<>_meter_status_flags_active_storage_ct_l2', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_frequency_load_ct_l2', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Meter status flags active storage CT l2', + 'object_id_base': 'Frequency load CT l2', 'options': dict({ }), - 'original_device_class': None, + 'original_device_class': 'frequency', 'original_icon': None, - 'original_name': 'Meter status flags active storage CT l2', + 'original_name': 'Frequency load CT l2', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'storage_ct_status_flags_phase', - 'unique_id': '<>_storage_ct_status_flags_l2', - 'unit_of_measurement': None, + 'translation_key': 'load_ct_frequency_phase', + 'unique_id': '<>_load_ct_frequency_l2', + 'unit_of_measurement': 'Hz', }), 'state': None, }), @@ -8542,7 +8760,7 @@ ]), 'area_id': None, 'capabilities': dict({ - 'state_class': 'total_increasing', + 'state_class': 'measurement', }), 'categories': dict({ }), @@ -8552,29 +8770,26 @@ 'disabled_by': 'integration', 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_lifetime_net_energy_consumption_l3', + 'entity_id': 'sensor.envoy_<>_frequency_load_ct_l3', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Lifetime net energy consumption l3', + 'object_id_base': 'Frequency load CT l3', 'options': dict({ - 'sensor.private': dict({ - 'suggested_unit_of_measurement': 'MWh', - }), }), - 'original_device_class': 'energy', + 'original_device_class': 'frequency', 'original_icon': None, - 'original_name': 'Lifetime net energy consumption l3', + 'original_name': 'Frequency load CT l3', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'lifetime_net_consumption_phase', - 'unique_id': '<>_lifetime_net_consumption_l3', - 'unit_of_measurement': 'MWh', + 'translation_key': 'load_ct_frequency_phase', + 'unique_id': '<>_load_ct_frequency_l3', + 'unit_of_measurement': 'Hz', }), 'state': None, }), @@ -8584,7 +8799,7 @@ ]), 'area_id': None, 'capabilities': dict({ - 'state_class': 'total_increasing', + 'state_class': 'measurement', }), 'categories': dict({ }), @@ -8594,29 +8809,26 @@ 'disabled_by': 'integration', 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_lifetime_battery_energy_discharged_l3', + 'entity_id': 'sensor.envoy_<>_frequency_net_consumption_ct', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Lifetime battery energy discharged l3', + 'object_id_base': 'Frequency net consumption CT', 'options': dict({ - 'sensor.private': dict({ - 'suggested_unit_of_measurement': 'MWh', - }), }), - 'original_device_class': 'energy', + 'original_device_class': 'frequency', 'original_icon': None, - 'original_name': 'Lifetime battery energy discharged l3', + 'original_name': 'Frequency net consumption CT', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'lifetime_battery_discharged_phase', - 'unique_id': '<>_lifetime_battery_discharged_l3', - 'unit_of_measurement': 'MWh', + 'translation_key': 'net_ct_frequency', + 'unique_id': '<>_frequency', + 'unit_of_measurement': 'Hz', }), 'state': None, }), @@ -8626,7 +8838,7 @@ ]), 'area_id': None, 'capabilities': dict({ - 'state_class': 'total_increasing', + 'state_class': 'measurement', }), 'categories': dict({ }), @@ -8636,29 +8848,26 @@ 'disabled_by': 'integration', 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_lifetime_net_energy_production_l3', + 'entity_id': 'sensor.envoy_<>_frequency_net_consumption_ct_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Lifetime net energy production l3', + 'object_id_base': 'Frequency net consumption CT l1', 'options': dict({ - 'sensor.private': dict({ - 'suggested_unit_of_measurement': 'MWh', - }), }), - 'original_device_class': 'energy', + 'original_device_class': 'frequency', 'original_icon': None, - 'original_name': 'Lifetime net energy production l3', + 'original_name': 'Frequency net consumption CT l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'lifetime_net_production_phase', - 'unique_id': '<>_lifetime_net_production_l3', - 'unit_of_measurement': 'MWh', + 'translation_key': 'net_ct_frequency_phase', + 'unique_id': '<>_frequency_l1', + 'unit_of_measurement': 'Hz', }), 'state': None, }), @@ -8668,7 +8877,7 @@ ]), 'area_id': None, 'capabilities': dict({ - 'state_class': 'total_increasing', + 'state_class': 'measurement', }), 'categories': dict({ }), @@ -8678,29 +8887,26 @@ 'disabled_by': 'integration', 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_lifetime_battery_energy_charged_l3', + 'entity_id': 'sensor.envoy_<>_frequency_net_consumption_ct_l2', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Lifetime battery energy charged l3', + 'object_id_base': 'Frequency net consumption CT l2', 'options': dict({ - 'sensor.private': dict({ - 'suggested_unit_of_measurement': 'MWh', - }), }), - 'original_device_class': 'energy', + 'original_device_class': 'frequency', 'original_icon': None, - 'original_name': 'Lifetime battery energy charged l3', + 'original_name': 'Frequency net consumption CT l2', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'lifetime_battery_charged_phase', - 'unique_id': '<>_lifetime_battery_charged_l3', - 'unit_of_measurement': 'MWh', + 'translation_key': 'net_ct_frequency_phase', + 'unique_id': '<>_frequency_l2', + 'unit_of_measurement': 'Hz', }), 'state': None, }), @@ -8720,29 +8926,26 @@ 'disabled_by': 'integration', 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_current_net_power_consumption_l3', + 'entity_id': 'sensor.envoy_<>_frequency_net_consumption_ct_l3', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Current net power consumption l3', + 'object_id_base': 'Frequency net consumption CT l3', 'options': dict({ - 'sensor.private': dict({ - 'suggested_unit_of_measurement': 'kW', - }), }), - 'original_device_class': 'power', + 'original_device_class': 'frequency', 'original_icon': None, - 'original_name': 'Current net power consumption l3', + 'original_name': 'Frequency net consumption CT l3', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_consumption_phase', - 'unique_id': '<>_net_consumption_l3', - 'unit_of_measurement': 'kW', + 'translation_key': 'net_ct_frequency_phase', + 'unique_id': '<>_frequency_l3', + 'unit_of_measurement': 'Hz', }), 'state': None, }), @@ -8762,29 +8965,26 @@ 'disabled_by': 'integration', 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_current_battery_discharge_l3', + 'entity_id': 'sensor.envoy_<>_frequency_production_ct', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Current battery discharge l3', + 'object_id_base': 'Frequency production CT', 'options': dict({ - 'sensor.private': dict({ - 'suggested_unit_of_measurement': 'kW', - }), }), - 'original_device_class': 'power', + 'original_device_class': 'frequency', 'original_icon': None, - 'original_name': 'Current battery discharge l3', + 'original_name': 'Frequency production CT', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'battery_discharge_phase', - 'unique_id': '<>_battery_discharge_l3', - 'unit_of_measurement': 'kW', + 'translation_key': 'production_ct_frequency', + 'unique_id': '<>_production_ct_frequency', + 'unit_of_measurement': 'Hz', }), 'state': None, }), @@ -8804,25 +9004,25 @@ 'disabled_by': 'integration', 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_frequency_net_consumption_ct_l3', + 'entity_id': 'sensor.envoy_<>_frequency_production_ct_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Frequency net consumption CT l3', + 'object_id_base': 'Frequency production CT l1', 'options': dict({ }), 'original_device_class': 'frequency', 'original_icon': None, - 'original_name': 'Frequency net consumption CT l3', + 'original_name': 'Frequency production CT l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_ct_frequency_phase', - 'unique_id': '<>_frequency_l3', + 'translation_key': 'production_ct_frequency_phase', + 'unique_id': '<>_production_ct_frequency_l1', 'unit_of_measurement': 'Hz', }), 'state': None, @@ -8843,25 +9043,25 @@ 'disabled_by': 'integration', 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_frequency_production_ct_l3', + 'entity_id': 'sensor.envoy_<>_frequency_production_ct_l2', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Frequency production CT l3', + 'object_id_base': 'Frequency production CT l2', 'options': dict({ }), 'original_device_class': 'frequency', 'original_icon': None, - 'original_name': 'Frequency production CT l3', + 'original_name': 'Frequency production CT l2', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, 'translation_key': 'production_ct_frequency_phase', - 'unique_id': '<>_production_ct_frequency_l3', + 'unique_id': '<>_production_ct_frequency_l2', 'unit_of_measurement': 'Hz', }), 'state': None, @@ -8882,25 +9082,25 @@ 'disabled_by': 'integration', 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_frequency_storage_ct_l3', + 'entity_id': 'sensor.envoy_<>_frequency_production_ct_l3', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Frequency storage CT l3', + 'object_id_base': 'Frequency production CT l3', 'options': dict({ }), 'original_device_class': 'frequency', 'original_icon': None, - 'original_name': 'Frequency storage CT l3', + 'original_name': 'Frequency production CT l3', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'storage_ct_frequency_phase', - 'unique_id': '<>_storage_ct_frequency_l3', + 'translation_key': 'production_ct_frequency_phase', + 'unique_id': '<>_production_ct_frequency_l3', 'unit_of_measurement': 'Hz', }), 'state': None, @@ -8921,29 +9121,26 @@ 'disabled_by': 'integration', 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_voltage_net_consumption_ct_l3', + 'entity_id': 'sensor.envoy_<>_frequency_pv3p_ct', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Voltage net consumption CT l3', + 'object_id_base': 'Frequency PV3P CT', 'options': dict({ - 'sensor.private': dict({ - 'suggested_unit_of_measurement': 'V', - }), }), - 'original_device_class': 'voltage', + 'original_device_class': 'frequency', 'original_icon': None, - 'original_name': 'Voltage net consumption CT l3', + 'original_name': 'Frequency PV3P CT', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_ct_voltage_phase', - 'unique_id': '<>_voltage_l3', - 'unit_of_measurement': 'V', + 'translation_key': 'pv3p_ct_frequency', + 'unique_id': '<>_pv3p_ct_frequency', + 'unit_of_measurement': 'Hz', }), 'state': None, }), @@ -8963,29 +9160,26 @@ 'disabled_by': 'integration', 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_voltage_production_ct_l3', + 'entity_id': 'sensor.envoy_<>_frequency_pv3p_ct_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Voltage production CT l3', + 'object_id_base': 'Frequency PV3P CT l1', 'options': dict({ - 'sensor.private': dict({ - 'suggested_unit_of_measurement': 'V', - }), }), - 'original_device_class': 'voltage', + 'original_device_class': 'frequency', 'original_icon': None, - 'original_name': 'Voltage production CT l3', + 'original_name': 'Frequency PV3P CT l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'production_ct_voltage_phase', - 'unique_id': '<>_production_ct_voltage_l3', - 'unit_of_measurement': 'V', + 'translation_key': 'pv3p_ct_frequency_phase', + 'unique_id': '<>_pv3p_ct_frequency_l1', + 'unit_of_measurement': 'Hz', }), 'state': None, }), @@ -9005,29 +9199,26 @@ 'disabled_by': 'integration', 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_voltage_storage_ct_l3', + 'entity_id': 'sensor.envoy_<>_frequency_pv3p_ct_l2', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Voltage storage CT l3', + 'object_id_base': 'Frequency PV3P CT l2', 'options': dict({ - 'sensor.private': dict({ - 'suggested_unit_of_measurement': 'V', - }), }), - 'original_device_class': 'voltage', + 'original_device_class': 'frequency', 'original_icon': None, - 'original_name': 'Voltage storage CT l3', + 'original_name': 'Frequency PV3P CT l2', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'storage_ct_voltage_phase', - 'unique_id': '<>_storage_voltage_l3', - 'unit_of_measurement': 'V', + 'translation_key': 'pv3p_ct_frequency_phase', + 'unique_id': '<>_pv3p_ct_frequency_l2', + 'unit_of_measurement': 'Hz', }), 'state': None, }), @@ -9047,29 +9238,26 @@ 'disabled_by': 'integration', 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_net_consumption_ct_current_l3', + 'entity_id': 'sensor.envoy_<>_frequency_pv3p_ct_l3', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Net consumption CT current l3', + 'object_id_base': 'Frequency PV3P CT l3', 'options': dict({ - 'sensor.private': dict({ - 'suggested_unit_of_measurement': 'A', - }), }), - 'original_device_class': 'current', + 'original_device_class': 'frequency', 'original_icon': None, - 'original_name': 'Net consumption CT current l3', + 'original_name': 'Frequency PV3P CT l3', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_ct_current_phase', - 'unique_id': '<>_net_ct_current_l3', - 'unit_of_measurement': 'A', + 'translation_key': 'pv3p_ct_frequency_phase', + 'unique_id': '<>_pv3p_ct_frequency_l3', + 'unit_of_measurement': 'Hz', }), 'state': None, }), @@ -9089,29 +9277,26 @@ 'disabled_by': 'integration', 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_production_ct_current_l3', + 'entity_id': 'sensor.envoy_<>_frequency_storage_ct', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Production CT current l3', + 'object_id_base': 'Frequency storage CT', 'options': dict({ - 'sensor.private': dict({ - 'suggested_unit_of_measurement': 'A', - }), }), - 'original_device_class': 'current', + 'original_device_class': 'frequency', 'original_icon': None, - 'original_name': 'Production CT current l3', + 'original_name': 'Frequency storage CT', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'production_ct_current_phase', - 'unique_id': '<>_production_ct_current_l3', - 'unit_of_measurement': 'A', + 'translation_key': 'storage_ct_frequency', + 'unique_id': '<>_storage_ct_frequency', + 'unit_of_measurement': 'Hz', }), 'state': None, }), @@ -9131,29 +9316,26 @@ 'disabled_by': 'integration', 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_storage_ct_current_l3', + 'entity_id': 'sensor.envoy_<>_frequency_storage_ct_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Storage CT current l3', + 'object_id_base': 'Frequency storage CT l1', 'options': dict({ - 'sensor.private': dict({ - 'suggested_unit_of_measurement': 'A', - }), }), - 'original_device_class': 'current', + 'original_device_class': 'frequency', 'original_icon': None, - 'original_name': 'Storage CT current l3', + 'original_name': 'Frequency storage CT l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'storage_ct_current_phase', - 'unique_id': '<>_storage_ct_current_l3', - 'unit_of_measurement': 'A', + 'translation_key': 'storage_ct_frequency_phase', + 'unique_id': '<>_storage_ct_frequency_l1', + 'unit_of_measurement': 'Hz', }), 'state': None, }), @@ -9173,26 +9355,26 @@ 'disabled_by': 'integration', 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_power_factor_net_consumption_ct_l3', + 'entity_id': 'sensor.envoy_<>_frequency_storage_ct_l2', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Power factor net consumption CT l3', + 'object_id_base': 'Frequency storage CT l2', 'options': dict({ }), - 'original_device_class': 'power_factor', + 'original_device_class': 'frequency', 'original_icon': None, - 'original_name': 'Power factor net consumption CT l3', + 'original_name': 'Frequency storage CT l2', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_ct_powerfactor_phase', - 'unique_id': '<>_net_ct_powerfactor_l3', - 'unit_of_measurement': None, + 'translation_key': 'storage_ct_frequency_phase', + 'unique_id': '<>_storage_ct_frequency_l2', + 'unit_of_measurement': 'Hz', }), 'state': None, }), @@ -9212,26 +9394,26 @@ 'disabled_by': 'integration', 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_power_factor_production_ct_l3', + 'entity_id': 'sensor.envoy_<>_frequency_storage_ct_l3', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Power factor production CT l3', + 'object_id_base': 'Frequency storage CT l3', 'options': dict({ }), - 'original_device_class': 'power_factor', + 'original_device_class': 'frequency', 'original_icon': None, - 'original_name': 'Power factor production CT l3', + 'original_name': 'Frequency storage CT l3', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'production_ct_powerfactor_phase', - 'unique_id': '<>_production_ct_powerfactor_l3', - 'unit_of_measurement': None, + 'translation_key': 'storage_ct_frequency_phase', + 'unique_id': '<>_storage_ct_frequency_l3', + 'unit_of_measurement': 'Hz', }), 'state': None, }), @@ -9241,7 +9423,7 @@ ]), 'area_id': None, 'capabilities': dict({ - 'state_class': 'measurement', + 'state_class': 'total', }), 'categories': dict({ }), @@ -9251,26 +9433,29 @@ 'disabled_by': 'integration', 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_power_factor_storage_ct_l3', + 'entity_id': 'sensor.envoy_<>_lifetime_balanced_net_energy_consumption', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Power factor storage CT l3', + 'object_id_base': 'Lifetime balanced net energy consumption', 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'kWh', + }), }), - 'original_device_class': 'power_factor', + 'original_device_class': 'energy', 'original_icon': None, - 'original_name': 'Power factor storage CT l3', + 'original_name': 'Lifetime balanced net energy consumption', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'storage_ct_powerfactor_phase', - 'unique_id': '<>_storage_ct_powerfactor_l3', - 'unit_of_measurement': None, + 'translation_key': 'lifetime_balanced_net_consumption', + 'unique_id': '<>_lifetime_balanced_net_consumption', + 'unit_of_measurement': 'kWh', }), 'state': None, }), @@ -9280,11 +9465,7 @@ ]), 'area_id': None, 'capabilities': dict({ - 'options': list([ - 'normal', - 'not-metering', - 'check-wiring', - ]), + 'state_class': 'total', }), 'categories': dict({ }), @@ -9293,27 +9474,30 @@ 'device_class': None, 'disabled_by': 'integration', 'domain': 'sensor', - 'entity_category': 'diagnostic', - 'entity_id': 'sensor.envoy_<>_metering_status_net_consumption_ct_l3', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_lifetime_balanced_net_energy_consumption_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Metering status net consumption CT l3', + 'object_id_base': 'Lifetime balanced net energy consumption l1', 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'kWh', + }), }), - 'original_device_class': 'enum', + 'original_device_class': 'energy', 'original_icon': None, - 'original_name': 'Metering status net consumption CT l3', + 'original_name': 'Lifetime balanced net energy consumption l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_ct_metering_status_phase', - 'unique_id': '<>_net_consumption_ct_metering_status_l3', - 'unit_of_measurement': None, + 'translation_key': 'lifetime_balanced_net_consumption_phase', + 'unique_id': '<>_lifetime_balanced_net_consumption_l1', + 'unit_of_measurement': 'kWh', }), 'state': None, }), @@ -9323,11 +9507,7 @@ ]), 'area_id': None, 'capabilities': dict({ - 'options': list([ - 'normal', - 'not-metering', - 'check-wiring', - ]), + 'state_class': 'total', }), 'categories': dict({ }), @@ -9336,27 +9516,30 @@ 'device_class': None, 'disabled_by': 'integration', 'domain': 'sensor', - 'entity_category': 'diagnostic', - 'entity_id': 'sensor.envoy_<>_metering_status_production_ct_l3', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_lifetime_balanced_net_energy_consumption_l2', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Metering status production CT l3', + 'object_id_base': 'Lifetime balanced net energy consumption l2', 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'kWh', + }), }), - 'original_device_class': 'enum', + 'original_device_class': 'energy', 'original_icon': None, - 'original_name': 'Metering status production CT l3', + 'original_name': 'Lifetime balanced net energy consumption l2', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'production_ct_metering_status_phase', - 'unique_id': '<>_production_ct_metering_status_l3', - 'unit_of_measurement': None, + 'translation_key': 'lifetime_balanced_net_consumption_phase', + 'unique_id': '<>_lifetime_balanced_net_consumption_l2', + 'unit_of_measurement': 'kWh', }), 'state': None, }), @@ -9366,11 +9549,7 @@ ]), 'area_id': None, 'capabilities': dict({ - 'options': list([ - 'normal', - 'not-metering', - 'check-wiring', - ]), + 'state_class': 'total', }), 'categories': dict({ }), @@ -9379,27 +9558,30 @@ 'device_class': None, 'disabled_by': 'integration', 'domain': 'sensor', - 'entity_category': 'diagnostic', - 'entity_id': 'sensor.envoy_<>_metering_status_storage_ct_l3', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_lifetime_balanced_net_energy_consumption_l3', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Metering status storage CT l3', + 'object_id_base': 'Lifetime balanced net energy consumption l3', 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'kWh', + }), }), - 'original_device_class': 'enum', + 'original_device_class': 'energy', 'original_icon': None, - 'original_name': 'Metering status storage CT l3', + 'original_name': 'Lifetime balanced net energy consumption l3', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'storage_ct_metering_status_phase', - 'unique_id': '<>_storage_ct_metering_status_l3', - 'unit_of_measurement': None, + 'translation_key': 'lifetime_balanced_net_consumption_phase', + 'unique_id': '<>_lifetime_balanced_net_consumption_l3', + 'unit_of_measurement': 'kWh', }), 'state': None, }), @@ -9408,44 +9590,63 @@ 'aliases': list([ ]), 'area_id': None, - 'capabilities': None, + 'capabilities': dict({ + 'state_class': 'total_increasing', + }), 'categories': dict({ }), 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', 'config_subentry_id': None, 'device_class': None, - 'disabled_by': 'integration', + 'disabled_by': None, 'domain': 'sensor', - 'entity_category': 'diagnostic', - 'entity_id': 'sensor.envoy_<>_meter_status_flags_active_net_consumption_ct_l3', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_lifetime_battery_energy_charged', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Meter status flags active net consumption CT l3', + 'object_id_base': 'Lifetime battery energy charged', 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'MWh', + }), }), - 'original_device_class': None, + 'original_device_class': 'energy', 'original_icon': None, - 'original_name': 'Meter status flags active net consumption CT l3', + 'original_name': 'Lifetime battery energy charged', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_ct_status_flags_phase', - 'unique_id': '<>_net_consumption_ct_status_flags_l3', - 'unit_of_measurement': None, + 'translation_key': 'lifetime_battery_charged', + 'unique_id': '<>_lifetime_battery_charged', + 'unit_of_measurement': 'MWh', + }), + 'state': dict({ + 'attributes': dict({ + 'device_class': 'energy', + 'friendly_name': 'Envoy <> Lifetime battery energy charged', + 'state_class': 'total_increasing', + 'unit_of_measurement': 'MWh', + }), + 'entity_id': 'sensor.envoy_<>_lifetime_battery_energy_charged', + 'state': '0.032345', }), - 'state': None, }), dict({ 'entity': dict({ 'aliases': list([ ]), 'area_id': None, - 'capabilities': None, + 'capabilities': dict({ + 'state_class': 'total_increasing', + }), 'categories': dict({ }), 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', @@ -9453,27 +9654,30 @@ 'device_class': None, 'disabled_by': 'integration', 'domain': 'sensor', - 'entity_category': 'diagnostic', - 'entity_id': 'sensor.envoy_<>_meter_status_flags_active_production_ct_l3', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_lifetime_battery_energy_charged_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Meter status flags active production CT l3', + 'object_id_base': 'Lifetime battery energy charged l1', 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'MWh', + }), }), - 'original_device_class': None, + 'original_device_class': 'energy', 'original_icon': None, - 'original_name': 'Meter status flags active production CT l3', + 'original_name': 'Lifetime battery energy charged l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'production_ct_status_flags_phase', - 'unique_id': '<>_production_ct_status_flags_l3', - 'unit_of_measurement': None, + 'translation_key': 'lifetime_battery_charged_phase', + 'unique_id': '<>_lifetime_battery_charged_l1', + 'unit_of_measurement': 'MWh', }), 'state': None, }), @@ -9482,7 +9686,9 @@ 'aliases': list([ ]), 'area_id': None, - 'capabilities': None, + 'capabilities': dict({ + 'state_class': 'total_increasing', + }), 'categories': dict({ }), 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', @@ -9490,27 +9696,30 @@ 'device_class': None, 'disabled_by': 'integration', 'domain': 'sensor', - 'entity_category': 'diagnostic', - 'entity_id': 'sensor.envoy_<>_meter_status_flags_active_storage_ct_l3', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_lifetime_battery_energy_charged_l2', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Meter status flags active storage CT l3', + 'object_id_base': 'Lifetime battery energy charged l2', 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'MWh', + }), }), - 'original_device_class': None, + 'original_device_class': 'energy', 'original_icon': None, - 'original_name': 'Meter status flags active storage CT l3', + 'original_name': 'Lifetime battery energy charged l2', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'storage_ct_status_flags_phase', - 'unique_id': '<>_storage_ct_status_flags_l3', - 'unit_of_measurement': None, + 'translation_key': 'lifetime_battery_charged_phase', + 'unique_id': '<>_lifetime_battery_charged_l2', + 'unit_of_measurement': 'MWh', }), 'state': None, }), @@ -9520,47 +9729,41 @@ ]), 'area_id': None, 'capabilities': dict({ - 'state_class': 'measurement', + 'state_class': 'total_increasing', }), 'categories': dict({ }), 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', 'config_subentry_id': None, 'device_class': None, - 'disabled_by': None, + 'disabled_by': 'integration', 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_battery', + 'entity_id': 'sensor.envoy_<>_lifetime_battery_energy_charged_l3', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Battery', + 'object_id_base': 'Lifetime battery energy charged l3', 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'MWh', + }), }), - 'original_device_class': 'battery', + 'original_device_class': 'energy', 'original_icon': None, - 'original_name': 'Battery', + 'original_name': 'Lifetime battery energy charged l3', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': None, - 'unique_id': '<>_battery_level', - 'unit_of_measurement': '%', - }), - 'state': dict({ - 'attributes': dict({ - 'device_class': 'battery', - 'friendly_name': 'Envoy <> Battery', - 'state_class': 'measurement', - 'unit_of_measurement': '%', - }), - 'entity_id': 'sensor.envoy_<>_battery', - 'state': '15', + 'translation_key': 'lifetime_battery_charged_phase', + 'unique_id': '<>_lifetime_battery_charged_l3', + 'unit_of_measurement': 'MWh', }), + 'state': None, }), dict({ 'entity': dict({ @@ -9568,7 +9771,7 @@ ]), 'area_id': None, 'capabilities': dict({ - 'state_class': 'measurement', + 'state_class': 'total_increasing', }), 'categories': dict({ }), @@ -9578,36 +9781,42 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_reserve_battery_level', + 'entity_id': 'sensor.envoy_<>_lifetime_battery_energy_discharged', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Reserve battery level', + 'object_id_base': 'Lifetime battery energy discharged', 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'MWh', + }), }), - 'original_device_class': 'battery', + 'original_device_class': 'energy', 'original_icon': None, - 'original_name': 'Reserve battery level', + 'original_name': 'Lifetime battery energy discharged', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'reserve_soc', - 'unique_id': '<>_reserve_soc', - 'unit_of_measurement': '%', + 'translation_key': 'lifetime_battery_discharged', + 'unique_id': '<>_lifetime_battery_discharged', + 'unit_of_measurement': 'MWh', }), 'state': dict({ 'attributes': dict({ - 'device_class': 'battery', - 'friendly_name': 'Envoy <> Reserve battery level', - 'state_class': 'measurement', - 'unit_of_measurement': '%', + 'device_class': 'energy', + 'friendly_name': 'Envoy <> Lifetime battery energy discharged', + 'state_class': 'total_increasing', + 'unit_of_measurement': 'MWh', }), - 'entity_id': 'sensor.envoy_<>_reserve_battery_level', - 'state': '15', + 'entity_id': 'sensor.envoy_<>_lifetime_battery_energy_discharged', + 'state': '0.03<>', }), }), dict({ @@ -9616,50 +9825,41 @@ ]), 'area_id': None, 'capabilities': dict({ - 'state_class': 'measurement', + 'state_class': 'total_increasing', }), 'categories': dict({ }), 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', 'config_subentry_id': None, 'device_class': None, - 'disabled_by': None, + 'disabled_by': 'integration', 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_available_battery_energy', + 'entity_id': 'sensor.envoy_<>_lifetime_battery_energy_discharged_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Available battery energy', + 'object_id_base': 'Lifetime battery energy discharged l1', 'options': dict({ - 'sensor': dict({ - 'suggested_display_precision': 0, + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'MWh', }), }), - 'original_device_class': 'energy_storage', + 'original_device_class': 'energy', 'original_icon': None, - 'original_name': 'Available battery energy', + 'original_name': 'Lifetime battery energy discharged l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'available_energy', - 'unique_id': '<>_available_energy', - 'unit_of_measurement': 'Wh', - }), - 'state': dict({ - 'attributes': dict({ - 'device_class': 'energy_storage', - 'friendly_name': 'Envoy <> Available battery energy', - 'state_class': 'measurement', - 'unit_of_measurement': 'Wh', - }), - 'entity_id': 'sensor.envoy_<>_available_battery_energy', - 'state': '525', + 'translation_key': 'lifetime_battery_discharged_phase', + 'unique_id': '<>_lifetime_battery_discharged_l1', + 'unit_of_measurement': 'MWh', }), + 'state': None, }), dict({ 'entity': dict({ @@ -9667,178 +9867,136 @@ ]), 'area_id': None, 'capabilities': dict({ - 'state_class': 'measurement', + 'state_class': 'total_increasing', }), 'categories': dict({ }), 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', 'config_subentry_id': None, 'device_class': None, - 'disabled_by': None, + 'disabled_by': 'integration', 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_reserve_battery_energy', + 'entity_id': 'sensor.envoy_<>_lifetime_battery_energy_discharged_l2', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Reserve battery energy', + 'object_id_base': 'Lifetime battery energy discharged l2', 'options': dict({ - 'sensor': dict({ - 'suggested_display_precision': 0, + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'MWh', }), }), - 'original_device_class': 'energy_storage', + 'original_device_class': 'energy', 'original_icon': None, - 'original_name': 'Reserve battery energy', + 'original_name': 'Lifetime battery energy discharged l2', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'reserve_energy', - 'unique_id': '<>_reserve_energy', - 'unit_of_measurement': 'Wh', - }), - 'state': dict({ - 'attributes': dict({ - 'device_class': 'energy_storage', - 'friendly_name': 'Envoy <> Reserve battery energy', - 'state_class': 'measurement', - 'unit_of_measurement': 'Wh', - }), - 'entity_id': 'sensor.envoy_<>_reserve_battery_energy', - 'state': '526', + 'translation_key': 'lifetime_battery_discharged_phase', + 'unique_id': '<>_lifetime_battery_discharged_l2', + 'unit_of_measurement': 'MWh', }), + 'state': None, }), dict({ 'entity': dict({ 'aliases': list([ ]), 'area_id': None, - 'capabilities': None, + 'capabilities': dict({ + 'state_class': 'total_increasing', + }), 'categories': dict({ }), 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', 'config_subentry_id': None, 'device_class': None, - 'disabled_by': None, + 'disabled_by': 'integration', 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_<>_battery_capacity', + 'entity_id': 'sensor.envoy_<>_lifetime_battery_energy_discharged_l3', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Battery capacity', + 'object_id_base': 'Lifetime battery energy discharged l3', 'options': dict({ - 'sensor': dict({ - 'suggested_display_precision': 0, + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'MWh', }), }), - 'original_device_class': 'energy_storage', + 'original_device_class': 'energy', 'original_icon': None, - 'original_name': 'Battery capacity', + 'original_name': 'Lifetime battery energy discharged l3', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'max_capacity', - 'unique_id': '<>_max_capacity', - 'unit_of_measurement': 'Wh', - }), - 'state': dict({ - 'attributes': dict({ - 'device_class': 'energy_storage', - 'friendly_name': 'Envoy <> Battery capacity', - 'unit_of_measurement': 'Wh', - }), - 'entity_id': 'sensor.envoy_<>_battery_capacity', - 'state': '3500', + 'translation_key': 'lifetime_battery_discharged_phase', + 'unique_id': '<>_lifetime_battery_discharged_l3', + 'unit_of_measurement': 'MWh', }), + 'state': None, }), - ]), - }), - dict({ - 'device': dict({ - 'area_id': None, - 'config_entries': list([ - '45a36e55aaddb2007c5f6602e0c38e72', - ]), - 'config_entries_subentries': dict({ - '45a36e55aaddb2007c5f6602e0c38e72': list([ - None, - ]), - }), - 'configuration_url': None, - 'connections': list([ - ]), - 'disabled_by': None, - 'entry_type': None, - 'hw_version': None, - 'identifiers': list([ - list([ - 'enphase_envoy', - '<>56', - ]), - ]), - 'labels': list([ - ]), - 'manufacturer': 'Enphase', - 'model': 'Encharge', - 'model_id': None, - 'name': 'Encharge <>56', - 'name_by_user': None, - 'primary_config_entry': '45a36e55aaddb2007c5f6602e0c38e72', - 'serial_number': '<>56', - 'sw_version': '2.6.5973_rel/22.11', - }), - 'entities': list([ dict({ 'entity': dict({ 'aliases': list([ ]), 'area_id': None, - 'capabilities': None, + 'capabilities': dict({ + 'state_class': 'total_increasing', + }), 'categories': dict({ }), 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', 'config_subentry_id': None, 'device_class': None, 'disabled_by': None, - 'domain': 'binary_sensor', - 'entity_category': 'diagnostic', - 'entity_id': 'binary_sensor.encharge_<>56_communicating', + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_lifetime_energy_consumption', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Communicating', + 'object_id_base': 'Lifetime energy consumption', 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'MWh', + }), }), - 'original_device_class': 'connectivity', + 'original_device_class': 'energy', 'original_icon': None, - 'original_name': 'Communicating', + 'original_name': 'Lifetime energy consumption', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'communicating', - 'unique_id': '<>56_communicating', - 'unit_of_measurement': None, + 'translation_key': 'lifetime_consumption', + 'unique_id': '<>_lifetime_consumption', + 'unit_of_measurement': 'MWh', }), 'state': dict({ 'attributes': dict({ - 'device_class': 'connectivity', - 'friendly_name': 'Encharge <>56 Communicating', + 'device_class': 'energy', + 'friendly_name': 'Envoy <> Lifetime energy consumption', + 'state_class': 'total_increasing', + 'unit_of_measurement': 'MWh', }), - 'entity_id': 'binary_sensor.encharge_<>56_communicating', - 'state': 'on', + 'entity_id': 'sensor.envoy_<>_lifetime_energy_consumption', + 'state': '0.00<>', }), }), dict({ @@ -9846,43 +10004,42 @@ 'aliases': list([ ]), 'area_id': None, - 'capabilities': None, + 'capabilities': dict({ + 'state_class': 'total_increasing', + }), 'categories': dict({ }), 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', 'config_subentry_id': None, 'device_class': None, - 'disabled_by': None, - 'domain': 'binary_sensor', - 'entity_category': 'diagnostic', - 'entity_id': 'binary_sensor.encharge_<>56_dc_switch', + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_lifetime_energy_consumption_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'DC switch', + 'object_id_base': 'Lifetime energy consumption l1', 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'MWh', + }), }), - 'original_device_class': None, + 'original_device_class': 'energy', 'original_icon': None, - 'original_name': 'DC switch', + 'original_name': 'Lifetime energy consumption l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'dc_switch', - 'unique_id': '<>56_dc_switch', - 'unit_of_measurement': None, - }), - 'state': dict({ - 'attributes': dict({ - 'friendly_name': 'Encharge <>56 DC switch', - }), - 'entity_id': 'binary_sensor.encharge_<>56_dc_switch', - 'state': 'on', + 'translation_key': 'lifetime_consumption_phase', + 'unique_id': '<>_lifetime_consumption_l1', + 'unit_of_measurement': 'MWh', }), + 'state': None, }), dict({ 'entity': dict({ @@ -9890,94 +10047,83 @@ ]), 'area_id': None, 'capabilities': dict({ - 'state_class': 'measurement', + 'state_class': 'total_increasing', }), 'categories': dict({ }), 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', 'config_subentry_id': None, 'device_class': None, - 'disabled_by': None, + 'disabled_by': 'integration', 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.encharge_<>56_temperature', + 'entity_id': 'sensor.envoy_<>_lifetime_energy_consumption_l2', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Temperature', + 'object_id_base': 'Lifetime energy consumption l2', 'options': dict({ - 'sensor': dict({ - 'suggested_display_precision': 1, + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'MWh', }), }), - 'original_device_class': 'temperature', + 'original_device_class': 'energy', 'original_icon': None, - 'original_name': 'Temperature', + 'original_name': 'Lifetime energy consumption l2', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': None, - 'unique_id': '<>56_temperature', - 'unit_of_measurement': '°C', - }), - 'state': dict({ - 'attributes': dict({ - 'device_class': 'temperature', - 'friendly_name': 'Encharge <>56 Temperature', - 'state_class': 'measurement', - 'unit_of_measurement': '°C', - }), - 'entity_id': 'sensor.encharge_<>56_temperature', - 'state': '29', + 'translation_key': 'lifetime_consumption_phase', + 'unique_id': '<>_lifetime_consumption_l2', + 'unit_of_measurement': 'MWh', }), + 'state': None, }), dict({ 'entity': dict({ 'aliases': list([ ]), 'area_id': None, - 'capabilities': None, + 'capabilities': dict({ + 'state_class': 'total_increasing', + }), 'categories': dict({ }), 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', 'config_subentry_id': None, 'device_class': None, - 'disabled_by': None, + 'disabled_by': 'integration', 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.encharge_<>56_last_reported', + 'entity_id': 'sensor.envoy_<>_lifetime_energy_consumption_l3', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Last reported', + 'object_id_base': 'Lifetime energy consumption l3', 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'MWh', + }), }), - 'original_device_class': 'timestamp', + 'original_device_class': 'energy', 'original_icon': None, - 'original_name': 'Last reported', + 'original_name': 'Lifetime energy consumption l3', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'last_reported', - 'unique_id': '<>56_last_reported', - 'unit_of_measurement': None, - }), - 'state': dict({ - 'attributes': dict({ - 'device_class': 'timestamp', - 'friendly_name': 'Encharge <>56 Last reported', - }), - 'entity_id': 'sensor.encharge_<>56_last_reported', - 'state': '2023-09-26T23:04:07+00:00', + 'translation_key': 'lifetime_consumption_phase', + 'unique_id': '<>_lifetime_consumption_l3', + 'unit_of_measurement': 'MWh', }), + 'state': None, }), dict({ 'entity': dict({ @@ -9985,7 +10131,7 @@ ]), 'area_id': None, 'capabilities': dict({ - 'state_class': 'measurement', + 'state_class': 'total_increasing', }), 'categories': dict({ }), @@ -9995,36 +10141,42 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.encharge_<>56_battery', + 'entity_id': 'sensor.envoy_<>_lifetime_energy_production', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Battery', + 'object_id_base': 'Lifetime energy production', 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'MWh', + }), }), - 'original_device_class': 'battery', + 'original_device_class': 'energy', 'original_icon': None, - 'original_name': 'Battery', + 'original_name': 'Lifetime energy production', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': None, - 'unique_id': '<>56_soc', - 'unit_of_measurement': '%', + 'translation_key': 'lifetime_production', + 'unique_id': '<>_lifetime_production', + 'unit_of_measurement': 'MWh', }), 'state': dict({ 'attributes': dict({ - 'device_class': 'battery', - 'friendly_name': 'Encharge <>56 Battery', - 'state_class': 'measurement', - 'unit_of_measurement': '%', + 'device_class': 'energy', + 'friendly_name': 'Envoy <> Lifetime energy production', + 'state_class': 'total_increasing', + 'unit_of_measurement': 'MWh', }), - 'entity_id': 'sensor.encharge_<>56_battery', - 'state': '15', + 'entity_id': 'sensor.envoy_<>_lifetime_energy_production', + 'state': '0.00<>', }), }), dict({ @@ -10033,50 +10185,41 @@ ]), 'area_id': None, 'capabilities': dict({ - 'state_class': 'measurement', + 'state_class': 'total_increasing', }), 'categories': dict({ }), 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', 'config_subentry_id': None, 'device_class': None, - 'disabled_by': None, + 'disabled_by': 'integration', 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.encharge_<>56_apparent_power', + 'entity_id': 'sensor.envoy_<>_lifetime_energy_production_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Apparent power', + 'object_id_base': 'Lifetime energy production l1', 'options': dict({ - 'sensor': dict({ - 'suggested_display_precision': 0, + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'MWh', }), }), - 'original_device_class': 'apparent_power', + 'original_device_class': 'energy', 'original_icon': None, - 'original_name': 'Apparent power', + 'original_name': 'Lifetime energy production l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': None, - 'unique_id': '<>56_apparent_power_mva', - 'unit_of_measurement': 'VA', - }), - 'state': dict({ - 'attributes': dict({ - 'device_class': 'apparent_power', - 'friendly_name': 'Encharge <>56 Apparent power', - 'state_class': 'measurement', - 'unit_of_measurement': 'VA', - }), - 'entity_id': 'sensor.encharge_<>56_apparent_power', - 'state': '0.0', + 'translation_key': 'lifetime_production_phase', + 'unique_id': '<>_lifetime_production_l1', + 'unit_of_measurement': 'MWh', }), + 'state': None, }), dict({ 'entity': dict({ @@ -10084,173 +10227,136 @@ ]), 'area_id': None, 'capabilities': dict({ - 'state_class': 'measurement', + 'state_class': 'total_increasing', }), 'categories': dict({ }), 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', 'config_subentry_id': None, 'device_class': None, - 'disabled_by': None, + 'disabled_by': 'integration', 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.encharge_<>56_power', + 'entity_id': 'sensor.envoy_<>_lifetime_energy_production_l2', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Power', + 'object_id_base': 'Lifetime energy production l2', 'options': dict({ - 'sensor': dict({ - 'suggested_display_precision': 0, + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'MWh', }), }), - 'original_device_class': 'power', + 'original_device_class': 'energy', 'original_icon': None, - 'original_name': 'Power', + 'original_name': 'Lifetime energy production l2', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': None, - 'unique_id': '<>56_real_power_mw', - 'unit_of_measurement': 'W', - }), - 'state': dict({ - 'attributes': dict({ - 'device_class': 'power', - 'friendly_name': 'Encharge <>56 Power', - 'state_class': 'measurement', - 'unit_of_measurement': 'W', - }), - 'entity_id': 'sensor.encharge_<>56_power', - 'state': '0.0', + 'translation_key': 'lifetime_production_phase', + 'unique_id': '<>_lifetime_production_l2', + 'unit_of_measurement': 'MWh', }), + 'state': None, }), - ]), - }), - dict({ - 'device': dict({ - 'area_id': None, - 'config_entries': list([ - '45a36e55aaddb2007c5f6602e0c38e72', - ]), - 'config_entries_subentries': dict({ - '45a36e55aaddb2007c5f6602e0c38e72': list([ - None, - ]), - }), - 'configuration_url': None, - 'connections': list([ - ]), - 'disabled_by': None, - 'entry_type': None, - 'hw_version': None, - 'identifiers': list([ - list([ - 'enphase_envoy', - '654321', - ]), - ]), - 'labels': list([ - ]), - 'manufacturer': 'Enphase', - 'model': 'Enpower', - 'model_id': None, - 'name': 'Enpower 654321', - 'name_by_user': None, - 'primary_config_entry': '45a36e55aaddb2007c5f6602e0c38e72', - 'serial_number': '654321', - 'sw_version': '1.2.2064_release/20.34', - }), - 'entities': list([ dict({ 'entity': dict({ 'aliases': list([ ]), 'area_id': None, - 'capabilities': None, + 'capabilities': dict({ + 'state_class': 'total_increasing', + }), 'categories': dict({ }), 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', 'config_subentry_id': None, 'device_class': None, - 'disabled_by': None, - 'domain': 'binary_sensor', - 'entity_category': 'diagnostic', - 'entity_id': 'binary_sensor.enpower_654321_communicating', + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_lifetime_energy_production_l3', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Communicating', + 'object_id_base': 'Lifetime energy production l3', 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'MWh', + }), }), - 'original_device_class': 'connectivity', + 'original_device_class': 'energy', 'original_icon': None, - 'original_name': 'Communicating', + 'original_name': 'Lifetime energy production l3', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'communicating', - 'unique_id': '654321_communicating', - 'unit_of_measurement': None, - }), - 'state': dict({ - 'attributes': dict({ - 'device_class': 'connectivity', - 'friendly_name': 'Enpower 654321 Communicating', - }), - 'entity_id': 'binary_sensor.enpower_654321_communicating', - 'state': 'on', + 'translation_key': 'lifetime_production_phase', + 'unique_id': '<>_lifetime_production_l3', + 'unit_of_measurement': 'MWh', }), + 'state': None, }), dict({ 'entity': dict({ 'aliases': list([ ]), 'area_id': None, - 'capabilities': None, + 'capabilities': dict({ + 'state_class': 'total_increasing', + }), 'categories': dict({ }), 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', 'config_subentry_id': None, 'device_class': None, 'disabled_by': None, - 'domain': 'binary_sensor', + 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'binary_sensor.enpower_654321_grid_status', + 'entity_id': 'sensor.envoy_<>_lifetime_net_energy_consumption', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Grid status', + 'object_id_base': 'Lifetime net energy consumption', 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'MWh', + }), }), - 'original_device_class': None, + 'original_device_class': 'energy', 'original_icon': None, - 'original_name': 'Grid status', + 'original_name': 'Lifetime net energy consumption', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'grid_status', - 'unique_id': '654321_mains_oper_state', - 'unit_of_measurement': None, + 'translation_key': 'lifetime_net_consumption', + 'unique_id': '<>_lifetime_net_consumption', + 'unit_of_measurement': 'MWh', }), 'state': dict({ 'attributes': dict({ - 'friendly_name': 'Enpower 654321 Grid status', + 'device_class': 'energy', + 'friendly_name': 'Envoy <> Lifetime net energy consumption', + 'state_class': 'total_increasing', + 'unit_of_measurement': 'MWh', }), - 'entity_id': 'binary_sensor.enpower_654321_grid_status', - 'state': 'on', + 'entity_id': 'sensor.envoy_<>_lifetime_net_energy_consumption', + 'state': '0.02<>', }), }), dict({ @@ -10259,53 +10365,41 @@ ]), 'area_id': None, 'capabilities': dict({ - 'max': 100.0, - 'min': 0.0, - 'mode': 'auto', - 'step': 1.0, + 'state_class': 'total_increasing', }), 'categories': dict({ }), 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', 'config_subentry_id': None, 'device_class': None, - 'disabled_by': None, - 'domain': 'number', + 'disabled_by': 'integration', + 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'number.enpower_654321_reserve_battery_level', + 'entity_id': 'sensor.envoy_<>_lifetime_net_energy_consumption_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Reserve battery level', + 'object_id_base': 'Lifetime net energy consumption l1', 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'MWh', + }), }), - 'original_device_class': 'battery', + 'original_device_class': 'energy', 'original_icon': None, - 'original_name': 'Reserve battery level', + 'original_name': 'Lifetime net energy consumption l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'reserve_soc', - 'unique_id': '654321_reserve_soc', - 'unit_of_measurement': '%', - }), - 'state': dict({ - 'attributes': dict({ - 'device_class': 'battery', - 'friendly_name': 'Enpower 654321 Reserve battery level', - 'max': 100.0, - 'min': 0.0, - 'mode': 'auto', - 'step': 1.0, - 'unit_of_measurement': '%', - }), - 'entity_id': 'number.enpower_654321_reserve_battery_level', - 'state': '15.0', + 'translation_key': 'lifetime_net_consumption_phase', + 'unique_id': '<>_lifetime_net_consumption_l1', + 'unit_of_measurement': 'MWh', }), + 'state': None, }), dict({ 'entity': dict({ @@ -10313,53 +10407,41 @@ ]), 'area_id': None, 'capabilities': dict({ - 'options': list([ - 'backup', - 'self_consumption', - 'savings', - ]), + 'state_class': 'total_increasing', }), 'categories': dict({ }), 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', 'config_subentry_id': None, 'device_class': None, - 'disabled_by': None, - 'domain': 'select', + 'disabled_by': 'integration', + 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'select.enpower_654321_storage_mode', + 'entity_id': 'sensor.envoy_<>_lifetime_net_energy_consumption_l2', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Storage mode', + 'object_id_base': 'Lifetime net energy consumption l2', 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'MWh', + }), }), - 'original_device_class': None, + 'original_device_class': 'energy', 'original_icon': None, - 'original_name': 'Storage mode', + 'original_name': 'Lifetime net energy consumption l2', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'storage_mode', - 'unique_id': '654321_storage_mode', - 'unit_of_measurement': None, - }), - 'state': dict({ - 'attributes': dict({ - 'friendly_name': 'Enpower 654321 Storage mode', - 'options': list([ - 'backup', - 'self_consumption', - 'savings', - ]), - }), - 'entity_id': 'select.enpower_654321_storage_mode', - 'state': 'self_consumption', + 'translation_key': 'lifetime_net_consumption_phase', + 'unique_id': '<>_lifetime_net_consumption_l2', + 'unit_of_measurement': 'MWh', }), + 'state': None, }), dict({ 'entity': dict({ @@ -10367,57 +10449,50 @@ ]), 'area_id': None, 'capabilities': dict({ - 'state_class': 'measurement', + 'state_class': 'total_increasing', }), 'categories': dict({ }), 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', 'config_subentry_id': None, 'device_class': None, - 'disabled_by': None, + 'disabled_by': 'integration', 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.enpower_654321_temperature', + 'entity_id': 'sensor.envoy_<>_lifetime_net_energy_consumption_l3', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Temperature', + 'object_id_base': 'Lifetime net energy consumption l3', 'options': dict({ - 'sensor': dict({ - 'suggested_display_precision': 1, + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'MWh', }), }), - 'original_device_class': 'temperature', + 'original_device_class': 'energy', 'original_icon': None, - 'original_name': 'Temperature', + 'original_name': 'Lifetime net energy consumption l3', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': None, - 'unique_id': '654321_temperature', - 'unit_of_measurement': '°C', - }), - 'state': dict({ - 'attributes': dict({ - 'device_class': 'temperature', - 'friendly_name': 'Enpower 654321 Temperature', - 'state_class': 'measurement', - 'unit_of_measurement': '°C', - }), - 'entity_id': 'sensor.enpower_654321_temperature', - 'state': '26.1111111111111', + 'translation_key': 'lifetime_net_consumption_phase', + 'unique_id': '<>_lifetime_net_consumption_l3', + 'unit_of_measurement': 'MWh', }), + 'state': None, }), dict({ 'entity': dict({ 'aliases': list([ ]), 'area_id': None, - 'capabilities': None, + 'capabilities': dict({ + 'state_class': 'total_increasing', + }), 'categories': dict({ }), 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', @@ -10426,34 +10501,42 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.enpower_654321_last_reported', + 'entity_id': 'sensor.envoy_<>_lifetime_net_energy_production', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Last reported', + 'object_id_base': 'Lifetime net energy production', 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'MWh', + }), }), - 'original_device_class': 'timestamp', + 'original_device_class': 'energy', 'original_icon': None, - 'original_name': 'Last reported', + 'original_name': 'Lifetime net energy production', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'last_reported', - 'unique_id': '654321_last_reported', - 'unit_of_measurement': None, + 'translation_key': 'lifetime_net_production', + 'unique_id': '<>_lifetime_net_production', + 'unit_of_measurement': 'MWh', }), 'state': dict({ 'attributes': dict({ - 'device_class': 'timestamp', - 'friendly_name': 'Enpower 654321 Last reported', + 'device_class': 'energy', + 'friendly_name': 'Envoy <> Lifetime net energy production', + 'state_class': 'total_increasing', + 'unit_of_measurement': 'MWh', }), - 'entity_id': 'sensor.enpower_654321_last_reported', - 'state': '2023-09-26T23:04:07+00:00', + 'entity_id': 'sensor.envoy_<>_lifetime_net_energy_production', + 'state': '0.022345', }), }), dict({ @@ -10461,167 +10544,126 @@ 'aliases': list([ ]), 'area_id': None, - 'capabilities': None, + 'capabilities': dict({ + 'state_class': 'total_increasing', + }), 'categories': dict({ }), 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', 'config_subentry_id': None, 'device_class': None, - 'disabled_by': None, - 'domain': 'switch', + 'disabled_by': 'integration', + 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'switch.enpower_654321_grid_enabled', + 'entity_id': 'sensor.envoy_<>_lifetime_net_energy_production_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Grid enabled', + 'object_id_base': 'Lifetime net energy production l1', 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'MWh', + }), }), - 'original_device_class': None, + 'original_device_class': 'energy', 'original_icon': None, - 'original_name': 'Grid enabled', + 'original_name': 'Lifetime net energy production l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'grid_enabled', - 'unique_id': '654321_mains_admin_state', - 'unit_of_measurement': None, - }), - 'state': dict({ - 'attributes': dict({ - 'friendly_name': 'Enpower 654321 Grid enabled', - }), - 'entity_id': 'switch.enpower_654321_grid_enabled', - 'state': 'on', + 'translation_key': 'lifetime_net_production_phase', + 'unique_id': '<>_lifetime_net_production_l1', + 'unit_of_measurement': 'MWh', }), + 'state': None, }), dict({ 'entity': dict({ 'aliases': list([ ]), 'area_id': None, - 'capabilities': None, + 'capabilities': dict({ + 'state_class': 'total_increasing', + }), 'categories': dict({ }), 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', 'config_subentry_id': None, 'device_class': None, - 'disabled_by': None, - 'domain': 'switch', + 'disabled_by': 'integration', + 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'switch.enpower_654321_charge_from_grid', + 'entity_id': 'sensor.envoy_<>_lifetime_net_energy_production_l2', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Charge from grid', + 'object_id_base': 'Lifetime net energy production l2', 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'MWh', + }), }), - 'original_device_class': None, + 'original_device_class': 'energy', 'original_icon': None, - 'original_name': 'Charge from grid', + 'original_name': 'Lifetime net energy production l2', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'charge_from_grid', - 'unique_id': '654321_charge_from_grid', - 'unit_of_measurement': None, - }), - 'state': dict({ - 'attributes': dict({ - 'friendly_name': 'Enpower 654321 Charge from grid', - }), - 'entity_id': 'switch.enpower_654321_charge_from_grid', - 'state': 'on', + 'translation_key': 'lifetime_net_production_phase', + 'unique_id': '<>_lifetime_net_production_l2', + 'unit_of_measurement': 'MWh', }), + 'state': None, }), - ]), - }), - dict({ - 'device': dict({ - 'area_id': None, - 'config_entries': list([ - '45a36e55aaddb2007c5f6602e0c38e72', - ]), - 'config_entries_subentries': dict({ - '45a36e55aaddb2007c5f6602e0c38e72': list([ - None, - ]), - }), - 'configuration_url': None, - 'connections': list([ - ]), - 'disabled_by': None, - 'entry_type': None, - 'hw_version': None, - 'identifiers': list([ - list([ - 'enphase_envoy', - '482520020939', - ]), - ]), - 'labels': list([ - ]), - 'manufacturer': 'Enphase', - 'model': 'IQ Meter Collar', - 'model_id': None, - 'name': 'Collar 482520020939', - 'name_by_user': None, - 'primary_config_entry': '45a36e55aaddb2007c5f6602e0c38e72', - 'serial_number': '482520020939', - 'sw_version': '3.0.6-D0', - }), - 'entities': list([ dict({ 'entity': dict({ 'aliases': list([ ]), 'area_id': None, - 'capabilities': None, + 'capabilities': dict({ + 'state_class': 'total_increasing', + }), 'categories': dict({ }), 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', 'config_subentry_id': None, 'device_class': None, - 'disabled_by': None, - 'domain': 'binary_sensor', - 'entity_category': 'diagnostic', - 'entity_id': 'binary_sensor.collar_482520020939_communicating', + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_lifetime_net_energy_production_l3', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Communicating', + 'object_id_base': 'Lifetime net energy production l3', 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'MWh', + }), }), - 'original_device_class': 'connectivity', + 'original_device_class': 'energy', 'original_icon': None, - 'original_name': 'Communicating', + 'original_name': 'Lifetime net energy production l3', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'communicating', - 'unique_id': '482520020939_communicating', - 'unit_of_measurement': None, - }), - 'state': dict({ - 'attributes': dict({ - 'device_class': 'connectivity', - 'friendly_name': 'Collar 482520020939 Communicating', - }), - 'entity_id': 'binary_sensor.collar_482520020939_communicating', - 'state': 'on', + 'translation_key': 'lifetime_net_production_phase', + 'unique_id': '<>_lifetime_net_production_l3', + 'unit_of_measurement': 'MWh', }), + 'state': None, }), dict({ 'entity': dict({ @@ -10636,180 +10678,169 @@ 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', 'config_subentry_id': None, 'device_class': None, - 'disabled_by': None, + 'disabled_by': 'integration', 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.collar_482520020939_temperature', + 'entity_id': 'sensor.envoy_<>_load_ct_current', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Temperature', + 'object_id_base': 'Load CT current', 'options': dict({ - 'sensor': dict({ - 'suggested_display_precision': 1, + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'A', }), }), - 'original_device_class': 'temperature', + 'original_device_class': 'current', 'original_icon': None, - 'original_name': 'Temperature', + 'original_name': 'Load CT current', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': None, - 'unique_id': '482520020939_temperature', - 'unit_of_measurement': '°C', - }), - 'state': dict({ - 'attributes': dict({ - 'device_class': 'temperature', - 'friendly_name': 'Collar 482520020939 Temperature', - 'state_class': 'measurement', - 'unit_of_measurement': '°C', - }), - 'entity_id': 'sensor.collar_482520020939_temperature', - 'state': '42', + 'translation_key': 'load_ct_current', + 'unique_id': '<>_load_ct_current', + 'unit_of_measurement': 'A', }), + 'state': None, }), dict({ 'entity': dict({ 'aliases': list([ ]), 'area_id': None, - 'capabilities': None, + 'capabilities': dict({ + 'state_class': 'measurement', + }), 'categories': dict({ }), 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', 'config_subentry_id': None, 'device_class': None, - 'disabled_by': None, + 'disabled_by': 'integration', 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.collar_482520020939_last_reported', + 'entity_id': 'sensor.envoy_<>_load_ct_current_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Last reported', + 'object_id_base': 'Load CT current l1', 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'A', + }), }), - 'original_device_class': 'timestamp', + 'original_device_class': 'current', 'original_icon': None, - 'original_name': 'Last reported', + 'original_name': 'Load CT current l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'last_reported', - 'unique_id': '482520020939_last_reported', - 'unit_of_measurement': None, - }), - 'state': dict({ - 'attributes': dict({ - 'device_class': 'timestamp', - 'friendly_name': 'Collar 482520020939 Last reported', - }), - 'entity_id': 'sensor.collar_482520020939_last_reported', - 'state': '2025-07-19T15:42:39+00:00', + 'translation_key': 'load_ct_current_phase', + 'unique_id': '<>_load_ct_current_l1', + 'unit_of_measurement': 'A', }), + 'state': None, }), dict({ 'entity': dict({ 'aliases': list([ ]), 'area_id': None, - 'capabilities': None, + 'capabilities': dict({ + 'state_class': 'measurement', + }), 'categories': dict({ }), 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', 'config_subentry_id': None, 'device_class': None, - 'disabled_by': None, + 'disabled_by': 'integration', 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.collar_482520020939_grid_status', + 'entity_id': 'sensor.envoy_<>_load_ct_current_l2', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Grid status', + 'object_id_base': 'Load CT current l2', 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'A', + }), }), - 'original_device_class': None, + 'original_device_class': 'current', 'original_icon': None, - 'original_name': 'Grid status', + 'original_name': 'Load CT current l2', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'grid_status', - 'unique_id': '482520020939_grid_state', - 'unit_of_measurement': None, - }), - 'state': dict({ - 'attributes': dict({ - 'friendly_name': 'Collar 482520020939 Grid status', - }), - 'entity_id': 'sensor.collar_482520020939_grid_status', - 'state': 'on_grid', + 'translation_key': 'load_ct_current_phase', + 'unique_id': '<>_load_ct_current_l2', + 'unit_of_measurement': 'A', }), + 'state': None, }), dict({ 'entity': dict({ 'aliases': list([ ]), 'area_id': None, - 'capabilities': None, + 'capabilities': dict({ + 'state_class': 'measurement', + }), 'categories': dict({ }), 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', 'config_subentry_id': None, 'device_class': None, - 'disabled_by': None, + 'disabled_by': 'integration', 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.collar_482520020939_admin_state', + 'entity_id': 'sensor.envoy_<>_load_ct_current_l3', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Admin state', + 'object_id_base': 'Load CT current l3', 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'A', + }), }), - 'original_device_class': None, + 'original_device_class': 'current', 'original_icon': None, - 'original_name': 'Admin state', + 'original_name': 'Load CT current l3', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'admin_state', - 'unique_id': '482520020939_admin_state_str', - 'unit_of_measurement': None, - }), - 'state': dict({ - 'attributes': dict({ - 'friendly_name': 'Collar 482520020939 Admin state', - }), - 'entity_id': 'sensor.collar_482520020939_admin_state', - 'state': 'on_grid', + 'translation_key': 'load_ct_current_phase', + 'unique_id': '<>_load_ct_current_l3', + 'unit_of_measurement': 'A', }), + 'state': None, }), dict({ 'entity': dict({ 'aliases': list([ ]), 'area_id': None, - 'capabilities': None, + 'capabilities': dict({ + 'state_class': 'total_increasing', + }), 'categories': dict({ }), 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', @@ -10818,122 +10849,178 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.collar_482520020939_mid_state', + 'entity_id': 'sensor.envoy_<>_load_ct_energy_delivered', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'MID state', + 'object_id_base': 'Load CT energy delivered', 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'MWh', + }), }), - 'original_device_class': None, + 'original_device_class': 'energy', 'original_icon': None, - 'original_name': 'MID state', + 'original_name': 'Load CT energy delivered', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'mid_state', - 'unique_id': '482520020939_mid_state', - 'unit_of_measurement': None, + 'translation_key': 'load_ct_energy_delivered', + 'unique_id': '<>_load_ct_energy_delivered', + 'unit_of_measurement': 'MWh', }), 'state': dict({ 'attributes': dict({ - 'friendly_name': 'Collar 482520020939 MID state', + 'device_class': 'energy', + 'friendly_name': 'Envoy <> Load CT energy delivered', + 'state_class': 'total_increasing', + 'unit_of_measurement': 'MWh', }), - 'entity_id': 'sensor.collar_482520020939_mid_state', - 'state': 'close', + 'entity_id': 'sensor.envoy_<>_load_ct_energy_delivered', + 'state': '0.05<>', }), }), - ]), - }), - dict({ - 'device': dict({ - 'area_id': None, - 'config_entries': list([ - '45a36e55aaddb2007c5f6602e0c38e72', - ]), - 'config_entries_subentries': dict({ - '45a36e55aaddb2007c5f6602e0c38e72': list([ - None, - ]), - }), - 'configuration_url': None, - 'connections': list([ - ]), - 'disabled_by': None, - 'entry_type': None, - 'hw_version': None, - 'identifiers': list([ - list([ - 'enphase_envoy', - '482523040549', - ]), - ]), - 'labels': list([ - ]), - 'manufacturer': 'Enphase', - 'model': 'C6 COMBINER CONTROLLER', - 'model_id': None, - 'name': 'C6 Combiner 482523040549', - 'name_by_user': None, - 'primary_config_entry': '45a36e55aaddb2007c5f6602e0c38e72', - 'serial_number': '482523040549', - 'sw_version': '0.1.20-D1', - }), - 'entities': list([ dict({ 'entity': dict({ 'aliases': list([ ]), 'area_id': None, - 'capabilities': None, + 'capabilities': dict({ + 'state_class': 'total_increasing', + }), 'categories': dict({ }), 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', 'config_subentry_id': None, 'device_class': None, - 'disabled_by': None, - 'domain': 'binary_sensor', - 'entity_category': 'diagnostic', - 'entity_id': 'binary_sensor.c6_combiner_482523040549_communicating', + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_load_ct_energy_delivered_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Communicating', + 'object_id_base': 'Load CT energy delivered l1', 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'MWh', + }), }), - 'original_device_class': 'connectivity', + 'original_device_class': 'energy', 'original_icon': None, - 'original_name': 'Communicating', + 'original_name': 'Load CT energy delivered l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'communicating', - 'unique_id': '482523040549_communicating', - 'unit_of_measurement': None, + 'translation_key': 'load_ct_energy_delivered_phase', + 'unique_id': '<>_load_ct_energy_delivered_l1', + 'unit_of_measurement': 'MWh', }), - 'state': dict({ - 'attributes': dict({ - 'device_class': 'connectivity', - 'friendly_name': 'C6 Combiner 482523040549 Communicating', + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'state_class': 'total_increasing', }), - 'entity_id': 'binary_sensor.c6_combiner_482523040549_communicating', - 'state': 'on', + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_load_ct_energy_delivered_l2', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Load CT energy delivered l2', + 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'MWh', + }), + }), + 'original_device_class': 'energy', + 'original_icon': None, + 'original_name': 'Load CT energy delivered l2', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'load_ct_energy_delivered_phase', + 'unique_id': '<>_load_ct_energy_delivered_l2', + 'unit_of_measurement': 'MWh', }), + 'state': None, }), dict({ 'entity': dict({ 'aliases': list([ ]), 'area_id': None, - 'capabilities': None, + 'capabilities': dict({ + 'state_class': 'total_increasing', + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_load_ct_energy_delivered_l3', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Load CT energy delivered l3', + 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'MWh', + }), + }), + 'original_device_class': 'energy', + 'original_icon': None, + 'original_name': 'Load CT energy delivered l3', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'load_ct_energy_delivered_phase', + 'unique_id': '<>_load_ct_energy_delivered_l3', + 'unit_of_measurement': 'MWh', + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'state_class': 'total_increasing', + }), 'categories': dict({ }), 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', @@ -10942,125 +11029,6456 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.c6_combiner_482523040549_last_reported', + 'entity_id': 'sensor.envoy_<>_load_ct_energy_received', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Last reported', + 'object_id_base': 'Load CT energy received', 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'MWh', + }), }), - 'original_device_class': 'timestamp', + 'original_device_class': 'energy', 'original_icon': None, - 'original_name': 'Last reported', + 'original_name': 'Load CT energy received', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'last_reported', - 'unique_id': '482523040549_last_reported', - 'unit_of_measurement': None, + 'translation_key': 'load_ct_energy_received', + 'unique_id': '<>_load_ct_energy_received', + 'unit_of_measurement': 'MWh', }), 'state': dict({ 'attributes': dict({ - 'device_class': 'timestamp', - 'friendly_name': 'C6 Combiner 482523040549 Last reported', + 'device_class': 'energy', + 'friendly_name': 'Envoy <> Load CT energy received', + 'state_class': 'total_increasing', + 'unit_of_measurement': 'MWh', }), - 'entity_id': 'sensor.c6_combiner_482523040549_last_reported', - 'state': '2025-07-19T17:17:31+00:00', + 'entity_id': 'sensor.envoy_<>_load_ct_energy_received', + 'state': '0.052345', }), }), - ]), - }), - dict({ - 'device': dict({ - 'area_id': None, - 'config_entries': list([ - '45a36e55aaddb2007c5f6602e0c38e72', - ]), - 'config_entries_subentries': dict({ - '45a36e55aaddb2007c5f6602e0c38e72': list([ - None, - ]), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'state_class': 'total_increasing', + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_load_ct_energy_received_l1', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Load CT energy received l1', + 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'MWh', + }), + }), + 'original_device_class': 'energy', + 'original_icon': None, + 'original_name': 'Load CT energy received l1', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'load_ct_energy_received_phase', + 'unique_id': '<>_load_ct_energy_received_l1', + 'unit_of_measurement': 'MWh', + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'state_class': 'total_increasing', + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_load_ct_energy_received_l2', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Load CT energy received l2', + 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'MWh', + }), + }), + 'original_device_class': 'energy', + 'original_icon': None, + 'original_name': 'Load CT energy received l2', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'load_ct_energy_received_phase', + 'unique_id': '<>_load_ct_energy_received_l2', + 'unit_of_measurement': 'MWh', + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'state_class': 'total_increasing', + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_load_ct_energy_received_l3', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Load CT energy received l3', + 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'MWh', + }), + }), + 'original_device_class': 'energy', + 'original_icon': None, + 'original_name': 'Load CT energy received l3', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'load_ct_energy_received_phase', + 'unique_id': '<>_load_ct_energy_received_l3', + 'unit_of_measurement': 'MWh', + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'state_class': 'measurement', + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_load_ct_power', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Load CT power', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'kW', + }), + }), + 'original_device_class': 'power', + 'original_icon': None, + 'original_name': 'Load CT power', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'load_ct_power', + 'unique_id': '<>_load_ct_power', + 'unit_of_measurement': 'kW', + }), + 'state': dict({ + 'attributes': dict({ + 'device_class': 'power', + 'friendly_name': 'Envoy <> Load CT power', + 'state_class': 'measurement', + 'unit_of_measurement': 'kW', + }), + 'entity_id': 'sensor.envoy_<>_load_ct_power', + 'state': '0.105', + }), + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'state_class': 'measurement', + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_load_ct_power_l1', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Load CT power l1', + 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'kW', + }), + }), + 'original_device_class': 'power', + 'original_icon': None, + 'original_name': 'Load CT power l1', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'load_ct_power_phase', + 'unique_id': '<>_load_ct_power_l1', + 'unit_of_measurement': 'kW', + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'state_class': 'measurement', + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_load_ct_power_l2', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Load CT power l2', + 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'kW', + }), + }), + 'original_device_class': 'power', + 'original_icon': None, + 'original_name': 'Load CT power l2', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'load_ct_power_phase', + 'unique_id': '<>_load_ct_power_l2', + 'unit_of_measurement': 'kW', + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'state_class': 'measurement', + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_load_ct_power_l3', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Load CT power l3', + 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'kW', + }), + }), + 'original_device_class': 'power', + 'original_icon': None, + 'original_name': 'Load CT power l3', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'load_ct_power_phase', + 'unique_id': '<>_load_ct_power_l3', + 'unit_of_measurement': 'kW', + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': None, + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': 'diagnostic', + 'entity_id': 'sensor.envoy_<>_meter_status_flags_active_backfeed_ct', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Meter status flags active backfeed CT', + 'options': dict({ + }), + 'original_device_class': None, + 'original_icon': None, + 'original_name': 'Meter status flags active backfeed CT', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'backfeed_ct_status_flags', + 'unique_id': '<>_backfeed_ct_status_flags', + 'unit_of_measurement': None, + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': None, + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': 'diagnostic', + 'entity_id': 'sensor.envoy_<>_meter_status_flags_active_backfeed_ct_l1', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Meter status flags active backfeed CT l1', + 'options': dict({ + }), + 'original_device_class': None, + 'original_icon': None, + 'original_name': 'Meter status flags active backfeed CT l1', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'backfeed_ct_status_flags_phase', + 'unique_id': '<>_backfeed_ct_status_flags_l1', + 'unit_of_measurement': None, + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': None, + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': 'diagnostic', + 'entity_id': 'sensor.envoy_<>_meter_status_flags_active_backfeed_ct_l2', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Meter status flags active backfeed CT l2', + 'options': dict({ + }), + 'original_device_class': None, + 'original_icon': None, + 'original_name': 'Meter status flags active backfeed CT l2', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'backfeed_ct_status_flags_phase', + 'unique_id': '<>_backfeed_ct_status_flags_l2', + 'unit_of_measurement': None, + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': None, + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': 'diagnostic', + 'entity_id': 'sensor.envoy_<>_meter_status_flags_active_backfeed_ct_l3', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Meter status flags active backfeed CT l3', + 'options': dict({ + }), + 'original_device_class': None, + 'original_icon': None, + 'original_name': 'Meter status flags active backfeed CT l3', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'backfeed_ct_status_flags_phase', + 'unique_id': '<>_backfeed_ct_status_flags_l3', + 'unit_of_measurement': None, + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': None, + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': 'diagnostic', + 'entity_id': 'sensor.envoy_<>_meter_status_flags_active_evse_ct', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Meter status flags active EVSE CT', + 'options': dict({ + }), + 'original_device_class': None, + 'original_icon': None, + 'original_name': 'Meter status flags active EVSE CT', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'evse_ct_status_flags', + 'unique_id': '<>_evse_ct_status_flags', + 'unit_of_measurement': None, + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': None, + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': 'diagnostic', + 'entity_id': 'sensor.envoy_<>_meter_status_flags_active_evse_ct_l1', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Meter status flags active EVSE CT l1', + 'options': dict({ + }), + 'original_device_class': None, + 'original_icon': None, + 'original_name': 'Meter status flags active EVSE CT l1', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'evse_ct_status_flags_phase', + 'unique_id': '<>_evse_ct_status_flags_l1', + 'unit_of_measurement': None, + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': None, + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': 'diagnostic', + 'entity_id': 'sensor.envoy_<>_meter_status_flags_active_evse_ct_l2', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Meter status flags active EVSE CT l2', + 'options': dict({ + }), + 'original_device_class': None, + 'original_icon': None, + 'original_name': 'Meter status flags active EVSE CT l2', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'evse_ct_status_flags_phase', + 'unique_id': '<>_evse_ct_status_flags_l2', + 'unit_of_measurement': None, + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': None, + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': 'diagnostic', + 'entity_id': 'sensor.envoy_<>_meter_status_flags_active_evse_ct_l3', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Meter status flags active EVSE CT l3', + 'options': dict({ + }), + 'original_device_class': None, + 'original_icon': None, + 'original_name': 'Meter status flags active EVSE CT l3', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'evse_ct_status_flags_phase', + 'unique_id': '<>_evse_ct_status_flags_l3', + 'unit_of_measurement': None, + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': None, + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': 'diagnostic', + 'entity_id': 'sensor.envoy_<>_meter_status_flags_active_load_ct', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Meter status flags active load CT', + 'options': dict({ + }), + 'original_device_class': None, + 'original_icon': None, + 'original_name': 'Meter status flags active load CT', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'load_ct_status_flags', + 'unique_id': '<>_load_ct_status_flags', + 'unit_of_measurement': None, + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': None, + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': 'diagnostic', + 'entity_id': 'sensor.envoy_<>_meter_status_flags_active_load_ct_l1', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Meter status flags active load CT l1', + 'options': dict({ + }), + 'original_device_class': None, + 'original_icon': None, + 'original_name': 'Meter status flags active load CT l1', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'load_ct_status_flags_phase', + 'unique_id': '<>_load_ct_status_flags_l1', + 'unit_of_measurement': None, + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': None, + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': 'diagnostic', + 'entity_id': 'sensor.envoy_<>_meter_status_flags_active_load_ct_l2', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Meter status flags active load CT l2', + 'options': dict({ + }), + 'original_device_class': None, + 'original_icon': None, + 'original_name': 'Meter status flags active load CT l2', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'load_ct_status_flags_phase', + 'unique_id': '<>_load_ct_status_flags_l2', + 'unit_of_measurement': None, + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': None, + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': 'diagnostic', + 'entity_id': 'sensor.envoy_<>_meter_status_flags_active_load_ct_l3', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Meter status flags active load CT l3', + 'options': dict({ + }), + 'original_device_class': None, + 'original_icon': None, + 'original_name': 'Meter status flags active load CT l3', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'load_ct_status_flags_phase', + 'unique_id': '<>_load_ct_status_flags_l3', + 'unit_of_measurement': None, + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': None, + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': 'diagnostic', + 'entity_id': 'sensor.envoy_<>_meter_status_flags_active_net_consumption_ct', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Meter status flags active net consumption CT', + 'options': dict({ + }), + 'original_device_class': None, + 'original_icon': None, + 'original_name': 'Meter status flags active net consumption CT', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'net_ct_status_flags', + 'unique_id': '<>_net_consumption_ct_status_flags', + 'unit_of_measurement': None, + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': None, + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': 'diagnostic', + 'entity_id': 'sensor.envoy_<>_meter_status_flags_active_net_consumption_ct_l1', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Meter status flags active net consumption CT l1', + 'options': dict({ + }), + 'original_device_class': None, + 'original_icon': None, + 'original_name': 'Meter status flags active net consumption CT l1', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'net_ct_status_flags_phase', + 'unique_id': '<>_net_consumption_ct_status_flags_l1', + 'unit_of_measurement': None, + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': None, + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': 'diagnostic', + 'entity_id': 'sensor.envoy_<>_meter_status_flags_active_net_consumption_ct_l2', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Meter status flags active net consumption CT l2', + 'options': dict({ + }), + 'original_device_class': None, + 'original_icon': None, + 'original_name': 'Meter status flags active net consumption CT l2', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'net_ct_status_flags_phase', + 'unique_id': '<>_net_consumption_ct_status_flags_l2', + 'unit_of_measurement': None, + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': None, + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': 'diagnostic', + 'entity_id': 'sensor.envoy_<>_meter_status_flags_active_net_consumption_ct_l3', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Meter status flags active net consumption CT l3', + 'options': dict({ + }), + 'original_device_class': None, + 'original_icon': None, + 'original_name': 'Meter status flags active net consumption CT l3', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'net_ct_status_flags_phase', + 'unique_id': '<>_net_consumption_ct_status_flags_l3', + 'unit_of_measurement': None, + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': None, + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': 'diagnostic', + 'entity_id': 'sensor.envoy_<>_meter_status_flags_active_production_ct', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Meter status flags active production CT', + 'options': dict({ + }), + 'original_device_class': None, + 'original_icon': None, + 'original_name': 'Meter status flags active production CT', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'production_ct_status_flags', + 'unique_id': '<>_production_ct_status_flags', + 'unit_of_measurement': None, + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': None, + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': 'diagnostic', + 'entity_id': 'sensor.envoy_<>_meter_status_flags_active_production_ct_l1', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Meter status flags active production CT l1', + 'options': dict({ + }), + 'original_device_class': None, + 'original_icon': None, + 'original_name': 'Meter status flags active production CT l1', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'production_ct_status_flags_phase', + 'unique_id': '<>_production_ct_status_flags_l1', + 'unit_of_measurement': None, + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': None, + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': 'diagnostic', + 'entity_id': 'sensor.envoy_<>_meter_status_flags_active_production_ct_l2', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Meter status flags active production CT l2', + 'options': dict({ + }), + 'original_device_class': None, + 'original_icon': None, + 'original_name': 'Meter status flags active production CT l2', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'production_ct_status_flags_phase', + 'unique_id': '<>_production_ct_status_flags_l2', + 'unit_of_measurement': None, + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': None, + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': 'diagnostic', + 'entity_id': 'sensor.envoy_<>_meter_status_flags_active_production_ct_l3', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Meter status flags active production CT l3', + 'options': dict({ + }), + 'original_device_class': None, + 'original_icon': None, + 'original_name': 'Meter status flags active production CT l3', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'production_ct_status_flags_phase', + 'unique_id': '<>_production_ct_status_flags_l3', + 'unit_of_measurement': None, + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': None, + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': 'diagnostic', + 'entity_id': 'sensor.envoy_<>_meter_status_flags_active_pv3p_ct', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Meter status flags active PV3P CT', + 'options': dict({ + }), + 'original_device_class': None, + 'original_icon': None, + 'original_name': 'Meter status flags active PV3P CT', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'pv3p_ct_status_flags', + 'unique_id': '<>_pv3p_ct_status_flags', + 'unit_of_measurement': None, + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': None, + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': 'diagnostic', + 'entity_id': 'sensor.envoy_<>_meter_status_flags_active_pv3p_ct_l1', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Meter status flags active PV3P CT l1', + 'options': dict({ + }), + 'original_device_class': None, + 'original_icon': None, + 'original_name': 'Meter status flags active PV3P CT l1', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'pv3p_ct_status_flags_phase', + 'unique_id': '<>_pv3p_ct_status_flags_l1', + 'unit_of_measurement': None, + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': None, + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': 'diagnostic', + 'entity_id': 'sensor.envoy_<>_meter_status_flags_active_pv3p_ct_l2', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Meter status flags active PV3P CT l2', + 'options': dict({ + }), + 'original_device_class': None, + 'original_icon': None, + 'original_name': 'Meter status flags active PV3P CT l2', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'pv3p_ct_status_flags_phase', + 'unique_id': '<>_pv3p_ct_status_flags_l2', + 'unit_of_measurement': None, + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': None, + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': 'diagnostic', + 'entity_id': 'sensor.envoy_<>_meter_status_flags_active_pv3p_ct_l3', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Meter status flags active PV3P CT l3', + 'options': dict({ + }), + 'original_device_class': None, + 'original_icon': None, + 'original_name': 'Meter status flags active PV3P CT l3', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'pv3p_ct_status_flags_phase', + 'unique_id': '<>_pv3p_ct_status_flags_l3', + 'unit_of_measurement': None, + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': None, + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': 'diagnostic', + 'entity_id': 'sensor.envoy_<>_meter_status_flags_active_storage_ct', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Meter status flags active storage CT', + 'options': dict({ + }), + 'original_device_class': None, + 'original_icon': None, + 'original_name': 'Meter status flags active storage CT', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'storage_ct_status_flags', + 'unique_id': '<>_storage_ct_status_flags', + 'unit_of_measurement': None, + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': None, + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': 'diagnostic', + 'entity_id': 'sensor.envoy_<>_meter_status_flags_active_storage_ct_l1', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Meter status flags active storage CT l1', + 'options': dict({ + }), + 'original_device_class': None, + 'original_icon': None, + 'original_name': 'Meter status flags active storage CT l1', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'storage_ct_status_flags_phase', + 'unique_id': '<>_storage_ct_status_flags_l1', + 'unit_of_measurement': None, + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': None, + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': 'diagnostic', + 'entity_id': 'sensor.envoy_<>_meter_status_flags_active_storage_ct_l2', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Meter status flags active storage CT l2', + 'options': dict({ + }), + 'original_device_class': None, + 'original_icon': None, + 'original_name': 'Meter status flags active storage CT l2', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'storage_ct_status_flags_phase', + 'unique_id': '<>_storage_ct_status_flags_l2', + 'unit_of_measurement': None, + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': None, + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': 'diagnostic', + 'entity_id': 'sensor.envoy_<>_meter_status_flags_active_storage_ct_l3', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Meter status flags active storage CT l3', + 'options': dict({ + }), + 'original_device_class': None, + 'original_icon': None, + 'original_name': 'Meter status flags active storage CT l3', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'storage_ct_status_flags_phase', + 'unique_id': '<>_storage_ct_status_flags_l3', + 'unit_of_measurement': None, + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'options': list([ + 'normal', + 'not-metering', + 'check-wiring', + ]), + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': 'diagnostic', + 'entity_id': 'sensor.envoy_<>_metering_status_backfeed_ct', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Metering status backfeed CT', + 'options': dict({ + }), + 'original_device_class': 'enum', + 'original_icon': None, + 'original_name': 'Metering status backfeed CT', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'backfeed_ct_metering_status', + 'unique_id': '<>_backfeed_ct_metering_status', + 'unit_of_measurement': None, + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'options': list([ + 'normal', + 'not-metering', + 'check-wiring', + ]), + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': 'diagnostic', + 'entity_id': 'sensor.envoy_<>_metering_status_backfeed_ct_l1', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Metering status backfeed CT l1', + 'options': dict({ + }), + 'original_device_class': 'enum', + 'original_icon': None, + 'original_name': 'Metering status backfeed CT l1', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'backfeed_ct_metering_status_phase', + 'unique_id': '<>_backfeed_ct_metering_status_l1', + 'unit_of_measurement': None, + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'options': list([ + 'normal', + 'not-metering', + 'check-wiring', + ]), + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': 'diagnostic', + 'entity_id': 'sensor.envoy_<>_metering_status_backfeed_ct_l2', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Metering status backfeed CT l2', + 'options': dict({ + }), + 'original_device_class': 'enum', + 'original_icon': None, + 'original_name': 'Metering status backfeed CT l2', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'backfeed_ct_metering_status_phase', + 'unique_id': '<>_backfeed_ct_metering_status_l2', + 'unit_of_measurement': None, + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'options': list([ + 'normal', + 'not-metering', + 'check-wiring', + ]), + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': 'diagnostic', + 'entity_id': 'sensor.envoy_<>_metering_status_backfeed_ct_l3', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Metering status backfeed CT l3', + 'options': dict({ + }), + 'original_device_class': 'enum', + 'original_icon': None, + 'original_name': 'Metering status backfeed CT l3', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'backfeed_ct_metering_status_phase', + 'unique_id': '<>_backfeed_ct_metering_status_l3', + 'unit_of_measurement': None, + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'options': list([ + 'normal', + 'not-metering', + 'check-wiring', + ]), + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': 'diagnostic', + 'entity_id': 'sensor.envoy_<>_metering_status_evse_ct', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Metering status EVSE CT', + 'options': dict({ + }), + 'original_device_class': 'enum', + 'original_icon': None, + 'original_name': 'Metering status EVSE CT', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'evse_ct_metering_status', + 'unique_id': '<>_evse_ct_metering_status', + 'unit_of_measurement': None, + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'options': list([ + 'normal', + 'not-metering', + 'check-wiring', + ]), + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': 'diagnostic', + 'entity_id': 'sensor.envoy_<>_metering_status_evse_ct_l1', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Metering status EVSE CT l1', + 'options': dict({ + }), + 'original_device_class': 'enum', + 'original_icon': None, + 'original_name': 'Metering status EVSE CT l1', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'evse_ct_metering_status_phase', + 'unique_id': '<>_evse_ct_metering_status_l1', + 'unit_of_measurement': None, + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'options': list([ + 'normal', + 'not-metering', + 'check-wiring', + ]), + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': 'diagnostic', + 'entity_id': 'sensor.envoy_<>_metering_status_evse_ct_l2', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Metering status EVSE CT l2', + 'options': dict({ + }), + 'original_device_class': 'enum', + 'original_icon': None, + 'original_name': 'Metering status EVSE CT l2', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'evse_ct_metering_status_phase', + 'unique_id': '<>_evse_ct_metering_status_l2', + 'unit_of_measurement': None, + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'options': list([ + 'normal', + 'not-metering', + 'check-wiring', + ]), + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': 'diagnostic', + 'entity_id': 'sensor.envoy_<>_metering_status_evse_ct_l3', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Metering status EVSE CT l3', + 'options': dict({ + }), + 'original_device_class': 'enum', + 'original_icon': None, + 'original_name': 'Metering status EVSE CT l3', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'evse_ct_metering_status_phase', + 'unique_id': '<>_evse_ct_metering_status_l3', + 'unit_of_measurement': None, + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'options': list([ + 'normal', + 'not-metering', + 'check-wiring', + ]), + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': 'diagnostic', + 'entity_id': 'sensor.envoy_<>_metering_status_load_ct', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Metering status load CT', + 'options': dict({ + }), + 'original_device_class': 'enum', + 'original_icon': None, + 'original_name': 'Metering status load CT', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'load_ct_metering_status', + 'unique_id': '<>_load_ct_metering_status', + 'unit_of_measurement': None, + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'options': list([ + 'normal', + 'not-metering', + 'check-wiring', + ]), + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': 'diagnostic', + 'entity_id': 'sensor.envoy_<>_metering_status_load_ct_l1', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Metering status load CT l1', + 'options': dict({ + }), + 'original_device_class': 'enum', + 'original_icon': None, + 'original_name': 'Metering status load CT l1', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'load_ct_metering_status_phase', + 'unique_id': '<>_load_ct_metering_status_l1', + 'unit_of_measurement': None, + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'options': list([ + 'normal', + 'not-metering', + 'check-wiring', + ]), + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': 'diagnostic', + 'entity_id': 'sensor.envoy_<>_metering_status_load_ct_l2', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Metering status load CT l2', + 'options': dict({ + }), + 'original_device_class': 'enum', + 'original_icon': None, + 'original_name': 'Metering status load CT l2', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'load_ct_metering_status_phase', + 'unique_id': '<>_load_ct_metering_status_l2', + 'unit_of_measurement': None, + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'options': list([ + 'normal', + 'not-metering', + 'check-wiring', + ]), + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': 'diagnostic', + 'entity_id': 'sensor.envoy_<>_metering_status_load_ct_l3', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Metering status load CT l3', + 'options': dict({ + }), + 'original_device_class': 'enum', + 'original_icon': None, + 'original_name': 'Metering status load CT l3', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'load_ct_metering_status_phase', + 'unique_id': '<>_load_ct_metering_status_l3', + 'unit_of_measurement': None, + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'options': list([ + 'normal', + 'not-metering', + 'check-wiring', + ]), + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': 'diagnostic', + 'entity_id': 'sensor.envoy_<>_metering_status_net_consumption_ct', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Metering status net consumption CT', + 'options': dict({ + }), + 'original_device_class': 'enum', + 'original_icon': None, + 'original_name': 'Metering status net consumption CT', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'net_ct_metering_status', + 'unique_id': '<>_net_consumption_ct_metering_status', + 'unit_of_measurement': None, + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'options': list([ + 'normal', + 'not-metering', + 'check-wiring', + ]), + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': 'diagnostic', + 'entity_id': 'sensor.envoy_<>_metering_status_net_consumption_ct_l1', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Metering status net consumption CT l1', + 'options': dict({ + }), + 'original_device_class': 'enum', + 'original_icon': None, + 'original_name': 'Metering status net consumption CT l1', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'net_ct_metering_status_phase', + 'unique_id': '<>_net_consumption_ct_metering_status_l1', + 'unit_of_measurement': None, + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'options': list([ + 'normal', + 'not-metering', + 'check-wiring', + ]), + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': 'diagnostic', + 'entity_id': 'sensor.envoy_<>_metering_status_net_consumption_ct_l2', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Metering status net consumption CT l2', + 'options': dict({ + }), + 'original_device_class': 'enum', + 'original_icon': None, + 'original_name': 'Metering status net consumption CT l2', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'net_ct_metering_status_phase', + 'unique_id': '<>_net_consumption_ct_metering_status_l2', + 'unit_of_measurement': None, + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'options': list([ + 'normal', + 'not-metering', + 'check-wiring', + ]), + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': 'diagnostic', + 'entity_id': 'sensor.envoy_<>_metering_status_net_consumption_ct_l3', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Metering status net consumption CT l3', + 'options': dict({ + }), + 'original_device_class': 'enum', + 'original_icon': None, + 'original_name': 'Metering status net consumption CT l3', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'net_ct_metering_status_phase', + 'unique_id': '<>_net_consumption_ct_metering_status_l3', + 'unit_of_measurement': None, + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'options': list([ + 'normal', + 'not-metering', + 'check-wiring', + ]), + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': 'diagnostic', + 'entity_id': 'sensor.envoy_<>_metering_status_production_ct', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Metering status production CT', + 'options': dict({ + }), + 'original_device_class': 'enum', + 'original_icon': None, + 'original_name': 'Metering status production CT', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'production_ct_metering_status', + 'unique_id': '<>_production_ct_metering_status', + 'unit_of_measurement': None, + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'options': list([ + 'normal', + 'not-metering', + 'check-wiring', + ]), + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': 'diagnostic', + 'entity_id': 'sensor.envoy_<>_metering_status_production_ct_l1', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Metering status production CT l1', + 'options': dict({ + }), + 'original_device_class': 'enum', + 'original_icon': None, + 'original_name': 'Metering status production CT l1', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'production_ct_metering_status_phase', + 'unique_id': '<>_production_ct_metering_status_l1', + 'unit_of_measurement': None, + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'options': list([ + 'normal', + 'not-metering', + 'check-wiring', + ]), + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': 'diagnostic', + 'entity_id': 'sensor.envoy_<>_metering_status_production_ct_l2', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Metering status production CT l2', + 'options': dict({ + }), + 'original_device_class': 'enum', + 'original_icon': None, + 'original_name': 'Metering status production CT l2', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'production_ct_metering_status_phase', + 'unique_id': '<>_production_ct_metering_status_l2', + 'unit_of_measurement': None, + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'options': list([ + 'normal', + 'not-metering', + 'check-wiring', + ]), + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': 'diagnostic', + 'entity_id': 'sensor.envoy_<>_metering_status_production_ct_l3', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Metering status production CT l3', + 'options': dict({ + }), + 'original_device_class': 'enum', + 'original_icon': None, + 'original_name': 'Metering status production CT l3', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'production_ct_metering_status_phase', + 'unique_id': '<>_production_ct_metering_status_l3', + 'unit_of_measurement': None, + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'options': list([ + 'normal', + 'not-metering', + 'check-wiring', + ]), + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': 'diagnostic', + 'entity_id': 'sensor.envoy_<>_metering_status_pv3p_ct', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Metering status PV3P CT', + 'options': dict({ + }), + 'original_device_class': 'enum', + 'original_icon': None, + 'original_name': 'Metering status PV3P CT', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'pv3p_ct_metering_status', + 'unique_id': '<>_pv3p_ct_metering_status', + 'unit_of_measurement': None, + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'options': list([ + 'normal', + 'not-metering', + 'check-wiring', + ]), + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': 'diagnostic', + 'entity_id': 'sensor.envoy_<>_metering_status_pv3p_ct_l1', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Metering status PV3P CT l1', + 'options': dict({ + }), + 'original_device_class': 'enum', + 'original_icon': None, + 'original_name': 'Metering status PV3P CT l1', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'pv3p_ct_metering_status_phase', + 'unique_id': '<>_pv3p_ct_metering_status_l1', + 'unit_of_measurement': None, + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'options': list([ + 'normal', + 'not-metering', + 'check-wiring', + ]), + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': 'diagnostic', + 'entity_id': 'sensor.envoy_<>_metering_status_pv3p_ct_l2', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Metering status PV3P CT l2', + 'options': dict({ + }), + 'original_device_class': 'enum', + 'original_icon': None, + 'original_name': 'Metering status PV3P CT l2', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'pv3p_ct_metering_status_phase', + 'unique_id': '<>_pv3p_ct_metering_status_l2', + 'unit_of_measurement': None, + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'options': list([ + 'normal', + 'not-metering', + 'check-wiring', + ]), + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': 'diagnostic', + 'entity_id': 'sensor.envoy_<>_metering_status_pv3p_ct_l3', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Metering status PV3P CT l3', + 'options': dict({ + }), + 'original_device_class': 'enum', + 'original_icon': None, + 'original_name': 'Metering status PV3P CT l3', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'pv3p_ct_metering_status_phase', + 'unique_id': '<>_pv3p_ct_metering_status_l3', + 'unit_of_measurement': None, + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'options': list([ + 'normal', + 'not-metering', + 'check-wiring', + ]), + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': 'diagnostic', + 'entity_id': 'sensor.envoy_<>_metering_status_storage_ct', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Metering status storage CT', + 'options': dict({ + }), + 'original_device_class': 'enum', + 'original_icon': None, + 'original_name': 'Metering status storage CT', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'storage_ct_metering_status', + 'unique_id': '<>_storage_ct_metering_status', + 'unit_of_measurement': None, + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'options': list([ + 'normal', + 'not-metering', + 'check-wiring', + ]), + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': 'diagnostic', + 'entity_id': 'sensor.envoy_<>_metering_status_storage_ct_l1', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Metering status storage CT l1', + 'options': dict({ + }), + 'original_device_class': 'enum', + 'original_icon': None, + 'original_name': 'Metering status storage CT l1', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'storage_ct_metering_status_phase', + 'unique_id': '<>_storage_ct_metering_status_l1', + 'unit_of_measurement': None, + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'options': list([ + 'normal', + 'not-metering', + 'check-wiring', + ]), + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': 'diagnostic', + 'entity_id': 'sensor.envoy_<>_metering_status_storage_ct_l2', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Metering status storage CT l2', + 'options': dict({ + }), + 'original_device_class': 'enum', + 'original_icon': None, + 'original_name': 'Metering status storage CT l2', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'storage_ct_metering_status_phase', + 'unique_id': '<>_storage_ct_metering_status_l2', + 'unit_of_measurement': None, + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'options': list([ + 'normal', + 'not-metering', + 'check-wiring', + ]), + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': 'diagnostic', + 'entity_id': 'sensor.envoy_<>_metering_status_storage_ct_l3', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Metering status storage CT l3', + 'options': dict({ + }), + 'original_device_class': 'enum', + 'original_icon': None, + 'original_name': 'Metering status storage CT l3', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'storage_ct_metering_status_phase', + 'unique_id': '<>_storage_ct_metering_status_l3', + 'unit_of_measurement': None, + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'state_class': 'measurement', + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_net_consumption_ct_current', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Net consumption CT current', + 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'A', + }), + }), + 'original_device_class': 'current', + 'original_icon': None, + 'original_name': 'Net consumption CT current', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'net_ct_current', + 'unique_id': '<>_net_ct_current', + 'unit_of_measurement': 'A', + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'state_class': 'measurement', + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_net_consumption_ct_current_l1', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Net consumption CT current l1', + 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'A', + }), + }), + 'original_device_class': 'current', + 'original_icon': None, + 'original_name': 'Net consumption CT current l1', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'net_ct_current_phase', + 'unique_id': '<>_net_ct_current_l1', + 'unit_of_measurement': 'A', + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'state_class': 'measurement', + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_net_consumption_ct_current_l2', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Net consumption CT current l2', + 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'A', + }), + }), + 'original_device_class': 'current', + 'original_icon': None, + 'original_name': 'Net consumption CT current l2', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'net_ct_current_phase', + 'unique_id': '<>_net_ct_current_l2', + 'unit_of_measurement': 'A', + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'state_class': 'measurement', + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_net_consumption_ct_current_l3', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Net consumption CT current l3', + 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'A', + }), + }), + 'original_device_class': 'current', + 'original_icon': None, + 'original_name': 'Net consumption CT current l3', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'net_ct_current_phase', + 'unique_id': '<>_net_ct_current_l3', + 'unit_of_measurement': 'A', + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'state_class': 'measurement', + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_power_factor_backfeed_ct', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Power factor backfeed CT', + 'options': dict({ + }), + 'original_device_class': 'power_factor', + 'original_icon': None, + 'original_name': 'Power factor backfeed CT', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'backfeed_ct_powerfactor', + 'unique_id': '<>_backfeed_ct_powerfactor', + 'unit_of_measurement': None, + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'state_class': 'measurement', + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_power_factor_backfeed_ct_l1', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Power factor backfeed CT l1', + 'options': dict({ + }), + 'original_device_class': 'power_factor', + 'original_icon': None, + 'original_name': 'Power factor backfeed CT l1', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'backfeed_ct_powerfactor_phase', + 'unique_id': '<>_backfeed_ct_powerfactor_l1', + 'unit_of_measurement': None, + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'state_class': 'measurement', + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_power_factor_backfeed_ct_l2', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Power factor backfeed CT l2', + 'options': dict({ + }), + 'original_device_class': 'power_factor', + 'original_icon': None, + 'original_name': 'Power factor backfeed CT l2', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'backfeed_ct_powerfactor_phase', + 'unique_id': '<>_backfeed_ct_powerfactor_l2', + 'unit_of_measurement': None, + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'state_class': 'measurement', + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_power_factor_backfeed_ct_l3', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Power factor backfeed CT l3', + 'options': dict({ + }), + 'original_device_class': 'power_factor', + 'original_icon': None, + 'original_name': 'Power factor backfeed CT l3', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'backfeed_ct_powerfactor_phase', + 'unique_id': '<>_backfeed_ct_powerfactor_l3', + 'unit_of_measurement': None, + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'state_class': 'measurement', + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_power_factor_evse_ct', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Power factor EVSE CT', + 'options': dict({ + }), + 'original_device_class': 'power_factor', + 'original_icon': None, + 'original_name': 'Power factor EVSE CT', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'evse_ct_powerfactor', + 'unique_id': '<>_evse_ct_powerfactor', + 'unit_of_measurement': None, + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'state_class': 'measurement', + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_power_factor_evse_ct_l1', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Power factor EVSE CT l1', + 'options': dict({ + }), + 'original_device_class': 'power_factor', + 'original_icon': None, + 'original_name': 'Power factor EVSE CT l1', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'evse_ct_powerfactor_phase', + 'unique_id': '<>_evse_ct_powerfactor_l1', + 'unit_of_measurement': None, + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'state_class': 'measurement', + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_power_factor_evse_ct_l2', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Power factor EVSE CT l2', + 'options': dict({ + }), + 'original_device_class': 'power_factor', + 'original_icon': None, + 'original_name': 'Power factor EVSE CT l2', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'evse_ct_powerfactor_phase', + 'unique_id': '<>_evse_ct_powerfactor_l2', + 'unit_of_measurement': None, + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'state_class': 'measurement', + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_power_factor_evse_ct_l3', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Power factor EVSE CT l3', + 'options': dict({ + }), + 'original_device_class': 'power_factor', + 'original_icon': None, + 'original_name': 'Power factor EVSE CT l3', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'evse_ct_powerfactor_phase', + 'unique_id': '<>_evse_ct_powerfactor_l3', + 'unit_of_measurement': None, + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'state_class': 'measurement', + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_power_factor_load_ct', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Power factor load CT', + 'options': dict({ + }), + 'original_device_class': 'power_factor', + 'original_icon': None, + 'original_name': 'Power factor load CT', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'load_ct_powerfactor', + 'unique_id': '<>_load_ct_powerfactor', + 'unit_of_measurement': None, + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'state_class': 'measurement', + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_power_factor_load_ct_l1', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Power factor load CT l1', + 'options': dict({ + }), + 'original_device_class': 'power_factor', + 'original_icon': None, + 'original_name': 'Power factor load CT l1', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'load_ct_powerfactor_phase', + 'unique_id': '<>_load_ct_powerfactor_l1', + 'unit_of_measurement': None, + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'state_class': 'measurement', + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_power_factor_load_ct_l2', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Power factor load CT l2', + 'options': dict({ + }), + 'original_device_class': 'power_factor', + 'original_icon': None, + 'original_name': 'Power factor load CT l2', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'load_ct_powerfactor_phase', + 'unique_id': '<>_load_ct_powerfactor_l2', + 'unit_of_measurement': None, + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'state_class': 'measurement', + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_power_factor_load_ct_l3', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Power factor load CT l3', + 'options': dict({ + }), + 'original_device_class': 'power_factor', + 'original_icon': None, + 'original_name': 'Power factor load CT l3', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'load_ct_powerfactor_phase', + 'unique_id': '<>_load_ct_powerfactor_l3', + 'unit_of_measurement': None, + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'state_class': 'measurement', + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_power_factor_net_consumption_ct', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Power factor net consumption CT', + 'options': dict({ + }), + 'original_device_class': 'power_factor', + 'original_icon': None, + 'original_name': 'Power factor net consumption CT', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'net_ct_powerfactor', + 'unique_id': '<>_net_ct_powerfactor', + 'unit_of_measurement': None, + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'state_class': 'measurement', + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_power_factor_net_consumption_ct_l1', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Power factor net consumption CT l1', + 'options': dict({ + }), + 'original_device_class': 'power_factor', + 'original_icon': None, + 'original_name': 'Power factor net consumption CT l1', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'net_ct_powerfactor_phase', + 'unique_id': '<>_net_ct_powerfactor_l1', + 'unit_of_measurement': None, + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'state_class': 'measurement', + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_power_factor_net_consumption_ct_l2', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Power factor net consumption CT l2', + 'options': dict({ + }), + 'original_device_class': 'power_factor', + 'original_icon': None, + 'original_name': 'Power factor net consumption CT l2', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'net_ct_powerfactor_phase', + 'unique_id': '<>_net_ct_powerfactor_l2', + 'unit_of_measurement': None, + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'state_class': 'measurement', + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_power_factor_net_consumption_ct_l3', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Power factor net consumption CT l3', + 'options': dict({ + }), + 'original_device_class': 'power_factor', + 'original_icon': None, + 'original_name': 'Power factor net consumption CT l3', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'net_ct_powerfactor_phase', + 'unique_id': '<>_net_ct_powerfactor_l3', + 'unit_of_measurement': None, + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'state_class': 'measurement', + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_power_factor_production_ct', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Power factor production CT', + 'options': dict({ + }), + 'original_device_class': 'power_factor', + 'original_icon': None, + 'original_name': 'Power factor production CT', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'production_ct_powerfactor', + 'unique_id': '<>_production_ct_powerfactor', + 'unit_of_measurement': None, + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'state_class': 'measurement', + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_power_factor_production_ct_l1', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Power factor production CT l1', + 'options': dict({ + }), + 'original_device_class': 'power_factor', + 'original_icon': None, + 'original_name': 'Power factor production CT l1', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'production_ct_powerfactor_phase', + 'unique_id': '<>_production_ct_powerfactor_l1', + 'unit_of_measurement': None, + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'state_class': 'measurement', + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_power_factor_production_ct_l2', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Power factor production CT l2', + 'options': dict({ + }), + 'original_device_class': 'power_factor', + 'original_icon': None, + 'original_name': 'Power factor production CT l2', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'production_ct_powerfactor_phase', + 'unique_id': '<>_production_ct_powerfactor_l2', + 'unit_of_measurement': None, + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'state_class': 'measurement', + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_power_factor_production_ct_l3', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Power factor production CT l3', + 'options': dict({ + }), + 'original_device_class': 'power_factor', + 'original_icon': None, + 'original_name': 'Power factor production CT l3', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'production_ct_powerfactor_phase', + 'unique_id': '<>_production_ct_powerfactor_l3', + 'unit_of_measurement': None, + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'state_class': 'measurement', + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_power_factor_pv3p_ct', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Power factor PV3P CT', + 'options': dict({ + }), + 'original_device_class': 'power_factor', + 'original_icon': None, + 'original_name': 'Power factor PV3P CT', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'pv3p_ct_powerfactor', + 'unique_id': '<>_pv3p_ct_powerfactor', + 'unit_of_measurement': None, + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'state_class': 'measurement', + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_power_factor_pv3p_ct_l1', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Power factor PV3P CT l1', + 'options': dict({ + }), + 'original_device_class': 'power_factor', + 'original_icon': None, + 'original_name': 'Power factor PV3P CT l1', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'pv3p_ct_powerfactor_phase', + 'unique_id': '<>_pv3p_ct_powerfactor_l1', + 'unit_of_measurement': None, + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'state_class': 'measurement', + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_power_factor_pv3p_ct_l2', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Power factor PV3P CT l2', + 'options': dict({ + }), + 'original_device_class': 'power_factor', + 'original_icon': None, + 'original_name': 'Power factor PV3P CT l2', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'pv3p_ct_powerfactor_phase', + 'unique_id': '<>_pv3p_ct_powerfactor_l2', + 'unit_of_measurement': None, + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'state_class': 'measurement', + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_power_factor_pv3p_ct_l3', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Power factor PV3P CT l3', + 'options': dict({ + }), + 'original_device_class': 'power_factor', + 'original_icon': None, + 'original_name': 'Power factor PV3P CT l3', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'pv3p_ct_powerfactor_phase', + 'unique_id': '<>_pv3p_ct_powerfactor_l3', + 'unit_of_measurement': None, + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'state_class': 'measurement', + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_power_factor_storage_ct', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Power factor storage CT', + 'options': dict({ + }), + 'original_device_class': 'power_factor', + 'original_icon': None, + 'original_name': 'Power factor storage CT', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'storage_ct_powerfactor', + 'unique_id': '<>_storage_ct_powerfactor', + 'unit_of_measurement': None, + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'state_class': 'measurement', + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_power_factor_storage_ct_l1', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Power factor storage CT l1', + 'options': dict({ + }), + 'original_device_class': 'power_factor', + 'original_icon': None, + 'original_name': 'Power factor storage CT l1', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'storage_ct_powerfactor_phase', + 'unique_id': '<>_storage_ct_powerfactor_l1', + 'unit_of_measurement': None, + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'state_class': 'measurement', + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_power_factor_storage_ct_l2', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Power factor storage CT l2', + 'options': dict({ + }), + 'original_device_class': 'power_factor', + 'original_icon': None, + 'original_name': 'Power factor storage CT l2', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'storage_ct_powerfactor_phase', + 'unique_id': '<>_storage_ct_powerfactor_l2', + 'unit_of_measurement': None, + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'state_class': 'measurement', + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_power_factor_storage_ct_l3', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Power factor storage CT l3', + 'options': dict({ + }), + 'original_device_class': 'power_factor', + 'original_icon': None, + 'original_name': 'Power factor storage CT l3', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'storage_ct_powerfactor_phase', + 'unique_id': '<>_storage_ct_powerfactor_l3', + 'unit_of_measurement': None, + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'state_class': 'measurement', + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_production_ct_current', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Production CT current', + 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'A', + }), + }), + 'original_device_class': 'current', + 'original_icon': None, + 'original_name': 'Production CT current', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'production_ct_current', + 'unique_id': '<>_production_ct_current', + 'unit_of_measurement': 'A', + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'state_class': 'measurement', + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_production_ct_current_l1', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Production CT current l1', + 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'A', + }), + }), + 'original_device_class': 'current', + 'original_icon': None, + 'original_name': 'Production CT current l1', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'production_ct_current_phase', + 'unique_id': '<>_production_ct_current_l1', + 'unit_of_measurement': 'A', + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'state_class': 'measurement', + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_production_ct_current_l2', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Production CT current l2', + 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'A', + }), + }), + 'original_device_class': 'current', + 'original_icon': None, + 'original_name': 'Production CT current l2', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'production_ct_current_phase', + 'unique_id': '<>_production_ct_current_l2', + 'unit_of_measurement': 'A', + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'state_class': 'measurement', + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_production_ct_current_l3', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Production CT current l3', + 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'A', + }), + }), + 'original_device_class': 'current', + 'original_icon': None, + 'original_name': 'Production CT current l3', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'production_ct_current_phase', + 'unique_id': '<>_production_ct_current_l3', + 'unit_of_measurement': 'A', + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'state_class': 'total_increasing', + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_production_ct_energy_delivered', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Production CT energy delivered', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'MWh', + }), + }), + 'original_device_class': 'energy', + 'original_icon': None, + 'original_name': 'Production CT energy delivered', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'production_ct_energy_delivered', + 'unique_id': '<>_production_ct_energy_delivered', + 'unit_of_measurement': 'MWh', + }), + 'state': dict({ + 'attributes': dict({ + 'device_class': 'energy', + 'friendly_name': 'Envoy <> Production CT energy delivered', + 'state_class': 'total_increasing', + 'unit_of_measurement': 'MWh', + }), + 'entity_id': 'sensor.envoy_<>_production_ct_energy_delivered', + 'state': '0.01<>', + }), + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'state_class': 'total_increasing', + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_production_ct_energy_delivered_l1', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Production CT energy delivered l1', + 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'MWh', + }), + }), + 'original_device_class': 'energy', + 'original_icon': None, + 'original_name': 'Production CT energy delivered l1', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'production_ct_energy_delivered_phase', + 'unique_id': '<>_production_ct_energy_delivered_l1', + 'unit_of_measurement': 'MWh', + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'state_class': 'total_increasing', + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_production_ct_energy_delivered_l2', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Production CT energy delivered l2', + 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'MWh', + }), + }), + 'original_device_class': 'energy', + 'original_icon': None, + 'original_name': 'Production CT energy delivered l2', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'production_ct_energy_delivered_phase', + 'unique_id': '<>_production_ct_energy_delivered_l2', + 'unit_of_measurement': 'MWh', + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'state_class': 'total_increasing', + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_production_ct_energy_delivered_l3', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Production CT energy delivered l3', + 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'MWh', + }), + }), + 'original_device_class': 'energy', + 'original_icon': None, + 'original_name': 'Production CT energy delivered l3', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'production_ct_energy_delivered_phase', + 'unique_id': '<>_production_ct_energy_delivered_l3', + 'unit_of_measurement': 'MWh', + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'state_class': 'total_increasing', + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_production_ct_energy_received', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Production CT energy received', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'MWh', + }), + }), + 'original_device_class': 'energy', + 'original_icon': None, + 'original_name': 'Production CT energy received', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'production_ct_energy_received', + 'unique_id': '<>_production_ct_energy_received', + 'unit_of_measurement': 'MWh', + }), + 'state': dict({ + 'attributes': dict({ + 'device_class': 'energy', + 'friendly_name': 'Envoy <> Production CT energy received', + 'state_class': 'total_increasing', + 'unit_of_measurement': 'MWh', + }), + 'entity_id': 'sensor.envoy_<>_production_ct_energy_received', + 'state': '0.0<>5', + }), + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'state_class': 'total_increasing', + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_production_ct_energy_received_l1', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Production CT energy received l1', + 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'MWh', + }), + }), + 'original_device_class': 'energy', + 'original_icon': None, + 'original_name': 'Production CT energy received l1', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'production_ct_energy_received_phase', + 'unique_id': '<>_production_ct_energy_received_l1', + 'unit_of_measurement': 'MWh', + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'state_class': 'total_increasing', + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_production_ct_energy_received_l2', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Production CT energy received l2', + 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'MWh', + }), + }), + 'original_device_class': 'energy', + 'original_icon': None, + 'original_name': 'Production CT energy received l2', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'production_ct_energy_received_phase', + 'unique_id': '<>_production_ct_energy_received_l2', + 'unit_of_measurement': 'MWh', + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'state_class': 'total_increasing', + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_production_ct_energy_received_l3', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Production CT energy received l3', + 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'MWh', + }), + }), + 'original_device_class': 'energy', + 'original_icon': None, + 'original_name': 'Production CT energy received l3', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'production_ct_energy_received_phase', + 'unique_id': '<>_production_ct_energy_received_l3', + 'unit_of_measurement': 'MWh', + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'state_class': 'measurement', + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_production_ct_power', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Production CT power', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'kW', + }), + }), + 'original_device_class': 'power', + 'original_icon': None, + 'original_name': 'Production CT power', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'production_ct_power', + 'unique_id': '<>_production_ct_power', + 'unit_of_measurement': 'kW', + }), + 'state': dict({ + 'attributes': dict({ + 'device_class': 'power', + 'friendly_name': 'Envoy <> Production CT power', + 'state_class': 'measurement', + 'unit_of_measurement': 'kW', + }), + 'entity_id': 'sensor.envoy_<>_production_ct_power', + 'state': '0.1', + }), + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'state_class': 'measurement', + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_production_ct_power_l1', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Production CT power l1', + 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'kW', + }), + }), + 'original_device_class': 'power', + 'original_icon': None, + 'original_name': 'Production CT power l1', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'production_ct_power_phase', + 'unique_id': '<>_production_ct_power_l1', + 'unit_of_measurement': 'kW', + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'state_class': 'measurement', + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_production_ct_power_l2', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Production CT power l2', + 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'kW', + }), + }), + 'original_device_class': 'power', + 'original_icon': None, + 'original_name': 'Production CT power l2', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'production_ct_power_phase', + 'unique_id': '<>_production_ct_power_l2', + 'unit_of_measurement': 'kW', + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'state_class': 'measurement', + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_production_ct_power_l3', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Production CT power l3', + 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'kW', + }), + }), + 'original_device_class': 'power', + 'original_icon': None, + 'original_name': 'Production CT power l3', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'production_ct_power_phase', + 'unique_id': '<>_production_ct_power_l3', + 'unit_of_measurement': 'kW', + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'state_class': 'measurement', + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_pv3p_ct_current', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'PV3P CT current', + 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'A', + }), + }), + 'original_device_class': 'current', + 'original_icon': None, + 'original_name': 'PV3P CT current', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'pv3p_ct_current', + 'unique_id': '<>_pv3p_ct_current', + 'unit_of_measurement': 'A', + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'state_class': 'measurement', + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_pv3p_ct_current_l1', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'PV3P CT current l1', + 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'A', + }), + }), + 'original_device_class': 'current', + 'original_icon': None, + 'original_name': 'PV3P CT current l1', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'pv3p_ct_current_phase', + 'unique_id': '<>_pv3p_ct_current_l1', + 'unit_of_measurement': 'A', + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'state_class': 'measurement', + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_pv3p_ct_current_l2', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'PV3P CT current l2', + 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'A', + }), + }), + 'original_device_class': 'current', + 'original_icon': None, + 'original_name': 'PV3P CT current l2', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'pv3p_ct_current_phase', + 'unique_id': '<>_pv3p_ct_current_l2', + 'unit_of_measurement': 'A', + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'state_class': 'measurement', + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_pv3p_ct_current_l3', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'PV3P CT current l3', + 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'A', + }), + }), + 'original_device_class': 'current', + 'original_icon': None, + 'original_name': 'PV3P CT current l3', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'pv3p_ct_current_phase', + 'unique_id': '<>_pv3p_ct_current_l3', + 'unit_of_measurement': 'A', + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'state_class': 'total_increasing', + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_pv3p_ct_energy_delivered', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'PV3P CT energy delivered', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'MWh', + }), + }), + 'original_device_class': 'energy', + 'original_icon': None, + 'original_name': 'PV3P CT energy delivered', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'pv3p_ct_energy_delivered', + 'unique_id': '<>_pv3p_ct_energy_delivered', + 'unit_of_measurement': 'MWh', + }), + 'state': dict({ + 'attributes': dict({ + 'device_class': 'energy', + 'friendly_name': 'Envoy <> PV3P CT energy delivered', + 'state_class': 'total_increasing', + 'unit_of_measurement': 'MWh', + }), + 'entity_id': 'sensor.envoy_<>_pv3p_ct_energy_delivered', + 'state': '0.07<>', + }), + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'state_class': 'total_increasing', + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_pv3p_ct_energy_delivered_l1', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'PV3P CT energy delivered l1', + 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'MWh', + }), + }), + 'original_device_class': 'energy', + 'original_icon': None, + 'original_name': 'PV3P CT energy delivered l1', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'pv3p_ct_energy_delivered_phase', + 'unique_id': '<>_pv3p_ct_energy_delivered_l1', + 'unit_of_measurement': 'MWh', + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'state_class': 'total_increasing', + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_pv3p_ct_energy_delivered_l2', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'PV3P CT energy delivered l2', + 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'MWh', + }), + }), + 'original_device_class': 'energy', + 'original_icon': None, + 'original_name': 'PV3P CT energy delivered l2', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'pv3p_ct_energy_delivered_phase', + 'unique_id': '<>_pv3p_ct_energy_delivered_l2', + 'unit_of_measurement': 'MWh', + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'state_class': 'total_increasing', + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_pv3p_ct_energy_delivered_l3', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'PV3P CT energy delivered l3', + 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'MWh', + }), + }), + 'original_device_class': 'energy', + 'original_icon': None, + 'original_name': 'PV3P CT energy delivered l3', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'pv3p_ct_energy_delivered_phase', + 'unique_id': '<>_pv3p_ct_energy_delivered_l3', + 'unit_of_measurement': 'MWh', + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'state_class': 'total_increasing', + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_pv3p_ct_energy_received', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'PV3P CT energy received', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'MWh', + }), + }), + 'original_device_class': 'energy', + 'original_icon': None, + 'original_name': 'PV3P CT energy received', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'pv3p_ct_energy_received', + 'unique_id': '<>_pv3p_ct_energy_received', + 'unit_of_measurement': 'MWh', + }), + 'state': dict({ + 'attributes': dict({ + 'device_class': 'energy', + 'friendly_name': 'Envoy <> PV3P CT energy received', + 'state_class': 'total_increasing', + 'unit_of_measurement': 'MWh', + }), + 'entity_id': 'sensor.envoy_<>_pv3p_ct_energy_received', + 'state': '0.072345', + }), + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'state_class': 'total_increasing', + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_pv3p_ct_energy_received_l1', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'PV3P CT energy received l1', + 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'MWh', + }), + }), + 'original_device_class': 'energy', + 'original_icon': None, + 'original_name': 'PV3P CT energy received l1', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'pv3p_ct_energy_received_phase', + 'unique_id': '<>_pv3p_ct_energy_received_l1', + 'unit_of_measurement': 'MWh', + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'state_class': 'total_increasing', + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_pv3p_ct_energy_received_l2', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'PV3P CT energy received l2', + 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'MWh', + }), + }), + 'original_device_class': 'energy', + 'original_icon': None, + 'original_name': 'PV3P CT energy received l2', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'pv3p_ct_energy_received_phase', + 'unique_id': '<>_pv3p_ct_energy_received_l2', + 'unit_of_measurement': 'MWh', + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'state_class': 'total_increasing', + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_pv3p_ct_energy_received_l3', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'PV3P CT energy received l3', + 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'MWh', + }), + }), + 'original_device_class': 'energy', + 'original_icon': None, + 'original_name': 'PV3P CT energy received l3', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'pv3p_ct_energy_received_phase', + 'unique_id': '<>_pv3p_ct_energy_received_l3', + 'unit_of_measurement': 'MWh', + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'state_class': 'measurement', + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_pv3p_ct_power', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'PV3P CT power', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'kW', + }), + }), + 'original_device_class': 'power', + 'original_icon': None, + 'original_name': 'PV3P CT power', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'pv3p_ct_power', + 'unique_id': '<>_pv3p_ct_power', + 'unit_of_measurement': 'kW', + }), + 'state': dict({ + 'attributes': dict({ + 'device_class': 'power', + 'friendly_name': 'Envoy <> PV3P CT power', + 'state_class': 'measurement', + 'unit_of_measurement': 'kW', + }), + 'entity_id': 'sensor.envoy_<>_pv3p_ct_power', + 'state': '0.107', + }), + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'state_class': 'measurement', + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_pv3p_ct_power_l1', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'PV3P CT power l1', + 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'kW', + }), + }), + 'original_device_class': 'power', + 'original_icon': None, + 'original_name': 'PV3P CT power l1', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'pv3p_ct_power_phase', + 'unique_id': '<>_pv3p_ct_power_l1', + 'unit_of_measurement': 'kW', + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'state_class': 'measurement', + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_pv3p_ct_power_l2', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'PV3P CT power l2', + 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'kW', + }), + }), + 'original_device_class': 'power', + 'original_icon': None, + 'original_name': 'PV3P CT power l2', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'pv3p_ct_power_phase', + 'unique_id': '<>_pv3p_ct_power_l2', + 'unit_of_measurement': 'kW', + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'state_class': 'measurement', + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_pv3p_ct_power_l3', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'PV3P CT power l3', + 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'kW', + }), + }), + 'original_device_class': 'power', + 'original_icon': None, + 'original_name': 'PV3P CT power l3', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'pv3p_ct_power_phase', + 'unique_id': '<>_pv3p_ct_power_l3', + 'unit_of_measurement': 'kW', + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'state_class': 'measurement', + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_reserve_battery_energy', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Reserve battery energy', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 0, + }), + }), + 'original_device_class': 'energy_storage', + 'original_icon': None, + 'original_name': 'Reserve battery energy', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'reserve_energy', + 'unique_id': '<>_reserve_energy', + 'unit_of_measurement': 'Wh', + }), + 'state': dict({ + 'attributes': dict({ + 'device_class': 'energy_storage', + 'friendly_name': 'Envoy <> Reserve battery energy', + 'state_class': 'measurement', + 'unit_of_measurement': 'Wh', + }), + 'entity_id': 'sensor.envoy_<>_reserve_battery_energy', + 'state': '526', + }), + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'state_class': 'measurement', + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_reserve_battery_level', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Reserve battery level', + 'options': dict({ + }), + 'original_device_class': 'battery', + 'original_icon': None, + 'original_name': 'Reserve battery level', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'reserve_soc', + 'unique_id': '<>_reserve_soc', + 'unit_of_measurement': '%', + }), + 'state': dict({ + 'attributes': dict({ + 'device_class': 'battery', + 'friendly_name': 'Envoy <> Reserve battery level', + 'state_class': 'measurement', + 'unit_of_measurement': '%', + }), + 'entity_id': 'sensor.envoy_<>_reserve_battery_level', + 'state': '15', + }), + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'state_class': 'measurement', + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_storage_ct_current', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Storage CT current', + 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'A', + }), + }), + 'original_device_class': 'current', + 'original_icon': None, + 'original_name': 'Storage CT current', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'storage_ct_current', + 'unique_id': '<>_storage_ct_current', + 'unit_of_measurement': 'A', + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'state_class': 'measurement', + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_storage_ct_current_l1', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Storage CT current l1', + 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'A', + }), + }), + 'original_device_class': 'current', + 'original_icon': None, + 'original_name': 'Storage CT current l1', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'storage_ct_current_phase', + 'unique_id': '<>_storage_ct_current_l1', + 'unit_of_measurement': 'A', + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'state_class': 'measurement', + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_storage_ct_current_l2', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Storage CT current l2', + 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'A', + }), + }), + 'original_device_class': 'current', + 'original_icon': None, + 'original_name': 'Storage CT current l2', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'storage_ct_current_phase', + 'unique_id': '<>_storage_ct_current_l2', + 'unit_of_measurement': 'A', + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'state_class': 'measurement', + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_storage_ct_current_l3', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Storage CT current l3', + 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'A', + }), + }), + 'original_device_class': 'current', + 'original_icon': None, + 'original_name': 'Storage CT current l3', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'storage_ct_current_phase', + 'unique_id': '<>_storage_ct_current_l3', + 'unit_of_measurement': 'A', + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'state_class': 'measurement', + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_voltage_backfeed_ct', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Voltage backfeed CT', + 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'V', + }), + }), + 'original_device_class': 'voltage', + 'original_icon': None, + 'original_name': 'Voltage backfeed CT', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'backfeed_ct_voltage', + 'unique_id': '<>_backfeed_ct_voltage', + 'unit_of_measurement': 'V', + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'state_class': 'measurement', + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_voltage_backfeed_ct_l1', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Voltage backfeed CT l1', + 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'V', + }), + }), + 'original_device_class': 'voltage', + 'original_icon': None, + 'original_name': 'Voltage backfeed CT l1', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'backfeed_ct_voltage_phase', + 'unique_id': '<>_backfeed_ct_voltage_l1', + 'unit_of_measurement': 'V', + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'state_class': 'measurement', + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_voltage_backfeed_ct_l2', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Voltage backfeed CT l2', + 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'V', + }), + }), + 'original_device_class': 'voltage', + 'original_icon': None, + 'original_name': 'Voltage backfeed CT l2', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'backfeed_ct_voltage_phase', + 'unique_id': '<>_backfeed_ct_voltage_l2', + 'unit_of_measurement': 'V', + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'state_class': 'measurement', + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_voltage_backfeed_ct_l3', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Voltage backfeed CT l3', + 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'V', + }), + }), + 'original_device_class': 'voltage', + 'original_icon': None, + 'original_name': 'Voltage backfeed CT l3', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'backfeed_ct_voltage_phase', + 'unique_id': '<>_backfeed_ct_voltage_l3', + 'unit_of_measurement': 'V', + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'state_class': 'measurement', + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_voltage_evse_ct', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Voltage EVSE CT', + 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'V', + }), + }), + 'original_device_class': 'voltage', + 'original_icon': None, + 'original_name': 'Voltage EVSE CT', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'evse_ct_voltage', + 'unique_id': '<>_evse_ct_voltage', + 'unit_of_measurement': 'V', + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'state_class': 'measurement', + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_voltage_evse_ct_l1', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Voltage EVSE CT l1', + 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'V', + }), + }), + 'original_device_class': 'voltage', + 'original_icon': None, + 'original_name': 'Voltage EVSE CT l1', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'evse_ct_voltage_phase', + 'unique_id': '<>_evse_ct_voltage_l1', + 'unit_of_measurement': 'V', + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'state_class': 'measurement', + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_voltage_evse_ct_l2', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Voltage EVSE CT l2', + 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'V', + }), + }), + 'original_device_class': 'voltage', + 'original_icon': None, + 'original_name': 'Voltage EVSE CT l2', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'evse_ct_voltage_phase', + 'unique_id': '<>_evse_ct_voltage_l2', + 'unit_of_measurement': 'V', + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'state_class': 'measurement', + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_voltage_evse_ct_l3', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Voltage EVSE CT l3', + 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'V', + }), + }), + 'original_device_class': 'voltage', + 'original_icon': None, + 'original_name': 'Voltage EVSE CT l3', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'evse_ct_voltage_phase', + 'unique_id': '<>_evse_ct_voltage_l3', + 'unit_of_measurement': 'V', + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'state_class': 'measurement', + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_voltage_load_ct', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Voltage load CT', + 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'V', + }), + }), + 'original_device_class': 'voltage', + 'original_icon': None, + 'original_name': 'Voltage load CT', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'load_ct_voltage', + 'unique_id': '<>_load_ct_voltage', + 'unit_of_measurement': 'V', + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'state_class': 'measurement', + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_voltage_load_ct_l1', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Voltage load CT l1', + 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'V', + }), + }), + 'original_device_class': 'voltage', + 'original_icon': None, + 'original_name': 'Voltage load CT l1', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'load_ct_voltage_phase', + 'unique_id': '<>_load_ct_voltage_l1', + 'unit_of_measurement': 'V', + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'state_class': 'measurement', + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_voltage_load_ct_l2', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Voltage load CT l2', + 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'V', + }), + }), + 'original_device_class': 'voltage', + 'original_icon': None, + 'original_name': 'Voltage load CT l2', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'load_ct_voltage_phase', + 'unique_id': '<>_load_ct_voltage_l2', + 'unit_of_measurement': 'V', + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'state_class': 'measurement', + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_voltage_load_ct_l3', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Voltage load CT l3', + 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'V', + }), + }), + 'original_device_class': 'voltage', + 'original_icon': None, + 'original_name': 'Voltage load CT l3', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'load_ct_voltage_phase', + 'unique_id': '<>_load_ct_voltage_l3', + 'unit_of_measurement': 'V', + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'state_class': 'measurement', + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_voltage_net_consumption_ct', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Voltage net consumption CT', + 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'V', + }), + }), + 'original_device_class': 'voltage', + 'original_icon': None, + 'original_name': 'Voltage net consumption CT', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'net_ct_voltage', + 'unique_id': '<>_voltage', + 'unit_of_measurement': 'V', + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'state_class': 'measurement', + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_voltage_net_consumption_ct_l1', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Voltage net consumption CT l1', + 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'V', + }), + }), + 'original_device_class': 'voltage', + 'original_icon': None, + 'original_name': 'Voltage net consumption CT l1', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'net_ct_voltage_phase', + 'unique_id': '<>_voltage_l1', + 'unit_of_measurement': 'V', + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'state_class': 'measurement', + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_voltage_net_consumption_ct_l2', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Voltage net consumption CT l2', + 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'V', + }), + }), + 'original_device_class': 'voltage', + 'original_icon': None, + 'original_name': 'Voltage net consumption CT l2', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'net_ct_voltage_phase', + 'unique_id': '<>_voltage_l2', + 'unit_of_measurement': 'V', + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'state_class': 'measurement', + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_voltage_net_consumption_ct_l3', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Voltage net consumption CT l3', + 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'V', + }), + }), + 'original_device_class': 'voltage', + 'original_icon': None, + 'original_name': 'Voltage net consumption CT l3', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'net_ct_voltage_phase', + 'unique_id': '<>_voltage_l3', + 'unit_of_measurement': 'V', + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'state_class': 'measurement', + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_voltage_production_ct', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Voltage production CT', + 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'V', + }), + }), + 'original_device_class': 'voltage', + 'original_icon': None, + 'original_name': 'Voltage production CT', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'production_ct_voltage', + 'unique_id': '<>_production_ct_voltage', + 'unit_of_measurement': 'V', + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'state_class': 'measurement', + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_voltage_production_ct_l1', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Voltage production CT l1', + 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'V', + }), + }), + 'original_device_class': 'voltage', + 'original_icon': None, + 'original_name': 'Voltage production CT l1', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'production_ct_voltage_phase', + 'unique_id': '<>_production_ct_voltage_l1', + 'unit_of_measurement': 'V', + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'state_class': 'measurement', + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_voltage_production_ct_l2', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Voltage production CT l2', + 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'V', + }), + }), + 'original_device_class': 'voltage', + 'original_icon': None, + 'original_name': 'Voltage production CT l2', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'production_ct_voltage_phase', + 'unique_id': '<>_production_ct_voltage_l2', + 'unit_of_measurement': 'V', + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'state_class': 'measurement', + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_voltage_production_ct_l3', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Voltage production CT l3', + 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'V', + }), + }), + 'original_device_class': 'voltage', + 'original_icon': None, + 'original_name': 'Voltage production CT l3', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'production_ct_voltage_phase', + 'unique_id': '<>_production_ct_voltage_l3', + 'unit_of_measurement': 'V', + }), + 'state': None, + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'state_class': 'measurement', + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_voltage_pv3p_ct', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Voltage PV3P CT', + 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'V', + }), + }), + 'original_device_class': 'voltage', + 'original_icon': None, + 'original_name': 'Voltage PV3P CT', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'pv3p_ct_voltage', + 'unique_id': '<>_pv3p_ct_voltage', + 'unit_of_measurement': 'V', + }), + 'state': None, }), - 'configuration_url': None, - 'connections': list([ - ]), - 'disabled_by': None, - 'entry_type': None, - 'hw_version': None, - 'identifiers': list([ - list([ - 'enphase_envoy', - 'NC1', - ]), - ]), - 'labels': list([ - ]), - 'manufacturer': 'Enphase', - 'model': 'Dry contact relay', - 'model_id': None, - 'name': 'NC1 Fixture', - 'name_by_user': None, - 'primary_config_entry': '45a36e55aaddb2007c5f6602e0c38e72', - 'serial_number': None, - 'sw_version': '1.2.2064_release/20.34', - }), - 'entities': list([ dict({ 'entity': dict({ 'aliases': list([ ]), 'area_id': None, 'capabilities': dict({ - 'max': 100.0, - 'min': 0.0, - 'mode': 'auto', - 'step': 1.0, + 'state_class': 'measurement', }), 'categories': dict({ }), 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', 'config_subentry_id': None, 'device_class': None, - 'disabled_by': None, - 'domain': 'number', - 'entity_category': 'config', - 'entity_id': 'number.nc1_fixture_cutoff_battery_level', + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_voltage_pv3p_ct_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Cutoff battery level', + 'object_id_base': 'Voltage PV3P CT l1', 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'V', + }), }), - 'original_device_class': 'battery', + 'original_device_class': 'voltage', 'original_icon': None, - 'original_name': 'Cutoff battery level', + 'original_name': 'Voltage PV3P CT l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'cutoff_battery_level', - 'unique_id': '654321_relay_NC1_soc_low', - 'unit_of_measurement': None, - }), - 'state': dict({ - 'attributes': dict({ - 'device_class': 'battery', - 'friendly_name': 'NC1 Fixture Cutoff battery level', - 'max': 100.0, - 'min': 0.0, - 'mode': 'auto', - 'step': 1.0, - }), - 'entity_id': 'number.nc1_fixture_cutoff_battery_level', - 'state': '25.0', + 'translation_key': 'pv3p_ct_voltage_phase', + 'unique_id': '<>_pv3p_ct_voltage_l1', + 'unit_of_measurement': 'V', }), + 'state': None, }), dict({ 'entity': dict({ @@ -11068,52 +17486,41 @@ ]), 'area_id': None, 'capabilities': dict({ - 'max': 100.0, - 'min': 0.0, - 'mode': 'auto', - 'step': 1.0, + 'state_class': 'measurement', }), 'categories': dict({ }), 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', 'config_subentry_id': None, 'device_class': None, - 'disabled_by': None, - 'domain': 'number', - 'entity_category': 'config', - 'entity_id': 'number.nc1_fixture_restore_battery_level', + 'disabled_by': 'integration', + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_<>_voltage_pv3p_ct_l2', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Restore battery level', + 'object_id_base': 'Voltage PV3P CT l2', 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'V', + }), }), - 'original_device_class': 'battery', + 'original_device_class': 'voltage', 'original_icon': None, - 'original_name': 'Restore battery level', + 'original_name': 'Voltage PV3P CT l2', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'restore_battery_level', - 'unique_id': '654321_relay_NC1_soc_high', - 'unit_of_measurement': None, - }), - 'state': dict({ - 'attributes': dict({ - 'device_class': 'battery', - 'friendly_name': 'NC1 Fixture Restore battery level', - 'max': 100.0, - 'min': 0.0, - 'mode': 'auto', - 'step': 1.0, - }), - 'entity_id': 'number.nc1_fixture_restore_battery_level', - 'state': '70.0', + 'translation_key': 'pv3p_ct_voltage_phase', + 'unique_id': '<>_pv3p_ct_voltage_l2', + 'unit_of_measurement': 'V', }), + 'state': None, }), dict({ 'entity': dict({ @@ -11121,51 +17528,41 @@ ]), 'area_id': None, 'capabilities': dict({ - 'options': list([ - 'standard', - 'battery', - ]), + 'state_class': 'measurement', }), 'categories': dict({ }), 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', 'config_subentry_id': None, 'device_class': None, - 'disabled_by': None, - 'domain': 'select', + 'disabled_by': 'integration', + 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'select.nc1_fixture_mode', + 'entity_id': 'sensor.envoy_<>_voltage_pv3p_ct_l3', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Mode', + 'object_id_base': 'Voltage PV3P CT l3', 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'V', + }), }), - 'original_device_class': None, + 'original_device_class': 'voltage', 'original_icon': None, - 'original_name': 'Mode', + 'original_name': 'Voltage PV3P CT l3', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'relay_mode', - 'unique_id': '654321_relay_NC1_mode', - 'unit_of_measurement': None, - }), - 'state': dict({ - 'attributes': dict({ - 'friendly_name': 'NC1 Fixture Mode', - 'options': list([ - 'standard', - 'battery', - ]), - }), - 'entity_id': 'select.nc1_fixture_mode', - 'state': 'standard', + 'translation_key': 'pv3p_ct_voltage_phase', + 'unique_id': '<>_pv3p_ct_voltage_l3', + 'unit_of_measurement': 'V', }), + 'state': None, }), dict({ 'entity': dict({ @@ -11173,55 +17570,41 @@ ]), 'area_id': None, 'capabilities': dict({ - 'options': list([ - 'powered', - 'not_powered', - 'schedule', - 'none', - ]), + 'state_class': 'measurement', }), 'categories': dict({ }), 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', 'config_subentry_id': None, 'device_class': None, - 'disabled_by': None, - 'domain': 'select', + 'disabled_by': 'integration', + 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'select.nc1_fixture_grid_action', + 'entity_id': 'sensor.envoy_<>_voltage_storage_ct', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Grid action', + 'object_id_base': 'Voltage storage CT', 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'V', + }), }), - 'original_device_class': None, + 'original_device_class': 'voltage', 'original_icon': None, - 'original_name': 'Grid action', + 'original_name': 'Voltage storage CT', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'relay_grid_action', - 'unique_id': '654321_relay_NC1_grid_action', - 'unit_of_measurement': None, - }), - 'state': dict({ - 'attributes': dict({ - 'friendly_name': 'NC1 Fixture Grid action', - 'options': list([ - 'powered', - 'not_powered', - 'schedule', - 'none', - ]), - }), - 'entity_id': 'select.nc1_fixture_grid_action', - 'state': 'not_powered', + 'translation_key': 'storage_ct_voltage', + 'unique_id': '<>_storage_voltage', + 'unit_of_measurement': 'V', }), + 'state': None, }), dict({ 'entity': dict({ @@ -11229,55 +17612,41 @@ ]), 'area_id': None, 'capabilities': dict({ - 'options': list([ - 'powered', - 'not_powered', - 'schedule', - 'none', - ]), + 'state_class': 'measurement', }), 'categories': dict({ }), 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', 'config_subentry_id': None, 'device_class': None, - 'disabled_by': None, - 'domain': 'select', + 'disabled_by': 'integration', + 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'select.nc1_fixture_microgrid_action', + 'entity_id': 'sensor.envoy_<>_voltage_storage_ct_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Microgrid action', + 'object_id_base': 'Voltage storage CT l1', 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'V', + }), }), - 'original_device_class': None, + 'original_device_class': 'voltage', 'original_icon': None, - 'original_name': 'Microgrid action', + 'original_name': 'Voltage storage CT l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'relay_microgrid_action', - 'unique_id': '654321_relay_NC1_microgrid_action', - 'unit_of_measurement': None, - }), - 'state': dict({ - 'attributes': dict({ - 'friendly_name': 'NC1 Fixture Microgrid action', - 'options': list([ - 'powered', - 'not_powered', - 'schedule', - 'none', - ]), - }), - 'entity_id': 'select.nc1_fixture_microgrid_action', - 'state': 'not_powered', + 'translation_key': 'storage_ct_voltage_phase', + 'unique_id': '<>_storage_voltage_l1', + 'unit_of_measurement': 'V', }), + 'state': None, }), dict({ 'entity': dict({ @@ -11285,98 +17654,83 @@ ]), 'area_id': None, 'capabilities': dict({ - 'options': list([ - 'powered', - 'not_powered', - 'schedule', - 'none', - ]), + 'state_class': 'measurement', }), 'categories': dict({ }), 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', 'config_subentry_id': None, 'device_class': None, - 'disabled_by': None, - 'domain': 'select', + 'disabled_by': 'integration', + 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'select.nc1_fixture_generator_action', + 'entity_id': 'sensor.envoy_<>_voltage_storage_ct_l2', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Generator action', + 'object_id_base': 'Voltage storage CT l2', 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'V', + }), }), - 'original_device_class': None, + 'original_device_class': 'voltage', 'original_icon': None, - 'original_name': 'Generator action', + 'original_name': 'Voltage storage CT l2', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'relay_generator_action', - 'unique_id': '654321_relay_NC1_generator_action', - 'unit_of_measurement': None, - }), - 'state': dict({ - 'attributes': dict({ - 'friendly_name': 'NC1 Fixture Generator action', - 'options': list([ - 'powered', - 'not_powered', - 'schedule', - 'none', - ]), - }), - 'entity_id': 'select.nc1_fixture_generator_action', - 'state': 'not_powered', + 'translation_key': 'storage_ct_voltage_phase', + 'unique_id': '<>_storage_voltage_l2', + 'unit_of_measurement': 'V', }), + 'state': None, }), dict({ 'entity': dict({ 'aliases': list([ ]), 'area_id': None, - 'capabilities': None, + 'capabilities': dict({ + 'state_class': 'measurement', + }), 'categories': dict({ }), 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', 'config_subentry_id': None, 'device_class': None, - 'disabled_by': None, - 'domain': 'switch', + 'disabled_by': 'integration', + 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'switch.nc1_fixture', + 'entity_id': 'sensor.envoy_<>_voltage_storage_ct_l3', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': None, + 'object_id_base': 'Voltage storage CT l3', 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'V', + }), }), - 'original_device_class': None, + 'original_device_class': 'voltage', 'original_icon': None, - 'original_name': None, + 'original_name': 'Voltage storage CT l3', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'relay_status', - 'unique_id': '654321_relay_NC1_relay_status', - 'unit_of_measurement': None, - }), - 'state': dict({ - 'attributes': dict({ - 'friendly_name': 'NC1 Fixture', - }), - 'entity_id': 'switch.nc1_fixture', - 'state': 'off', + 'translation_key': 'storage_ct_voltage_phase', + 'unique_id': '<>_storage_voltage_l3', + 'unit_of_measurement': 'V', }), + 'state': None, }), ]), }), @@ -11400,19 +17754,19 @@ 'identifiers': list([ list([ 'enphase_envoy', - 'NC2', + '<>56', ]), ]), 'labels': list([ ]), 'manufacturer': 'Enphase', - 'model': 'Dry contact relay', + 'model': 'Encharge', 'model_id': None, - 'name': 'NC2 Fixture', + 'name': 'Encharge <>56', 'name_by_user': None, 'primary_config_entry': '45a36e55aaddb2007c5f6602e0c38e72', - 'serial_number': None, - 'sw_version': '1.2.2064_release/20.34', + 'serial_number': '<>56', + 'sw_version': '2.6.5973_rel/22.11', }), 'entities': list([ dict({ @@ -11420,52 +17774,43 @@ 'aliases': list([ ]), 'area_id': None, - 'capabilities': dict({ - 'max': 100.0, - 'min': 0.0, - 'mode': 'auto', - 'step': 1.0, - }), + 'capabilities': None, 'categories': dict({ }), 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', 'config_subentry_id': None, 'device_class': None, 'disabled_by': None, - 'domain': 'number', - 'entity_category': 'config', - 'entity_id': 'number.nc2_fixture_cutoff_battery_level', + 'domain': 'binary_sensor', + 'entity_category': 'diagnostic', + 'entity_id': 'binary_sensor.encharge_<>56_communicating', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Cutoff battery level', + 'object_id_base': 'Communicating', 'options': dict({ }), - 'original_device_class': 'battery', + 'original_device_class': 'connectivity', 'original_icon': None, - 'original_name': 'Cutoff battery level', + 'original_name': 'Communicating', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'cutoff_battery_level', - 'unique_id': '654321_relay_NC2_soc_low', + 'translation_key': 'communicating', + 'unique_id': '<>56_communicating', 'unit_of_measurement': None, }), 'state': dict({ 'attributes': dict({ - 'device_class': 'battery', - 'friendly_name': 'NC2 Fixture Cutoff battery level', - 'max': 100.0, - 'min': 0.0, - 'mode': 'auto', - 'step': 1.0, + 'device_class': 'connectivity', + 'friendly_name': 'Encharge <>56 Communicating', }), - 'entity_id': 'number.nc2_fixture_cutoff_battery_level', - 'state': '30.0', + 'entity_id': 'binary_sensor.encharge_<>56_communicating', + 'state': 'on', }), }), dict({ @@ -11473,52 +17818,42 @@ 'aliases': list([ ]), 'area_id': None, - 'capabilities': dict({ - 'max': 100.0, - 'min': 0.0, - 'mode': 'auto', - 'step': 1.0, - }), + 'capabilities': None, 'categories': dict({ }), 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', 'config_subentry_id': None, 'device_class': None, 'disabled_by': None, - 'domain': 'number', - 'entity_category': 'config', - 'entity_id': 'number.nc2_fixture_restore_battery_level', + 'domain': 'binary_sensor', + 'entity_category': 'diagnostic', + 'entity_id': 'binary_sensor.encharge_<>56_dc_switch', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Restore battery level', + 'object_id_base': 'DC switch', 'options': dict({ }), - 'original_device_class': 'battery', + 'original_device_class': None, 'original_icon': None, - 'original_name': 'Restore battery level', + 'original_name': 'DC switch', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'restore_battery_level', - 'unique_id': '654321_relay_NC2_soc_high', + 'translation_key': 'dc_switch', + 'unique_id': '<>56_dc_switch', 'unit_of_measurement': None, }), 'state': dict({ 'attributes': dict({ - 'device_class': 'battery', - 'friendly_name': 'NC2 Fixture Restore battery level', - 'max': 100.0, - 'min': 0.0, - 'mode': 'auto', - 'step': 1.0, + 'friendly_name': 'Encharge <>56 DC switch', }), - 'entity_id': 'number.nc2_fixture_restore_battery_level', - 'state': '70.0', + 'entity_id': 'binary_sensor.encharge_<>56_dc_switch', + 'state': 'on', }), }), dict({ @@ -11527,10 +17862,7 @@ ]), 'area_id': None, 'capabilities': dict({ - 'options': list([ - 'standard', - 'battery', - ]), + 'state_class': 'measurement', }), 'categories': dict({ }), @@ -11538,39 +17870,41 @@ 'config_subentry_id': None, 'device_class': None, 'disabled_by': None, - 'domain': 'select', + 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'select.nc2_fixture_mode', + 'entity_id': 'sensor.encharge_<>56_apparent_power', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Mode', + 'object_id_base': 'Apparent power', 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 0, + }), }), - 'original_device_class': None, + 'original_device_class': 'apparent_power', 'original_icon': None, - 'original_name': 'Mode', + 'original_name': 'Apparent power', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'relay_mode', - 'unique_id': '654321_relay_NC2_mode', - 'unit_of_measurement': None, + 'translation_key': None, + 'unique_id': '<>56_apparent_power_mva', + 'unit_of_measurement': 'VA', }), 'state': dict({ 'attributes': dict({ - 'friendly_name': 'NC2 Fixture Mode', - 'options': list([ - 'standard', - 'battery', - ]), + 'device_class': 'apparent_power', + 'friendly_name': 'Encharge <>56 Apparent power', + 'state_class': 'measurement', + 'unit_of_measurement': 'VA', }), - 'entity_id': 'select.nc2_fixture_mode', - 'state': 'standard', + 'entity_id': 'sensor.encharge_<>56_apparent_power', + 'state': '0.0', }), }), dict({ @@ -11579,12 +17913,7 @@ ]), 'area_id': None, 'capabilities': dict({ - 'options': list([ - 'powered', - 'not_powered', - 'schedule', - 'none', - ]), + 'state_class': 'measurement', }), 'categories': dict({ }), @@ -11592,41 +17921,38 @@ 'config_subentry_id': None, 'device_class': None, 'disabled_by': None, - 'domain': 'select', + 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'select.nc2_fixture_grid_action', + 'entity_id': 'sensor.encharge_<>56_battery', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Grid action', + 'object_id_base': 'Battery', 'options': dict({ }), - 'original_device_class': None, + 'original_device_class': 'battery', 'original_icon': None, - 'original_name': 'Grid action', + 'original_name': 'Battery', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'relay_grid_action', - 'unique_id': '654321_relay_NC2_grid_action', - 'unit_of_measurement': None, + 'translation_key': None, + 'unique_id': '<>56_soc', + 'unit_of_measurement': '%', }), 'state': dict({ 'attributes': dict({ - 'friendly_name': 'NC2 Fixture Grid action', - 'options': list([ - 'powered', - 'not_powered', - 'schedule', - 'none', - ]), + 'device_class': 'battery', + 'friendly_name': 'Encharge <>56 Battery', + 'state_class': 'measurement', + 'unit_of_measurement': '%', }), - 'entity_id': 'select.nc2_fixture_grid_action', - 'state': 'powered', + 'entity_id': 'sensor.encharge_<>56_battery', + 'state': '15', }), }), dict({ @@ -11634,55 +17960,43 @@ 'aliases': list([ ]), 'area_id': None, - 'capabilities': dict({ - 'options': list([ - 'powered', - 'not_powered', - 'schedule', - 'none', - ]), - }), + 'capabilities': None, 'categories': dict({ }), 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', 'config_subentry_id': None, 'device_class': None, 'disabled_by': None, - 'domain': 'select', + 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'select.nc2_fixture_microgrid_action', + 'entity_id': 'sensor.encharge_<>56_last_reported', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Microgrid action', + 'object_id_base': 'Last reported', 'options': dict({ }), - 'original_device_class': None, + 'original_device_class': 'timestamp', 'original_icon': None, - 'original_name': 'Microgrid action', + 'original_name': 'Last reported', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'relay_microgrid_action', - 'unique_id': '654321_relay_NC2_microgrid_action', + 'translation_key': 'last_reported', + 'unique_id': '<>56_last_reported', 'unit_of_measurement': None, }), 'state': dict({ 'attributes': dict({ - 'friendly_name': 'NC2 Fixture Microgrid action', - 'options': list([ - 'powered', - 'not_powered', - 'schedule', - 'none', - ]), + 'device_class': 'timestamp', + 'friendly_name': 'Encharge <>56 Last reported', }), - 'entity_id': 'select.nc2_fixture_microgrid_action', - 'state': 'not_powered', + 'entity_id': 'sensor.encharge_<>56_last_reported', + 'state': '2023-09-26T23:04:07+00:00', }), }), dict({ @@ -11691,12 +18005,7 @@ ]), 'area_id': None, 'capabilities': dict({ - 'options': list([ - 'powered', - 'not_powered', - 'schedule', - 'none', - ]), + 'state_class': 'measurement', }), 'categories': dict({ }), @@ -11704,41 +18013,41 @@ 'config_subentry_id': None, 'device_class': None, 'disabled_by': None, - 'domain': 'select', + 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'select.nc2_fixture_generator_action', + 'entity_id': 'sensor.encharge_<>56_power', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Generator action', + 'object_id_base': 'Power', 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 0, + }), }), - 'original_device_class': None, + 'original_device_class': 'power', 'original_icon': None, - 'original_name': 'Generator action', + 'original_name': 'Power', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'relay_generator_action', - 'unique_id': '654321_relay_NC2_generator_action', - 'unit_of_measurement': None, + 'translation_key': None, + 'unique_id': '<>56_real_power_mw', + 'unit_of_measurement': 'W', }), 'state': dict({ 'attributes': dict({ - 'friendly_name': 'NC2 Fixture Generator action', - 'options': list([ - 'powered', - 'not_powered', - 'schedule', - 'none', - ]), - }), - 'entity_id': 'select.nc2_fixture_generator_action', - 'state': 'not_powered', + 'device_class': 'power', + 'friendly_name': 'Encharge <>56 Power', + 'state_class': 'measurement', + 'unit_of_measurement': 'W', + }), + 'entity_id': 'sensor.encharge_<>56_power', + 'state': '0.0', }), }), dict({ @@ -11746,42 +18055,50 @@ 'aliases': list([ ]), 'area_id': None, - 'capabilities': None, + 'capabilities': dict({ + 'state_class': 'measurement', + }), 'categories': dict({ }), 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', 'config_subentry_id': None, 'device_class': None, 'disabled_by': None, - 'domain': 'switch', + 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'switch.nc2_fixture', + 'entity_id': 'sensor.encharge_<>56_temperature', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': None, + 'object_id_base': 'Temperature', 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 1, + }), }), - 'original_device_class': None, + 'original_device_class': 'temperature', 'original_icon': None, - 'original_name': None, + 'original_name': 'Temperature', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'relay_status', - 'unique_id': '654321_relay_NC2_relay_status', - 'unit_of_measurement': None, + 'translation_key': None, + 'unique_id': '<>56_temperature', + 'unit_of_measurement': '°C', }), 'state': dict({ 'attributes': dict({ - 'friendly_name': 'NC2 Fixture', + 'device_class': 'temperature', + 'friendly_name': 'Encharge <>56 Temperature', + 'state_class': 'measurement', + 'unit_of_measurement': '°C', }), - 'entity_id': 'switch.nc2_fixture', - 'state': 'on', + 'entity_id': 'sensor.encharge_<>56_temperature', + 'state': '29', }), }), ]), @@ -11806,7 +18123,7 @@ 'identifiers': list([ list([ 'enphase_envoy', - 'NC3', + 'NC1', ]), ]), 'labels': list([ @@ -11814,7 +18131,7 @@ 'manufacturer': 'Enphase', 'model': 'Dry contact relay', 'model_id': None, - 'name': 'NC3 Fixture', + 'name': 'NC1 Fixture', 'name_by_user': None, 'primary_config_entry': '45a36e55aaddb2007c5f6602e0c38e72', 'serial_number': None, @@ -11840,7 +18157,7 @@ 'disabled_by': None, 'domain': 'number', 'entity_category': 'config', - 'entity_id': 'number.nc3_fixture_cutoff_battery_level', + 'entity_id': 'number.nc1_fixture_cutoff_battery_level', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -11858,20 +18175,20 @@ 'suggested_object_id': None, 'supported_features': 0, 'translation_key': 'cutoff_battery_level', - 'unique_id': '654321_relay_NC3_soc_low', + 'unique_id': '654321_relay_NC1_soc_low', 'unit_of_measurement': None, }), 'state': dict({ 'attributes': dict({ 'device_class': 'battery', - 'friendly_name': 'NC3 Fixture Cutoff battery level', + 'friendly_name': 'NC1 Fixture Cutoff battery level', 'max': 100.0, 'min': 0.0, 'mode': 'auto', 'step': 1.0, }), - 'entity_id': 'number.nc3_fixture_cutoff_battery_level', - 'state': '30.0', + 'entity_id': 'number.nc1_fixture_cutoff_battery_level', + 'state': '25.0', }), }), dict({ @@ -11893,7 +18210,7 @@ 'disabled_by': None, 'domain': 'number', 'entity_category': 'config', - 'entity_id': 'number.nc3_fixture_restore_battery_level', + 'entity_id': 'number.nc1_fixture_restore_battery_level', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -11911,19 +18228,19 @@ 'suggested_object_id': None, 'supported_features': 0, 'translation_key': 'restore_battery_level', - 'unique_id': '654321_relay_NC3_soc_high', + 'unique_id': '654321_relay_NC1_soc_high', 'unit_of_measurement': None, }), 'state': dict({ 'attributes': dict({ 'device_class': 'battery', - 'friendly_name': 'NC3 Fixture Restore battery level', + 'friendly_name': 'NC1 Fixture Restore battery level', 'max': 100.0, 'min': 0.0, 'mode': 'auto', 'step': 1.0, }), - 'entity_id': 'number.nc3_fixture_restore_battery_level', + 'entity_id': 'number.nc1_fixture_restore_battery_level', 'state': '70.0', }), }), @@ -11934,8 +18251,10 @@ 'area_id': None, 'capabilities': dict({ 'options': list([ - 'standard', - 'battery', + 'powered', + 'not_powered', + 'schedule', + 'none', ]), }), 'categories': dict({ @@ -11946,37 +18265,39 @@ 'disabled_by': None, 'domain': 'select', 'entity_category': None, - 'entity_id': 'select.nc3_fixture_mode', + 'entity_id': 'select.nc1_fixture_generator_action', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Mode', + 'object_id_base': 'Generator action', 'options': dict({ }), 'original_device_class': None, 'original_icon': None, - 'original_name': 'Mode', + 'original_name': 'Generator action', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'relay_mode', - 'unique_id': '654321_relay_NC3_mode', + 'translation_key': 'relay_generator_action', + 'unique_id': '654321_relay_NC1_generator_action', 'unit_of_measurement': None, }), 'state': dict({ 'attributes': dict({ - 'friendly_name': 'NC3 Fixture Mode', + 'friendly_name': 'NC1 Fixture Generator action', 'options': list([ - 'standard', - 'battery', + 'powered', + 'not_powered', + 'schedule', + 'none', ]), }), - 'entity_id': 'select.nc3_fixture_mode', - 'state': 'standard', + 'entity_id': 'select.nc1_fixture_generator_action', + 'state': 'not_powered', }), }), dict({ @@ -12000,7 +18321,7 @@ 'disabled_by': None, 'domain': 'select', 'entity_category': None, - 'entity_id': 'select.nc3_fixture_grid_action', + 'entity_id': 'select.nc1_fixture_grid_action', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -12018,12 +18339,12 @@ 'suggested_object_id': None, 'supported_features': 0, 'translation_key': 'relay_grid_action', - 'unique_id': '654321_relay_NC3_grid_action', + 'unique_id': '654321_relay_NC1_grid_action', 'unit_of_measurement': None, }), 'state': dict({ 'attributes': dict({ - 'friendly_name': 'NC3 Fixture Grid action', + 'friendly_name': 'NC1 Fixture Grid action', 'options': list([ 'powered', 'not_powered', @@ -12031,7 +18352,7 @@ 'none', ]), }), - 'entity_id': 'select.nc3_fixture_grid_action', + 'entity_id': 'select.nc1_fixture_grid_action', 'state': 'not_powered', }), }), @@ -12056,7 +18377,7 @@ 'disabled_by': None, 'domain': 'select', 'entity_category': None, - 'entity_id': 'select.nc3_fixture_microgrid_action', + 'entity_id': 'select.nc1_fixture_microgrid_action', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -12074,12 +18395,12 @@ 'suggested_object_id': None, 'supported_features': 0, 'translation_key': 'relay_microgrid_action', - 'unique_id': '654321_relay_NC3_microgrid_action', + 'unique_id': '654321_relay_NC1_microgrid_action', 'unit_of_measurement': None, }), 'state': dict({ 'attributes': dict({ - 'friendly_name': 'NC3 Fixture Microgrid action', + 'friendly_name': 'NC1 Fixture Microgrid action', 'options': list([ 'powered', 'not_powered', @@ -12087,8 +18408,8 @@ 'none', ]), }), - 'entity_id': 'select.nc3_fixture_microgrid_action', - 'state': 'powered', + 'entity_id': 'select.nc1_fixture_microgrid_action', + 'state': 'not_powered', }), }), dict({ @@ -12098,10 +18419,8 @@ 'area_id': None, 'capabilities': dict({ 'options': list([ - 'powered', - 'not_powered', - 'schedule', - 'none', + 'standard', + 'battery', ]), }), 'categories': dict({ @@ -12112,39 +18431,37 @@ 'disabled_by': None, 'domain': 'select', 'entity_category': None, - 'entity_id': 'select.nc3_fixture_generator_action', + 'entity_id': 'select.nc1_fixture_mode', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Generator action', + 'object_id_base': 'Mode', 'options': dict({ }), 'original_device_class': None, 'original_icon': None, - 'original_name': 'Generator action', + 'original_name': 'Mode', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'relay_generator_action', - 'unique_id': '654321_relay_NC3_generator_action', + 'translation_key': 'relay_mode', + 'unique_id': '654321_relay_NC1_mode', 'unit_of_measurement': None, }), 'state': dict({ 'attributes': dict({ - 'friendly_name': 'NC3 Fixture Generator action', + 'friendly_name': 'NC1 Fixture Mode', 'options': list([ - 'powered', - 'not_powered', - 'schedule', - 'none', + 'standard', + 'battery', ]), }), - 'entity_id': 'select.nc3_fixture_generator_action', - 'state': 'powered', + 'entity_id': 'select.nc1_fixture_mode', + 'state': 'standard', }), }), dict({ @@ -12161,7 +18478,7 @@ 'disabled_by': None, 'domain': 'switch', 'entity_category': None, - 'entity_id': 'switch.nc3_fixture', + 'entity_id': 'switch.nc1_fixture', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -12179,14 +18496,14 @@ 'suggested_object_id': None, 'supported_features': 0, 'translation_key': 'relay_status', - 'unique_id': '654321_relay_NC3_relay_status', + 'unique_id': '654321_relay_NC1_relay_status', 'unit_of_measurement': None, }), 'state': dict({ 'attributes': dict({ - 'friendly_name': 'NC3 Fixture', + 'friendly_name': 'NC1 Fixture', }), - 'entity_id': 'switch.nc3_fixture', + 'entity_id': 'switch.nc1_fixture', 'state': 'off', }), }), @@ -12212,19 +18529,19 @@ 'identifiers': list([ list([ 'enphase_envoy', - '1', + 'NC2', ]), ]), 'labels': list([ ]), 'manufacturer': 'Enphase', - 'model': 'Inverter', + 'model': 'Dry contact relay', 'model_id': None, - 'name': 'Inverter 1', + 'name': 'NC2 Fixture', 'name_by_user': None, 'primary_config_entry': '45a36e55aaddb2007c5f6602e0c38e72', - 'serial_number': '1', - 'sw_version': None, + 'serial_number': None, + 'sw_version': '1.2.2064_release/20.34', }), 'entities': list([ dict({ @@ -12233,7 +18550,10 @@ ]), 'area_id': None, 'capabilities': dict({ - 'state_class': 'measurement', + 'max': 100.0, + 'min': 0.0, + 'mode': 'auto', + 'step': 1.0, }), 'categories': dict({ }), @@ -12241,41 +18561,40 @@ 'config_subentry_id': None, 'device_class': None, 'disabled_by': None, - 'domain': 'sensor', - 'entity_category': None, - 'entity_id': 'sensor.inverter_1', + 'domain': 'number', + 'entity_category': 'config', + 'entity_id': 'number.nc2_fixture_cutoff_battery_level', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': None, + 'object_id_base': 'Cutoff battery level', 'options': dict({ - 'sensor': dict({ - 'suggested_display_precision': 0, - }), }), - 'original_device_class': 'power', + 'original_device_class': 'battery', 'original_icon': None, - 'original_name': None, + 'original_name': 'Cutoff battery level', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': None, - 'unique_id': '1', - 'unit_of_measurement': 'W', + 'translation_key': 'cutoff_battery_level', + 'unique_id': '654321_relay_NC2_soc_low', + 'unit_of_measurement': None, }), 'state': dict({ 'attributes': dict({ - 'device_class': 'power', - 'friendly_name': 'Inverter 1', - 'state_class': 'measurement', - 'unit_of_measurement': 'W', + 'device_class': 'battery', + 'friendly_name': 'NC2 Fixture Cutoff battery level', + 'max': 100.0, + 'min': 0.0, + 'mode': 'auto', + 'step': 1.0, }), - 'entity_id': 'sensor.inverter_1', - 'state': '1', + 'entity_id': 'number.nc2_fixture_cutoff_battery_level', + 'state': '30.0', }), }), dict({ @@ -12284,38 +18603,108 @@ ]), 'area_id': None, 'capabilities': dict({ - 'state_class': 'measurement', + 'max': 100.0, + 'min': 0.0, + 'mode': 'auto', + 'step': 1.0, }), 'categories': dict({ }), 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', 'config_subentry_id': None, 'device_class': None, - 'disabled_by': 'integration', - 'domain': 'sensor', + 'disabled_by': None, + 'domain': 'number', + 'entity_category': 'config', + 'entity_id': 'number.nc2_fixture_restore_battery_level', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'labels': list([ + ]), + 'name': None, + 'object_id_base': 'Restore battery level', + 'options': dict({ + }), + 'original_device_class': 'battery', + 'original_icon': None, + 'original_name': 'Restore battery level', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'restore_battery_level', + 'unique_id': '654321_relay_NC2_soc_high', + 'unit_of_measurement': None, + }), + 'state': dict({ + 'attributes': dict({ + 'device_class': 'battery', + 'friendly_name': 'NC2 Fixture Restore battery level', + 'max': 100.0, + 'min': 0.0, + 'mode': 'auto', + 'step': 1.0, + }), + 'entity_id': 'number.nc2_fixture_restore_battery_level', + 'state': '70.0', + }), + }), + dict({ + 'entity': dict({ + 'aliases': list([ + ]), + 'area_id': None, + 'capabilities': dict({ + 'options': list([ + 'powered', + 'not_powered', + 'schedule', + 'none', + ]), + }), + 'categories': dict({ + }), + 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', + 'config_subentry_id': None, + 'device_class': None, + 'disabled_by': None, + 'domain': 'select', 'entity_category': None, - 'entity_id': 'sensor.inverter_1_dc_voltage', + 'entity_id': 'select.nc2_fixture_generator_action', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'DC voltage', + 'object_id_base': 'Generator action', 'options': dict({ }), - 'original_device_class': 'voltage', + 'original_device_class': None, 'original_icon': None, - 'original_name': 'DC voltage', + 'original_name': 'Generator action', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'dc_voltage', - 'unique_id': '1_dc_voltage', - 'unit_of_measurement': 'V', + 'translation_key': 'relay_generator_action', + 'unique_id': '654321_relay_NC2_generator_action', + 'unit_of_measurement': None, + }), + 'state': dict({ + 'attributes': dict({ + 'friendly_name': 'NC2 Fixture Generator action', + 'options': list([ + 'powered', + 'not_powered', + 'schedule', + 'none', + ]), + }), + 'entity_id': 'select.nc2_fixture_generator_action', + 'state': 'not_powered', }), - 'state': None, }), dict({ 'entity': dict({ @@ -12323,38 +18712,55 @@ ]), 'area_id': None, 'capabilities': dict({ - 'state_class': 'measurement', + 'options': list([ + 'powered', + 'not_powered', + 'schedule', + 'none', + ]), }), 'categories': dict({ }), 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', 'config_subentry_id': None, 'device_class': None, - 'disabled_by': 'integration', - 'domain': 'sensor', + 'disabled_by': None, + 'domain': 'select', 'entity_category': None, - 'entity_id': 'sensor.inverter_1_dc_current', + 'entity_id': 'select.nc2_fixture_grid_action', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'DC current', + 'object_id_base': 'Grid action', 'options': dict({ }), - 'original_device_class': 'current', + 'original_device_class': None, 'original_icon': None, - 'original_name': 'DC current', + 'original_name': 'Grid action', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'dc_current', - 'unique_id': '1_dc_current', - 'unit_of_measurement': 'A', + 'translation_key': 'relay_grid_action', + 'unique_id': '654321_relay_NC2_grid_action', + 'unit_of_measurement': None, + }), + 'state': dict({ + 'attributes': dict({ + 'friendly_name': 'NC2 Fixture Grid action', + 'options': list([ + 'powered', + 'not_powered', + 'schedule', + 'none', + ]), + }), + 'entity_id': 'select.nc2_fixture_grid_action', + 'state': 'powered', }), - 'state': None, }), dict({ 'entity': dict({ @@ -12362,38 +18768,55 @@ ]), 'area_id': None, 'capabilities': dict({ - 'state_class': 'measurement', + 'options': list([ + 'powered', + 'not_powered', + 'schedule', + 'none', + ]), }), 'categories': dict({ }), 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', 'config_subentry_id': None, 'device_class': None, - 'disabled_by': 'integration', - 'domain': 'sensor', + 'disabled_by': None, + 'domain': 'select', 'entity_category': None, - 'entity_id': 'sensor.inverter_1_ac_voltage', + 'entity_id': 'select.nc2_fixture_microgrid_action', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'AC voltage', + 'object_id_base': 'Microgrid action', 'options': dict({ }), - 'original_device_class': 'voltage', + 'original_device_class': None, 'original_icon': None, - 'original_name': 'AC voltage', + 'original_name': 'Microgrid action', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'ac_voltage', - 'unique_id': '1_ac_voltage', - 'unit_of_measurement': 'V', + 'translation_key': 'relay_microgrid_action', + 'unique_id': '654321_relay_NC2_microgrid_action', + 'unit_of_measurement': None, + }), + 'state': dict({ + 'attributes': dict({ + 'friendly_name': 'NC2 Fixture Microgrid action', + 'options': list([ + 'powered', + 'not_powered', + 'schedule', + 'none', + ]), + }), + 'entity_id': 'select.nc2_fixture_microgrid_action', + 'state': 'not_powered', }), - 'state': None, }), dict({ 'entity': dict({ @@ -12401,116 +18824,184 @@ ]), 'area_id': None, 'capabilities': dict({ - 'state_class': 'measurement', + 'options': list([ + 'standard', + 'battery', + ]), }), 'categories': dict({ }), 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', 'config_subentry_id': None, 'device_class': None, - 'disabled_by': 'integration', - 'domain': 'sensor', + 'disabled_by': None, + 'domain': 'select', 'entity_category': None, - 'entity_id': 'sensor.inverter_1_ac_current', + 'entity_id': 'select.nc2_fixture_mode', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'AC current', + 'object_id_base': 'Mode', 'options': dict({ }), - 'original_device_class': 'current', + 'original_device_class': None, 'original_icon': None, - 'original_name': 'AC current', + 'original_name': 'Mode', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'ac_current', - 'unique_id': '1_ac_current', - 'unit_of_measurement': 'A', + 'translation_key': 'relay_mode', + 'unique_id': '654321_relay_NC2_mode', + 'unit_of_measurement': None, + }), + 'state': dict({ + 'attributes': dict({ + 'friendly_name': 'NC2 Fixture Mode', + 'options': list([ + 'standard', + 'battery', + ]), + }), + 'entity_id': 'select.nc2_fixture_mode', + 'state': 'standard', }), - 'state': None, }), dict({ 'entity': dict({ 'aliases': list([ ]), 'area_id': None, - 'capabilities': dict({ - 'state_class': 'measurement', - }), + 'capabilities': None, 'categories': dict({ }), 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', 'config_subentry_id': None, 'device_class': None, - 'disabled_by': 'integration', - 'domain': 'sensor', + 'disabled_by': None, + 'domain': 'switch', 'entity_category': None, - 'entity_id': 'sensor.inverter_1_frequency', + 'entity_id': 'switch.nc2_fixture', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Frequency', + 'object_id_base': None, 'options': dict({ }), - 'original_device_class': 'frequency', + 'original_device_class': None, 'original_icon': None, - 'original_name': 'Frequency', + 'original_name': None, 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': None, - 'unique_id': '1_ac_frequency', - 'unit_of_measurement': 'Hz', + 'translation_key': 'relay_status', + 'unique_id': '654321_relay_NC2_relay_status', + 'unit_of_measurement': None, }), - 'state': None, + 'state': dict({ + 'attributes': dict({ + 'friendly_name': 'NC2 Fixture', + }), + 'entity_id': 'switch.nc2_fixture', + 'state': 'on', + }), + }), + ]), + }), + dict({ + 'device': dict({ + 'area_id': None, + 'config_entries': list([ + '45a36e55aaddb2007c5f6602e0c38e72', + ]), + 'config_entries_subentries': dict({ + '45a36e55aaddb2007c5f6602e0c38e72': list([ + None, + ]), }), + 'configuration_url': None, + 'connections': list([ + ]), + 'disabled_by': None, + 'entry_type': None, + 'hw_version': None, + 'identifiers': list([ + list([ + 'enphase_envoy', + 'NC3', + ]), + ]), + 'labels': list([ + ]), + 'manufacturer': 'Enphase', + 'model': 'Dry contact relay', + 'model_id': None, + 'name': 'NC3 Fixture', + 'name_by_user': None, + 'primary_config_entry': '45a36e55aaddb2007c5f6602e0c38e72', + 'serial_number': None, + 'sw_version': '1.2.2064_release/20.34', + }), + 'entities': list([ dict({ 'entity': dict({ 'aliases': list([ ]), 'area_id': None, 'capabilities': dict({ - 'state_class': 'measurement', + 'max': 100.0, + 'min': 0.0, + 'mode': 'auto', + 'step': 1.0, }), 'categories': dict({ }), 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', 'config_subentry_id': None, 'device_class': None, - 'disabled_by': 'integration', - 'domain': 'sensor', - 'entity_category': 'diagnostic', - 'entity_id': 'sensor.inverter_1_temperature', + 'disabled_by': None, + 'domain': 'number', + 'entity_category': 'config', + 'entity_id': 'number.nc3_fixture_cutoff_battery_level', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Temperature', + 'object_id_base': 'Cutoff battery level', 'options': dict({ }), - 'original_device_class': 'temperature', + 'original_device_class': 'battery', 'original_icon': None, - 'original_name': 'Temperature', + 'original_name': 'Cutoff battery level', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': None, - 'unique_id': '1_temperature', - 'unit_of_measurement': '°C', + 'translation_key': 'cutoff_battery_level', + 'unique_id': '654321_relay_NC3_soc_low', + 'unit_of_measurement': None, + }), + 'state': dict({ + 'attributes': dict({ + 'device_class': 'battery', + 'friendly_name': 'NC3 Fixture Cutoff battery level', + 'max': 100.0, + 'min': 0.0, + 'mode': 'auto', + 'step': 1.0, + }), + 'entity_id': 'number.nc3_fixture_cutoff_battery_level', + 'state': '30.0', }), - 'state': None, }), dict({ 'entity': dict({ @@ -12518,41 +19009,52 @@ ]), 'area_id': None, 'capabilities': dict({ - 'state_class': 'total_increasing', + 'max': 100.0, + 'min': 0.0, + 'mode': 'auto', + 'step': 1.0, }), 'categories': dict({ }), 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', 'config_subentry_id': None, 'device_class': None, - 'disabled_by': 'integration', - 'domain': 'sensor', - 'entity_category': None, - 'entity_id': 'sensor.inverter_1_lifetime_energy_production', + 'disabled_by': None, + 'domain': 'number', + 'entity_category': 'config', + 'entity_id': 'number.nc3_fixture_restore_battery_level', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Lifetime energy production', + 'object_id_base': 'Restore battery level', 'options': dict({ - 'sensor.private': dict({ - 'suggested_unit_of_measurement': 'kWh', - }), }), - 'original_device_class': 'energy', + 'original_device_class': 'battery', 'original_icon': None, - 'original_name': 'Lifetime energy production', + 'original_name': 'Restore battery level', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'lifetime_energy', - 'unique_id': '1_lifetime_energy', - 'unit_of_measurement': 'kWh', + 'translation_key': 'restore_battery_level', + 'unique_id': '654321_relay_NC3_soc_high', + 'unit_of_measurement': None, + }), + 'state': dict({ + 'attributes': dict({ + 'device_class': 'battery', + 'friendly_name': 'NC3 Fixture Restore battery level', + 'max': 100.0, + 'min': 0.0, + 'mode': 'auto', + 'step': 1.0, + }), + 'entity_id': 'number.nc3_fixture_restore_battery_level', + 'state': '70.0', }), - 'state': None, }), dict({ 'entity': dict({ @@ -12560,38 +19062,55 @@ ]), 'area_id': None, 'capabilities': dict({ - 'state_class': 'total_increasing', + 'options': list([ + 'powered', + 'not_powered', + 'schedule', + 'none', + ]), }), 'categories': dict({ }), 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', 'config_subentry_id': None, 'device_class': None, - 'disabled_by': 'integration', - 'domain': 'sensor', + 'disabled_by': None, + 'domain': 'select', 'entity_category': None, - 'entity_id': 'sensor.inverter_1_energy_production_today', + 'entity_id': 'select.nc3_fixture_generator_action', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Energy production today', + 'object_id_base': 'Generator action', 'options': dict({ }), - 'original_device_class': 'energy', + 'original_device_class': None, 'original_icon': None, - 'original_name': 'Energy production today', + 'original_name': 'Generator action', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'energy_today', - 'unique_id': '1_energy_today', - 'unit_of_measurement': 'Wh', + 'translation_key': 'relay_generator_action', + 'unique_id': '654321_relay_NC3_generator_action', + 'unit_of_measurement': None, + }), + 'state': dict({ + 'attributes': dict({ + 'friendly_name': 'NC3 Fixture Generator action', + 'options': list([ + 'powered', + 'not_powered', + 'schedule', + 'none', + ]), + }), + 'entity_id': 'select.nc3_fixture_generator_action', + 'state': 'powered', }), - 'state': None, }), dict({ 'entity': dict({ @@ -12599,38 +19118,55 @@ ]), 'area_id': None, 'capabilities': dict({ - 'state_class': 'measurement', + 'options': list([ + 'powered', + 'not_powered', + 'schedule', + 'none', + ]), }), 'categories': dict({ }), 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', 'config_subentry_id': None, 'device_class': None, - 'disabled_by': 'integration', - 'domain': 'sensor', - 'entity_category': 'diagnostic', - 'entity_id': 'sensor.inverter_1_last_report_duration', + 'disabled_by': None, + 'domain': 'select', + 'entity_category': None, + 'entity_id': 'select.nc3_fixture_grid_action', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Last report duration', + 'object_id_base': 'Grid action', 'options': dict({ }), - 'original_device_class': 'duration', + 'original_device_class': None, 'original_icon': None, - 'original_name': 'Last report duration', + 'original_name': 'Grid action', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'last_report_duration', - 'unique_id': '1_last_report_duration', - 'unit_of_measurement': 's', + 'translation_key': 'relay_grid_action', + 'unique_id': '654321_relay_NC3_grid_action', + 'unit_of_measurement': None, + }), + 'state': dict({ + 'attributes': dict({ + 'friendly_name': 'NC3 Fixture Grid action', + 'options': list([ + 'powered', + 'not_powered', + 'schedule', + 'none', + ]), + }), + 'entity_id': 'select.nc3_fixture_grid_action', + 'state': 'not_powered', }), - 'state': None, }), dict({ 'entity': dict({ @@ -12638,38 +19174,55 @@ ]), 'area_id': None, 'capabilities': dict({ - 'state_class': 'total', + 'options': list([ + 'powered', + 'not_powered', + 'schedule', + 'none', + ]), }), 'categories': dict({ }), 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', 'config_subentry_id': None, 'device_class': None, - 'disabled_by': 'integration', - 'domain': 'sensor', + 'disabled_by': None, + 'domain': 'select', 'entity_category': None, - 'entity_id': 'sensor.inverter_1_energy_production_since_previous_report', + 'entity_id': 'select.nc3_fixture_microgrid_action', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Energy production since previous report', + 'object_id_base': 'Microgrid action', 'options': dict({ }), - 'original_device_class': 'energy', + 'original_device_class': None, 'original_icon': None, - 'original_name': 'Energy production since previous report', + 'original_name': 'Microgrid action', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'energy_produced', - 'unique_id': '1_energy_produced', - 'unit_of_measurement': 'mWh', + 'translation_key': 'relay_microgrid_action', + 'unique_id': '654321_relay_NC3_microgrid_action', + 'unit_of_measurement': None, + }), + 'state': dict({ + 'attributes': dict({ + 'friendly_name': 'NC3 Fixture Microgrid action', + 'options': list([ + 'powered', + 'not_powered', + 'schedule', + 'none', + ]), + }), + 'entity_id': 'select.nc3_fixture_microgrid_action', + 'state': 'powered', }), - 'state': None, }), dict({ 'entity': dict({ @@ -12677,38 +19230,51 @@ ]), 'area_id': None, 'capabilities': dict({ - 'state_class': 'measurement', + 'options': list([ + 'standard', + 'battery', + ]), }), 'categories': dict({ }), 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', 'config_subentry_id': None, 'device_class': None, - 'disabled_by': 'integration', - 'domain': 'sensor', - 'entity_category': 'diagnostic', - 'entity_id': 'sensor.inverter_1_lifetime_maximum_power', + 'disabled_by': None, + 'domain': 'select', + 'entity_category': None, + 'entity_id': 'select.nc3_fixture_mode', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Lifetime maximum power', + 'object_id_base': 'Mode', 'options': dict({ }), - 'original_device_class': 'power', + 'original_device_class': None, 'original_icon': None, - 'original_name': 'Lifetime maximum power', + 'original_name': 'Mode', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'max_reported', - 'unique_id': '1_max_reported', - 'unit_of_measurement': 'W', + 'translation_key': 'relay_mode', + 'unique_id': '654321_relay_NC3_mode', + 'unit_of_measurement': None, + }), + 'state': dict({ + 'attributes': dict({ + 'friendly_name': 'NC3 Fixture Mode', + 'options': list([ + 'standard', + 'battery', + ]), + }), + 'entity_id': 'select.nc3_fixture_mode', + 'state': 'standard', }), - 'state': None, }), dict({ 'entity': dict({ @@ -12721,31 +19287,37 @@ 'config_entry_id': '45a36e55aaddb2007c5f6602e0c38e72', 'config_subentry_id': None, 'device_class': None, - 'disabled_by': 'integration', - 'domain': 'sensor', + 'disabled_by': None, + 'domain': 'switch', 'entity_category': None, - 'entity_id': 'sensor.inverter_1_last_reported', + 'entity_id': 'switch.nc3_fixture', 'has_entity_name': True, 'hidden_by': None, 'icon': None, 'labels': list([ ]), 'name': None, - 'object_id_base': 'Last reported', + 'object_id_base': None, 'options': dict({ }), - 'original_device_class': 'timestamp', + 'original_device_class': None, 'original_icon': None, - 'original_name': 'Last reported', + 'original_name': None, 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'last_reported', - 'unique_id': '1_last_reported', + 'translation_key': 'relay_status', + 'unique_id': '654321_relay_NC3_relay_status', 'unit_of_measurement': None, }), - 'state': None, + 'state': dict({ + 'attributes': dict({ + 'friendly_name': 'NC3 Fixture', + }), + 'entity_id': 'switch.nc3_fixture', + 'state': 'off', + }), }), ]), }), @@ -12806,6 +19378,18 @@ }), }), 'ctmeters': dict({ + 'backfeed': dict({ + '__type': "", + 'repr': "EnvoyMeterData(eid='100000040', timestamp=1708006120, energy_delivered=41234, energy_received=42345, active_power=104, power_factor=0.24, voltage=114, current=0.5, frequency=50.4, state='enabled', measurement_type='backfeed', metering_status='normal', status_flags=[])", + }), + 'evse': dict({ + '__type': "", + 'repr': "EnvoyMeterData(eid='100000060', timestamp=1708006120, energy_delivered=61234, energy_received=62345, active_power=106, power_factor=0.26, voltage=116, current=0.7, frequency=50.7, state='enabled', measurement_type='evse', metering_status='normal', status_flags=[])", + }), + 'load': dict({ + '__type': "", + 'repr': "EnvoyMeterData(eid='100000050', timestamp=1708006120, energy_delivered=51234, energy_received=52345, active_power=105, power_factor=0.25, voltage=115, current=0.6, frequency=50.6, state='enabled', measurement_type='load', metering_status='normal', status_flags=[])", + }), 'net-consumption': dict({ '__type': "", 'repr': "EnvoyMeterData(eid='100000020', timestamp=1708006120, energy_delivered=21234, energy_received=22345, active_power=101, power_factor=0.21, voltage=112, current=0.3, frequency=50.2, state='enabled', measurement_type='net-consumption', metering_status='normal', status_flags=[])", @@ -12814,12 +19398,58 @@ '__type': "", 'repr': "EnvoyMeterData(eid='100000010', timestamp=1708006110, energy_delivered=11234, energy_received=12345, active_power=100, power_factor=0.11, voltage=111, current=0.2, frequency=50.1, state='enabled', measurement_type='production', metering_status='normal', status_flags=['production-imbalance', 'power-on-unused-phase'])", }), + 'pv3p': dict({ + '__type': "", + 'repr': "EnvoyMeterData(eid='100000070', timestamp=1708006120, energy_delivered=71234, energy_received=72345, active_power=107, power_factor=0.27, voltage=117, current=0.8, frequency=50.8, state='enabled', measurement_type='pv3p', metering_status='normal', status_flags=[])", + }), 'storage': dict({ '__type': "", 'repr': "EnvoyMeterData(eid='100000030', timestamp=1708006120, energy_delivered=31234, energy_received=32345, active_power=103, power_factor=0.23, voltage=113, current=0.4, frequency=50.3, state='enabled', measurement_type='storage', metering_status='normal', status_flags=[])", }), }), 'ctmeters_phases': dict({ + 'backfeed': dict({ + 'L1': dict({ + '__type': "", + 'repr': "EnvoyMeterData(eid='100000041', timestamp=1708006121, energy_delivered=412341, energy_received=423451, active_power=114, power_factor=0.24, voltage=114, current=4.1, frequency=50.4, state='enabled', measurement_type='backfeed', metering_status='normal', status_flags=[])", + }), + 'L2': dict({ + '__type': "", + 'repr': "EnvoyMeterData(eid='100000042', timestamp=1708006122, energy_delivered=412342, energy_received=423452, active_power=124, power_factor=0.24, voltage=114, current=4.2, frequency=50.4, state='enabled', measurement_type='backfeed', metering_status='normal', status_flags=[])", + }), + 'L3': dict({ + '__type': "", + 'repr': "EnvoyMeterData(eid='100000042', timestamp=1708006123, energy_delivered=412343, energy_received=423453, active_power=134, power_factor=0.24, voltage=114, current=4.3, frequency=50.4, state='enabled', measurement_type='backfeed', metering_status='normal', status_flags=[])", + }), + }), + 'evse': dict({ + 'L1': dict({ + '__type': "", + 'repr': "EnvoyMeterData(eid='100000061', timestamp=1708006121, energy_delivered=612341, energy_received=623451, active_power=116, power_factor=0.26, voltage=116, current=6.1, frequency=50.6, state='enabled', measurement_type='evse', metering_status='normal', status_flags=[])", + }), + 'L2': dict({ + '__type': "", + 'repr': "EnvoyMeterData(eid='100000062', timestamp=1708006122, energy_delivered=612342, energy_received=623452, active_power=126, power_factor=0.26, voltage=116, current=6.2, frequency=50.6, state='enabled', measurement_type='evse', metering_status='normal', status_flags=[])", + }), + 'L3': dict({ + '__type': "", + 'repr': "EnvoyMeterData(eid='100000063', timestamp=1708006123, energy_delivered=612343, energy_received=623453, active_power=136, power_factor=0.26, voltage=116, current=6.3, frequency=50.6, state='enabled', measurement_type='evse', metering_status='normal', status_flags=[])", + }), + }), + 'load': dict({ + 'L1': dict({ + '__type': "", + 'repr': "EnvoyMeterData(eid='100000051', timestamp=1708006121, energy_delivered=512341, energy_received=523451, active_power=115, power_factor=0.25, voltage=115, current=5.1, frequency=50.6, state='enabled', measurement_type='load', metering_status='normal', status_flags=[])", + }), + 'L2': dict({ + '__type': "", + 'repr': "EnvoyMeterData(eid='100000052', timestamp=1708006122, energy_delivered=512342, energy_received=523452, active_power=125, power_factor=0.25, voltage=115, current=5.2, frequency=50.6, state='enabled', measurement_type='load', metering_status='normal', status_flags=[])", + }), + 'L3': dict({ + '__type': "", + 'repr': "EnvoyMeterData(eid='100000052', timestamp=1708006123, energy_delivered=512343, energy_received=523453, active_power=135, power_factor=0.25, voltage=115, current=5.3, frequency=50.6, state='enabled', measurement_type='load', metering_status='normal', status_flags=[])", + }), + }), 'net-consumption': dict({ 'L1': dict({ '__type': "", @@ -12848,6 +19478,20 @@ 'repr': "EnvoyMeterData(eid='100000013', timestamp=1708006113, energy_delivered=112343, energy_received=123453, active_power=50, power_factor=0.14, voltage=111, current=0.2, frequency=50.1, state='enabled', measurement_type='production', metering_status='normal', status_flags=[])", }), }), + 'pv3p': dict({ + 'L1': dict({ + '__type': "", + 'repr': "EnvoyMeterData(eid='100000071', timestamp=1708006127, energy_delivered=712341, energy_received=723451, active_power=117, power_factor=0.27, voltage=117, current=7.1, frequency=50.7, state='enabled', measurement_type='pv3p', metering_status='normal', status_flags=[])", + }), + 'L2': dict({ + '__type': "", + 'repr': "EnvoyMeterData(eid='100000072', timestamp=1708006122, energy_delivered=712342, energy_received=723452, active_power=127, power_factor=0.27, voltage=117, current=7.2, frequency=50.7, state='enabled', measurement_type='pv3p', metering_status='normal', status_flags=[])", + }), + 'L3': dict({ + '__type': "", + 'repr': "EnvoyMeterData(eid='100000073', timestamp=1708006123, energy_delivered=712343, energy_received=723453, active_power=137, power_factor=0.27, voltage=117, current=7.3, frequency=50.7, state='enabled', measurement_type='pv3p', metering_status='normal', status_flags=[])", + }), + }), 'storage': dict({ 'L1': dict({ '__type': "", @@ -12968,6 +19612,10 @@ 'production', 'net-consumption', 'storage', + 'backfeed', + 'load', + 'evse', + 'pv3p', ]), 'ct_production_meter': 'production', 'ct_storage_meter': 'storage', diff --git a/tests/components/enphase_envoy/snapshots/test_sensor.ambr b/tests/components/enphase_envoy/snapshots/test_sensor.ambr index 1651c71c43f90a..f898b9e1c1fa0c 100644 --- a/tests/components/enphase_envoy/snapshots/test_sensor.ambr +++ b/tests/components/enphase_envoy/snapshots/test_sensor.ambr @@ -2313,6 +2313,186 @@ 'state': '0.2', }) # --- +# name: test_sensor[envoy_1p_metered][sensor.envoy_1234_production_ct_energy_delivered-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_production_ct_energy_delivered', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Production CT energy delivered', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Production CT energy delivered', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'production_ct_energy_delivered', + 'unique_id': '1234_production_ct_energy_delivered', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_1p_metered][sensor.envoy_1234_production_ct_energy_delivered-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Production CT energy delivered', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_production_ct_energy_delivered', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '0.011234', + }) +# --- +# name: test_sensor[envoy_1p_metered][sensor.envoy_1234_production_ct_energy_received-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_production_ct_energy_received', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Production CT energy received', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Production CT energy received', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'production_ct_energy_received', + 'unique_id': '1234_production_ct_energy_received', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_1p_metered][sensor.envoy_1234_production_ct_energy_received-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Production CT energy received', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_production_ct_energy_received', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '0.012345', + }) +# --- +# name: test_sensor[envoy_1p_metered][sensor.envoy_1234_production_ct_power-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_production_ct_power', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Production CT power', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Production CT power', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'production_ct_power', + 'unique_id': '1234_production_ct_power', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_1p_metered][sensor.envoy_1234_production_ct_power-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'power', + 'friendly_name': 'Envoy 1234 Production CT power', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_production_ct_power', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '0.1', + }) +# --- # name: test_sensor[envoy_1p_metered][sensor.envoy_1234_voltage_net_consumption_ct-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ @@ -7584,13 +7764,13 @@ 'state': '0.2', }) # --- -# name: test_sensor[envoy_acb_batt][sensor.envoy_1234_reserve_battery_energy-entry] +# name: test_sensor[envoy_acb_batt][sensor.envoy_1234_production_ct_energy_delivered-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -7599,7 +7779,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_reserve_battery_energy', + 'entity_id': 'sensor.envoy_1234_production_ct_energy_delivered', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -7607,47 +7787,50 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Reserve battery energy', + 'object_id_base': 'Production CT energy delivered', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 0, + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Reserve battery energy', + 'original_name': 'Production CT energy delivered', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'reserve_energy', - 'unique_id': '1234_reserve_energy', - 'unit_of_measurement': , + 'translation_key': 'production_ct_energy_delivered', + 'unique_id': '1234_production_ct_energy_delivered', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_acb_batt][sensor.envoy_1234_reserve_battery_energy-state] +# name: test_sensor[envoy_acb_batt][sensor.envoy_1234_production_ct_energy_delivered-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'energy_storage', - 'friendly_name': 'Envoy 1234 Reserve battery energy', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Production CT energy delivered', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_reserve_battery_energy', + 'entity_id': 'sensor.envoy_1234_production_ct_energy_delivered', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0', + 'state': '0.011234', }) # --- -# name: test_sensor[envoy_acb_batt][sensor.envoy_1234_reserve_battery_level-entry] +# name: test_sensor[envoy_acb_batt][sensor.envoy_1234_production_ct_energy_delivered_l1-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -7656,7 +7839,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_reserve_battery_level', + 'entity_id': 'sensor.envoy_1234_production_ct_energy_delivered_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -7664,44 +7847,50 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Reserve battery level', + 'object_id_base': 'Production CT energy delivered l1', 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Reserve battery level', + 'original_name': 'Production CT energy delivered l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'reserve_soc', - 'unique_id': '1234_reserve_soc', - 'unit_of_measurement': '%', + 'translation_key': 'production_ct_energy_delivered_phase', + 'unique_id': '1234_production_ct_energy_delivered_l1', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_acb_batt][sensor.envoy_1234_reserve_battery_level-state] +# name: test_sensor[envoy_acb_batt][sensor.envoy_1234_production_ct_energy_delivered_l1-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'battery', - 'friendly_name': 'Envoy 1234 Reserve battery level', - 'state_class': , - 'unit_of_measurement': '%', + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Production CT energy delivered l1', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_reserve_battery_level', + 'entity_id': 'sensor.envoy_1234_production_ct_energy_delivered_l1', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0', + 'state': '0.112341', }) # --- -# name: test_sensor[envoy_acb_batt][sensor.envoy_1234_voltage_net_consumption_ct-entry] +# name: test_sensor[envoy_acb_batt][sensor.envoy_1234_production_ct_energy_delivered_l2-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -7710,7 +7899,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_voltage_net_consumption_ct', + 'entity_id': 'sensor.envoy_1234_production_ct_energy_delivered_l2', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -7718,50 +7907,50 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Voltage net consumption CT', + 'object_id_base': 'Production CT energy delivered l2', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 1, + 'suggested_display_precision': 3, }), 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Voltage net consumption CT', + 'original_name': 'Production CT energy delivered l2', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_ct_voltage', - 'unique_id': '1234_voltage', - 'unit_of_measurement': , + 'translation_key': 'production_ct_energy_delivered_phase', + 'unique_id': '1234_production_ct_energy_delivered_l2', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_acb_batt][sensor.envoy_1234_voltage_net_consumption_ct-state] +# name: test_sensor[envoy_acb_batt][sensor.envoy_1234_production_ct_energy_delivered_l2-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'voltage', - 'friendly_name': 'Envoy 1234 Voltage net consumption CT', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Production CT energy delivered l2', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_voltage_net_consumption_ct', + 'entity_id': 'sensor.envoy_1234_production_ct_energy_delivered_l2', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '112', + 'state': '0.112342', }) # --- -# name: test_sensor[envoy_acb_batt][sensor.envoy_1234_voltage_net_consumption_ct_l1-entry] +# name: test_sensor[envoy_acb_batt][sensor.envoy_1234_production_ct_energy_delivered_l3-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -7770,7 +7959,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_voltage_net_consumption_ct_l1', + 'entity_id': 'sensor.envoy_1234_production_ct_energy_delivered_l3', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -7778,50 +7967,50 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Voltage net consumption CT l1', + 'object_id_base': 'Production CT energy delivered l3', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 1, + 'suggested_display_precision': 3, }), 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Voltage net consumption CT l1', + 'original_name': 'Production CT energy delivered l3', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_ct_voltage_phase', - 'unique_id': '1234_voltage_l1', - 'unit_of_measurement': , + 'translation_key': 'production_ct_energy_delivered_phase', + 'unique_id': '1234_production_ct_energy_delivered_l3', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_acb_batt][sensor.envoy_1234_voltage_net_consumption_ct_l1-state] +# name: test_sensor[envoy_acb_batt][sensor.envoy_1234_production_ct_energy_delivered_l3-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'voltage', - 'friendly_name': 'Envoy 1234 Voltage net consumption CT l1', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Production CT energy delivered l3', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_voltage_net_consumption_ct_l1', + 'entity_id': 'sensor.envoy_1234_production_ct_energy_delivered_l3', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '112', + 'state': '0.112343', }) # --- -# name: test_sensor[envoy_acb_batt][sensor.envoy_1234_voltage_net_consumption_ct_l2-entry] +# name: test_sensor[envoy_acb_batt][sensor.envoy_1234_production_ct_energy_received-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -7830,7 +8019,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_voltage_net_consumption_ct_l2', + 'entity_id': 'sensor.envoy_1234_production_ct_energy_received', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -7838,50 +8027,50 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Voltage net consumption CT l2', + 'object_id_base': 'Production CT energy received', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 1, + 'suggested_display_precision': 3, }), 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Voltage net consumption CT l2', + 'original_name': 'Production CT energy received', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_ct_voltage_phase', - 'unique_id': '1234_voltage_l2', - 'unit_of_measurement': , + 'translation_key': 'production_ct_energy_received', + 'unique_id': '1234_production_ct_energy_received', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_acb_batt][sensor.envoy_1234_voltage_net_consumption_ct_l2-state] +# name: test_sensor[envoy_acb_batt][sensor.envoy_1234_production_ct_energy_received-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'voltage', - 'friendly_name': 'Envoy 1234 Voltage net consumption CT l2', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Production CT energy received', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_voltage_net_consumption_ct_l2', + 'entity_id': 'sensor.envoy_1234_production_ct_energy_received', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '112', + 'state': '0.012345', }) # --- -# name: test_sensor[envoy_acb_batt][sensor.envoy_1234_voltage_net_consumption_ct_l3-entry] +# name: test_sensor[envoy_acb_batt][sensor.envoy_1234_production_ct_energy_received_l1-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -7890,7 +8079,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_voltage_net_consumption_ct_l3', + 'entity_id': 'sensor.envoy_1234_production_ct_energy_received_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -7898,50 +8087,50 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Voltage net consumption CT l3', + 'object_id_base': 'Production CT energy received l1', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 1, + 'suggested_display_precision': 3, }), 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Voltage net consumption CT l3', + 'original_name': 'Production CT energy received l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_ct_voltage_phase', - 'unique_id': '1234_voltage_l3', - 'unit_of_measurement': , + 'translation_key': 'production_ct_energy_received_phase', + 'unique_id': '1234_production_ct_energy_received_l1', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_acb_batt][sensor.envoy_1234_voltage_net_consumption_ct_l3-state] +# name: test_sensor[envoy_acb_batt][sensor.envoy_1234_production_ct_energy_received_l1-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'voltage', - 'friendly_name': 'Envoy 1234 Voltage net consumption CT l3', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Production CT energy received l1', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_voltage_net_consumption_ct_l3', + 'entity_id': 'sensor.envoy_1234_production_ct_energy_received_l1', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '112', + 'state': '0.123451', }) # --- -# name: test_sensor[envoy_acb_batt][sensor.envoy_1234_voltage_production_ct-entry] +# name: test_sensor[envoy_acb_batt][sensor.envoy_1234_production_ct_energy_received_l2-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -7950,7 +8139,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_voltage_production_ct', + 'entity_id': 'sensor.envoy_1234_production_ct_energy_received_l2', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -7958,50 +8147,50 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Voltage production CT', + 'object_id_base': 'Production CT energy received l2', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 1, + 'suggested_display_precision': 3, }), 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Voltage production CT', + 'original_name': 'Production CT energy received l2', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'production_ct_voltage', - 'unique_id': '1234_production_ct_voltage', - 'unit_of_measurement': , + 'translation_key': 'production_ct_energy_received_phase', + 'unique_id': '1234_production_ct_energy_received_l2', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_acb_batt][sensor.envoy_1234_voltage_production_ct-state] +# name: test_sensor[envoy_acb_batt][sensor.envoy_1234_production_ct_energy_received_l2-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'voltage', - 'friendly_name': 'Envoy 1234 Voltage production CT', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Production CT energy received l2', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_voltage_production_ct', + 'entity_id': 'sensor.envoy_1234_production_ct_energy_received_l2', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '111', + 'state': '0.123452', }) # --- -# name: test_sensor[envoy_acb_batt][sensor.envoy_1234_voltage_production_ct_l1-entry] +# name: test_sensor[envoy_acb_batt][sensor.envoy_1234_production_ct_energy_received_l3-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -8010,7 +8199,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_voltage_production_ct_l1', + 'entity_id': 'sensor.envoy_1234_production_ct_energy_received_l3', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -8018,44 +8207,44 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Voltage production CT l1', + 'object_id_base': 'Production CT energy received l3', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 1, + 'suggested_display_precision': 3, }), 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Voltage production CT l1', + 'original_name': 'Production CT energy received l3', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'production_ct_voltage_phase', - 'unique_id': '1234_production_ct_voltage_l1', - 'unit_of_measurement': , + 'translation_key': 'production_ct_energy_received_phase', + 'unique_id': '1234_production_ct_energy_received_l3', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_acb_batt][sensor.envoy_1234_voltage_production_ct_l1-state] +# name: test_sensor[envoy_acb_batt][sensor.envoy_1234_production_ct_energy_received_l3-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'voltage', - 'friendly_name': 'Envoy 1234 Voltage production CT l1', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Production CT energy received l3', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_voltage_production_ct_l1', + 'entity_id': 'sensor.envoy_1234_production_ct_energy_received_l3', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '111', + 'state': '0.123453', }) # --- -# name: test_sensor[envoy_acb_batt][sensor.envoy_1234_voltage_production_ct_l2-entry] +# name: test_sensor[envoy_acb_batt][sensor.envoy_1234_production_ct_power-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -8070,7 +8259,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_voltage_production_ct_l2', + 'entity_id': 'sensor.envoy_1234_production_ct_power', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -8078,44 +8267,44 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Voltage production CT l2', + 'object_id_base': 'Production CT power', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 1, + 'suggested_display_precision': 3, }), 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Voltage production CT l2', + 'original_name': 'Production CT power', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'production_ct_voltage_phase', - 'unique_id': '1234_production_ct_voltage_l2', - 'unit_of_measurement': , + 'translation_key': 'production_ct_power', + 'unique_id': '1234_production_ct_power', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_acb_batt][sensor.envoy_1234_voltage_production_ct_l2-state] +# name: test_sensor[envoy_acb_batt][sensor.envoy_1234_production_ct_power-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'voltage', - 'friendly_name': 'Envoy 1234 Voltage production CT l2', + 'device_class': 'power', + 'friendly_name': 'Envoy 1234 Production CT power', 'state_class': , - 'unit_of_measurement': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_voltage_production_ct_l2', + 'entity_id': 'sensor.envoy_1234_production_ct_power', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '111', + 'state': '0.1', }) # --- -# name: test_sensor[envoy_acb_batt][sensor.envoy_1234_voltage_production_ct_l3-entry] +# name: test_sensor[envoy_acb_batt][sensor.envoy_1234_production_ct_power_l1-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -8130,7 +8319,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_voltage_production_ct_l3', + 'entity_id': 'sensor.envoy_1234_production_ct_power_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -8138,44 +8327,44 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Voltage production CT l3', + 'object_id_base': 'Production CT power l1', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 1, + 'suggested_display_precision': 3, }), 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Voltage production CT l3', + 'original_name': 'Production CT power l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'production_ct_voltage_phase', - 'unique_id': '1234_production_ct_voltage_l3', - 'unit_of_measurement': , + 'translation_key': 'production_ct_power_phase', + 'unique_id': '1234_production_ct_power_l1', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_acb_batt][sensor.envoy_1234_voltage_production_ct_l3-state] +# name: test_sensor[envoy_acb_batt][sensor.envoy_1234_production_ct_power_l1-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'voltage', - 'friendly_name': 'Envoy 1234 Voltage production CT l3', + 'device_class': 'power', + 'friendly_name': 'Envoy 1234 Production CT power l1', 'state_class': , - 'unit_of_measurement': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_voltage_production_ct_l3', + 'entity_id': 'sensor.envoy_1234_production_ct_power_l1', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '111', + 'state': '0.02', }) # --- -# name: test_sensor[envoy_acb_batt][sensor.inverter_1-entry] +# name: test_sensor[envoy_acb_batt][sensor.envoy_1234_production_ct_power_l2-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -8190,7 +8379,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.inverter_1', + 'entity_id': 'sensor.envoy_1234_production_ct_power_l2', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -8198,41 +8387,44 @@ 'labels': set({ }), 'name': None, - 'object_id_base': None, + 'object_id_base': 'Production CT power l2', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 0, + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , }), }), 'original_device_class': , 'original_icon': None, - 'original_name': None, + 'original_name': 'Production CT power l2', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': None, - 'unique_id': '1', - 'unit_of_measurement': , + 'translation_key': 'production_ct_power_phase', + 'unique_id': '1234_production_ct_power_l2', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_acb_batt][sensor.inverter_1-state] +# name: test_sensor[envoy_acb_batt][sensor.envoy_1234_production_ct_power_l2-state] StateSnapshot({ 'attributes': ReadOnlyDict({ 'device_class': 'power', - 'friendly_name': 'Inverter 1', + 'friendly_name': 'Envoy 1234 Production CT power l2', 'state_class': , - 'unit_of_measurement': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.inverter_1', + 'entity_id': 'sensor.envoy_1234_production_ct_power_l2', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '1', + 'state': '0.03', }) # --- -# name: test_sensor[envoy_acb_batt][sensor.inverter_1_ac_current-entry] +# name: test_sensor[envoy_acb_batt][sensor.envoy_1234_production_ct_power_l3-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -8247,7 +8439,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.inverter_1_ac_current', + 'entity_id': 'sensor.envoy_1234_production_ct_power_l3', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -8255,41 +8447,44 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'AC current', + 'object_id_base': 'Production CT power l3', 'options': dict({ 'sensor': dict({ 'suggested_display_precision': 3, }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'AC current', + 'original_name': 'Production CT power l3', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'ac_current', - 'unique_id': '1_ac_current', - 'unit_of_measurement': , + 'translation_key': 'production_ct_power_phase', + 'unique_id': '1234_production_ct_power_l3', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_acb_batt][sensor.inverter_1_ac_current-state] +# name: test_sensor[envoy_acb_batt][sensor.envoy_1234_production_ct_power_l3-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'current', - 'friendly_name': 'Inverter 1 AC current', + 'device_class': 'power', + 'friendly_name': 'Envoy 1234 Production CT power l3', 'state_class': , - 'unit_of_measurement': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.inverter_1_ac_current', + 'entity_id': 'sensor.envoy_1234_production_ct_power_l3', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': 'unknown', + 'state': '0.05', }) # --- -# name: test_sensor[envoy_acb_batt][sensor.inverter_1_ac_voltage-entry] +# name: test_sensor[envoy_acb_batt][sensor.envoy_1234_reserve_battery_energy-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -8304,7 +8499,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.inverter_1_ac_voltage', + 'entity_id': 'sensor.envoy_1234_reserve_battery_energy', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -8312,41 +8507,41 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'AC voltage', + 'object_id_base': 'Reserve battery energy', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 3, + 'suggested_display_precision': 0, }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'AC voltage', + 'original_name': 'Reserve battery energy', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'ac_voltage', - 'unique_id': '1_ac_voltage', - 'unit_of_measurement': , + 'translation_key': 'reserve_energy', + 'unique_id': '1234_reserve_energy', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_acb_batt][sensor.inverter_1_ac_voltage-state] +# name: test_sensor[envoy_acb_batt][sensor.envoy_1234_reserve_battery_energy-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'voltage', - 'friendly_name': 'Inverter 1 AC voltage', + 'device_class': 'energy_storage', + 'friendly_name': 'Envoy 1234 Reserve battery energy', 'state_class': , - 'unit_of_measurement': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.inverter_1_ac_voltage', + 'entity_id': 'sensor.envoy_1234_reserve_battery_energy', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': 'unknown', + 'state': '0', }) # --- -# name: test_sensor[envoy_acb_batt][sensor.inverter_1_dc_current-entry] +# name: test_sensor[envoy_acb_batt][sensor.envoy_1234_reserve_battery_level-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -8361,7 +8556,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.inverter_1_dc_current', + 'entity_id': 'sensor.envoy_1234_reserve_battery_level', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -8369,41 +8564,38 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'DC current', + 'object_id_base': 'Reserve battery level', 'options': dict({ - 'sensor': dict({ - 'suggested_display_precision': 3, - }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'DC current', + 'original_name': 'Reserve battery level', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'dc_current', - 'unique_id': '1_dc_current', - 'unit_of_measurement': , + 'translation_key': 'reserve_soc', + 'unique_id': '1234_reserve_soc', + 'unit_of_measurement': '%', }) # --- -# name: test_sensor[envoy_acb_batt][sensor.inverter_1_dc_current-state] +# name: test_sensor[envoy_acb_batt][sensor.envoy_1234_reserve_battery_level-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'current', - 'friendly_name': 'Inverter 1 DC current', + 'device_class': 'battery', + 'friendly_name': 'Envoy 1234 Reserve battery level', 'state_class': , - 'unit_of_measurement': , + 'unit_of_measurement': '%', }), 'context': , - 'entity_id': 'sensor.inverter_1_dc_current', + 'entity_id': 'sensor.envoy_1234_reserve_battery_level', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': 'unknown', + 'state': '0', }) # --- -# name: test_sensor[envoy_acb_batt][sensor.inverter_1_dc_voltage-entry] +# name: test_sensor[envoy_acb_batt][sensor.envoy_1234_voltage_net_consumption_ct-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -8418,7 +8610,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.inverter_1_dc_voltage', + 'entity_id': 'sensor.envoy_1234_voltage_net_consumption_ct', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -8426,47 +8618,50 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'DC voltage', + 'object_id_base': 'Voltage net consumption CT', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 3, + 'suggested_display_precision': 1, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , }), }), 'original_device_class': , 'original_icon': None, - 'original_name': 'DC voltage', + 'original_name': 'Voltage net consumption CT', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'dc_voltage', - 'unique_id': '1_dc_voltage', + 'translation_key': 'net_ct_voltage', + 'unique_id': '1234_voltage', 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_acb_batt][sensor.inverter_1_dc_voltage-state] +# name: test_sensor[envoy_acb_batt][sensor.envoy_1234_voltage_net_consumption_ct-state] StateSnapshot({ 'attributes': ReadOnlyDict({ 'device_class': 'voltage', - 'friendly_name': 'Inverter 1 DC voltage', + 'friendly_name': 'Envoy 1234 Voltage net consumption CT', 'state_class': , 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.inverter_1_dc_voltage', + 'entity_id': 'sensor.envoy_1234_voltage_net_consumption_ct', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': 'unknown', + 'state': '112', }) # --- -# name: test_sensor[envoy_acb_batt][sensor.inverter_1_energy_production_since_previous_report-entry] +# name: test_sensor[envoy_acb_batt][sensor.envoy_1234_voltage_net_consumption_ct_l1-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -8475,7 +8670,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.inverter_1_energy_production_since_previous_report', + 'entity_id': 'sensor.envoy_1234_voltage_net_consumption_ct_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -8483,47 +8678,50 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Energy production since previous report', + 'object_id_base': 'Voltage net consumption CT l1', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 3, + 'suggested_display_precision': 1, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Energy production since previous report', + 'original_name': 'Voltage net consumption CT l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'energy_produced', - 'unique_id': '1_energy_produced', - 'unit_of_measurement': , + 'translation_key': 'net_ct_voltage_phase', + 'unique_id': '1234_voltage_l1', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_acb_batt][sensor.inverter_1_energy_production_since_previous_report-state] +# name: test_sensor[envoy_acb_batt][sensor.envoy_1234_voltage_net_consumption_ct_l1-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'energy', - 'friendly_name': 'Inverter 1 Energy production since previous report', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'voltage', + 'friendly_name': 'Envoy 1234 Voltage net consumption CT l1', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.inverter_1_energy_production_since_previous_report', + 'entity_id': 'sensor.envoy_1234_voltage_net_consumption_ct_l1', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': 'unknown', + 'state': '112', }) # --- -# name: test_sensor[envoy_acb_batt][sensor.inverter_1_energy_production_today-entry] +# name: test_sensor[envoy_acb_batt][sensor.envoy_1234_voltage_net_consumption_ct_l2-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -8532,7 +8730,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.inverter_1_energy_production_today', + 'entity_id': 'sensor.envoy_1234_voltage_net_consumption_ct_l2', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -8540,41 +8738,44 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Energy production today', + 'object_id_base': 'Voltage net consumption CT l2', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 0, + 'suggested_display_precision': 1, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Energy production today', + 'original_name': 'Voltage net consumption CT l2', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'energy_today', - 'unique_id': '1_energy_today', - 'unit_of_measurement': , + 'translation_key': 'net_ct_voltage_phase', + 'unique_id': '1234_voltage_l2', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_acb_batt][sensor.inverter_1_energy_production_today-state] +# name: test_sensor[envoy_acb_batt][sensor.envoy_1234_voltage_net_consumption_ct_l2-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'energy', - 'friendly_name': 'Inverter 1 Energy production today', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'voltage', + 'friendly_name': 'Envoy 1234 Voltage net consumption CT l2', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.inverter_1_energy_production_today', + 'entity_id': 'sensor.envoy_1234_voltage_net_consumption_ct_l2', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': 'unknown', + 'state': '112', }) # --- -# name: test_sensor[envoy_acb_batt][sensor.inverter_1_frequency-entry] +# name: test_sensor[envoy_acb_batt][sensor.envoy_1234_voltage_net_consumption_ct_l3-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -8589,7 +8790,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.inverter_1_frequency', + 'entity_id': 'sensor.envoy_1234_voltage_net_consumption_ct_l3', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -8597,41 +8798,44 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Frequency', + 'object_id_base': 'Voltage net consumption CT l3', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 3, + 'suggested_display_precision': 1, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Frequency', + 'original_name': 'Voltage net consumption CT l3', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': None, - 'unique_id': '1_ac_frequency', - 'unit_of_measurement': , + 'translation_key': 'net_ct_voltage_phase', + 'unique_id': '1234_voltage_l3', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_acb_batt][sensor.inverter_1_frequency-state] +# name: test_sensor[envoy_acb_batt][sensor.envoy_1234_voltage_net_consumption_ct_l3-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'frequency', - 'friendly_name': 'Inverter 1 Frequency', + 'device_class': 'voltage', + 'friendly_name': 'Envoy 1234 Voltage net consumption CT l3', 'state_class': , - 'unit_of_measurement': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.inverter_1_frequency', + 'entity_id': 'sensor.envoy_1234_voltage_net_consumption_ct_l3', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': 'unknown', + 'state': '112', }) # --- -# name: test_sensor[envoy_acb_batt][sensor.inverter_1_last_report_duration-entry] +# name: test_sensor[envoy_acb_batt][sensor.envoy_1234_voltage_production_ct-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -8645,8 +8849,8 @@ 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': , - 'entity_id': 'sensor.inverter_1_last_report_duration', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_voltage_production_ct', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -8654,46 +8858,51 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Last report duration', + 'object_id_base': 'Voltage production CT', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 2, + 'suggested_display_precision': 1, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Last report duration', + 'original_name': 'Voltage production CT', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'last_report_duration', - 'unique_id': '1_last_report_duration', - 'unit_of_measurement': , + 'translation_key': 'production_ct_voltage', + 'unique_id': '1234_production_ct_voltage', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_acb_batt][sensor.inverter_1_last_report_duration-state] +# name: test_sensor[envoy_acb_batt][sensor.envoy_1234_voltage_production_ct-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'duration', - 'friendly_name': 'Inverter 1 Last report duration', + 'device_class': 'voltage', + 'friendly_name': 'Envoy 1234 Voltage production CT', 'state_class': , - 'unit_of_measurement': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.inverter_1_last_report_duration', + 'entity_id': 'sensor.envoy_1234_voltage_production_ct', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': 'unknown', + 'state': '111', }) # --- -# name: test_sensor[envoy_acb_batt][sensor.inverter_1_last_reported-entry] +# name: test_sensor[envoy_acb_batt][sensor.envoy_1234_voltage_production_ct_l1-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, - 'capabilities': None, + 'capabilities': dict({ + 'state_class': , + }), 'config_entry_id': , 'config_subentry_id': , 'device_class': None, @@ -8701,7 +8910,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.inverter_1_last_reported', + 'entity_id': 'sensor.envoy_1234_voltage_production_ct_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -8709,42 +8918,50 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Last reported', + 'object_id_base': 'Voltage production CT l1', 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 1, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Last reported', + 'original_name': 'Voltage production CT l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'last_reported', - 'unique_id': '1_last_reported', - 'unit_of_measurement': None, + 'translation_key': 'production_ct_voltage_phase', + 'unique_id': '1234_production_ct_voltage_l1', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_acb_batt][sensor.inverter_1_last_reported-state] +# name: test_sensor[envoy_acb_batt][sensor.envoy_1234_voltage_production_ct_l1-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'timestamp', - 'friendly_name': 'Inverter 1 Last reported', + 'device_class': 'voltage', + 'friendly_name': 'Envoy 1234 Voltage production CT l1', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.inverter_1_last_reported', + 'entity_id': 'sensor.envoy_1234_voltage_production_ct_l1', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '1970-01-01T00:00:01+00:00', + 'state': '111', }) # --- -# name: test_sensor[envoy_acb_batt][sensor.inverter_1_lifetime_energy_production-entry] +# name: test_sensor[envoy_acb_batt][sensor.envoy_1234_voltage_production_ct_l2-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -8753,7 +8970,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.inverter_1_lifetime_energy_production', + 'entity_id': 'sensor.envoy_1234_voltage_production_ct_l2', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -8761,44 +8978,44 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Lifetime energy production', + 'object_id_base': 'Voltage production CT l2', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 2, + 'suggested_display_precision': 1, }), 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Lifetime energy production', + 'original_name': 'Voltage production CT l2', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'lifetime_energy', - 'unique_id': '1_lifetime_energy', - 'unit_of_measurement': , + 'translation_key': 'production_ct_voltage_phase', + 'unique_id': '1234_production_ct_voltage_l2', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_acb_batt][sensor.inverter_1_lifetime_energy_production-state] +# name: test_sensor[envoy_acb_batt][sensor.envoy_1234_voltage_production_ct_l2-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'energy', - 'friendly_name': 'Inverter 1 Lifetime energy production', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'voltage', + 'friendly_name': 'Envoy 1234 Voltage production CT l2', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.inverter_1_lifetime_energy_production', + 'entity_id': 'sensor.envoy_1234_voltage_production_ct_l2', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': 'unknown', + 'state': '111', }) # --- -# name: test_sensor[envoy_acb_batt][sensor.inverter_1_lifetime_maximum_power-entry] +# name: test_sensor[envoy_acb_batt][sensor.envoy_1234_voltage_production_ct_l3-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -8812,8 +9029,8 @@ 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': , - 'entity_id': 'sensor.inverter_1_lifetime_maximum_power', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_voltage_production_ct_l3', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -8821,41 +9038,44 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Lifetime maximum power', + 'object_id_base': 'Voltage production CT l3', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 0, + 'suggested_display_precision': 1, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Lifetime maximum power', + 'original_name': 'Voltage production CT l3', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'max_reported', - 'unique_id': '1_max_reported', - 'unit_of_measurement': , + 'translation_key': 'production_ct_voltage_phase', + 'unique_id': '1234_production_ct_voltage_l3', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_acb_batt][sensor.inverter_1_lifetime_maximum_power-state] +# name: test_sensor[envoy_acb_batt][sensor.envoy_1234_voltage_production_ct_l3-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'power', - 'friendly_name': 'Inverter 1 Lifetime maximum power', + 'device_class': 'voltage', + 'friendly_name': 'Envoy 1234 Voltage production CT l3', 'state_class': , - 'unit_of_measurement': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.inverter_1_lifetime_maximum_power', + 'entity_id': 'sensor.envoy_1234_voltage_production_ct_l3', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '1', + 'state': '111', }) # --- -# name: test_sensor[envoy_acb_batt][sensor.inverter_1_temperature-entry] +# name: test_sensor[envoy_acb_batt][sensor.inverter_1-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -8869,8 +9089,8 @@ 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': , - 'entity_id': 'sensor.inverter_1_temperature', + 'entity_category': None, + 'entity_id': 'sensor.inverter_1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -8878,41 +9098,41 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Temperature', + 'object_id_base': None, 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 3, + 'suggested_display_precision': 0, }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Temperature', + 'original_name': None, 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, 'translation_key': None, - 'unique_id': '1_temperature', - 'unit_of_measurement': , + 'unique_id': '1', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_acb_batt][sensor.inverter_1_temperature-state] +# name: test_sensor[envoy_acb_batt][sensor.inverter_1-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'temperature', - 'friendly_name': 'Inverter 1 Temperature', + 'device_class': 'power', + 'friendly_name': 'Inverter 1', 'state_class': , - 'unit_of_measurement': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.inverter_1_temperature', + 'entity_id': 'sensor.inverter_1', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': 'unknown', + 'state': '1', }) # --- -# name: test_sensor[envoy_eu_batt][sensor.encharge_123456_apparent_power-entry] +# name: test_sensor[envoy_acb_batt][sensor.inverter_1_ac_current-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -8927,7 +9147,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.encharge_123456_apparent_power', + 'entity_id': 'sensor.inverter_1_ac_current', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -8935,41 +9155,41 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Apparent power', + 'object_id_base': 'AC current', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 0, + 'suggested_display_precision': 3, }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Apparent power', + 'original_name': 'AC current', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': None, - 'unique_id': '123456_apparent_power_mva', - 'unit_of_measurement': , + 'translation_key': 'ac_current', + 'unique_id': '1_ac_current', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_eu_batt][sensor.encharge_123456_apparent_power-state] +# name: test_sensor[envoy_acb_batt][sensor.inverter_1_ac_current-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'apparent_power', - 'friendly_name': 'Encharge 123456 Apparent power', + 'device_class': 'current', + 'friendly_name': 'Inverter 1 AC current', 'state_class': , - 'unit_of_measurement': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.encharge_123456_apparent_power', + 'entity_id': 'sensor.inverter_1_ac_current', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.0', + 'state': 'unknown', }) # --- -# name: test_sensor[envoy_eu_batt][sensor.encharge_123456_battery-entry] +# name: test_sensor[envoy_acb_batt][sensor.inverter_1_ac_voltage-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -8984,7 +9204,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.encharge_123456_battery', + 'entity_id': 'sensor.inverter_1_ac_voltage', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -8992,43 +9212,48 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Battery', + 'object_id_base': 'AC voltage', 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Battery', + 'original_name': 'AC voltage', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': None, - 'unique_id': '123456_soc', - 'unit_of_measurement': '%', + 'translation_key': 'ac_voltage', + 'unique_id': '1_ac_voltage', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_eu_batt][sensor.encharge_123456_battery-state] +# name: test_sensor[envoy_acb_batt][sensor.inverter_1_ac_voltage-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'battery', - 'friendly_name': 'Encharge 123456 Battery', + 'device_class': 'voltage', + 'friendly_name': 'Inverter 1 AC voltage', 'state_class': , - 'unit_of_measurement': '%', + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.encharge_123456_battery', + 'entity_id': 'sensor.inverter_1_ac_voltage', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '4', + 'state': 'unknown', }) # --- -# name: test_sensor[envoy_eu_batt][sensor.encharge_123456_last_reported-entry] +# name: test_sensor[envoy_acb_batt][sensor.inverter_1_dc_current-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, - 'capabilities': None, + 'capabilities': dict({ + 'state_class': , + }), 'config_entry_id': , 'config_subentry_id': , 'device_class': None, @@ -9036,7 +9261,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.encharge_123456_last_reported', + 'entity_id': 'sensor.inverter_1_dc_current', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -9044,36 +9269,41 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Last reported', + 'object_id_base': 'DC current', 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Last reported', + 'original_name': 'DC current', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'last_reported', - 'unique_id': '123456_last_reported', - 'unit_of_measurement': None, + 'translation_key': 'dc_current', + 'unique_id': '1_dc_current', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_eu_batt][sensor.encharge_123456_last_reported-state] +# name: test_sensor[envoy_acb_batt][sensor.inverter_1_dc_current-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'timestamp', - 'friendly_name': 'Encharge 123456 Last reported', + 'device_class': 'current', + 'friendly_name': 'Inverter 1 DC current', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.encharge_123456_last_reported', + 'entity_id': 'sensor.inverter_1_dc_current', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '2024-05-04T06:29:33+00:00', + 'state': 'unknown', }) # --- -# name: test_sensor[envoy_eu_batt][sensor.encharge_123456_power-entry] +# name: test_sensor[envoy_acb_batt][sensor.inverter_1_dc_voltage-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -9088,7 +9318,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.encharge_123456_power', + 'entity_id': 'sensor.inverter_1_dc_voltage', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -9096,47 +9326,47 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Power', + 'object_id_base': 'DC voltage', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 0, + 'suggested_display_precision': 3, }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Power', + 'original_name': 'DC voltage', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': None, - 'unique_id': '123456_real_power_mw', - 'unit_of_measurement': , + 'translation_key': 'dc_voltage', + 'unique_id': '1_dc_voltage', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_eu_batt][sensor.encharge_123456_power-state] +# name: test_sensor[envoy_acb_batt][sensor.inverter_1_dc_voltage-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'power', - 'friendly_name': 'Encharge 123456 Power', + 'device_class': 'voltage', + 'friendly_name': 'Inverter 1 DC voltage', 'state_class': , - 'unit_of_measurement': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.encharge_123456_power', + 'entity_id': 'sensor.inverter_1_dc_voltage', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.0', + 'state': 'unknown', }) # --- -# name: test_sensor[envoy_eu_batt][sensor.encharge_123456_temperature-entry] +# name: test_sensor[envoy_acb_batt][sensor.inverter_1_energy_production_since_previous_report-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -9145,7 +9375,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.encharge_123456_temperature', + 'entity_id': 'sensor.inverter_1_energy_production_since_previous_report', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -9153,47 +9383,47 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Temperature', + 'object_id_base': 'Energy production since previous report', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 1, + 'suggested_display_precision': 3, }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Temperature', + 'original_name': 'Energy production since previous report', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': None, - 'unique_id': '123456_temperature', - 'unit_of_measurement': , + 'translation_key': 'energy_produced', + 'unique_id': '1_energy_produced', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_eu_batt][sensor.encharge_123456_temperature-state] +# name: test_sensor[envoy_acb_batt][sensor.inverter_1_energy_production_since_previous_report-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'temperature', - 'friendly_name': 'Encharge 123456 Temperature', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'energy', + 'friendly_name': 'Inverter 1 Energy production since previous report', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.encharge_123456_temperature', + 'entity_id': 'sensor.inverter_1_energy_production_since_previous_report', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '16', + 'state': 'unknown', }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_available_battery_energy-entry] +# name: test_sensor[envoy_acb_batt][sensor.inverter_1_energy_production_today-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -9202,7 +9432,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_available_battery_energy', + 'entity_id': 'sensor.inverter_1_energy_production_today', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -9210,41 +9440,41 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Available battery energy', + 'object_id_base': 'Energy production today', 'options': dict({ 'sensor': dict({ 'suggested_display_precision': 0, }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Available battery energy', + 'original_name': 'Energy production today', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'available_energy', - 'unique_id': '1234_available_energy', + 'translation_key': 'energy_today', + 'unique_id': '1_energy_today', 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_available_battery_energy-state] +# name: test_sensor[envoy_acb_batt][sensor.inverter_1_energy_production_today-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'energy_storage', - 'friendly_name': 'Envoy 1234 Available battery energy', - 'state_class': , + 'device_class': 'energy', + 'friendly_name': 'Inverter 1 Energy production today', + 'state_class': , 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_available_battery_energy', + 'entity_id': 'sensor.inverter_1_energy_production_today', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '140', + 'state': 'unknown', }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_balanced_net_power_consumption-entry] +# name: test_sensor[envoy_acb_batt][sensor.inverter_1_frequency-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -9259,7 +9489,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_balanced_net_power_consumption', + 'entity_id': 'sensor.inverter_1_frequency', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -9267,44 +9497,41 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Balanced net power consumption', + 'object_id_base': 'Frequency', 'options': dict({ 'sensor': dict({ 'suggested_display_precision': 3, }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': , - }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Balanced net power consumption', + 'original_name': 'Frequency', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'balanced_net_consumption', - 'unique_id': '1234_balanced_net_consumption', - 'unit_of_measurement': , + 'translation_key': None, + 'unique_id': '1_ac_frequency', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_balanced_net_power_consumption-state] +# name: test_sensor[envoy_acb_batt][sensor.inverter_1_frequency-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'power', - 'friendly_name': 'Envoy 1234 Balanced net power consumption', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'frequency', + 'friendly_name': 'Inverter 1 Frequency', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_balanced_net_power_consumption', + 'entity_id': 'sensor.inverter_1_frequency', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '2.341', + 'state': 'unknown', }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_battery-entry] +# name: test_sensor[envoy_acb_batt][sensor.inverter_1_last_report_duration-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -9318,8 +9545,8 @@ 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_battery', + 'entity_category': , + 'entity_id': 'sensor.inverter_1_last_report_duration', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -9327,38 +9554,41 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Battery', + 'object_id_base': 'Last report duration', 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 2, + }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Battery', + 'original_name': 'Last report duration', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': None, - 'unique_id': '1234_battery_level', - 'unit_of_measurement': '%', + 'translation_key': 'last_report_duration', + 'unique_id': '1_last_report_duration', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_battery-state] +# name: test_sensor[envoy_acb_batt][sensor.inverter_1_last_report_duration-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'battery', - 'friendly_name': 'Envoy 1234 Battery', + 'device_class': 'duration', + 'friendly_name': 'Inverter 1 Last report duration', 'state_class': , - 'unit_of_measurement': '%', + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_battery', + 'entity_id': 'sensor.inverter_1_last_report_duration', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '4', + 'state': 'unknown', }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_battery_capacity-entry] +# name: test_sensor[envoy_acb_batt][sensor.inverter_1_last_reported-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -9371,7 +9601,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_battery_capacity', + 'entity_id': 'sensor.inverter_1_last_reported', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -9379,46 +9609,42 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Battery capacity', + 'object_id_base': 'Last reported', 'options': dict({ - 'sensor': dict({ - 'suggested_display_precision': 0, - }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Battery capacity', + 'original_name': 'Last reported', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'max_capacity', - 'unique_id': '1234_max_capacity', - 'unit_of_measurement': , + 'translation_key': 'last_reported', + 'unique_id': '1_last_reported', + 'unit_of_measurement': None, }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_battery_capacity-state] +# name: test_sensor[envoy_acb_batt][sensor.inverter_1_last_reported-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'energy_storage', - 'friendly_name': 'Envoy 1234 Battery capacity', - 'unit_of_measurement': , + 'device_class': 'timestamp', + 'friendly_name': 'Inverter 1 Last reported', }), 'context': , - 'entity_id': 'sensor.envoy_1234_battery_capacity', + 'entity_id': 'sensor.inverter_1_last_reported', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '3500', + 'state': '1970-01-01T00:00:01+00:00', }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_current_net_power_consumption-entry] +# name: test_sensor[envoy_acb_batt][sensor.inverter_1_lifetime_energy_production-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -9427,7 +9653,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_current_net_power_consumption', + 'entity_id': 'sensor.inverter_1_lifetime_energy_production', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -9435,44 +9661,44 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Current net power consumption', + 'object_id_base': 'Lifetime energy production', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 3, + 'suggested_display_precision': 2, }), 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Current net power consumption', + 'original_name': 'Lifetime energy production', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_consumption', - 'unique_id': '1234_net_consumption', - 'unit_of_measurement': , + 'translation_key': 'lifetime_energy', + 'unique_id': '1_lifetime_energy', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_current_net_power_consumption-state] +# name: test_sensor[envoy_acb_batt][sensor.inverter_1_lifetime_energy_production-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'power', - 'friendly_name': 'Envoy 1234 Current net power consumption', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'energy', + 'friendly_name': 'Inverter 1 Lifetime energy production', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_current_net_power_consumption', + 'entity_id': 'sensor.inverter_1_lifetime_energy_production', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.101', + 'state': 'unknown', }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_current_net_power_consumption_l1-entry] +# name: test_sensor[envoy_acb_batt][sensor.inverter_1_lifetime_maximum_power-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -9486,8 +9712,8 @@ 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_current_net_power_consumption_l1', + 'entity_category': , + 'entity_id': 'sensor.inverter_1_lifetime_maximum_power', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -9495,44 +9721,41 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Current net power consumption l1', + 'object_id_base': 'Lifetime maximum power', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 3, - }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_display_precision': 0, }), }), 'original_device_class': , 'original_icon': None, - 'original_name': 'Current net power consumption l1', + 'original_name': 'Lifetime maximum power', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_consumption_phase', - 'unique_id': '1234_net_consumption_l1', - 'unit_of_measurement': , + 'translation_key': 'max_reported', + 'unique_id': '1_max_reported', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_current_net_power_consumption_l1-state] +# name: test_sensor[envoy_acb_batt][sensor.inverter_1_lifetime_maximum_power-state] StateSnapshot({ 'attributes': ReadOnlyDict({ 'device_class': 'power', - 'friendly_name': 'Envoy 1234 Current net power consumption l1', + 'friendly_name': 'Inverter 1 Lifetime maximum power', 'state_class': , - 'unit_of_measurement': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_current_net_power_consumption_l1', + 'entity_id': 'sensor.inverter_1_lifetime_maximum_power', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.021', + 'state': '1', }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_current_net_power_consumption_l2-entry] +# name: test_sensor[envoy_acb_batt][sensor.inverter_1_temperature-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -9546,8 +9769,8 @@ 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_current_net_power_consumption_l2', + 'entity_category': , + 'entity_id': 'sensor.inverter_1_temperature', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -9555,44 +9778,41 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Current net power consumption l2', + 'object_id_base': 'Temperature', 'options': dict({ 'sensor': dict({ 'suggested_display_precision': 3, }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': , - }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Current net power consumption l2', + 'original_name': 'Temperature', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_consumption_phase', - 'unique_id': '1234_net_consumption_l2', - 'unit_of_measurement': , + 'translation_key': None, + 'unique_id': '1_temperature', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_current_net_power_consumption_l2-state] +# name: test_sensor[envoy_acb_batt][sensor.inverter_1_temperature-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'power', - 'friendly_name': 'Envoy 1234 Current net power consumption l2', + 'device_class': 'temperature', + 'friendly_name': 'Inverter 1 Temperature', 'state_class': , - 'unit_of_measurement': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_current_net_power_consumption_l2', + 'entity_id': 'sensor.inverter_1_temperature', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.031', + 'state': 'unknown', }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_current_net_power_consumption_l3-entry] +# name: test_sensor[envoy_eu_batt][sensor.encharge_123456_apparent_power-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -9607,7 +9827,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_current_net_power_consumption_l3', + 'entity_id': 'sensor.encharge_123456_apparent_power', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -9615,44 +9835,41 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Current net power consumption l3', + 'object_id_base': 'Apparent power', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 3, - }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_display_precision': 0, }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Current net power consumption l3', + 'original_name': 'Apparent power', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_consumption_phase', - 'unique_id': '1234_net_consumption_l3', - 'unit_of_measurement': , + 'translation_key': None, + 'unique_id': '123456_apparent_power_mva', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_current_net_power_consumption_l3-state] +# name: test_sensor[envoy_eu_batt][sensor.encharge_123456_apparent_power-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'power', - 'friendly_name': 'Envoy 1234 Current net power consumption l3', + 'device_class': 'apparent_power', + 'friendly_name': 'Encharge 123456 Apparent power', 'state_class': , - 'unit_of_measurement': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_current_net_power_consumption_l3', + 'entity_id': 'sensor.encharge_123456_apparent_power', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.051', + 'state': '0.0', }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_current_power_consumption-entry] +# name: test_sensor[envoy_eu_batt][sensor.encharge_123456_battery-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -9667,7 +9884,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_current_power_consumption', + 'entity_id': 'sensor.encharge_123456_battery', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -9675,51 +9892,43 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Current power consumption', + 'object_id_base': 'Battery', 'options': dict({ - 'sensor': dict({ - 'suggested_display_precision': 3, - }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': , - }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Current power consumption', + 'original_name': 'Battery', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'current_power_consumption', - 'unique_id': '1234_consumption', - 'unit_of_measurement': , + 'translation_key': None, + 'unique_id': '123456_soc', + 'unit_of_measurement': '%', }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_current_power_consumption-state] +# name: test_sensor[envoy_eu_batt][sensor.encharge_123456_battery-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'power', - 'friendly_name': 'Envoy 1234 Current power consumption', + 'device_class': 'battery', + 'friendly_name': 'Encharge 123456 Battery', 'state_class': , - 'unit_of_measurement': , + 'unit_of_measurement': '%', }), 'context': , - 'entity_id': 'sensor.envoy_1234_current_power_consumption', + 'entity_id': 'sensor.encharge_123456_battery', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '1.234', + 'state': '4', }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_current_power_production-entry] +# name: test_sensor[envoy_eu_batt][sensor.encharge_123456_last_reported-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, - 'capabilities': dict({ - 'state_class': , - }), + 'capabilities': None, 'config_entry_id': , 'config_subentry_id': , 'device_class': None, @@ -9727,7 +9936,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_current_power_production', + 'entity_id': 'sensor.encharge_123456_last_reported', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -9735,49 +9944,43 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Current power production', + 'object_id_base': 'Last reported', 'options': dict({ - 'sensor': dict({ - 'suggested_display_precision': 3, - }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': , - }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Current power production', + 'original_name': 'Last reported', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'current_power_production', - 'unique_id': '1234_production', - 'unit_of_measurement': , + 'translation_key': 'last_reported', + 'unique_id': '123456_last_reported', + 'unit_of_measurement': None, }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_current_power_production-state] +# name: test_sensor[envoy_eu_batt][sensor.encharge_123456_last_reported-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'power', - 'friendly_name': 'Envoy 1234 Current power production', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'timestamp', + 'friendly_name': 'Encharge 123456 Last reported', }), 'context': , - 'entity_id': 'sensor.envoy_1234_current_power_production', + 'entity_id': 'sensor.encharge_123456_last_reported', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '1.234', + 'state': '2024-05-04T06:29:33+00:00', }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_energy_consumption_last_seven_days-entry] +# name: test_sensor[envoy_eu_batt][sensor.encharge_123456_power-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, - 'capabilities': None, + 'capabilities': dict({ + 'state_class': , + }), 'config_entry_id': , 'config_subentry_id': , 'device_class': None, @@ -9785,7 +9988,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_energy_consumption_last_seven_days', + 'entity_id': 'sensor.encharge_123456_power', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -9793,49 +9996,47 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Energy consumption last seven days', + 'object_id_base': 'Power', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 1, - }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_display_precision': 0, }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Energy consumption last seven days', + 'original_name': 'Power', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'seven_days_consumption', - 'unique_id': '1234_seven_days_consumption', - 'unit_of_measurement': , + 'translation_key': None, + 'unique_id': '123456_real_power_mw', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_energy_consumption_last_seven_days-state] +# name: test_sensor[envoy_eu_batt][sensor.encharge_123456_power-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'energy', - 'friendly_name': 'Envoy 1234 Energy consumption last seven days', - 'unit_of_measurement': , + 'device_class': 'power', + 'friendly_name': 'Encharge 123456 Power', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_energy_consumption_last_seven_days', + 'entity_id': 'sensor.encharge_123456_power', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '1.234', + 'state': '0.0', }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_energy_consumption_today-entry] +# name: test_sensor[envoy_eu_batt][sensor.encharge_123456_temperature-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -9844,7 +10045,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_energy_consumption_today', + 'entity_id': 'sensor.encharge_123456_temperature', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -9852,49 +10053,48 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Energy consumption today', + 'object_id_base': 'Temperature', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 2, - }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_display_precision': 1, }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Energy consumption today', + 'original_name': 'Temperature', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'daily_consumption', - 'unique_id': '1234_daily_consumption', - 'unit_of_measurement': , + 'translation_key': None, + 'unique_id': '123456_temperature', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_energy_consumption_today-state] +# name: test_sensor[envoy_eu_batt][sensor.encharge_123456_temperature-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'energy', - 'friendly_name': 'Envoy 1234 Energy consumption today', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'temperature', + 'friendly_name': 'Encharge 123456 Temperature', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_energy_consumption_today', + 'entity_id': 'sensor.encharge_123456_temperature', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '1.234', + 'state': '16', }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_energy_production_last_seven_days-entry] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_available_battery_energy-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, - 'capabilities': None, + 'capabilities': dict({ + 'state_class': , + }), 'config_entry_id': , 'config_subentry_id': , 'device_class': None, @@ -9902,7 +10102,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_energy_production_last_seven_days', + 'entity_id': 'sensor.envoy_1234_available_battery_energy', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -9910,49 +10110,47 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Energy production last seven days', + 'object_id_base': 'Available battery energy', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 1, - }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_display_precision': 0, }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Energy production last seven days', + 'original_name': 'Available battery energy', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'seven_days_production', - 'unique_id': '1234_seven_days_production', - 'unit_of_measurement': , + 'translation_key': 'available_energy', + 'unique_id': '1234_available_energy', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_energy_production_last_seven_days-state] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_available_battery_energy-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'energy', - 'friendly_name': 'Envoy 1234 Energy production last seven days', - 'unit_of_measurement': , + 'device_class': 'energy_storage', + 'friendly_name': 'Envoy 1234 Available battery energy', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_energy_production_last_seven_days', + 'entity_id': 'sensor.envoy_1234_available_battery_energy', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '1.234', + 'state': '140', }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_energy_production_today-entry] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_balanced_net_power_consumption-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -9961,7 +10159,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_energy_production_today', + 'entity_id': 'sensor.envoy_1234_balanced_net_power_consumption', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -9969,44 +10167,44 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Energy production today', + 'object_id_base': 'Balanced net power consumption', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 2, + 'suggested_display_precision': 3, }), 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Energy production today', + 'original_name': 'Balanced net power consumption', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'daily_production', - 'unique_id': '1234_daily_production', - 'unit_of_measurement': , + 'translation_key': 'balanced_net_consumption', + 'unique_id': '1234_balanced_net_consumption', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_energy_production_today-state] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_balanced_net_power_consumption-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'energy', - 'friendly_name': 'Envoy 1234 Energy production today', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'power', + 'friendly_name': 'Envoy 1234 Balanced net power consumption', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_energy_production_today', + 'entity_id': 'sensor.envoy_1234_balanced_net_power_consumption', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '1.234', + 'state': '2.341', }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_frequency_net_consumption_ct-entry] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_battery-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -10021,7 +10219,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_frequency_net_consumption_ct', + 'entity_id': 'sensor.envoy_1234_battery', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -10029,48 +10227,43 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Frequency net consumption CT', + 'object_id_base': 'Battery', 'options': dict({ - 'sensor': dict({ - 'suggested_display_precision': 1, - }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Frequency net consumption CT', + 'original_name': 'Battery', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_ct_frequency', - 'unique_id': '1234_frequency', - 'unit_of_measurement': , + 'translation_key': None, + 'unique_id': '1234_battery_level', + 'unit_of_measurement': '%', }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_frequency_net_consumption_ct-state] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_battery-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'frequency', - 'friendly_name': 'Envoy 1234 Frequency net consumption CT', + 'device_class': 'battery', + 'friendly_name': 'Envoy 1234 Battery', 'state_class': , - 'unit_of_measurement': , + 'unit_of_measurement': '%', }), 'context': , - 'entity_id': 'sensor.envoy_1234_frequency_net_consumption_ct', + 'entity_id': 'sensor.envoy_1234_battery', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '50.2', + 'state': '4', }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_frequency_net_consumption_ct_l1-entry] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_battery_capacity-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, - 'capabilities': dict({ - 'state_class': , - }), + 'capabilities': None, 'config_entry_id': , 'config_subentry_id': , 'device_class': None, @@ -10078,7 +10271,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_frequency_net_consumption_ct_l1', + 'entity_id': 'sensor.envoy_1234_battery_capacity', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -10086,41 +10279,40 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Frequency net consumption CT l1', + 'object_id_base': 'Battery capacity', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 1, + 'suggested_display_precision': 0, }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Frequency net consumption CT l1', + 'original_name': 'Battery capacity', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_ct_frequency_phase', - 'unique_id': '1234_frequency_l1', - 'unit_of_measurement': , + 'translation_key': 'max_capacity', + 'unique_id': '1234_max_capacity', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_frequency_net_consumption_ct_l1-state] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_battery_capacity-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'frequency', - 'friendly_name': 'Envoy 1234 Frequency net consumption CT l1', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'energy_storage', + 'friendly_name': 'Envoy 1234 Battery capacity', + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_frequency_net_consumption_ct_l1', + 'entity_id': 'sensor.envoy_1234_battery_capacity', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '50.2', + 'state': '3500', }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_frequency_net_consumption_ct_l2-entry] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_current_net_power_consumption-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -10135,7 +10327,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_frequency_net_consumption_ct_l2', + 'entity_id': 'sensor.envoy_1234_current_net_power_consumption', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -10143,41 +10335,44 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Frequency net consumption CT l2', + 'object_id_base': 'Current net power consumption', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 1, + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Frequency net consumption CT l2', + 'original_name': 'Current net power consumption', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_ct_frequency_phase', - 'unique_id': '1234_frequency_l2', - 'unit_of_measurement': , - }) -# --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_frequency_net_consumption_ct_l2-state] + 'translation_key': 'net_consumption', + 'unique_id': '1234_net_consumption', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_current_net_power_consumption-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'frequency', - 'friendly_name': 'Envoy 1234 Frequency net consumption CT l2', + 'device_class': 'power', + 'friendly_name': 'Envoy 1234 Current net power consumption', 'state_class': , - 'unit_of_measurement': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_frequency_net_consumption_ct_l2', + 'entity_id': 'sensor.envoy_1234_current_net_power_consumption', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '50.2', + 'state': '0.101', }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_frequency_net_consumption_ct_l3-entry] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_current_net_power_consumption_l1-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -10192,7 +10387,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_frequency_net_consumption_ct_l3', + 'entity_id': 'sensor.envoy_1234_current_net_power_consumption_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -10200,41 +10395,44 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Frequency net consumption CT l3', + 'object_id_base': 'Current net power consumption l1', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 1, + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Frequency net consumption CT l3', + 'original_name': 'Current net power consumption l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_ct_frequency_phase', - 'unique_id': '1234_frequency_l3', - 'unit_of_measurement': , + 'translation_key': 'net_consumption_phase', + 'unique_id': '1234_net_consumption_l1', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_frequency_net_consumption_ct_l3-state] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_current_net_power_consumption_l1-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'frequency', - 'friendly_name': 'Envoy 1234 Frequency net consumption CT l3', + 'device_class': 'power', + 'friendly_name': 'Envoy 1234 Current net power consumption l1', 'state_class': , - 'unit_of_measurement': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_frequency_net_consumption_ct_l3', + 'entity_id': 'sensor.envoy_1234_current_net_power_consumption_l1', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '50.2', + 'state': '0.021', }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_frequency_production_ct-entry] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_current_net_power_consumption_l2-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -10249,7 +10447,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_frequency_production_ct', + 'entity_id': 'sensor.envoy_1234_current_net_power_consumption_l2', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -10257,41 +10455,44 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Frequency production CT', + 'object_id_base': 'Current net power consumption l2', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 1, + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Frequency production CT', + 'original_name': 'Current net power consumption l2', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'production_ct_frequency', - 'unique_id': '1234_production_ct_frequency', - 'unit_of_measurement': , + 'translation_key': 'net_consumption_phase', + 'unique_id': '1234_net_consumption_l2', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_frequency_production_ct-state] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_current_net_power_consumption_l2-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'frequency', - 'friendly_name': 'Envoy 1234 Frequency production CT', + 'device_class': 'power', + 'friendly_name': 'Envoy 1234 Current net power consumption l2', 'state_class': , - 'unit_of_measurement': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_frequency_production_ct', + 'entity_id': 'sensor.envoy_1234_current_net_power_consumption_l2', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '50.1', + 'state': '0.031', }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_frequency_production_ct_l1-entry] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_current_net_power_consumption_l3-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -10306,7 +10507,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_frequency_production_ct_l1', + 'entity_id': 'sensor.envoy_1234_current_net_power_consumption_l3', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -10314,41 +10515,44 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Frequency production CT l1', + 'object_id_base': 'Current net power consumption l3', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 1, + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Frequency production CT l1', + 'original_name': 'Current net power consumption l3', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'production_ct_frequency_phase', - 'unique_id': '1234_production_ct_frequency_l1', - 'unit_of_measurement': , + 'translation_key': 'net_consumption_phase', + 'unique_id': '1234_net_consumption_l3', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_frequency_production_ct_l1-state] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_current_net_power_consumption_l3-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'frequency', - 'friendly_name': 'Envoy 1234 Frequency production CT l1', + 'device_class': 'power', + 'friendly_name': 'Envoy 1234 Current net power consumption l3', 'state_class': , - 'unit_of_measurement': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_frequency_production_ct_l1', + 'entity_id': 'sensor.envoy_1234_current_net_power_consumption_l3', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '50.1', + 'state': '0.051', }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_frequency_production_ct_l2-entry] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_current_power_consumption-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -10363,7 +10567,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_frequency_production_ct_l2', + 'entity_id': 'sensor.envoy_1234_current_power_consumption', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -10371,41 +10575,44 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Frequency production CT l2', + 'object_id_base': 'Current power consumption', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 1, + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Frequency production CT l2', + 'original_name': 'Current power consumption', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'production_ct_frequency_phase', - 'unique_id': '1234_production_ct_frequency_l2', - 'unit_of_measurement': , + 'translation_key': 'current_power_consumption', + 'unique_id': '1234_consumption', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_frequency_production_ct_l2-state] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_current_power_consumption-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'frequency', - 'friendly_name': 'Envoy 1234 Frequency production CT l2', + 'device_class': 'power', + 'friendly_name': 'Envoy 1234 Current power consumption', 'state_class': , - 'unit_of_measurement': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_frequency_production_ct_l2', + 'entity_id': 'sensor.envoy_1234_current_power_consumption', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '50.1', + 'state': '1.234', }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_frequency_production_ct_l3-entry] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_current_power_production-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -10420,7 +10627,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_frequency_production_ct_l3', + 'entity_id': 'sensor.envoy_1234_current_power_production', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -10428,48 +10635,49 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Frequency production CT l3', + 'object_id_base': 'Current power production', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 1, + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Frequency production CT l3', + 'original_name': 'Current power production', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'production_ct_frequency_phase', - 'unique_id': '1234_production_ct_frequency_l3', - 'unit_of_measurement': , + 'translation_key': 'current_power_production', + 'unique_id': '1234_production', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_frequency_production_ct_l3-state] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_current_power_production-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'frequency', - 'friendly_name': 'Envoy 1234 Frequency production CT l3', + 'device_class': 'power', + 'friendly_name': 'Envoy 1234 Current power production', 'state_class': , - 'unit_of_measurement': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_frequency_production_ct_l3', + 'entity_id': 'sensor.envoy_1234_current_power_production', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '50.1', + 'state': '1.234', }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_lifetime_balanced_net_energy_consumption-entry] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_energy_consumption_last_seven_days-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, - 'capabilities': dict({ - 'state_class': , - }), + 'capabilities': None, 'config_entry_id': , 'config_subentry_id': , 'device_class': None, @@ -10477,7 +10685,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_lifetime_balanced_net_energy_consumption', + 'entity_id': 'sensor.envoy_1234_energy_consumption_last_seven_days', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -10485,10 +10693,10 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Lifetime balanced net energy consumption', + 'object_id_base': 'Energy consumption last seven days', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 3, + 'suggested_display_precision': 1, }), 'sensor.private': dict({ 'suggested_unit_of_measurement': , @@ -10496,33 +10704,32 @@ }), 'original_device_class': , 'original_icon': None, - 'original_name': 'Lifetime balanced net energy consumption', + 'original_name': 'Energy consumption last seven days', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'lifetime_balanced_net_consumption', - 'unique_id': '1234_lifetime_balanced_net_consumption', + 'translation_key': 'seven_days_consumption', + 'unique_id': '1234_seven_days_consumption', 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_lifetime_balanced_net_energy_consumption-state] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_energy_consumption_last_seven_days-state] StateSnapshot({ 'attributes': ReadOnlyDict({ 'device_class': 'energy', - 'friendly_name': 'Envoy 1234 Lifetime balanced net energy consumption', - 'state_class': , + 'friendly_name': 'Envoy 1234 Energy consumption last seven days', 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_lifetime_balanced_net_energy_consumption', + 'entity_id': 'sensor.envoy_1234_energy_consumption_last_seven_days', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '4.321', + 'state': '1.234', }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_lifetime_energy_consumption-entry] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_energy_consumption_today-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -10537,7 +10744,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_lifetime_energy_consumption', + 'entity_id': 'sensor.envoy_1234_energy_consumption_today', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -10545,51 +10752,49 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Lifetime energy consumption', + 'object_id_base': 'Energy consumption today', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 3, + 'suggested_display_precision': 2, }), 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_unit_of_measurement': , }), }), 'original_device_class': , 'original_icon': None, - 'original_name': 'Lifetime energy consumption', + 'original_name': 'Energy consumption today', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'lifetime_consumption', - 'unique_id': '1234_lifetime_consumption', - 'unit_of_measurement': , + 'translation_key': 'daily_consumption', + 'unique_id': '1234_daily_consumption', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_lifetime_energy_consumption-state] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_energy_consumption_today-state] StateSnapshot({ 'attributes': ReadOnlyDict({ 'device_class': 'energy', - 'friendly_name': 'Envoy 1234 Lifetime energy consumption', + 'friendly_name': 'Envoy 1234 Energy consumption today', 'state_class': , - 'unit_of_measurement': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_lifetime_energy_consumption', + 'entity_id': 'sensor.envoy_1234_energy_consumption_today', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.001234', + 'state': '1.234', }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_lifetime_energy_production-entry] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_energy_production_last_seven_days-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, - 'capabilities': dict({ - 'state_class': , - }), + 'capabilities': None, 'config_entry_id': , 'config_subentry_id': , 'device_class': None, @@ -10597,7 +10802,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_lifetime_energy_production', + 'entity_id': 'sensor.envoy_1234_energy_production_last_seven_days', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -10605,44 +10810,43 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Lifetime energy production', + 'object_id_base': 'Energy production last seven days', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 3, + 'suggested_display_precision': 1, }), 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_unit_of_measurement': , }), }), 'original_device_class': , 'original_icon': None, - 'original_name': 'Lifetime energy production', + 'original_name': 'Energy production last seven days', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'lifetime_production', - 'unique_id': '1234_lifetime_production', - 'unit_of_measurement': , + 'translation_key': 'seven_days_production', + 'unique_id': '1234_seven_days_production', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_lifetime_energy_production-state] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_energy_production_last_seven_days-state] StateSnapshot({ 'attributes': ReadOnlyDict({ 'device_class': 'energy', - 'friendly_name': 'Envoy 1234 Lifetime energy production', - 'state_class': , - 'unit_of_measurement': , + 'friendly_name': 'Envoy 1234 Energy production last seven days', + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_lifetime_energy_production', + 'entity_id': 'sensor.envoy_1234_energy_production_last_seven_days', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.001234', + 'state': '1.234', }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_lifetime_net_energy_consumption-entry] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_energy_production_today-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -10657,7 +10861,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_lifetime_net_energy_consumption', + 'entity_id': 'sensor.envoy_1234_energy_production_today', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -10665,50 +10869,50 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Lifetime net energy consumption', + 'object_id_base': 'Energy production today', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 3, + 'suggested_display_precision': 2, }), 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_unit_of_measurement': , }), }), 'original_device_class': , 'original_icon': None, - 'original_name': 'Lifetime net energy consumption', + 'original_name': 'Energy production today', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'lifetime_net_consumption', - 'unique_id': '1234_lifetime_net_consumption', - 'unit_of_measurement': , + 'translation_key': 'daily_production', + 'unique_id': '1234_daily_production', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_lifetime_net_energy_consumption-state] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_energy_production_today-state] StateSnapshot({ 'attributes': ReadOnlyDict({ 'device_class': 'energy', - 'friendly_name': 'Envoy 1234 Lifetime net energy consumption', + 'friendly_name': 'Envoy 1234 Energy production today', 'state_class': , - 'unit_of_measurement': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_lifetime_net_energy_consumption', + 'entity_id': 'sensor.envoy_1234_energy_production_today', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.021234', + 'state': '1.234', }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_lifetime_net_energy_consumption_l1-entry] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_frequency_net_consumption_ct-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -10717,7 +10921,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_lifetime_net_energy_consumption_l1', + 'entity_id': 'sensor.envoy_1234_frequency_net_consumption_ct', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -10725,50 +10929,47 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Lifetime net energy consumption l1', + 'object_id_base': 'Frequency net consumption CT', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 3, - }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_display_precision': 1, }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Lifetime net energy consumption l1', + 'original_name': 'Frequency net consumption CT', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'lifetime_net_consumption_phase', - 'unique_id': '1234_lifetime_net_consumption_l1', - 'unit_of_measurement': , + 'translation_key': 'net_ct_frequency', + 'unique_id': '1234_frequency', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_lifetime_net_energy_consumption_l1-state] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_frequency_net_consumption_ct-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'energy', - 'friendly_name': 'Envoy 1234 Lifetime net energy consumption l1', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'frequency', + 'friendly_name': 'Envoy 1234 Frequency net consumption CT', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_lifetime_net_energy_consumption_l1', + 'entity_id': 'sensor.envoy_1234_frequency_net_consumption_ct', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.212341', + 'state': '50.2', }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_lifetime_net_energy_consumption_l2-entry] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_frequency_net_consumption_ct_l1-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -10777,7 +10978,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_lifetime_net_energy_consumption_l2', + 'entity_id': 'sensor.envoy_1234_frequency_net_consumption_ct_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -10785,50 +10986,47 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Lifetime net energy consumption l2', + 'object_id_base': 'Frequency net consumption CT l1', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 3, - }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_display_precision': 1, }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Lifetime net energy consumption l2', + 'original_name': 'Frequency net consumption CT l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'lifetime_net_consumption_phase', - 'unique_id': '1234_lifetime_net_consumption_l2', - 'unit_of_measurement': , + 'translation_key': 'net_ct_frequency_phase', + 'unique_id': '1234_frequency_l1', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_lifetime_net_energy_consumption_l2-state] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_frequency_net_consumption_ct_l1-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'energy', - 'friendly_name': 'Envoy 1234 Lifetime net energy consumption l2', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'frequency', + 'friendly_name': 'Envoy 1234 Frequency net consumption CT l1', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_lifetime_net_energy_consumption_l2', + 'entity_id': 'sensor.envoy_1234_frequency_net_consumption_ct_l1', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.212342', + 'state': '50.2', }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_lifetime_net_energy_consumption_l3-entry] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_frequency_net_consumption_ct_l2-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -10837,7 +11035,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_lifetime_net_energy_consumption_l3', + 'entity_id': 'sensor.envoy_1234_frequency_net_consumption_ct_l2', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -10845,50 +11043,47 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Lifetime net energy consumption l3', + 'object_id_base': 'Frequency net consumption CT l2', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 3, - }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_display_precision': 1, }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Lifetime net energy consumption l3', + 'original_name': 'Frequency net consumption CT l2', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'lifetime_net_consumption_phase', - 'unique_id': '1234_lifetime_net_consumption_l3', - 'unit_of_measurement': , + 'translation_key': 'net_ct_frequency_phase', + 'unique_id': '1234_frequency_l2', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_lifetime_net_energy_consumption_l3-state] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_frequency_net_consumption_ct_l2-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'energy', - 'friendly_name': 'Envoy 1234 Lifetime net energy consumption l3', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'frequency', + 'friendly_name': 'Envoy 1234 Frequency net consumption CT l2', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_lifetime_net_energy_consumption_l3', + 'entity_id': 'sensor.envoy_1234_frequency_net_consumption_ct_l2', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.212343', + 'state': '50.2', }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_lifetime_net_energy_production-entry] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_frequency_net_consumption_ct_l3-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -10897,7 +11092,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_lifetime_net_energy_production', + 'entity_id': 'sensor.envoy_1234_frequency_net_consumption_ct_l3', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -10905,50 +11100,47 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Lifetime net energy production', + 'object_id_base': 'Frequency net consumption CT l3', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 3, - }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_display_precision': 1, }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Lifetime net energy production', + 'original_name': 'Frequency net consumption CT l3', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'lifetime_net_production', - 'unique_id': '1234_lifetime_net_production', - 'unit_of_measurement': , + 'translation_key': 'net_ct_frequency_phase', + 'unique_id': '1234_frequency_l3', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_lifetime_net_energy_production-state] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_frequency_net_consumption_ct_l3-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'energy', - 'friendly_name': 'Envoy 1234 Lifetime net energy production', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'frequency', + 'friendly_name': 'Envoy 1234 Frequency net consumption CT l3', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_lifetime_net_energy_production', + 'entity_id': 'sensor.envoy_1234_frequency_net_consumption_ct_l3', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.022345', + 'state': '50.2', }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_lifetime_net_energy_production_l1-entry] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_frequency_production_ct-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -10957,7 +11149,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_lifetime_net_energy_production_l1', + 'entity_id': 'sensor.envoy_1234_frequency_production_ct', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -10965,50 +11157,47 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Lifetime net energy production l1', + 'object_id_base': 'Frequency production CT', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 3, - }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_display_precision': 1, }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Lifetime net energy production l1', + 'original_name': 'Frequency production CT', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'lifetime_net_production_phase', - 'unique_id': '1234_lifetime_net_production_l1', - 'unit_of_measurement': , + 'translation_key': 'production_ct_frequency', + 'unique_id': '1234_production_ct_frequency', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_lifetime_net_energy_production_l1-state] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_frequency_production_ct-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'energy', - 'friendly_name': 'Envoy 1234 Lifetime net energy production l1', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'frequency', + 'friendly_name': 'Envoy 1234 Frequency production CT', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_lifetime_net_energy_production_l1', + 'entity_id': 'sensor.envoy_1234_frequency_production_ct', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.223451', + 'state': '50.1', }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_lifetime_net_energy_production_l2-entry] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_frequency_production_ct_l1-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -11017,7 +11206,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_lifetime_net_energy_production_l2', + 'entity_id': 'sensor.envoy_1234_frequency_production_ct_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -11025,50 +11214,47 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Lifetime net energy production l2', + 'object_id_base': 'Frequency production CT l1', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 3, - }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_display_precision': 1, }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Lifetime net energy production l2', + 'original_name': 'Frequency production CT l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'lifetime_net_production_phase', - 'unique_id': '1234_lifetime_net_production_l2', - 'unit_of_measurement': , + 'translation_key': 'production_ct_frequency_phase', + 'unique_id': '1234_production_ct_frequency_l1', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_lifetime_net_energy_production_l2-state] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_frequency_production_ct_l1-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'energy', - 'friendly_name': 'Envoy 1234 Lifetime net energy production l2', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'frequency', + 'friendly_name': 'Envoy 1234 Frequency production CT l1', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_lifetime_net_energy_production_l2', + 'entity_id': 'sensor.envoy_1234_frequency_production_ct_l1', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.223452', + 'state': '50.1', }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_lifetime_net_energy_production_l3-entry] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_frequency_production_ct_l2-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -11077,7 +11263,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_lifetime_net_energy_production_l3', + 'entity_id': 'sensor.envoy_1234_frequency_production_ct_l2', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -11085,57 +11271,56 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Lifetime net energy production l3', + 'object_id_base': 'Frequency production CT l2', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 3, - }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_display_precision': 1, }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Lifetime net energy production l3', + 'original_name': 'Frequency production CT l2', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'lifetime_net_production_phase', - 'unique_id': '1234_lifetime_net_production_l3', - 'unit_of_measurement': , + 'translation_key': 'production_ct_frequency_phase', + 'unique_id': '1234_production_ct_frequency_l2', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_lifetime_net_energy_production_l3-state] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_frequency_production_ct_l2-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'energy', - 'friendly_name': 'Envoy 1234 Lifetime net energy production l3', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'frequency', + 'friendly_name': 'Envoy 1234 Frequency production CT l2', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_lifetime_net_energy_production_l3', + 'entity_id': 'sensor.envoy_1234_frequency_production_ct_l2', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.223453', + 'state': '50.1', }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_meter_status_flags_active_net_consumption_ct-entry] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_frequency_production_ct_l3-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, - 'capabilities': None, + 'capabilities': dict({ + 'state_class': , + }), 'config_entry_id': , 'config_subentry_id': , 'device_class': None, 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': , - 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_net_consumption_ct', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_frequency_production_ct_l3', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -11143,48 +11328,56 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Meter status flags active net consumption CT', + 'object_id_base': 'Frequency production CT l3', 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 1, + }), }), - 'original_device_class': None, + 'original_device_class': , 'original_icon': None, - 'original_name': 'Meter status flags active net consumption CT', + 'original_name': 'Frequency production CT l3', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_ct_status_flags', - 'unique_id': '1234_net_consumption_ct_status_flags', - 'unit_of_measurement': None, + 'translation_key': 'production_ct_frequency_phase', + 'unique_id': '1234_production_ct_frequency_l3', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_meter_status_flags_active_net_consumption_ct-state] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_frequency_production_ct_l3-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'friendly_name': 'Envoy 1234 Meter status flags active net consumption CT', + 'device_class': 'frequency', + 'friendly_name': 'Envoy 1234 Frequency production CT l3', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_net_consumption_ct', + 'entity_id': 'sensor.envoy_1234_frequency_production_ct_l3', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0', + 'state': '50.1', }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_meter_status_flags_active_net_consumption_ct_l1-entry] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_lifetime_balanced_net_energy_consumption-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, - 'capabilities': None, + 'capabilities': dict({ + 'state_class': , + }), 'config_entry_id': , 'config_subentry_id': , 'device_class': None, 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': , - 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_net_consumption_ct_l1', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_lifetime_balanced_net_energy_consumption', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -11192,48 +11385,59 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Meter status flags active net consumption CT l1', + 'object_id_base': 'Lifetime balanced net energy consumption', 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), }), - 'original_device_class': None, + 'original_device_class': , 'original_icon': None, - 'original_name': 'Meter status flags active net consumption CT l1', + 'original_name': 'Lifetime balanced net energy consumption', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_ct_status_flags_phase', - 'unique_id': '1234_net_consumption_ct_status_flags_l1', - 'unit_of_measurement': None, + 'translation_key': 'lifetime_balanced_net_consumption', + 'unique_id': '1234_lifetime_balanced_net_consumption', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_meter_status_flags_active_net_consumption_ct_l1-state] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_lifetime_balanced_net_energy_consumption-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'friendly_name': 'Envoy 1234 Meter status flags active net consumption CT l1', + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Lifetime balanced net energy consumption', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_net_consumption_ct_l1', + 'entity_id': 'sensor.envoy_1234_lifetime_balanced_net_energy_consumption', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0', + 'state': '4.321', }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_meter_status_flags_active_net_consumption_ct_l2-entry] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_lifetime_energy_consumption-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, - 'capabilities': None, + 'capabilities': dict({ + 'state_class': , + }), 'config_entry_id': , 'config_subentry_id': , 'device_class': None, 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': , - 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_net_consumption_ct_l2', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_lifetime_energy_consumption', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -11241,48 +11445,59 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Meter status flags active net consumption CT l2', + 'object_id_base': 'Lifetime energy consumption', 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), }), - 'original_device_class': None, + 'original_device_class': , 'original_icon': None, - 'original_name': 'Meter status flags active net consumption CT l2', + 'original_name': 'Lifetime energy consumption', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_ct_status_flags_phase', - 'unique_id': '1234_net_consumption_ct_status_flags_l2', - 'unit_of_measurement': None, + 'translation_key': 'lifetime_consumption', + 'unique_id': '1234_lifetime_consumption', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_meter_status_flags_active_net_consumption_ct_l2-state] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_lifetime_energy_consumption-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'friendly_name': 'Envoy 1234 Meter status flags active net consumption CT l2', + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Lifetime energy consumption', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_net_consumption_ct_l2', + 'entity_id': 'sensor.envoy_1234_lifetime_energy_consumption', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0', + 'state': '0.001234', }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_meter_status_flags_active_net_consumption_ct_l3-entry] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_lifetime_energy_production-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, - 'capabilities': None, + 'capabilities': dict({ + 'state_class': , + }), 'config_entry_id': , 'config_subentry_id': , 'device_class': None, 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': , - 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_net_consumption_ct_l3', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_lifetime_energy_production', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -11290,48 +11505,59 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Meter status flags active net consumption CT l3', + 'object_id_base': 'Lifetime energy production', 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), }), - 'original_device_class': None, + 'original_device_class': , 'original_icon': None, - 'original_name': 'Meter status flags active net consumption CT l3', + 'original_name': 'Lifetime energy production', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_ct_status_flags_phase', - 'unique_id': '1234_net_consumption_ct_status_flags_l3', - 'unit_of_measurement': None, + 'translation_key': 'lifetime_production', + 'unique_id': '1234_lifetime_production', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_meter_status_flags_active_net_consumption_ct_l3-state] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_lifetime_energy_production-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'friendly_name': 'Envoy 1234 Meter status flags active net consumption CT l3', + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Lifetime energy production', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_net_consumption_ct_l3', + 'entity_id': 'sensor.envoy_1234_lifetime_energy_production', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0', + 'state': '0.001234', }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_meter_status_flags_active_production_ct-entry] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_lifetime_net_energy_consumption-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, - 'capabilities': None, + 'capabilities': dict({ + 'state_class': , + }), 'config_entry_id': , 'config_subentry_id': , 'device_class': None, 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': , - 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_production_ct', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_lifetime_net_energy_consumption', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -11339,48 +11565,59 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Meter status flags active production CT', + 'object_id_base': 'Lifetime net energy consumption', 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), }), - 'original_device_class': None, + 'original_device_class': , 'original_icon': None, - 'original_name': 'Meter status flags active production CT', + 'original_name': 'Lifetime net energy consumption', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'production_ct_status_flags', - 'unique_id': '1234_production_ct_status_flags', - 'unit_of_measurement': None, + 'translation_key': 'lifetime_net_consumption', + 'unique_id': '1234_lifetime_net_consumption', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_meter_status_flags_active_production_ct-state] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_lifetime_net_energy_consumption-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'friendly_name': 'Envoy 1234 Meter status flags active production CT', + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Lifetime net energy consumption', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_production_ct', + 'entity_id': 'sensor.envoy_1234_lifetime_net_energy_consumption', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '2', + 'state': '0.021234', }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_meter_status_flags_active_production_ct_l1-entry] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_lifetime_net_energy_consumption_l1-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, - 'capabilities': None, + 'capabilities': dict({ + 'state_class': , + }), 'config_entry_id': , 'config_subentry_id': , 'device_class': None, 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': , - 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_production_ct_l1', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_lifetime_net_energy_consumption_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -11388,48 +11625,59 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Meter status flags active production CT l1', + 'object_id_base': 'Lifetime net energy consumption l1', 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), }), - 'original_device_class': None, + 'original_device_class': , 'original_icon': None, - 'original_name': 'Meter status flags active production CT l1', + 'original_name': 'Lifetime net energy consumption l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'production_ct_status_flags_phase', - 'unique_id': '1234_production_ct_status_flags_l1', - 'unit_of_measurement': None, + 'translation_key': 'lifetime_net_consumption_phase', + 'unique_id': '1234_lifetime_net_consumption_l1', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_meter_status_flags_active_production_ct_l1-state] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_lifetime_net_energy_consumption_l1-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'friendly_name': 'Envoy 1234 Meter status flags active production CT l1', + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Lifetime net energy consumption l1', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_production_ct_l1', + 'entity_id': 'sensor.envoy_1234_lifetime_net_energy_consumption_l1', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '1', + 'state': '0.212341', }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_meter_status_flags_active_production_ct_l2-entry] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_lifetime_net_energy_consumption_l2-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, - 'capabilities': None, + 'capabilities': dict({ + 'state_class': , + }), 'config_entry_id': , 'config_subentry_id': , 'device_class': None, 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': , - 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_production_ct_l2', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_lifetime_net_energy_consumption_l2', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -11437,48 +11685,59 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Meter status flags active production CT l2', + 'object_id_base': 'Lifetime net energy consumption l2', 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), }), - 'original_device_class': None, + 'original_device_class': , 'original_icon': None, - 'original_name': 'Meter status flags active production CT l2', + 'original_name': 'Lifetime net energy consumption l2', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'production_ct_status_flags_phase', - 'unique_id': '1234_production_ct_status_flags_l2', - 'unit_of_measurement': None, + 'translation_key': 'lifetime_net_consumption_phase', + 'unique_id': '1234_lifetime_net_consumption_l2', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_meter_status_flags_active_production_ct_l2-state] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_lifetime_net_energy_consumption_l2-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'friendly_name': 'Envoy 1234 Meter status flags active production CT l2', + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Lifetime net energy consumption l2', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_production_ct_l2', + 'entity_id': 'sensor.envoy_1234_lifetime_net_energy_consumption_l2', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '1', + 'state': '0.212342', }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_meter_status_flags_active_production_ct_l3-entry] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_lifetime_net_energy_consumption_l3-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, - 'capabilities': None, + 'capabilities': dict({ + 'state_class': , + }), 'config_entry_id': , 'config_subentry_id': , 'device_class': None, 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': , - 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_production_ct_l3', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_lifetime_net_energy_consumption_l3', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -11486,45 +11745,50 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Meter status flags active production CT l3', + 'object_id_base': 'Lifetime net energy consumption l3', 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), }), - 'original_device_class': None, + 'original_device_class': , 'original_icon': None, - 'original_name': 'Meter status flags active production CT l3', + 'original_name': 'Lifetime net energy consumption l3', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'production_ct_status_flags_phase', - 'unique_id': '1234_production_ct_status_flags_l3', - 'unit_of_measurement': None, + 'translation_key': 'lifetime_net_consumption_phase', + 'unique_id': '1234_lifetime_net_consumption_l3', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_meter_status_flags_active_production_ct_l3-state] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_lifetime_net_energy_consumption_l3-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'friendly_name': 'Envoy 1234 Meter status flags active production CT l3', + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Lifetime net energy consumption l3', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_production_ct_l3', + 'entity_id': 'sensor.envoy_1234_lifetime_net_energy_consumption_l3', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0', + 'state': '0.212343', }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_metering_status_net_consumption_ct-entry] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_lifetime_net_energy_production-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'options': list([ - , - , - , - ]), + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -11532,8 +11796,8 @@ 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': , - 'entity_id': 'sensor.envoy_1234_metering_status_net_consumption_ct', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_lifetime_net_energy_production', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -11541,51 +11805,50 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Metering status net consumption CT', + 'object_id_base': 'Lifetime net energy production', 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Metering status net consumption CT', + 'original_name': 'Lifetime net energy production', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_ct_metering_status', - 'unique_id': '1234_net_consumption_ct_metering_status', - 'unit_of_measurement': None, + 'translation_key': 'lifetime_net_production', + 'unique_id': '1234_lifetime_net_production', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_metering_status_net_consumption_ct-state] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_lifetime_net_energy_production-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'enum', - 'friendly_name': 'Envoy 1234 Metering status net consumption CT', - 'options': list([ - , - , - , - ]), + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Lifetime net energy production', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_metering_status_net_consumption_ct', + 'entity_id': 'sensor.envoy_1234_lifetime_net_energy_production', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': 'normal', + 'state': '0.022345', }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_metering_status_net_consumption_ct_l1-entry] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_lifetime_net_energy_production_l1-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'options': list([ - , - , - , - ]), + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -11593,8 +11856,8 @@ 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': , - 'entity_id': 'sensor.envoy_1234_metering_status_net_consumption_ct_l1', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_lifetime_net_energy_production_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -11602,51 +11865,50 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Metering status net consumption CT l1', + 'object_id_base': 'Lifetime net energy production l1', 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Metering status net consumption CT l1', + 'original_name': 'Lifetime net energy production l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_ct_metering_status_phase', - 'unique_id': '1234_net_consumption_ct_metering_status_l1', - 'unit_of_measurement': None, + 'translation_key': 'lifetime_net_production_phase', + 'unique_id': '1234_lifetime_net_production_l1', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_metering_status_net_consumption_ct_l1-state] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_lifetime_net_energy_production_l1-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'enum', - 'friendly_name': 'Envoy 1234 Metering status net consumption CT l1', - 'options': list([ - , - , - , - ]), + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Lifetime net energy production l1', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_metering_status_net_consumption_ct_l1', + 'entity_id': 'sensor.envoy_1234_lifetime_net_energy_production_l1', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': 'normal', + 'state': '0.223451', }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_metering_status_net_consumption_ct_l2-entry] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_lifetime_net_energy_production_l2-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'options': list([ - , - , - , - ]), + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -11654,8 +11916,8 @@ 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': , - 'entity_id': 'sensor.envoy_1234_metering_status_net_consumption_ct_l2', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_lifetime_net_energy_production_l2', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -11663,51 +11925,50 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Metering status net consumption CT l2', + 'object_id_base': 'Lifetime net energy production l2', 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Metering status net consumption CT l2', + 'original_name': 'Lifetime net energy production l2', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_ct_metering_status_phase', - 'unique_id': '1234_net_consumption_ct_metering_status_l2', - 'unit_of_measurement': None, + 'translation_key': 'lifetime_net_production_phase', + 'unique_id': '1234_lifetime_net_production_l2', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_metering_status_net_consumption_ct_l2-state] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_lifetime_net_energy_production_l2-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'enum', - 'friendly_name': 'Envoy 1234 Metering status net consumption CT l2', - 'options': list([ - , - , - , - ]), + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Lifetime net energy production l2', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_metering_status_net_consumption_ct_l2', + 'entity_id': 'sensor.envoy_1234_lifetime_net_energy_production_l2', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': 'normal', + 'state': '0.223452', }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_metering_status_net_consumption_ct_l3-entry] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_lifetime_net_energy_production_l3-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'options': list([ - , - , - , - ]), + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -11715,8 +11976,8 @@ 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': , - 'entity_id': 'sensor.envoy_1234_metering_status_net_consumption_ct_l3', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_lifetime_net_energy_production_l3', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -11724,52 +11985,49 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Metering status net consumption CT l3', + 'object_id_base': 'Lifetime net energy production l3', 'options': dict({ - }), - 'original_device_class': , - 'original_icon': None, - 'original_name': 'Metering status net consumption CT l3', + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Lifetime net energy production l3', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_ct_metering_status_phase', - 'unique_id': '1234_net_consumption_ct_metering_status_l3', - 'unit_of_measurement': None, + 'translation_key': 'lifetime_net_production_phase', + 'unique_id': '1234_lifetime_net_production_l3', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_metering_status_net_consumption_ct_l3-state] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_lifetime_net_energy_production_l3-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'enum', - 'friendly_name': 'Envoy 1234 Metering status net consumption CT l3', - 'options': list([ - , - , - , - ]), + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Lifetime net energy production l3', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_metering_status_net_consumption_ct_l3', + 'entity_id': 'sensor.envoy_1234_lifetime_net_energy_production_l3', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': 'normal', + 'state': '0.223453', }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_metering_status_production_ct-entry] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_meter_status_flags_active_net_consumption_ct-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, - 'capabilities': dict({ - 'options': list([ - , - , - , - ]), - }), + 'capabilities': None, 'config_entry_id': , 'config_subentry_id': , 'device_class': None, @@ -11777,7 +12035,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': , - 'entity_id': 'sensor.envoy_1234_metering_status_production_ct', + 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_net_consumption_ct', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -11785,52 +12043,40 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Metering status production CT', + 'object_id_base': 'Meter status flags active net consumption CT', 'options': dict({ }), - 'original_device_class': , + 'original_device_class': None, 'original_icon': None, - 'original_name': 'Metering status production CT', + 'original_name': 'Meter status flags active net consumption CT', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'production_ct_metering_status', - 'unique_id': '1234_production_ct_metering_status', + 'translation_key': 'net_ct_status_flags', + 'unique_id': '1234_net_consumption_ct_status_flags', 'unit_of_measurement': None, }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_metering_status_production_ct-state] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_meter_status_flags_active_net_consumption_ct-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'enum', - 'friendly_name': 'Envoy 1234 Metering status production CT', - 'options': list([ - , - , - , - ]), + 'friendly_name': 'Envoy 1234 Meter status flags active net consumption CT', }), 'context': , - 'entity_id': 'sensor.envoy_1234_metering_status_production_ct', + 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_net_consumption_ct', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': 'normal', + 'state': '0', }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_metering_status_production_ct_l1-entry] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_meter_status_flags_active_net_consumption_ct_l1-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, - 'capabilities': dict({ - 'options': list([ - , - , - , - ]), - }), + 'capabilities': None, 'config_entry_id': , 'config_subentry_id': , 'device_class': None, @@ -11838,7 +12084,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': , - 'entity_id': 'sensor.envoy_1234_metering_status_production_ct_l1', + 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_net_consumption_ct_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -11846,52 +12092,40 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Metering status production CT l1', + 'object_id_base': 'Meter status flags active net consumption CT l1', 'options': dict({ }), - 'original_device_class': , + 'original_device_class': None, 'original_icon': None, - 'original_name': 'Metering status production CT l1', + 'original_name': 'Meter status flags active net consumption CT l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'production_ct_metering_status_phase', - 'unique_id': '1234_production_ct_metering_status_l1', + 'translation_key': 'net_ct_status_flags_phase', + 'unique_id': '1234_net_consumption_ct_status_flags_l1', 'unit_of_measurement': None, }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_metering_status_production_ct_l1-state] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_meter_status_flags_active_net_consumption_ct_l1-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'enum', - 'friendly_name': 'Envoy 1234 Metering status production CT l1', - 'options': list([ - , - , - , - ]), + 'friendly_name': 'Envoy 1234 Meter status flags active net consumption CT l1', }), 'context': , - 'entity_id': 'sensor.envoy_1234_metering_status_production_ct_l1', + 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_net_consumption_ct_l1', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': 'normal', + 'state': '0', }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_metering_status_production_ct_l2-entry] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_meter_status_flags_active_net_consumption_ct_l2-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, - 'capabilities': dict({ - 'options': list([ - , - , - , - ]), - }), + 'capabilities': None, 'config_entry_id': , 'config_subentry_id': , 'device_class': None, @@ -11899,7 +12133,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': , - 'entity_id': 'sensor.envoy_1234_metering_status_production_ct_l2', + 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_net_consumption_ct_l2', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -11907,52 +12141,40 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Metering status production CT l2', + 'object_id_base': 'Meter status flags active net consumption CT l2', 'options': dict({ }), - 'original_device_class': , + 'original_device_class': None, 'original_icon': None, - 'original_name': 'Metering status production CT l2', + 'original_name': 'Meter status flags active net consumption CT l2', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'production_ct_metering_status_phase', - 'unique_id': '1234_production_ct_metering_status_l2', + 'translation_key': 'net_ct_status_flags_phase', + 'unique_id': '1234_net_consumption_ct_status_flags_l2', 'unit_of_measurement': None, }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_metering_status_production_ct_l2-state] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_meter_status_flags_active_net_consumption_ct_l2-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'enum', - 'friendly_name': 'Envoy 1234 Metering status production CT l2', - 'options': list([ - , - , - , - ]), + 'friendly_name': 'Envoy 1234 Meter status flags active net consumption CT l2', }), 'context': , - 'entity_id': 'sensor.envoy_1234_metering_status_production_ct_l2', + 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_net_consumption_ct_l2', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': 'normal', + 'state': '0', }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_metering_status_production_ct_l3-entry] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_meter_status_flags_active_net_consumption_ct_l3-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, - 'capabilities': dict({ - 'options': list([ - , - , - , - ]), - }), + 'capabilities': None, 'config_entry_id': , 'config_subentry_id': , 'device_class': None, @@ -11960,7 +12182,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': , - 'entity_id': 'sensor.envoy_1234_metering_status_production_ct_l3', + 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_net_consumption_ct_l3', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -11968,56 +12190,48 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Metering status production CT l3', + 'object_id_base': 'Meter status flags active net consumption CT l3', 'options': dict({ }), - 'original_device_class': , + 'original_device_class': None, 'original_icon': None, - 'original_name': 'Metering status production CT l3', + 'original_name': 'Meter status flags active net consumption CT l3', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'production_ct_metering_status_phase', - 'unique_id': '1234_production_ct_metering_status_l3', + 'translation_key': 'net_ct_status_flags_phase', + 'unique_id': '1234_net_consumption_ct_status_flags_l3', 'unit_of_measurement': None, }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_metering_status_production_ct_l3-state] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_meter_status_flags_active_net_consumption_ct_l3-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'enum', - 'friendly_name': 'Envoy 1234 Metering status production CT l3', - 'options': list([ - , - , - , - ]), + 'friendly_name': 'Envoy 1234 Meter status flags active net consumption CT l3', }), 'context': , - 'entity_id': 'sensor.envoy_1234_metering_status_production_ct_l3', + 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_net_consumption_ct_l3', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': 'normal', + 'state': '0', }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_net_consumption_ct_current-entry] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_meter_status_flags_active_production_ct-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, - 'capabilities': dict({ - 'state_class': , - }), + 'capabilities': None, 'config_entry_id': , 'config_subentry_id': , 'device_class': None, 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_net_consumption_ct_current', + 'entity_category': , + 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_production_ct', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -12025,59 +12239,48 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Net consumption CT current', + 'object_id_base': 'Meter status flags active production CT', 'options': dict({ - 'sensor': dict({ - 'suggested_display_precision': 3, - }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': , - }), }), - 'original_device_class': , + 'original_device_class': None, 'original_icon': None, - 'original_name': 'Net consumption CT current', + 'original_name': 'Meter status flags active production CT', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_ct_current', - 'unique_id': '1234_net_ct_current', - 'unit_of_measurement': , + 'translation_key': 'production_ct_status_flags', + 'unique_id': '1234_production_ct_status_flags', + 'unit_of_measurement': None, }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_net_consumption_ct_current-state] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_meter_status_flags_active_production_ct-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'current', - 'friendly_name': 'Envoy 1234 Net consumption CT current', - 'state_class': , - 'unit_of_measurement': , + 'friendly_name': 'Envoy 1234 Meter status flags active production CT', }), 'context': , - 'entity_id': 'sensor.envoy_1234_net_consumption_ct_current', + 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_production_ct', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.3', + 'state': '2', }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_net_consumption_ct_current_l1-entry] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_meter_status_flags_active_production_ct_l1-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, - 'capabilities': dict({ - 'state_class': , - }), + 'capabilities': None, 'config_entry_id': , 'config_subentry_id': , 'device_class': None, 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_net_consumption_ct_current_l1', + 'entity_category': , + 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_production_ct_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -12085,59 +12288,48 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Net consumption CT current l1', + 'object_id_base': 'Meter status flags active production CT l1', 'options': dict({ - 'sensor': dict({ - 'suggested_display_precision': 3, - }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': , - }), }), - 'original_device_class': , + 'original_device_class': None, 'original_icon': None, - 'original_name': 'Net consumption CT current l1', + 'original_name': 'Meter status flags active production CT l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_ct_current_phase', - 'unique_id': '1234_net_ct_current_l1', - 'unit_of_measurement': , + 'translation_key': 'production_ct_status_flags_phase', + 'unique_id': '1234_production_ct_status_flags_l1', + 'unit_of_measurement': None, }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_net_consumption_ct_current_l1-state] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_meter_status_flags_active_production_ct_l1-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'current', - 'friendly_name': 'Envoy 1234 Net consumption CT current l1', - 'state_class': , - 'unit_of_measurement': , + 'friendly_name': 'Envoy 1234 Meter status flags active production CT l1', }), 'context': , - 'entity_id': 'sensor.envoy_1234_net_consumption_ct_current_l1', + 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_production_ct_l1', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.3', + 'state': '1', }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_net_consumption_ct_current_l2-entry] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_meter_status_flags_active_production_ct_l2-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, - 'capabilities': dict({ - 'state_class': , - }), + 'capabilities': None, 'config_entry_id': , 'config_subentry_id': , 'device_class': None, 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_net_consumption_ct_current_l2', + 'entity_category': , + 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_production_ct_l2', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -12145,59 +12337,48 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Net consumption CT current l2', + 'object_id_base': 'Meter status flags active production CT l2', 'options': dict({ - 'sensor': dict({ - 'suggested_display_precision': 3, - }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': , - }), }), - 'original_device_class': , + 'original_device_class': None, 'original_icon': None, - 'original_name': 'Net consumption CT current l2', + 'original_name': 'Meter status flags active production CT l2', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_ct_current_phase', - 'unique_id': '1234_net_ct_current_l2', - 'unit_of_measurement': , + 'translation_key': 'production_ct_status_flags_phase', + 'unique_id': '1234_production_ct_status_flags_l2', + 'unit_of_measurement': None, }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_net_consumption_ct_current_l2-state] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_meter_status_flags_active_production_ct_l2-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'current', - 'friendly_name': 'Envoy 1234 Net consumption CT current l2', - 'state_class': , - 'unit_of_measurement': , + 'friendly_name': 'Envoy 1234 Meter status flags active production CT l2', }), 'context': , - 'entity_id': 'sensor.envoy_1234_net_consumption_ct_current_l2', + 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_production_ct_l2', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.3', + 'state': '1', }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_net_consumption_ct_current_l3-entry] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_meter_status_flags_active_production_ct_l3-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, - 'capabilities': dict({ - 'state_class': , - }), + 'capabilities': None, 'config_entry_id': , 'config_subentry_id': , 'device_class': None, 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_net_consumption_ct_current_l3', + 'entity_category': , + 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_production_ct_l3', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -12205,50 +12386,45 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Net consumption CT current l3', + 'object_id_base': 'Meter status flags active production CT l3', 'options': dict({ - 'sensor': dict({ - 'suggested_display_precision': 3, - }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': , - }), }), - 'original_device_class': , + 'original_device_class': None, 'original_icon': None, - 'original_name': 'Net consumption CT current l3', + 'original_name': 'Meter status flags active production CT l3', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_ct_current_phase', - 'unique_id': '1234_net_ct_current_l3', - 'unit_of_measurement': , + 'translation_key': 'production_ct_status_flags_phase', + 'unique_id': '1234_production_ct_status_flags_l3', + 'unit_of_measurement': None, }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_net_consumption_ct_current_l3-state] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_meter_status_flags_active_production_ct_l3-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'current', - 'friendly_name': 'Envoy 1234 Net consumption CT current l3', - 'state_class': , - 'unit_of_measurement': , + 'friendly_name': 'Envoy 1234 Meter status flags active production CT l3', }), 'context': , - 'entity_id': 'sensor.envoy_1234_net_consumption_ct_current_l3', + 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_production_ct_l3', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.3', + 'state': '0', }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_power_factor_net_consumption_ct-entry] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_metering_status_net_consumption_ct-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'options': list([ + , + , + , + ]), }), 'config_entry_id': , 'config_subentry_id': , @@ -12256,8 +12432,8 @@ 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_power_factor_net_consumption_ct', + 'entity_category': , + 'entity_id': 'sensor.envoy_1234_metering_status_net_consumption_ct', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -12265,46 +12441,51 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Power factor net consumption CT', + 'object_id_base': 'Metering status net consumption CT', 'options': dict({ - 'sensor': dict({ - 'suggested_display_precision': 2, - }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Power factor net consumption CT', + 'original_name': 'Metering status net consumption CT', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_ct_powerfactor', - 'unique_id': '1234_net_ct_powerfactor', + 'translation_key': 'net_ct_metering_status', + 'unique_id': '1234_net_consumption_ct_metering_status', 'unit_of_measurement': None, }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_power_factor_net_consumption_ct-state] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_metering_status_net_consumption_ct-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'power_factor', - 'friendly_name': 'Envoy 1234 Power factor net consumption CT', - 'state_class': , + 'device_class': 'enum', + 'friendly_name': 'Envoy 1234 Metering status net consumption CT', + 'options': list([ + , + , + , + ]), }), 'context': , - 'entity_id': 'sensor.envoy_1234_power_factor_net_consumption_ct', + 'entity_id': 'sensor.envoy_1234_metering_status_net_consumption_ct', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.21', + 'state': 'normal', }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_power_factor_net_consumption_ct_l1-entry] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_metering_status_net_consumption_ct_l1-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'options': list([ + , + , + , + ]), }), 'config_entry_id': , 'config_subentry_id': , @@ -12312,8 +12493,8 @@ 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_power_factor_net_consumption_ct_l1', + 'entity_category': , + 'entity_id': 'sensor.envoy_1234_metering_status_net_consumption_ct_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -12321,46 +12502,51 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Power factor net consumption CT l1', + 'object_id_base': 'Metering status net consumption CT l1', 'options': dict({ - 'sensor': dict({ - 'suggested_display_precision': 2, - }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Power factor net consumption CT l1', + 'original_name': 'Metering status net consumption CT l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_ct_powerfactor_phase', - 'unique_id': '1234_net_ct_powerfactor_l1', + 'translation_key': 'net_ct_metering_status_phase', + 'unique_id': '1234_net_consumption_ct_metering_status_l1', 'unit_of_measurement': None, }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_power_factor_net_consumption_ct_l1-state] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_metering_status_net_consumption_ct_l1-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'power_factor', - 'friendly_name': 'Envoy 1234 Power factor net consumption CT l1', - 'state_class': , + 'device_class': 'enum', + 'friendly_name': 'Envoy 1234 Metering status net consumption CT l1', + 'options': list([ + , + , + , + ]), }), 'context': , - 'entity_id': 'sensor.envoy_1234_power_factor_net_consumption_ct_l1', + 'entity_id': 'sensor.envoy_1234_metering_status_net_consumption_ct_l1', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.22', + 'state': 'normal', }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_power_factor_net_consumption_ct_l2-entry] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_metering_status_net_consumption_ct_l2-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'options': list([ + , + , + , + ]), }), 'config_entry_id': , 'config_subentry_id': , @@ -12368,8 +12554,8 @@ 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_power_factor_net_consumption_ct_l2', + 'entity_category': , + 'entity_id': 'sensor.envoy_1234_metering_status_net_consumption_ct_l2', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -12377,46 +12563,51 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Power factor net consumption CT l2', + 'object_id_base': 'Metering status net consumption CT l2', 'options': dict({ - 'sensor': dict({ - 'suggested_display_precision': 2, - }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Power factor net consumption CT l2', + 'original_name': 'Metering status net consumption CT l2', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_ct_powerfactor_phase', - 'unique_id': '1234_net_ct_powerfactor_l2', + 'translation_key': 'net_ct_metering_status_phase', + 'unique_id': '1234_net_consumption_ct_metering_status_l2', 'unit_of_measurement': None, }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_power_factor_net_consumption_ct_l2-state] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_metering_status_net_consumption_ct_l2-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'power_factor', - 'friendly_name': 'Envoy 1234 Power factor net consumption CT l2', - 'state_class': , + 'device_class': 'enum', + 'friendly_name': 'Envoy 1234 Metering status net consumption CT l2', + 'options': list([ + , + , + , + ]), }), 'context': , - 'entity_id': 'sensor.envoy_1234_power_factor_net_consumption_ct_l2', + 'entity_id': 'sensor.envoy_1234_metering_status_net_consumption_ct_l2', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.23', + 'state': 'normal', }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_power_factor_net_consumption_ct_l3-entry] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_metering_status_net_consumption_ct_l3-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'options': list([ + , + , + , + ]), }), 'config_entry_id': , 'config_subentry_id': , @@ -12424,8 +12615,8 @@ 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_power_factor_net_consumption_ct_l3', + 'entity_category': , + 'entity_id': 'sensor.envoy_1234_metering_status_net_consumption_ct_l3', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -12433,46 +12624,51 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Power factor net consumption CT l3', + 'object_id_base': 'Metering status net consumption CT l3', 'options': dict({ - 'sensor': dict({ - 'suggested_display_precision': 2, - }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Power factor net consumption CT l3', + 'original_name': 'Metering status net consumption CT l3', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_ct_powerfactor_phase', - 'unique_id': '1234_net_ct_powerfactor_l3', + 'translation_key': 'net_ct_metering_status_phase', + 'unique_id': '1234_net_consumption_ct_metering_status_l3', 'unit_of_measurement': None, }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_power_factor_net_consumption_ct_l3-state] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_metering_status_net_consumption_ct_l3-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'power_factor', - 'friendly_name': 'Envoy 1234 Power factor net consumption CT l3', - 'state_class': , + 'device_class': 'enum', + 'friendly_name': 'Envoy 1234 Metering status net consumption CT l3', + 'options': list([ + , + , + , + ]), }), 'context': , - 'entity_id': 'sensor.envoy_1234_power_factor_net_consumption_ct_l3', + 'entity_id': 'sensor.envoy_1234_metering_status_net_consumption_ct_l3', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.24', + 'state': 'normal', }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_power_factor_production_ct-entry] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_metering_status_production_ct-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'options': list([ + , + , + , + ]), }), 'config_entry_id': , 'config_subentry_id': , @@ -12480,8 +12676,8 @@ 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_power_factor_production_ct', + 'entity_category': , + 'entity_id': 'sensor.envoy_1234_metering_status_production_ct', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -12489,46 +12685,51 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Power factor production CT', + 'object_id_base': 'Metering status production CT', 'options': dict({ - 'sensor': dict({ - 'suggested_display_precision': 2, - }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Power factor production CT', + 'original_name': 'Metering status production CT', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'production_ct_powerfactor', - 'unique_id': '1234_production_ct_powerfactor', + 'translation_key': 'production_ct_metering_status', + 'unique_id': '1234_production_ct_metering_status', 'unit_of_measurement': None, }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_power_factor_production_ct-state] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_metering_status_production_ct-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'power_factor', - 'friendly_name': 'Envoy 1234 Power factor production CT', - 'state_class': , + 'device_class': 'enum', + 'friendly_name': 'Envoy 1234 Metering status production CT', + 'options': list([ + , + , + , + ]), }), 'context': , - 'entity_id': 'sensor.envoy_1234_power_factor_production_ct', + 'entity_id': 'sensor.envoy_1234_metering_status_production_ct', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.11', + 'state': 'normal', }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_power_factor_production_ct_l1-entry] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_metering_status_production_ct_l1-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'options': list([ + , + , + , + ]), }), 'config_entry_id': , 'config_subentry_id': , @@ -12536,8 +12737,8 @@ 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_power_factor_production_ct_l1', + 'entity_category': , + 'entity_id': 'sensor.envoy_1234_metering_status_production_ct_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -12545,46 +12746,51 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Power factor production CT l1', + 'object_id_base': 'Metering status production CT l1', 'options': dict({ - 'sensor': dict({ - 'suggested_display_precision': 2, - }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Power factor production CT l1', + 'original_name': 'Metering status production CT l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'production_ct_powerfactor_phase', - 'unique_id': '1234_production_ct_powerfactor_l1', + 'translation_key': 'production_ct_metering_status_phase', + 'unique_id': '1234_production_ct_metering_status_l1', 'unit_of_measurement': None, }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_power_factor_production_ct_l1-state] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_metering_status_production_ct_l1-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'power_factor', - 'friendly_name': 'Envoy 1234 Power factor production CT l1', - 'state_class': , + 'device_class': 'enum', + 'friendly_name': 'Envoy 1234 Metering status production CT l1', + 'options': list([ + , + , + , + ]), }), 'context': , - 'entity_id': 'sensor.envoy_1234_power_factor_production_ct_l1', + 'entity_id': 'sensor.envoy_1234_metering_status_production_ct_l1', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.12', + 'state': 'normal', }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_power_factor_production_ct_l2-entry] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_metering_status_production_ct_l2-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'options': list([ + , + , + , + ]), }), 'config_entry_id': , 'config_subentry_id': , @@ -12592,8 +12798,8 @@ 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_power_factor_production_ct_l2', + 'entity_category': , + 'entity_id': 'sensor.envoy_1234_metering_status_production_ct_l2', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -12601,46 +12807,51 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Power factor production CT l2', + 'object_id_base': 'Metering status production CT l2', 'options': dict({ - 'sensor': dict({ - 'suggested_display_precision': 2, - }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Power factor production CT l2', + 'original_name': 'Metering status production CT l2', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'production_ct_powerfactor_phase', - 'unique_id': '1234_production_ct_powerfactor_l2', + 'translation_key': 'production_ct_metering_status_phase', + 'unique_id': '1234_production_ct_metering_status_l2', 'unit_of_measurement': None, }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_power_factor_production_ct_l2-state] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_metering_status_production_ct_l2-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'power_factor', - 'friendly_name': 'Envoy 1234 Power factor production CT l2', - 'state_class': , + 'device_class': 'enum', + 'friendly_name': 'Envoy 1234 Metering status production CT l2', + 'options': list([ + , + , + , + ]), }), 'context': , - 'entity_id': 'sensor.envoy_1234_power_factor_production_ct_l2', + 'entity_id': 'sensor.envoy_1234_metering_status_production_ct_l2', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.13', + 'state': 'normal', }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_power_factor_production_ct_l3-entry] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_metering_status_production_ct_l3-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'options': list([ + , + , + , + ]), }), 'config_entry_id': , 'config_subentry_id': , @@ -12648,8 +12859,8 @@ 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_power_factor_production_ct_l3', + 'entity_category': , + 'entity_id': 'sensor.envoy_1234_metering_status_production_ct_l3', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -12657,40 +12868,41 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Power factor production CT l3', + 'object_id_base': 'Metering status production CT l3', 'options': dict({ - 'sensor': dict({ - 'suggested_display_precision': 2, - }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Power factor production CT l3', + 'original_name': 'Metering status production CT l3', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'production_ct_powerfactor_phase', - 'unique_id': '1234_production_ct_powerfactor_l3', + 'translation_key': 'production_ct_metering_status_phase', + 'unique_id': '1234_production_ct_metering_status_l3', 'unit_of_measurement': None, }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_power_factor_production_ct_l3-state] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_metering_status_production_ct_l3-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'power_factor', - 'friendly_name': 'Envoy 1234 Power factor production CT l3', - 'state_class': , + 'device_class': 'enum', + 'friendly_name': 'Envoy 1234 Metering status production CT l3', + 'options': list([ + , + , + , + ]), }), 'context': , - 'entity_id': 'sensor.envoy_1234_power_factor_production_ct_l3', + 'entity_id': 'sensor.envoy_1234_metering_status_production_ct_l3', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.14', + 'state': 'normal', }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_production_ct_current-entry] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_net_consumption_ct_current-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -12705,7 +12917,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_production_ct_current', + 'entity_id': 'sensor.envoy_1234_net_consumption_ct_current', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -12713,7 +12925,7 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Production CT current', + 'object_id_base': 'Net consumption CT current', 'options': dict({ 'sensor': dict({ 'suggested_display_precision': 3, @@ -12724,33 +12936,33 @@ }), 'original_device_class': , 'original_icon': None, - 'original_name': 'Production CT current', + 'original_name': 'Net consumption CT current', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'production_ct_current', - 'unique_id': '1234_production_ct_current', + 'translation_key': 'net_ct_current', + 'unique_id': '1234_net_ct_current', 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_production_ct_current-state] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_net_consumption_ct_current-state] StateSnapshot({ 'attributes': ReadOnlyDict({ 'device_class': 'current', - 'friendly_name': 'Envoy 1234 Production CT current', + 'friendly_name': 'Envoy 1234 Net consumption CT current', 'state_class': , 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_production_ct_current', + 'entity_id': 'sensor.envoy_1234_net_consumption_ct_current', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.2', + 'state': '0.3', }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_production_ct_current_l1-entry] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_net_consumption_ct_current_l1-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -12765,7 +12977,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_production_ct_current_l1', + 'entity_id': 'sensor.envoy_1234_net_consumption_ct_current_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -12773,7 +12985,7 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Production CT current l1', + 'object_id_base': 'Net consumption CT current l1', 'options': dict({ 'sensor': dict({ 'suggested_display_precision': 3, @@ -12784,33 +12996,33 @@ }), 'original_device_class': , 'original_icon': None, - 'original_name': 'Production CT current l1', + 'original_name': 'Net consumption CT current l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'production_ct_current_phase', - 'unique_id': '1234_production_ct_current_l1', + 'translation_key': 'net_ct_current_phase', + 'unique_id': '1234_net_ct_current_l1', 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_production_ct_current_l1-state] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_net_consumption_ct_current_l1-state] StateSnapshot({ 'attributes': ReadOnlyDict({ 'device_class': 'current', - 'friendly_name': 'Envoy 1234 Production CT current l1', + 'friendly_name': 'Envoy 1234 Net consumption CT current l1', 'state_class': , 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_production_ct_current_l1', + 'entity_id': 'sensor.envoy_1234_net_consumption_ct_current_l1', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.2', + 'state': '0.3', }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_production_ct_current_l2-entry] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_net_consumption_ct_current_l2-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -12825,7 +13037,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_production_ct_current_l2', + 'entity_id': 'sensor.envoy_1234_net_consumption_ct_current_l2', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -12833,7 +13045,7 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Production CT current l2', + 'object_id_base': 'Net consumption CT current l2', 'options': dict({ 'sensor': dict({ 'suggested_display_precision': 3, @@ -12844,33 +13056,33 @@ }), 'original_device_class': , 'original_icon': None, - 'original_name': 'Production CT current l2', + 'original_name': 'Net consumption CT current l2', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'production_ct_current_phase', - 'unique_id': '1234_production_ct_current_l2', + 'translation_key': 'net_ct_current_phase', + 'unique_id': '1234_net_ct_current_l2', 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_production_ct_current_l2-state] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_net_consumption_ct_current_l2-state] StateSnapshot({ 'attributes': ReadOnlyDict({ 'device_class': 'current', - 'friendly_name': 'Envoy 1234 Production CT current l2', + 'friendly_name': 'Envoy 1234 Net consumption CT current l2', 'state_class': , 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_production_ct_current_l2', + 'entity_id': 'sensor.envoy_1234_net_consumption_ct_current_l2', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.2', + 'state': '0.3', }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_production_ct_current_l3-entry] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_net_consumption_ct_current_l3-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -12885,7 +13097,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_production_ct_current_l3', + 'entity_id': 'sensor.envoy_1234_net_consumption_ct_current_l3', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -12893,7 +13105,7 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Production CT current l3', + 'object_id_base': 'Net consumption CT current l3', 'options': dict({ 'sensor': dict({ 'suggested_display_precision': 3, @@ -12904,33 +13116,33 @@ }), 'original_device_class': , 'original_icon': None, - 'original_name': 'Production CT current l3', + 'original_name': 'Net consumption CT current l3', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'production_ct_current_phase', - 'unique_id': '1234_production_ct_current_l3', + 'translation_key': 'net_ct_current_phase', + 'unique_id': '1234_net_ct_current_l3', 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_production_ct_current_l3-state] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_net_consumption_ct_current_l3-state] StateSnapshot({ 'attributes': ReadOnlyDict({ 'device_class': 'current', - 'friendly_name': 'Envoy 1234 Production CT current l3', + 'friendly_name': 'Envoy 1234 Net consumption CT current l3', 'state_class': , 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_production_ct_current_l3', + 'entity_id': 'sensor.envoy_1234_net_consumption_ct_current_l3', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.2', + 'state': '0.3', }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_reserve_battery_energy-entry] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_power_factor_net_consumption_ct-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -12945,7 +13157,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_reserve_battery_energy', + 'entity_id': 'sensor.envoy_1234_power_factor_net_consumption_ct', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -12953,41 +13165,40 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Reserve battery energy', + 'object_id_base': 'Power factor net consumption CT', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 0, + 'suggested_display_precision': 2, }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Reserve battery energy', + 'original_name': 'Power factor net consumption CT', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'reserve_energy', - 'unique_id': '1234_reserve_energy', - 'unit_of_measurement': , + 'translation_key': 'net_ct_powerfactor', + 'unique_id': '1234_net_ct_powerfactor', + 'unit_of_measurement': None, }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_reserve_battery_energy-state] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_power_factor_net_consumption_ct-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'energy_storage', - 'friendly_name': 'Envoy 1234 Reserve battery energy', + 'device_class': 'power_factor', + 'friendly_name': 'Envoy 1234 Power factor net consumption CT', 'state_class': , - 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_reserve_battery_energy', + 'entity_id': 'sensor.envoy_1234_power_factor_net_consumption_ct', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0', + 'state': '0.21', }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_reserve_battery_level-entry] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_power_factor_net_consumption_ct_l1-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -13002,7 +13213,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_reserve_battery_level', + 'entity_id': 'sensor.envoy_1234_power_factor_net_consumption_ct_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -13010,38 +13221,40 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Reserve battery level', + 'object_id_base': 'Power factor net consumption CT l1', 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 2, + }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Reserve battery level', + 'original_name': 'Power factor net consumption CT l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'reserve_soc', - 'unique_id': '1234_reserve_soc', - 'unit_of_measurement': '%', + 'translation_key': 'net_ct_powerfactor_phase', + 'unique_id': '1234_net_ct_powerfactor_l1', + 'unit_of_measurement': None, }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_reserve_battery_level-state] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_power_factor_net_consumption_ct_l1-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'battery', - 'friendly_name': 'Envoy 1234 Reserve battery level', + 'device_class': 'power_factor', + 'friendly_name': 'Envoy 1234 Power factor net consumption CT l1', 'state_class': , - 'unit_of_measurement': '%', }), 'context': , - 'entity_id': 'sensor.envoy_1234_reserve_battery_level', + 'entity_id': 'sensor.envoy_1234_power_factor_net_consumption_ct_l1', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0', + 'state': '0.22', }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_voltage_net_consumption_ct-entry] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_power_factor_net_consumption_ct_l2-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -13056,7 +13269,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_voltage_net_consumption_ct', + 'entity_id': 'sensor.envoy_1234_power_factor_net_consumption_ct_l2', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -13064,44 +13277,40 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Voltage net consumption CT', + 'object_id_base': 'Power factor net consumption CT l2', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 1, - }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_display_precision': 2, }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Voltage net consumption CT', + 'original_name': 'Power factor net consumption CT l2', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_ct_voltage', - 'unique_id': '1234_voltage', - 'unit_of_measurement': , + 'translation_key': 'net_ct_powerfactor_phase', + 'unique_id': '1234_net_ct_powerfactor_l2', + 'unit_of_measurement': None, }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_voltage_net_consumption_ct-state] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_power_factor_net_consumption_ct_l2-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'voltage', - 'friendly_name': 'Envoy 1234 Voltage net consumption CT', + 'device_class': 'power_factor', + 'friendly_name': 'Envoy 1234 Power factor net consumption CT l2', 'state_class': , - 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_voltage_net_consumption_ct', + 'entity_id': 'sensor.envoy_1234_power_factor_net_consumption_ct_l2', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '112', + 'state': '0.23', }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_voltage_net_consumption_ct_l1-entry] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_power_factor_net_consumption_ct_l3-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -13116,7 +13325,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_voltage_net_consumption_ct_l1', + 'entity_id': 'sensor.envoy_1234_power_factor_net_consumption_ct_l3', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -13124,44 +13333,40 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Voltage net consumption CT l1', + 'object_id_base': 'Power factor net consumption CT l3', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 1, - }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_display_precision': 2, }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Voltage net consumption CT l1', + 'original_name': 'Power factor net consumption CT l3', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_ct_voltage_phase', - 'unique_id': '1234_voltage_l1', - 'unit_of_measurement': , + 'translation_key': 'net_ct_powerfactor_phase', + 'unique_id': '1234_net_ct_powerfactor_l3', + 'unit_of_measurement': None, }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_voltage_net_consumption_ct_l1-state] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_power_factor_net_consumption_ct_l3-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'voltage', - 'friendly_name': 'Envoy 1234 Voltage net consumption CT l1', + 'device_class': 'power_factor', + 'friendly_name': 'Envoy 1234 Power factor net consumption CT l3', 'state_class': , - 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_voltage_net_consumption_ct_l1', + 'entity_id': 'sensor.envoy_1234_power_factor_net_consumption_ct_l3', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '112', + 'state': '0.24', }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_voltage_net_consumption_ct_l2-entry] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_power_factor_production_ct-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -13176,7 +13381,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_voltage_net_consumption_ct_l2', + 'entity_id': 'sensor.envoy_1234_power_factor_production_ct', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -13184,44 +13389,40 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Voltage net consumption CT l2', + 'object_id_base': 'Power factor production CT', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 1, - }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_display_precision': 2, }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Voltage net consumption CT l2', + 'original_name': 'Power factor production CT', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_ct_voltage_phase', - 'unique_id': '1234_voltage_l2', - 'unit_of_measurement': , + 'translation_key': 'production_ct_powerfactor', + 'unique_id': '1234_production_ct_powerfactor', + 'unit_of_measurement': None, }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_voltage_net_consumption_ct_l2-state] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_power_factor_production_ct-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'voltage', - 'friendly_name': 'Envoy 1234 Voltage net consumption CT l2', + 'device_class': 'power_factor', + 'friendly_name': 'Envoy 1234 Power factor production CT', 'state_class': , - 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_voltage_net_consumption_ct_l2', + 'entity_id': 'sensor.envoy_1234_power_factor_production_ct', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '112', + 'state': '0.11', }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_voltage_net_consumption_ct_l3-entry] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_power_factor_production_ct_l1-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -13236,7 +13437,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_voltage_net_consumption_ct_l3', + 'entity_id': 'sensor.envoy_1234_power_factor_production_ct_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -13244,44 +13445,40 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Voltage net consumption CT l3', + 'object_id_base': 'Power factor production CT l1', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 1, - }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_display_precision': 2, }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Voltage net consumption CT l3', + 'original_name': 'Power factor production CT l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_ct_voltage_phase', - 'unique_id': '1234_voltage_l3', - 'unit_of_measurement': , + 'translation_key': 'production_ct_powerfactor_phase', + 'unique_id': '1234_production_ct_powerfactor_l1', + 'unit_of_measurement': None, }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_voltage_net_consumption_ct_l3-state] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_power_factor_production_ct_l1-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'voltage', - 'friendly_name': 'Envoy 1234 Voltage net consumption CT l3', + 'device_class': 'power_factor', + 'friendly_name': 'Envoy 1234 Power factor production CT l1', 'state_class': , - 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_voltage_net_consumption_ct_l3', + 'entity_id': 'sensor.envoy_1234_power_factor_production_ct_l1', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '112', + 'state': '0.12', }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_voltage_production_ct-entry] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_power_factor_production_ct_l2-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -13296,7 +13493,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_voltage_production_ct', + 'entity_id': 'sensor.envoy_1234_power_factor_production_ct_l2', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -13304,44 +13501,40 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Voltage production CT', + 'object_id_base': 'Power factor production CT l2', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 1, - }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_display_precision': 2, }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Voltage production CT', + 'original_name': 'Power factor production CT l2', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'production_ct_voltage', - 'unique_id': '1234_production_ct_voltage', - 'unit_of_measurement': , + 'translation_key': 'production_ct_powerfactor_phase', + 'unique_id': '1234_production_ct_powerfactor_l2', + 'unit_of_measurement': None, }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_voltage_production_ct-state] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_power_factor_production_ct_l2-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'voltage', - 'friendly_name': 'Envoy 1234 Voltage production CT', + 'device_class': 'power_factor', + 'friendly_name': 'Envoy 1234 Power factor production CT l2', 'state_class': , - 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_voltage_production_ct', + 'entity_id': 'sensor.envoy_1234_power_factor_production_ct_l2', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '111', + 'state': '0.13', }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_voltage_production_ct_l1-entry] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_power_factor_production_ct_l3-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -13356,7 +13549,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_voltage_production_ct_l1', + 'entity_id': 'sensor.envoy_1234_power_factor_production_ct_l3', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -13364,44 +13557,40 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Voltage production CT l1', + 'object_id_base': 'Power factor production CT l3', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 1, - }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_display_precision': 2, }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Voltage production CT l1', + 'original_name': 'Power factor production CT l3', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'production_ct_voltage_phase', - 'unique_id': '1234_production_ct_voltage_l1', - 'unit_of_measurement': , + 'translation_key': 'production_ct_powerfactor_phase', + 'unique_id': '1234_production_ct_powerfactor_l3', + 'unit_of_measurement': None, }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_voltage_production_ct_l1-state] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_power_factor_production_ct_l3-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'voltage', - 'friendly_name': 'Envoy 1234 Voltage production CT l1', + 'device_class': 'power_factor', + 'friendly_name': 'Envoy 1234 Power factor production CT l3', 'state_class': , - 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_voltage_production_ct_l1', + 'entity_id': 'sensor.envoy_1234_power_factor_production_ct_l3', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '111', + 'state': '0.14', }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_voltage_production_ct_l2-entry] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_production_ct_current-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -13416,7 +13605,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_voltage_production_ct_l2', + 'entity_id': 'sensor.envoy_1234_production_ct_current', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -13424,44 +13613,44 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Voltage production CT l2', + 'object_id_base': 'Production CT current', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 1, + 'suggested_display_precision': 3, }), 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Voltage production CT l2', + 'original_name': 'Production CT current', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'production_ct_voltage_phase', - 'unique_id': '1234_production_ct_voltage_l2', - 'unit_of_measurement': , + 'translation_key': 'production_ct_current', + 'unique_id': '1234_production_ct_current', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_voltage_production_ct_l2-state] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_production_ct_current-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'voltage', - 'friendly_name': 'Envoy 1234 Voltage production CT l2', + 'device_class': 'current', + 'friendly_name': 'Envoy 1234 Production CT current', 'state_class': , - 'unit_of_measurement': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_voltage_production_ct_l2', + 'entity_id': 'sensor.envoy_1234_production_ct_current', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '111', + 'state': '0.2', }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_voltage_production_ct_l3-entry] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_production_ct_current_l1-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -13476,7 +13665,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_voltage_production_ct_l3', + 'entity_id': 'sensor.envoy_1234_production_ct_current_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -13484,44 +13673,44 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Voltage production CT l3', + 'object_id_base': 'Production CT current l1', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 1, + 'suggested_display_precision': 3, }), 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Voltage production CT l3', + 'original_name': 'Production CT current l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'production_ct_voltage_phase', - 'unique_id': '1234_production_ct_voltage_l3', - 'unit_of_measurement': , + 'translation_key': 'production_ct_current_phase', + 'unique_id': '1234_production_ct_current_l1', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_voltage_production_ct_l3-state] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_production_ct_current_l1-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'voltage', - 'friendly_name': 'Envoy 1234 Voltage production CT l3', + 'device_class': 'current', + 'friendly_name': 'Envoy 1234 Production CT current l1', 'state_class': , - 'unit_of_measurement': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_voltage_production_ct_l3', + 'entity_id': 'sensor.envoy_1234_production_ct_current_l1', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '111', + 'state': '0.2', }) # --- -# name: test_sensor[envoy_eu_batt][sensor.inverter_1-entry] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_production_ct_current_l2-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -13536,7 +13725,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.inverter_1', + 'entity_id': 'sensor.envoy_1234_production_ct_current_l2', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -13544,41 +13733,44 @@ 'labels': set({ }), 'name': None, - 'object_id_base': None, + 'object_id_base': 'Production CT current l2', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 0, + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': None, + 'original_name': 'Production CT current l2', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': None, - 'unique_id': '1', - 'unit_of_measurement': , + 'translation_key': 'production_ct_current_phase', + 'unique_id': '1234_production_ct_current_l2', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_eu_batt][sensor.inverter_1-state] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_production_ct_current_l2-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'power', - 'friendly_name': 'Inverter 1', + 'device_class': 'current', + 'friendly_name': 'Envoy 1234 Production CT current l2', 'state_class': , - 'unit_of_measurement': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.inverter_1', + 'entity_id': 'sensor.envoy_1234_production_ct_current_l2', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '1', + 'state': '0.2', }) # --- -# name: test_sensor[envoy_eu_batt][sensor.inverter_1_ac_current-entry] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_production_ct_current_l3-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -13593,7 +13785,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.inverter_1_ac_current', + 'entity_id': 'sensor.envoy_1234_production_ct_current_l3', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -13601,47 +13793,50 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'AC current', + 'object_id_base': 'Production CT current l3', 'options': dict({ 'sensor': dict({ 'suggested_display_precision': 3, }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), }), 'original_device_class': , 'original_icon': None, - 'original_name': 'AC current', + 'original_name': 'Production CT current l3', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'ac_current', - 'unique_id': '1_ac_current', + 'translation_key': 'production_ct_current_phase', + 'unique_id': '1234_production_ct_current_l3', 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_eu_batt][sensor.inverter_1_ac_current-state] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_production_ct_current_l3-state] StateSnapshot({ 'attributes': ReadOnlyDict({ 'device_class': 'current', - 'friendly_name': 'Inverter 1 AC current', + 'friendly_name': 'Envoy 1234 Production CT current l3', 'state_class': , 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.inverter_1_ac_current', + 'entity_id': 'sensor.envoy_1234_production_ct_current_l3', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': 'unknown', + 'state': '0.2', }) # --- -# name: test_sensor[envoy_eu_batt][sensor.inverter_1_ac_voltage-entry] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_production_ct_energy_delivered-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -13650,7 +13845,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.inverter_1_ac_voltage', + 'entity_id': 'sensor.envoy_1234_production_ct_energy_delivered', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -13658,47 +13853,50 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'AC voltage', + 'object_id_base': 'Production CT energy delivered', 'options': dict({ 'sensor': dict({ 'suggested_display_precision': 3, }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'AC voltage', + 'original_name': 'Production CT energy delivered', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'ac_voltage', - 'unique_id': '1_ac_voltage', - 'unit_of_measurement': , + 'translation_key': 'production_ct_energy_delivered', + 'unique_id': '1234_production_ct_energy_delivered', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_eu_batt][sensor.inverter_1_ac_voltage-state] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_production_ct_energy_delivered-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'voltage', - 'friendly_name': 'Inverter 1 AC voltage', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Production CT energy delivered', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.inverter_1_ac_voltage', + 'entity_id': 'sensor.envoy_1234_production_ct_energy_delivered', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': 'unknown', + 'state': '0.011234', }) # --- -# name: test_sensor[envoy_eu_batt][sensor.inverter_1_dc_current-entry] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_production_ct_energy_delivered_l1-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -13707,7 +13905,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.inverter_1_dc_current', + 'entity_id': 'sensor.envoy_1234_production_ct_energy_delivered_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -13715,47 +13913,50 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'DC current', + 'object_id_base': 'Production CT energy delivered l1', 'options': dict({ 'sensor': dict({ 'suggested_display_precision': 3, }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'DC current', + 'original_name': 'Production CT energy delivered l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'dc_current', - 'unique_id': '1_dc_current', - 'unit_of_measurement': , + 'translation_key': 'production_ct_energy_delivered_phase', + 'unique_id': '1234_production_ct_energy_delivered_l1', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_eu_batt][sensor.inverter_1_dc_current-state] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_production_ct_energy_delivered_l1-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'current', - 'friendly_name': 'Inverter 1 DC current', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Production CT energy delivered l1', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.inverter_1_dc_current', + 'entity_id': 'sensor.envoy_1234_production_ct_energy_delivered_l1', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': 'unknown', + 'state': '0.112341', }) # --- -# name: test_sensor[envoy_eu_batt][sensor.inverter_1_dc_voltage-entry] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_production_ct_energy_delivered_l2-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -13764,7 +13965,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.inverter_1_dc_voltage', + 'entity_id': 'sensor.envoy_1234_production_ct_energy_delivered_l2', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -13772,47 +13973,50 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'DC voltage', + 'object_id_base': 'Production CT energy delivered l2', 'options': dict({ 'sensor': dict({ 'suggested_display_precision': 3, }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'DC voltage', + 'original_name': 'Production CT energy delivered l2', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'dc_voltage', - 'unique_id': '1_dc_voltage', - 'unit_of_measurement': , + 'translation_key': 'production_ct_energy_delivered_phase', + 'unique_id': '1234_production_ct_energy_delivered_l2', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_eu_batt][sensor.inverter_1_dc_voltage-state] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_production_ct_energy_delivered_l2-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'voltage', - 'friendly_name': 'Inverter 1 DC voltage', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Production CT energy delivered l2', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.inverter_1_dc_voltage', + 'entity_id': 'sensor.envoy_1234_production_ct_energy_delivered_l2', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': 'unknown', + 'state': '0.112342', }) # --- -# name: test_sensor[envoy_eu_batt][sensor.inverter_1_energy_production_since_previous_report-entry] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_production_ct_energy_delivered_l3-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -13821,7 +14025,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.inverter_1_energy_production_since_previous_report', + 'entity_id': 'sensor.envoy_1234_production_ct_energy_delivered_l3', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -13829,41 +14033,44 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Energy production since previous report', + 'object_id_base': 'Production CT energy delivered l3', 'options': dict({ 'sensor': dict({ 'suggested_display_precision': 3, }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), }), 'original_device_class': , 'original_icon': None, - 'original_name': 'Energy production since previous report', + 'original_name': 'Production CT energy delivered l3', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'energy_produced', - 'unique_id': '1_energy_produced', - 'unit_of_measurement': , + 'translation_key': 'production_ct_energy_delivered_phase', + 'unique_id': '1234_production_ct_energy_delivered_l3', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_eu_batt][sensor.inverter_1_energy_production_since_previous_report-state] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_production_ct_energy_delivered_l3-state] StateSnapshot({ 'attributes': ReadOnlyDict({ 'device_class': 'energy', - 'friendly_name': 'Inverter 1 Energy production since previous report', - 'state_class': , - 'unit_of_measurement': , + 'friendly_name': 'Envoy 1234 Production CT energy delivered l3', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.inverter_1_energy_production_since_previous_report', + 'entity_id': 'sensor.envoy_1234_production_ct_energy_delivered_l3', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': 'unknown', + 'state': '0.112343', }) # --- -# name: test_sensor[envoy_eu_batt][sensor.inverter_1_energy_production_today-entry] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_production_ct_energy_received-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -13878,7 +14085,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.inverter_1_energy_production_today', + 'entity_id': 'sensor.envoy_1234_production_ct_energy_received', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -13886,47 +14093,50 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Energy production today', + 'object_id_base': 'Production CT energy received', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 0, + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , }), }), 'original_device_class': , 'original_icon': None, - 'original_name': 'Energy production today', + 'original_name': 'Production CT energy received', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'energy_today', - 'unique_id': '1_energy_today', - 'unit_of_measurement': , + 'translation_key': 'production_ct_energy_received', + 'unique_id': '1234_production_ct_energy_received', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_eu_batt][sensor.inverter_1_energy_production_today-state] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_production_ct_energy_received-state] StateSnapshot({ 'attributes': ReadOnlyDict({ 'device_class': 'energy', - 'friendly_name': 'Inverter 1 Energy production today', + 'friendly_name': 'Envoy 1234 Production CT energy received', 'state_class': , - 'unit_of_measurement': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.inverter_1_energy_production_today', + 'entity_id': 'sensor.envoy_1234_production_ct_energy_received', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': 'unknown', + 'state': '0.012345', }) # --- -# name: test_sensor[envoy_eu_batt][sensor.inverter_1_frequency-entry] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_production_ct_energy_received_l1-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -13935,7 +14145,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.inverter_1_frequency', + 'entity_id': 'sensor.envoy_1234_production_ct_energy_received_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -13943,47 +14153,50 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Frequency', + 'object_id_base': 'Production CT energy received l1', 'options': dict({ 'sensor': dict({ 'suggested_display_precision': 3, }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Frequency', + 'original_name': 'Production CT energy received l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': None, - 'unique_id': '1_ac_frequency', - 'unit_of_measurement': , + 'translation_key': 'production_ct_energy_received_phase', + 'unique_id': '1234_production_ct_energy_received_l1', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_eu_batt][sensor.inverter_1_frequency-state] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_production_ct_energy_received_l1-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'frequency', - 'friendly_name': 'Inverter 1 Frequency', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Production CT energy received l1', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.inverter_1_frequency', + 'entity_id': 'sensor.envoy_1234_production_ct_energy_received_l1', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': 'unknown', + 'state': '0.123451', }) # --- -# name: test_sensor[envoy_eu_batt][sensor.inverter_1_last_report_duration-entry] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_production_ct_energy_received_l2-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -13991,8 +14204,8 @@ 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': , - 'entity_id': 'sensor.inverter_1_last_report_duration', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_production_ct_energy_received_l2', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -14000,46 +14213,51 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Last report duration', + 'object_id_base': 'Production CT energy received l2', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 2, + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Last report duration', + 'original_name': 'Production CT energy received l2', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'last_report_duration', - 'unique_id': '1_last_report_duration', - 'unit_of_measurement': , + 'translation_key': 'production_ct_energy_received_phase', + 'unique_id': '1234_production_ct_energy_received_l2', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_eu_batt][sensor.inverter_1_last_report_duration-state] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_production_ct_energy_received_l2-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'duration', - 'friendly_name': 'Inverter 1 Last report duration', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Production CT energy received l2', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.inverter_1_last_report_duration', + 'entity_id': 'sensor.envoy_1234_production_ct_energy_received_l2', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': 'unknown', + 'state': '0.123452', }) # --- -# name: test_sensor[envoy_eu_batt][sensor.inverter_1_last_reported-entry] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_production_ct_energy_received_l3-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, - 'capabilities': None, + 'capabilities': dict({ + 'state_class': , + }), 'config_entry_id': , 'config_subentry_id': , 'device_class': None, @@ -14047,7 +14265,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.inverter_1_last_reported', + 'entity_id': 'sensor.envoy_1234_production_ct_energy_received_l3', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -14055,42 +14273,50 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Last reported', + 'object_id_base': 'Production CT energy received l3', 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Last reported', + 'original_name': 'Production CT energy received l3', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'last_reported', - 'unique_id': '1_last_reported', - 'unit_of_measurement': None, + 'translation_key': 'production_ct_energy_received_phase', + 'unique_id': '1234_production_ct_energy_received_l3', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_eu_batt][sensor.inverter_1_last_reported-state] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_production_ct_energy_received_l3-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'timestamp', - 'friendly_name': 'Inverter 1 Last reported', + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Production CT energy received l3', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.inverter_1_last_reported', + 'entity_id': 'sensor.envoy_1234_production_ct_energy_received_l3', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '1970-01-01T00:00:01+00:00', + 'state': '0.123453', }) # --- -# name: test_sensor[envoy_eu_batt][sensor.inverter_1_lifetime_energy_production-entry] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_production_ct_power-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -14099,7 +14325,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.inverter_1_lifetime_energy_production', + 'entity_id': 'sensor.envoy_1234_production_ct_power', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -14107,44 +14333,44 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Lifetime energy production', + 'object_id_base': 'Production CT power', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 2, + 'suggested_display_precision': 3, }), 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Lifetime energy production', + 'original_name': 'Production CT power', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'lifetime_energy', - 'unique_id': '1_lifetime_energy', - 'unit_of_measurement': , + 'translation_key': 'production_ct_power', + 'unique_id': '1234_production_ct_power', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_eu_batt][sensor.inverter_1_lifetime_energy_production-state] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_production_ct_power-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'energy', - 'friendly_name': 'Inverter 1 Lifetime energy production', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'power', + 'friendly_name': 'Envoy 1234 Production CT power', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.inverter_1_lifetime_energy_production', + 'entity_id': 'sensor.envoy_1234_production_ct_power', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': 'unknown', + 'state': '0.1', }) # --- -# name: test_sensor[envoy_eu_batt][sensor.inverter_1_lifetime_maximum_power-entry] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_production_ct_power_l1-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -14158,8 +14384,8 @@ 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': , - 'entity_id': 'sensor.inverter_1_lifetime_maximum_power', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_production_ct_power_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -14167,41 +14393,44 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Lifetime maximum power', + 'object_id_base': 'Production CT power l1', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 0, + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , }), }), 'original_device_class': , 'original_icon': None, - 'original_name': 'Lifetime maximum power', + 'original_name': 'Production CT power l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'max_reported', - 'unique_id': '1_max_reported', - 'unit_of_measurement': , + 'translation_key': 'production_ct_power_phase', + 'unique_id': '1234_production_ct_power_l1', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_eu_batt][sensor.inverter_1_lifetime_maximum_power-state] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_production_ct_power_l1-state] StateSnapshot({ 'attributes': ReadOnlyDict({ 'device_class': 'power', - 'friendly_name': 'Inverter 1 Lifetime maximum power', + 'friendly_name': 'Envoy 1234 Production CT power l1', 'state_class': , - 'unit_of_measurement': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.inverter_1_lifetime_maximum_power', + 'entity_id': 'sensor.envoy_1234_production_ct_power_l1', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '1', + 'state': '0.02', }) # --- -# name: test_sensor[envoy_eu_batt][sensor.inverter_1_temperature-entry] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_production_ct_power_l2-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -14215,8 +14444,8 @@ 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': , - 'entity_id': 'sensor.inverter_1_temperature', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_production_ct_power_l2', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -14224,46 +14453,51 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Temperature', + 'object_id_base': 'Production CT power l2', 'options': dict({ 'sensor': dict({ 'suggested_display_precision': 3, }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Temperature', + 'original_name': 'Production CT power l2', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': None, - 'unique_id': '1_temperature', - 'unit_of_measurement': , + 'translation_key': 'production_ct_power_phase', + 'unique_id': '1234_production_ct_power_l2', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_eu_batt][sensor.inverter_1_temperature-state] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_production_ct_power_l2-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'temperature', - 'friendly_name': 'Inverter 1 Temperature', + 'device_class': 'power', + 'friendly_name': 'Envoy 1234 Production CT power l2', 'state_class': , - 'unit_of_measurement': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.inverter_1_temperature', + 'entity_id': 'sensor.envoy_1234_production_ct_power_l2', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': 'unknown', + 'state': '0.03', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.c6_combiner_482523040549_last_reported-entry] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_production_ct_power_l3-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, - 'capabilities': None, + 'capabilities': dict({ + 'state_class': , + }), 'config_entry_id': , 'config_subentry_id': , 'device_class': None, @@ -14271,7 +14505,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.c6_combiner_482523040549_last_reported', + 'entity_id': 'sensor.envoy_1234_production_ct_power_l3', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -14279,41 +14513,51 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Last reported', + 'object_id_base': 'Production CT power l3', 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Last reported', + 'original_name': 'Production CT power l3', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'last_reported', - 'unique_id': '482523040549_last_reported', - 'unit_of_measurement': None, + 'translation_key': 'production_ct_power_phase', + 'unique_id': '1234_production_ct_power_l3', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.c6_combiner_482523040549_last_reported-state] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_production_ct_power_l3-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'timestamp', - 'friendly_name': 'C6 Combiner 482523040549 Last reported', + 'device_class': 'power', + 'friendly_name': 'Envoy 1234 Production CT power l3', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.c6_combiner_482523040549_last_reported', + 'entity_id': 'sensor.envoy_1234_production_ct_power_l3', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '2025-07-19T17:17:31+00:00', + 'state': '0.05', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.collar_482520020939_admin_state-entry] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_reserve_battery_energy-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, - 'capabilities': None, + 'capabilities': dict({ + 'state_class': , + }), 'config_entry_id': , 'config_subentry_id': , 'device_class': None, @@ -14321,7 +14565,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.collar_482520020939_admin_state', + 'entity_id': 'sensor.envoy_1234_reserve_battery_energy', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -14329,40 +14573,48 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Admin state', + 'object_id_base': 'Reserve battery energy', 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 0, + }), }), - 'original_device_class': None, + 'original_device_class': , 'original_icon': None, - 'original_name': 'Admin state', + 'original_name': 'Reserve battery energy', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'admin_state', - 'unique_id': '482520020939_admin_state_str', - 'unit_of_measurement': None, + 'translation_key': 'reserve_energy', + 'unique_id': '1234_reserve_energy', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.collar_482520020939_admin_state-state] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_reserve_battery_energy-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'friendly_name': 'Collar 482520020939 Admin state', + 'device_class': 'energy_storage', + 'friendly_name': 'Envoy 1234 Reserve battery energy', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.collar_482520020939_admin_state', + 'entity_id': 'sensor.envoy_1234_reserve_battery_energy', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': 'on_grid', + 'state': '0', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.collar_482520020939_grid_status-entry] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_reserve_battery_level-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, - 'capabilities': None, + 'capabilities': dict({ + 'state_class': , + }), 'config_entry_id': , 'config_subentry_id': , 'device_class': None, @@ -14370,7 +14622,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.collar_482520020939_grid_status', + 'entity_id': 'sensor.envoy_1234_reserve_battery_level', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -14378,40 +14630,45 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Grid status', + 'object_id_base': 'Reserve battery level', 'options': dict({ }), - 'original_device_class': None, + 'original_device_class': , 'original_icon': None, - 'original_name': 'Grid status', + 'original_name': 'Reserve battery level', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'grid_status', - 'unique_id': '482520020939_grid_state', - 'unit_of_measurement': None, + 'translation_key': 'reserve_soc', + 'unique_id': '1234_reserve_soc', + 'unit_of_measurement': '%', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.collar_482520020939_grid_status-state] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_reserve_battery_level-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'friendly_name': 'Collar 482520020939 Grid status', + 'device_class': 'battery', + 'friendly_name': 'Envoy 1234 Reserve battery level', + 'state_class': , + 'unit_of_measurement': '%', }), 'context': , - 'entity_id': 'sensor.collar_482520020939_grid_status', + 'entity_id': 'sensor.envoy_1234_reserve_battery_level', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': 'on_grid', + 'state': '0', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.collar_482520020939_last_reported-entry] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_voltage_net_consumption_ct-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, - 'capabilities': None, + 'capabilities': dict({ + 'state_class': , + }), 'config_entry_id': , 'config_subentry_id': , 'device_class': None, @@ -14419,7 +14676,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.collar_482520020939_last_reported', + 'entity_id': 'sensor.envoy_1234_voltage_net_consumption_ct', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -14427,41 +14684,51 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Last reported', + 'object_id_base': 'Voltage net consumption CT', 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 1, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Last reported', + 'original_name': 'Voltage net consumption CT', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'last_reported', - 'unique_id': '482520020939_last_reported', - 'unit_of_measurement': None, + 'translation_key': 'net_ct_voltage', + 'unique_id': '1234_voltage', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.collar_482520020939_last_reported-state] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_voltage_net_consumption_ct-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'timestamp', - 'friendly_name': 'Collar 482520020939 Last reported', + 'device_class': 'voltage', + 'friendly_name': 'Envoy 1234 Voltage net consumption CT', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.collar_482520020939_last_reported', + 'entity_id': 'sensor.envoy_1234_voltage_net_consumption_ct', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '2025-07-19T15:42:39+00:00', + 'state': '112', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.collar_482520020939_mid_state-entry] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_voltage_net_consumption_ct_l1-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, - 'capabilities': None, + 'capabilities': dict({ + 'state_class': , + }), 'config_entry_id': , 'config_subentry_id': , 'device_class': None, @@ -14469,7 +14736,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.collar_482520020939_mid_state', + 'entity_id': 'sensor.envoy_1234_voltage_net_consumption_ct_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -14477,35 +14744,44 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'MID state', + 'object_id_base': 'Voltage net consumption CT l1', 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 1, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), }), - 'original_device_class': None, + 'original_device_class': , 'original_icon': None, - 'original_name': 'MID state', + 'original_name': 'Voltage net consumption CT l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'mid_state', - 'unique_id': '482520020939_mid_state', - 'unit_of_measurement': None, - }) -# --- -# name: test_sensor[envoy_metered_batt_relay][sensor.collar_482520020939_mid_state-state] + 'translation_key': 'net_ct_voltage_phase', + 'unique_id': '1234_voltage_l1', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_voltage_net_consumption_ct_l1-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'friendly_name': 'Collar 482520020939 MID state', + 'device_class': 'voltage', + 'friendly_name': 'Envoy 1234 Voltage net consumption CT l1', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.collar_482520020939_mid_state', + 'entity_id': 'sensor.envoy_1234_voltage_net_consumption_ct_l1', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': 'close', + 'state': '112', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.collar_482520020939_temperature-entry] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_voltage_net_consumption_ct_l2-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -14520,7 +14796,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.collar_482520020939_temperature', + 'entity_id': 'sensor.envoy_1234_voltage_net_consumption_ct_l2', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -14528,41 +14804,44 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Temperature', + 'object_id_base': 'Voltage net consumption CT l2', 'options': dict({ 'sensor': dict({ 'suggested_display_precision': 1, }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Temperature', + 'original_name': 'Voltage net consumption CT l2', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': None, - 'unique_id': '482520020939_temperature', - 'unit_of_measurement': , + 'translation_key': 'net_ct_voltage_phase', + 'unique_id': '1234_voltage_l2', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.collar_482520020939_temperature-state] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_voltage_net_consumption_ct_l2-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'temperature', - 'friendly_name': 'Collar 482520020939 Temperature', + 'device_class': 'voltage', + 'friendly_name': 'Envoy 1234 Voltage net consumption CT l2', 'state_class': , - 'unit_of_measurement': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.collar_482520020939_temperature', + 'entity_id': 'sensor.envoy_1234_voltage_net_consumption_ct_l2', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '42', + 'state': '112', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.encharge_123456_apparent_power-entry] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_voltage_net_consumption_ct_l3-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -14577,7 +14856,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.encharge_123456_apparent_power', + 'entity_id': 'sensor.envoy_1234_voltage_net_consumption_ct_l3', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -14585,41 +14864,44 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Apparent power', + 'object_id_base': 'Voltage net consumption CT l3', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 0, + 'suggested_display_precision': 1, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Apparent power', + 'original_name': 'Voltage net consumption CT l3', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': None, - 'unique_id': '123456_apparent_power_mva', - 'unit_of_measurement': , + 'translation_key': 'net_ct_voltage_phase', + 'unique_id': '1234_voltage_l3', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.encharge_123456_apparent_power-state] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_voltage_net_consumption_ct_l3-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'apparent_power', - 'friendly_name': 'Encharge 123456 Apparent power', + 'device_class': 'voltage', + 'friendly_name': 'Envoy 1234 Voltage net consumption CT l3', 'state_class': , - 'unit_of_measurement': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.encharge_123456_apparent_power', + 'entity_id': 'sensor.envoy_1234_voltage_net_consumption_ct_l3', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.0', + 'state': '112', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.encharge_123456_battery-entry] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_voltage_production_ct-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -14634,7 +14916,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.encharge_123456_battery', + 'entity_id': 'sensor.envoy_1234_voltage_production_ct', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -14642,43 +14924,51 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Battery', + 'object_id_base': 'Voltage production CT', 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 1, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Battery', + 'original_name': 'Voltage production CT', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': None, - 'unique_id': '123456_soc', - 'unit_of_measurement': '%', + 'translation_key': 'production_ct_voltage', + 'unique_id': '1234_production_ct_voltage', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.encharge_123456_battery-state] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_voltage_production_ct-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'battery', - 'friendly_name': 'Encharge 123456 Battery', + 'device_class': 'voltage', + 'friendly_name': 'Envoy 1234 Voltage production CT', 'state_class': , - 'unit_of_measurement': '%', + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.encharge_123456_battery', + 'entity_id': 'sensor.envoy_1234_voltage_production_ct', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '15', + 'state': '111', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.encharge_123456_last_reported-entry] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_voltage_production_ct_l1-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, - 'capabilities': None, + 'capabilities': dict({ + 'state_class': , + }), 'config_entry_id': , 'config_subentry_id': , 'device_class': None, @@ -14686,7 +14976,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.encharge_123456_last_reported', + 'entity_id': 'sensor.envoy_1234_voltage_production_ct_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -14694,36 +14984,44 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Last reported', + 'object_id_base': 'Voltage production CT l1', 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 1, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Last reported', + 'original_name': 'Voltage production CT l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'last_reported', - 'unique_id': '123456_last_reported', - 'unit_of_measurement': None, + 'translation_key': 'production_ct_voltage_phase', + 'unique_id': '1234_production_ct_voltage_l1', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.encharge_123456_last_reported-state] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_voltage_production_ct_l1-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'timestamp', - 'friendly_name': 'Encharge 123456 Last reported', + 'device_class': 'voltage', + 'friendly_name': 'Envoy 1234 Voltage production CT l1', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.encharge_123456_last_reported', + 'entity_id': 'sensor.envoy_1234_voltage_production_ct_l1', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '2023-09-26T23:04:07+00:00', + 'state': '111', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.encharge_123456_power-entry] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_voltage_production_ct_l2-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -14738,7 +15036,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.encharge_123456_power', + 'entity_id': 'sensor.envoy_1234_voltage_production_ct_l2', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -14746,41 +15044,44 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Power', + 'object_id_base': 'Voltage production CT l2', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 0, + 'suggested_display_precision': 1, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Power', + 'original_name': 'Voltage production CT l2', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': None, - 'unique_id': '123456_real_power_mw', - 'unit_of_measurement': , + 'translation_key': 'production_ct_voltage_phase', + 'unique_id': '1234_production_ct_voltage_l2', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.encharge_123456_power-state] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_voltage_production_ct_l2-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'power', - 'friendly_name': 'Encharge 123456 Power', + 'device_class': 'voltage', + 'friendly_name': 'Envoy 1234 Voltage production CT l2', 'state_class': , - 'unit_of_measurement': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.encharge_123456_power', + 'entity_id': 'sensor.envoy_1234_voltage_production_ct_l2', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.0', + 'state': '111', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.encharge_123456_temperature-entry] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_voltage_production_ct_l3-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -14795,7 +15096,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.encharge_123456_temperature', + 'entity_id': 'sensor.envoy_1234_voltage_production_ct_l3', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -14803,46 +15104,51 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Temperature', + 'object_id_base': 'Voltage production CT l3', 'options': dict({ 'sensor': dict({ 'suggested_display_precision': 1, }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Temperature', + 'original_name': 'Voltage production CT l3', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': None, - 'unique_id': '123456_temperature', - 'unit_of_measurement': , + 'translation_key': 'production_ct_voltage_phase', + 'unique_id': '1234_production_ct_voltage_l3', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.encharge_123456_temperature-state] +# name: test_sensor[envoy_eu_batt][sensor.envoy_1234_voltage_production_ct_l3-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'temperature', - 'friendly_name': 'Encharge 123456 Temperature', + 'device_class': 'voltage', + 'friendly_name': 'Envoy 1234 Voltage production CT l3', 'state_class': , - 'unit_of_measurement': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.encharge_123456_temperature', + 'entity_id': 'sensor.envoy_1234_voltage_production_ct_l3', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '29', + 'state': '111', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.enpower_654321_last_reported-entry] +# name: test_sensor[envoy_eu_batt][sensor.inverter_1-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, - 'capabilities': None, + 'capabilities': dict({ + 'state_class': , + }), 'config_entry_id': , 'config_subentry_id': , 'device_class': None, @@ -14850,7 +15156,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.enpower_654321_last_reported', + 'entity_id': 'sensor.inverter_1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -14858,36 +15164,41 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Last reported', + 'object_id_base': None, 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 0, + }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Last reported', + 'original_name': None, 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'last_reported', - 'unique_id': '654321_last_reported', - 'unit_of_measurement': None, + 'translation_key': None, + 'unique_id': '1', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.enpower_654321_last_reported-state] +# name: test_sensor[envoy_eu_batt][sensor.inverter_1-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'timestamp', - 'friendly_name': 'Enpower 654321 Last reported', + 'device_class': 'power', + 'friendly_name': 'Inverter 1', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.enpower_654321_last_reported', + 'entity_id': 'sensor.inverter_1', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '2023-09-26T23:04:07+00:00', + 'state': '1', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.enpower_654321_temperature-entry] +# name: test_sensor[envoy_eu_batt][sensor.inverter_1_ac_current-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -14902,7 +15213,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.enpower_654321_temperature', + 'entity_id': 'sensor.inverter_1_ac_current', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -14910,41 +15221,41 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Temperature', + 'object_id_base': 'AC current', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 1, + 'suggested_display_precision': 3, }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Temperature', + 'original_name': 'AC current', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': None, - 'unique_id': '654321_temperature', - 'unit_of_measurement': , + 'translation_key': 'ac_current', + 'unique_id': '1_ac_current', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.enpower_654321_temperature-state] +# name: test_sensor[envoy_eu_batt][sensor.inverter_1_ac_current-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'temperature', - 'friendly_name': 'Enpower 654321 Temperature', + 'device_class': 'current', + 'friendly_name': 'Inverter 1 AC current', 'state_class': , - 'unit_of_measurement': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.enpower_654321_temperature', + 'entity_id': 'sensor.inverter_1_ac_current', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '26.1111111111111', + 'state': 'unknown', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_available_battery_energy-entry] +# name: test_sensor[envoy_eu_batt][sensor.inverter_1_ac_voltage-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -14959,7 +15270,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_available_battery_energy', + 'entity_id': 'sensor.inverter_1_ac_voltage', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -14967,41 +15278,41 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Available battery energy', + 'object_id_base': 'AC voltage', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 0, + 'suggested_display_precision': 3, }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Available battery energy', + 'original_name': 'AC voltage', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'available_energy', - 'unique_id': '1234_available_energy', - 'unit_of_measurement': , + 'translation_key': 'ac_voltage', + 'unique_id': '1_ac_voltage', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_available_battery_energy-state] +# name: test_sensor[envoy_eu_batt][sensor.inverter_1_ac_voltage-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'energy_storage', - 'friendly_name': 'Envoy 1234 Available battery energy', + 'device_class': 'voltage', + 'friendly_name': 'Inverter 1 AC voltage', 'state_class': , - 'unit_of_measurement': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_available_battery_energy', + 'entity_id': 'sensor.inverter_1_ac_voltage', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '525', + 'state': 'unknown', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_balanced_net_power_consumption-entry] +# name: test_sensor[envoy_eu_batt][sensor.inverter_1_dc_current-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -15016,7 +15327,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_balanced_net_power_consumption', + 'entity_id': 'sensor.inverter_1_dc_current', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -15024,44 +15335,41 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Balanced net power consumption', + 'object_id_base': 'DC current', 'options': dict({ 'sensor': dict({ 'suggested_display_precision': 3, }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': , - }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Balanced net power consumption', + 'original_name': 'DC current', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'balanced_net_consumption', - 'unique_id': '1234_balanced_net_consumption', - 'unit_of_measurement': , + 'translation_key': 'dc_current', + 'unique_id': '1_dc_current', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_balanced_net_power_consumption-state] +# name: test_sensor[envoy_eu_batt][sensor.inverter_1_dc_current-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'power', - 'friendly_name': 'Envoy 1234 Balanced net power consumption', + 'device_class': 'current', + 'friendly_name': 'Inverter 1 DC current', 'state_class': , - 'unit_of_measurement': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_balanced_net_power_consumption', + 'entity_id': 'sensor.inverter_1_dc_current', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '2.341', + 'state': 'unknown', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_balanced_net_power_consumption_l1-entry] +# name: test_sensor[envoy_eu_batt][sensor.inverter_1_dc_voltage-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -15076,7 +15384,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_balanced_net_power_consumption_l1', + 'entity_id': 'sensor.inverter_1_dc_voltage', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -15084,50 +15392,47 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Balanced net power consumption l1', + 'object_id_base': 'DC voltage', 'options': dict({ 'sensor': dict({ 'suggested_display_precision': 3, }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': , - }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Balanced net power consumption l1', + 'original_name': 'DC voltage', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'balanced_net_consumption_phase', - 'unique_id': '1234_balanced_net_consumption_l1', - 'unit_of_measurement': , + 'translation_key': 'dc_voltage', + 'unique_id': '1_dc_voltage', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_balanced_net_power_consumption_l1-state] +# name: test_sensor[envoy_eu_batt][sensor.inverter_1_dc_voltage-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'power', - 'friendly_name': 'Envoy 1234 Balanced net power consumption l1', + 'device_class': 'voltage', + 'friendly_name': 'Inverter 1 DC voltage', 'state_class': , - 'unit_of_measurement': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_balanced_net_power_consumption_l1', + 'entity_id': 'sensor.inverter_1_dc_voltage', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '12.341', + 'state': 'unknown', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_balanced_net_power_consumption_l2-entry] +# name: test_sensor[envoy_eu_batt][sensor.inverter_1_energy_production_since_previous_report-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -15136,7 +15441,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_balanced_net_power_consumption_l2', + 'entity_id': 'sensor.inverter_1_energy_production_since_previous_report', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -15144,50 +15449,47 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Balanced net power consumption l2', + 'object_id_base': 'Energy production since previous report', 'options': dict({ 'sensor': dict({ 'suggested_display_precision': 3, }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': , - }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Balanced net power consumption l2', + 'original_name': 'Energy production since previous report', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'balanced_net_consumption_phase', - 'unique_id': '1234_balanced_net_consumption_l2', - 'unit_of_measurement': , + 'translation_key': 'energy_produced', + 'unique_id': '1_energy_produced', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_balanced_net_power_consumption_l2-state] +# name: test_sensor[envoy_eu_batt][sensor.inverter_1_energy_production_since_previous_report-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'power', - 'friendly_name': 'Envoy 1234 Balanced net power consumption l2', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'energy', + 'friendly_name': 'Inverter 1 Energy production since previous report', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_balanced_net_power_consumption_l2', + 'entity_id': 'sensor.inverter_1_energy_production_since_previous_report', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '22.341', + 'state': 'unknown', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_balanced_net_power_consumption_l3-entry] +# name: test_sensor[envoy_eu_batt][sensor.inverter_1_energy_production_today-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -15196,7 +15498,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_balanced_net_power_consumption_l3', + 'entity_id': 'sensor.inverter_1_energy_production_today', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -15204,44 +15506,41 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Balanced net power consumption l3', + 'object_id_base': 'Energy production today', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 3, - }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_display_precision': 0, }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Balanced net power consumption l3', + 'original_name': 'Energy production today', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'balanced_net_consumption_phase', - 'unique_id': '1234_balanced_net_consumption_l3', - 'unit_of_measurement': , + 'translation_key': 'energy_today', + 'unique_id': '1_energy_today', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_balanced_net_power_consumption_l3-state] +# name: test_sensor[envoy_eu_batt][sensor.inverter_1_energy_production_today-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'power', - 'friendly_name': 'Envoy 1234 Balanced net power consumption l3', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'energy', + 'friendly_name': 'Inverter 1 Energy production today', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_balanced_net_power_consumption_l3', + 'entity_id': 'sensor.inverter_1_energy_production_today', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '32.341', + 'state': 'unknown', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_battery-entry] +# name: test_sensor[envoy_eu_batt][sensor.inverter_1_frequency-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -15256,7 +15555,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_battery', + 'entity_id': 'sensor.inverter_1_frequency', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -15264,51 +15563,56 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Battery', + 'object_id_base': 'Frequency', 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Battery', + 'original_name': 'Frequency', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, 'translation_key': None, - 'unique_id': '1234_battery_level', - 'unit_of_measurement': '%', + 'unique_id': '1_ac_frequency', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_battery-state] +# name: test_sensor[envoy_eu_batt][sensor.inverter_1_frequency-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'battery', - 'friendly_name': 'Envoy 1234 Battery', + 'device_class': 'frequency', + 'friendly_name': 'Inverter 1 Frequency', 'state_class': , - 'unit_of_measurement': '%', + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_battery', + 'entity_id': 'sensor.inverter_1_frequency', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '15', + 'state': 'unknown', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_battery_capacity-entry] +# name: test_sensor[envoy_eu_batt][sensor.inverter_1_last_report_duration-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, - 'capabilities': None, + 'capabilities': dict({ + 'state_class': , + }), 'config_entry_id': , 'config_subentry_id': , 'device_class': None, 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_battery_capacity', + 'entity_category': , + 'entity_id': 'sensor.inverter_1_last_report_duration', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -15316,47 +15620,46 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Battery capacity', + 'object_id_base': 'Last report duration', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 0, + 'suggested_display_precision': 2, }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Battery capacity', + 'original_name': 'Last report duration', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'max_capacity', - 'unique_id': '1234_max_capacity', - 'unit_of_measurement': , + 'translation_key': 'last_report_duration', + 'unique_id': '1_last_report_duration', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_battery_capacity-state] +# name: test_sensor[envoy_eu_batt][sensor.inverter_1_last_report_duration-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'energy_storage', - 'friendly_name': 'Envoy 1234 Battery capacity', - 'unit_of_measurement': , + 'device_class': 'duration', + 'friendly_name': 'Inverter 1 Last report duration', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_battery_capacity', + 'entity_id': 'sensor.inverter_1_last_report_duration', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '3500', + 'state': 'unknown', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_current_battery_discharge-entry] +# name: test_sensor[envoy_eu_batt][sensor.inverter_1_last_reported-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, - 'capabilities': dict({ - 'state_class': , - }), + 'capabilities': None, 'config_entry_id': , 'config_subentry_id': , 'device_class': None, @@ -15364,7 +15667,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_current_battery_discharge', + 'entity_id': 'sensor.inverter_1_last_reported', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -15372,50 +15675,42 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Current battery discharge', + 'object_id_base': 'Last reported', 'options': dict({ - 'sensor': dict({ - 'suggested_display_precision': 3, - }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': , - }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Current battery discharge', + 'original_name': 'Last reported', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'battery_discharge', - 'unique_id': '1234_battery_discharge', - 'unit_of_measurement': , + 'translation_key': 'last_reported', + 'unique_id': '1_last_reported', + 'unit_of_measurement': None, }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_current_battery_discharge-state] +# name: test_sensor[envoy_eu_batt][sensor.inverter_1_last_reported-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'power', - 'friendly_name': 'Envoy 1234 Current battery discharge', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'timestamp', + 'friendly_name': 'Inverter 1 Last reported', }), 'context': , - 'entity_id': 'sensor.envoy_1234_current_battery_discharge', + 'entity_id': 'sensor.inverter_1_last_reported', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.103', + 'state': '1970-01-01T00:00:01+00:00', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_current_battery_discharge_l1-entry] +# name: test_sensor[envoy_eu_batt][sensor.inverter_1_lifetime_energy_production-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -15424,7 +15719,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_current_battery_discharge_l1', + 'entity_id': 'sensor.inverter_1_lifetime_energy_production', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -15432,44 +15727,44 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Current battery discharge l1', + 'object_id_base': 'Lifetime energy production', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 3, + 'suggested_display_precision': 2, }), 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Current battery discharge l1', + 'original_name': 'Lifetime energy production', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'battery_discharge_phase', - 'unique_id': '1234_battery_discharge_l1', - 'unit_of_measurement': , + 'translation_key': 'lifetime_energy', + 'unique_id': '1_lifetime_energy', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_current_battery_discharge_l1-state] +# name: test_sensor[envoy_eu_batt][sensor.inverter_1_lifetime_energy_production-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'power', - 'friendly_name': 'Envoy 1234 Current battery discharge l1', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'energy', + 'friendly_name': 'Inverter 1 Lifetime energy production', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_current_battery_discharge_l1', + 'entity_id': 'sensor.inverter_1_lifetime_energy_production', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.022', + 'state': 'unknown', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_current_battery_discharge_l2-entry] +# name: test_sensor[envoy_eu_batt][sensor.inverter_1_lifetime_maximum_power-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -15483,8 +15778,8 @@ 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_current_battery_discharge_l2', + 'entity_category': , + 'entity_id': 'sensor.inverter_1_lifetime_maximum_power', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -15492,44 +15787,41 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Current battery discharge l2', + 'object_id_base': 'Lifetime maximum power', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 3, - }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_display_precision': 0, }), }), 'original_device_class': , 'original_icon': None, - 'original_name': 'Current battery discharge l2', + 'original_name': 'Lifetime maximum power', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'battery_discharge_phase', - 'unique_id': '1234_battery_discharge_l2', - 'unit_of_measurement': , + 'translation_key': 'max_reported', + 'unique_id': '1_max_reported', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_current_battery_discharge_l2-state] +# name: test_sensor[envoy_eu_batt][sensor.inverter_1_lifetime_maximum_power-state] StateSnapshot({ 'attributes': ReadOnlyDict({ 'device_class': 'power', - 'friendly_name': 'Envoy 1234 Current battery discharge l2', + 'friendly_name': 'Inverter 1 Lifetime maximum power', 'state_class': , - 'unit_of_measurement': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_current_battery_discharge_l2', + 'entity_id': 'sensor.inverter_1_lifetime_maximum_power', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.033', + 'state': '1', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_current_battery_discharge_l3-entry] +# name: test_sensor[envoy_eu_batt][sensor.inverter_1_temperature-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -15543,8 +15835,8 @@ 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_current_battery_discharge_l3', + 'entity_category': , + 'entity_id': 'sensor.inverter_1_temperature', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -15552,51 +15844,46 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Current battery discharge l3', + 'object_id_base': 'Temperature', 'options': dict({ 'sensor': dict({ 'suggested_display_precision': 3, }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': , - }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Current battery discharge l3', + 'original_name': 'Temperature', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'battery_discharge_phase', - 'unique_id': '1234_battery_discharge_l3', - 'unit_of_measurement': , + 'translation_key': None, + 'unique_id': '1_temperature', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_current_battery_discharge_l3-state] +# name: test_sensor[envoy_eu_batt][sensor.inverter_1_temperature-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'power', - 'friendly_name': 'Envoy 1234 Current battery discharge l3', + 'device_class': 'temperature', + 'friendly_name': 'Inverter 1 Temperature', 'state_class': , - 'unit_of_measurement': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_current_battery_discharge_l3', + 'entity_id': 'sensor.inverter_1_temperature', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.053', + 'state': 'unknown', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_current_net_power_consumption-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.c6_combiner_482523040549_last_reported-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, - 'capabilities': dict({ - 'state_class': , - }), + 'capabilities': None, 'config_entry_id': , 'config_subentry_id': , 'device_class': None, @@ -15604,7 +15891,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_current_net_power_consumption', + 'entity_id': 'sensor.c6_combiner_482523040549_last_reported', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -15612,51 +15899,41 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Current net power consumption', + 'object_id_base': 'Last reported', 'options': dict({ - 'sensor': dict({ - 'suggested_display_precision': 3, - }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': , - }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Current net power consumption', + 'original_name': 'Last reported', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_consumption', - 'unique_id': '1234_net_consumption', - 'unit_of_measurement': , + 'translation_key': 'last_reported', + 'unique_id': '482523040549_last_reported', + 'unit_of_measurement': None, }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_current_net_power_consumption-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.c6_combiner_482523040549_last_reported-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'power', - 'friendly_name': 'Envoy 1234 Current net power consumption', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'timestamp', + 'friendly_name': 'C6 Combiner 482523040549 Last reported', }), 'context': , - 'entity_id': 'sensor.envoy_1234_current_net_power_consumption', + 'entity_id': 'sensor.c6_combiner_482523040549_last_reported', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.101', + 'state': '2025-07-19T17:17:31+00:00', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_current_net_power_consumption_l1-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.collar_482520020939_admin_state-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, - 'capabilities': dict({ - 'state_class': , - }), + 'capabilities': None, 'config_entry_id': , 'config_subentry_id': , 'device_class': None, @@ -15664,7 +15941,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_current_net_power_consumption_l1', + 'entity_id': 'sensor.collar_482520020939_admin_state', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -15672,51 +15949,40 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Current net power consumption l1', + 'object_id_base': 'Admin state', 'options': dict({ - 'sensor': dict({ - 'suggested_display_precision': 3, - }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': , - }), }), - 'original_device_class': , + 'original_device_class': None, 'original_icon': None, - 'original_name': 'Current net power consumption l1', + 'original_name': 'Admin state', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_consumption_phase', - 'unique_id': '1234_net_consumption_l1', - 'unit_of_measurement': , + 'translation_key': 'admin_state', + 'unique_id': '482520020939_admin_state_str', + 'unit_of_measurement': None, }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_current_net_power_consumption_l1-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.collar_482520020939_admin_state-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'power', - 'friendly_name': 'Envoy 1234 Current net power consumption l1', - 'state_class': , - 'unit_of_measurement': , + 'friendly_name': 'Collar 482520020939 Admin state', }), 'context': , - 'entity_id': 'sensor.envoy_1234_current_net_power_consumption_l1', + 'entity_id': 'sensor.collar_482520020939_admin_state', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.021', + 'state': 'on_grid', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_current_net_power_consumption_l2-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.collar_482520020939_grid_status-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, - 'capabilities': dict({ - 'state_class': , - }), + 'capabilities': None, 'config_entry_id': , 'config_subentry_id': , 'device_class': None, @@ -15724,7 +15990,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_current_net_power_consumption_l2', + 'entity_id': 'sensor.collar_482520020939_grid_status', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -15732,51 +15998,40 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Current net power consumption l2', + 'object_id_base': 'Grid status', 'options': dict({ - 'sensor': dict({ - 'suggested_display_precision': 3, - }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': , - }), }), - 'original_device_class': , + 'original_device_class': None, 'original_icon': None, - 'original_name': 'Current net power consumption l2', + 'original_name': 'Grid status', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_consumption_phase', - 'unique_id': '1234_net_consumption_l2', - 'unit_of_measurement': , + 'translation_key': 'grid_status', + 'unique_id': '482520020939_grid_state', + 'unit_of_measurement': None, }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_current_net_power_consumption_l2-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.collar_482520020939_grid_status-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'power', - 'friendly_name': 'Envoy 1234 Current net power consumption l2', - 'state_class': , - 'unit_of_measurement': , + 'friendly_name': 'Collar 482520020939 Grid status', }), 'context': , - 'entity_id': 'sensor.envoy_1234_current_net_power_consumption_l2', + 'entity_id': 'sensor.collar_482520020939_grid_status', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.031', + 'state': 'on_grid', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_current_net_power_consumption_l3-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.collar_482520020939_last_reported-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, - 'capabilities': dict({ - 'state_class': , - }), + 'capabilities': None, 'config_entry_id': , 'config_subentry_id': , 'device_class': None, @@ -15784,7 +16039,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_current_net_power_consumption_l3', + 'entity_id': 'sensor.collar_482520020939_last_reported', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -15792,51 +16047,41 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Current net power consumption l3', + 'object_id_base': 'Last reported', 'options': dict({ - 'sensor': dict({ - 'suggested_display_precision': 3, - }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': , - }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Current net power consumption l3', + 'original_name': 'Last reported', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_consumption_phase', - 'unique_id': '1234_net_consumption_l3', - 'unit_of_measurement': , + 'translation_key': 'last_reported', + 'unique_id': '482520020939_last_reported', + 'unit_of_measurement': None, }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_current_net_power_consumption_l3-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.collar_482520020939_last_reported-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'power', - 'friendly_name': 'Envoy 1234 Current net power consumption l3', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'timestamp', + 'friendly_name': 'Collar 482520020939 Last reported', }), 'context': , - 'entity_id': 'sensor.envoy_1234_current_net_power_consumption_l3', + 'entity_id': 'sensor.collar_482520020939_last_reported', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.051', + 'state': '2025-07-19T15:42:39+00:00', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_current_power_consumption-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.collar_482520020939_mid_state-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, - 'capabilities': dict({ - 'state_class': , - }), + 'capabilities': None, 'config_entry_id': , 'config_subentry_id': , 'device_class': None, @@ -15844,7 +16089,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_current_power_consumption', + 'entity_id': 'sensor.collar_482520020939_mid_state', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -15852,44 +16097,35 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Current power consumption', + 'object_id_base': 'MID state', 'options': dict({ - 'sensor': dict({ - 'suggested_display_precision': 3, - }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': , - }), }), - 'original_device_class': , + 'original_device_class': None, 'original_icon': None, - 'original_name': 'Current power consumption', + 'original_name': 'MID state', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'current_power_consumption', - 'unique_id': '1234_consumption', - 'unit_of_measurement': , + 'translation_key': 'mid_state', + 'unique_id': '482520020939_mid_state', + 'unit_of_measurement': None, }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_current_power_consumption-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.collar_482520020939_mid_state-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'power', - 'friendly_name': 'Envoy 1234 Current power consumption', - 'state_class': , - 'unit_of_measurement': , + 'friendly_name': 'Collar 482520020939 MID state', }), 'context': , - 'entity_id': 'sensor.envoy_1234_current_power_consumption', + 'entity_id': 'sensor.collar_482520020939_mid_state', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '1.234', + 'state': 'close', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_current_power_consumption_l1-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.collar_482520020939_temperature-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -15904,7 +16140,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_current_power_consumption_l1', + 'entity_id': 'sensor.collar_482520020939_temperature', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -15912,44 +16148,41 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Current power consumption l1', + 'object_id_base': 'Temperature', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 3, - }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_display_precision': 1, }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Current power consumption l1', + 'original_name': 'Temperature', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'current_power_consumption_phase', - 'unique_id': '1234_consumption_l1', - 'unit_of_measurement': , + 'translation_key': None, + 'unique_id': '482520020939_temperature', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_current_power_consumption_l1-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.collar_482520020939_temperature-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'power', - 'friendly_name': 'Envoy 1234 Current power consumption l1', + 'device_class': 'temperature', + 'friendly_name': 'Collar 482520020939 Temperature', 'state_class': , - 'unit_of_measurement': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_current_power_consumption_l1', + 'entity_id': 'sensor.collar_482520020939_temperature', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '1.324', + 'state': '42', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_current_power_consumption_l2-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.encharge_123456_apparent_power-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -15964,7 +16197,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_current_power_consumption_l2', + 'entity_id': 'sensor.encharge_123456_apparent_power', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -15972,44 +16205,41 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Current power consumption l2', + 'object_id_base': 'Apparent power', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 3, - }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_display_precision': 0, }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Current power consumption l2', + 'original_name': 'Apparent power', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'current_power_consumption_phase', - 'unique_id': '1234_consumption_l2', - 'unit_of_measurement': , + 'translation_key': None, + 'unique_id': '123456_apparent_power_mva', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_current_power_consumption_l2-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.encharge_123456_apparent_power-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'power', - 'friendly_name': 'Envoy 1234 Current power consumption l2', + 'device_class': 'apparent_power', + 'friendly_name': 'Encharge 123456 Apparent power', 'state_class': , - 'unit_of_measurement': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_current_power_consumption_l2', + 'entity_id': 'sensor.encharge_123456_apparent_power', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '2.324', + 'state': '0.0', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_current_power_consumption_l3-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.encharge_123456_battery-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -16024,7 +16254,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_current_power_consumption_l3', + 'entity_id': 'sensor.encharge_123456_battery', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -16032,51 +16262,43 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Current power consumption l3', + 'object_id_base': 'Battery', 'options': dict({ - 'sensor': dict({ - 'suggested_display_precision': 3, - }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': , - }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Current power consumption l3', + 'original_name': 'Battery', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'current_power_consumption_phase', - 'unique_id': '1234_consumption_l3', - 'unit_of_measurement': , + 'translation_key': None, + 'unique_id': '123456_soc', + 'unit_of_measurement': '%', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_current_power_consumption_l3-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.encharge_123456_battery-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'power', - 'friendly_name': 'Envoy 1234 Current power consumption l3', + 'device_class': 'battery', + 'friendly_name': 'Encharge 123456 Battery', 'state_class': , - 'unit_of_measurement': , + 'unit_of_measurement': '%', }), 'context': , - 'entity_id': 'sensor.envoy_1234_current_power_consumption_l3', + 'entity_id': 'sensor.encharge_123456_battery', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '3.324', + 'state': '15', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_current_power_production-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.encharge_123456_last_reported-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, - 'capabilities': dict({ - 'state_class': , - }), + 'capabilities': None, 'config_entry_id': , 'config_subentry_id': , 'device_class': None, @@ -16084,7 +16306,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_current_power_production', + 'entity_id': 'sensor.encharge_123456_last_reported', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -16092,44 +16314,36 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Current power production', + 'object_id_base': 'Last reported', 'options': dict({ - 'sensor': dict({ - 'suggested_display_precision': 3, - }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': , - }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Current power production', + 'original_name': 'Last reported', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'current_power_production', - 'unique_id': '1234_production', - 'unit_of_measurement': , + 'translation_key': 'last_reported', + 'unique_id': '123456_last_reported', + 'unit_of_measurement': None, }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_current_power_production-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.encharge_123456_last_reported-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'power', - 'friendly_name': 'Envoy 1234 Current power production', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'timestamp', + 'friendly_name': 'Encharge 123456 Last reported', }), 'context': , - 'entity_id': 'sensor.envoy_1234_current_power_production', + 'entity_id': 'sensor.encharge_123456_last_reported', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '1.234', + 'state': '2023-09-26T23:04:07+00:00', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_current_power_production_l1-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.encharge_123456_power-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -16144,7 +16358,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_current_power_production_l1', + 'entity_id': 'sensor.encharge_123456_power', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -16152,44 +16366,41 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Current power production l1', + 'object_id_base': 'Power', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 3, - }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_display_precision': 0, }), }), 'original_device_class': , 'original_icon': None, - 'original_name': 'Current power production l1', + 'original_name': 'Power', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'current_power_production_phase', - 'unique_id': '1234_production_l1', - 'unit_of_measurement': , + 'translation_key': None, + 'unique_id': '123456_real_power_mw', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_current_power_production_l1-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.encharge_123456_power-state] StateSnapshot({ 'attributes': ReadOnlyDict({ 'device_class': 'power', - 'friendly_name': 'Envoy 1234 Current power production l1', + 'friendly_name': 'Encharge 123456 Power', 'state_class': , - 'unit_of_measurement': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_current_power_production_l1', + 'entity_id': 'sensor.encharge_123456_power', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '1.234', + 'state': '0.0', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_current_power_production_l2-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.encharge_123456_temperature-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -16204,7 +16415,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_current_power_production_l2', + 'entity_id': 'sensor.encharge_123456_temperature', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -16212,51 +16423,46 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Current power production l2', + 'object_id_base': 'Temperature', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 3, - }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_display_precision': 1, }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Current power production l2', + 'original_name': 'Temperature', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'current_power_production_phase', - 'unique_id': '1234_production_l2', - 'unit_of_measurement': , + 'translation_key': None, + 'unique_id': '123456_temperature', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_current_power_production_l2-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.encharge_123456_temperature-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'power', - 'friendly_name': 'Envoy 1234 Current power production l2', + 'device_class': 'temperature', + 'friendly_name': 'Encharge 123456 Temperature', 'state_class': , - 'unit_of_measurement': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_current_power_production_l2', + 'entity_id': 'sensor.encharge_123456_temperature', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '2.234', + 'state': '29', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_current_power_production_l3-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.enpower_654321_last_reported-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, - 'capabilities': dict({ - 'state_class': , - }), + 'capabilities': None, 'config_entry_id': , 'config_subentry_id': , 'device_class': None, @@ -16264,7 +16470,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_current_power_production_l3', + 'entity_id': 'sensor.enpower_654321_last_reported', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -16272,49 +16478,43 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Current power production l3', + 'object_id_base': 'Last reported', 'options': dict({ - 'sensor': dict({ - 'suggested_display_precision': 3, - }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': , - }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Current power production l3', + 'original_name': 'Last reported', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'current_power_production_phase', - 'unique_id': '1234_production_l3', - 'unit_of_measurement': , + 'translation_key': 'last_reported', + 'unique_id': '654321_last_reported', + 'unit_of_measurement': None, }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_current_power_production_l3-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.enpower_654321_last_reported-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'power', - 'friendly_name': 'Envoy 1234 Current power production l3', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'timestamp', + 'friendly_name': 'Enpower 654321 Last reported', }), 'context': , - 'entity_id': 'sensor.envoy_1234_current_power_production_l3', + 'entity_id': 'sensor.enpower_654321_last_reported', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '3.234', + 'state': '2023-09-26T23:04:07+00:00', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_energy_consumption_last_seven_days-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.enpower_654321_temperature-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, - 'capabilities': None, + 'capabilities': dict({ + 'state_class': , + }), 'config_entry_id': , 'config_subentry_id': , 'device_class': None, @@ -16322,7 +16522,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_energy_consumption_last_seven_days', + 'entity_id': 'sensor.enpower_654321_temperature', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -16330,48 +16530,48 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Energy consumption last seven days', + 'object_id_base': 'Temperature', 'options': dict({ 'sensor': dict({ 'suggested_display_precision': 1, }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': , - }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Energy consumption last seven days', + 'original_name': 'Temperature', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'seven_days_consumption', - 'unique_id': '1234_seven_days_consumption', - 'unit_of_measurement': , + 'translation_key': None, + 'unique_id': '654321_temperature', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_energy_consumption_last_seven_days-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.enpower_654321_temperature-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'energy', - 'friendly_name': 'Envoy 1234 Energy consumption last seven days', - 'unit_of_measurement': , + 'device_class': 'temperature', + 'friendly_name': 'Enpower 654321 Temperature', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_energy_consumption_last_seven_days', + 'entity_id': 'sensor.enpower_654321_temperature', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '1.234', + 'state': '26.1111111111111', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_energy_consumption_last_seven_days_l1-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_available_battery_energy-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, - 'capabilities': None, + 'capabilities': dict({ + 'state_class': , + }), 'config_entry_id': , 'config_subentry_id': , 'device_class': None, @@ -16379,7 +16579,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_energy_consumption_last_seven_days_l1', + 'entity_id': 'sensor.envoy_1234_available_battery_energy', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -16387,48 +16587,48 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Energy consumption last seven days l1', + 'object_id_base': 'Available battery energy', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 1, - }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_display_precision': 0, }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Energy consumption last seven days l1', + 'original_name': 'Available battery energy', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'seven_days_consumption_phase', - 'unique_id': '1234_seven_days_consumption_l1', - 'unit_of_measurement': , + 'translation_key': 'available_energy', + 'unique_id': '1234_available_energy', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_energy_consumption_last_seven_days_l1-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_available_battery_energy-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'energy', - 'friendly_name': 'Envoy 1234 Energy consumption last seven days l1', - 'unit_of_measurement': , + 'device_class': 'energy_storage', + 'friendly_name': 'Envoy 1234 Available battery energy', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_energy_consumption_last_seven_days_l1', + 'entity_id': 'sensor.envoy_1234_available_battery_energy', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '1.321', + 'state': '525', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_energy_consumption_last_seven_days_l2-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_backfeed_ct_current-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, - 'capabilities': None, + 'capabilities': dict({ + 'state_class': , + }), 'config_entry_id': , 'config_subentry_id': , 'device_class': None, @@ -16436,7 +16636,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_energy_consumption_last_seven_days_l2', + 'entity_id': 'sensor.envoy_1234_backfeed_ct_current', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -16444,48 +16644,51 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Energy consumption last seven days l2', + 'object_id_base': 'Backfeed CT current', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 1, + 'suggested_display_precision': 3, }), 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Energy consumption last seven days l2', + 'original_name': 'Backfeed CT current', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'seven_days_consumption_phase', - 'unique_id': '1234_seven_days_consumption_l2', - 'unit_of_measurement': , + 'translation_key': 'backfeed_ct_current', + 'unique_id': '1234_backfeed_ct_current', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_energy_consumption_last_seven_days_l2-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_backfeed_ct_current-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'energy', - 'friendly_name': 'Envoy 1234 Energy consumption last seven days l2', - 'unit_of_measurement': , + 'device_class': 'current', + 'friendly_name': 'Envoy 1234 Backfeed CT current', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_energy_consumption_last_seven_days_l2', + 'entity_id': 'sensor.envoy_1234_backfeed_ct_current', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '2.321', + 'state': '0.5', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_energy_consumption_last_seven_days_l3-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_backfeed_ct_current_l1-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, - 'capabilities': None, + 'capabilities': dict({ + 'state_class': , + }), 'config_entry_id': , 'config_subentry_id': , 'device_class': None, @@ -16493,7 +16696,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_energy_consumption_last_seven_days_l3', + 'entity_id': 'sensor.envoy_1234_backfeed_ct_current_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -16501,49 +16704,50 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Energy consumption last seven days l3', + 'object_id_base': 'Backfeed CT current l1', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 1, + 'suggested_display_precision': 3, }), 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Energy consumption last seven days l3', + 'original_name': 'Backfeed CT current l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'seven_days_consumption_phase', - 'unique_id': '1234_seven_days_consumption_l3', - 'unit_of_measurement': , + 'translation_key': 'backfeed_ct_current_phase', + 'unique_id': '1234_backfeed_ct_current_l1', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_energy_consumption_last_seven_days_l3-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_backfeed_ct_current_l1-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'energy', - 'friendly_name': 'Envoy 1234 Energy consumption last seven days l3', - 'unit_of_measurement': , + 'device_class': 'current', + 'friendly_name': 'Envoy 1234 Backfeed CT current l1', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_energy_consumption_last_seven_days_l3', + 'entity_id': 'sensor.envoy_1234_backfeed_ct_current_l1', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '3.321', + 'state': '4.1', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_energy_consumption_today-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_backfeed_ct_current_l2-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -16552,7 +16756,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_energy_consumption_today', + 'entity_id': 'sensor.envoy_1234_backfeed_ct_current_l2', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -16560,50 +16764,50 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Energy consumption today', + 'object_id_base': 'Backfeed CT current l2', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 2, + 'suggested_display_precision': 3, }), 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Energy consumption today', + 'original_name': 'Backfeed CT current l2', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'daily_consumption', - 'unique_id': '1234_daily_consumption', - 'unit_of_measurement': , + 'translation_key': 'backfeed_ct_current_phase', + 'unique_id': '1234_backfeed_ct_current_l2', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_energy_consumption_today-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_backfeed_ct_current_l2-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'energy', - 'friendly_name': 'Envoy 1234 Energy consumption today', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'current', + 'friendly_name': 'Envoy 1234 Backfeed CT current l2', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_energy_consumption_today', + 'entity_id': 'sensor.envoy_1234_backfeed_ct_current_l2', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '1.234', + 'state': '4.2', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_energy_consumption_today_l1-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_backfeed_ct_current_l3-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -16612,7 +16816,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_energy_consumption_today_l1', + 'entity_id': 'sensor.envoy_1234_backfeed_ct_current_l3', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -16620,44 +16824,44 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Energy consumption today l1', + 'object_id_base': 'Backfeed CT current l3', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 2, + 'suggested_display_precision': 3, }), 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Energy consumption today l1', + 'original_name': 'Backfeed CT current l3', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'daily_consumption_phase', - 'unique_id': '1234_daily_consumption_l1', - 'unit_of_measurement': , + 'translation_key': 'backfeed_ct_current_phase', + 'unique_id': '1234_backfeed_ct_current_l3', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_energy_consumption_today_l1-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_backfeed_ct_current_l3-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'energy', - 'friendly_name': 'Envoy 1234 Energy consumption today l1', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'current', + 'friendly_name': 'Envoy 1234 Backfeed CT current l3', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_energy_consumption_today_l1', + 'entity_id': 'sensor.envoy_1234_backfeed_ct_current_l3', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '1.323', + 'state': '4.3', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_energy_consumption_today_l2-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_backfeed_ct_energy_delivered-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -16672,7 +16876,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_energy_consumption_today_l2', + 'entity_id': 'sensor.envoy_1234_backfeed_ct_energy_delivered', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -16680,44 +16884,44 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Energy consumption today l2', + 'object_id_base': 'Backfeed CT energy delivered', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 2, + 'suggested_display_precision': 3, }), 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_unit_of_measurement': , }), }), 'original_device_class': , 'original_icon': None, - 'original_name': 'Energy consumption today l2', + 'original_name': 'Backfeed CT energy delivered', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'daily_consumption_phase', - 'unique_id': '1234_daily_consumption_l2', - 'unit_of_measurement': , + 'translation_key': 'backfeed_ct_energy_delivered', + 'unique_id': '1234_backfeed_ct_energy_delivered', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_energy_consumption_today_l2-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_backfeed_ct_energy_delivered-state] StateSnapshot({ 'attributes': ReadOnlyDict({ 'device_class': 'energy', - 'friendly_name': 'Envoy 1234 Energy consumption today l2', + 'friendly_name': 'Envoy 1234 Backfeed CT energy delivered', 'state_class': , - 'unit_of_measurement': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_energy_consumption_today_l2', + 'entity_id': 'sensor.envoy_1234_backfeed_ct_energy_delivered', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '2.323', + 'state': '0.041234', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_energy_consumption_today_l3-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_backfeed_ct_energy_delivered_l1-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -16732,7 +16936,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_energy_consumption_today_l3', + 'entity_id': 'sensor.envoy_1234_backfeed_ct_energy_delivered_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -16740,49 +16944,51 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Energy consumption today l3', + 'object_id_base': 'Backfeed CT energy delivered l1', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 2, + 'suggested_display_precision': 3, }), 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_unit_of_measurement': , }), }), 'original_device_class': , 'original_icon': None, - 'original_name': 'Energy consumption today l3', + 'original_name': 'Backfeed CT energy delivered l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'daily_consumption_phase', - 'unique_id': '1234_daily_consumption_l3', - 'unit_of_measurement': , + 'translation_key': 'backfeed_ct_energy_delivered_phase', + 'unique_id': '1234_backfeed_ct_energy_delivered_l1', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_energy_consumption_today_l3-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_backfeed_ct_energy_delivered_l1-state] StateSnapshot({ 'attributes': ReadOnlyDict({ 'device_class': 'energy', - 'friendly_name': 'Envoy 1234 Energy consumption today l3', + 'friendly_name': 'Envoy 1234 Backfeed CT energy delivered l1', 'state_class': , - 'unit_of_measurement': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_energy_consumption_today_l3', + 'entity_id': 'sensor.envoy_1234_backfeed_ct_energy_delivered_l1', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '3.323', + 'state': '0.412341', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_energy_production_last_seven_days-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_backfeed_ct_energy_delivered_l2-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, - 'capabilities': None, + 'capabilities': dict({ + 'state_class': , + }), 'config_entry_id': , 'config_subentry_id': , 'device_class': None, @@ -16790,7 +16996,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_energy_production_last_seven_days', + 'entity_id': 'sensor.envoy_1234_backfeed_ct_energy_delivered_l2', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -16798,48 +17004,51 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Energy production last seven days', + 'object_id_base': 'Backfeed CT energy delivered l2', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 1, + 'suggested_display_precision': 3, }), 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_unit_of_measurement': , }), }), 'original_device_class': , 'original_icon': None, - 'original_name': 'Energy production last seven days', + 'original_name': 'Backfeed CT energy delivered l2', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'seven_days_production', - 'unique_id': '1234_seven_days_production', - 'unit_of_measurement': , + 'translation_key': 'backfeed_ct_energy_delivered_phase', + 'unique_id': '1234_backfeed_ct_energy_delivered_l2', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_energy_production_last_seven_days-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_backfeed_ct_energy_delivered_l2-state] StateSnapshot({ 'attributes': ReadOnlyDict({ 'device_class': 'energy', - 'friendly_name': 'Envoy 1234 Energy production last seven days', - 'unit_of_measurement': , + 'friendly_name': 'Envoy 1234 Backfeed CT energy delivered l2', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_energy_production_last_seven_days', + 'entity_id': 'sensor.envoy_1234_backfeed_ct_energy_delivered_l2', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '1.234', + 'state': '0.412342', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_energy_production_last_seven_days_l1-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_backfeed_ct_energy_delivered_l3-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, - 'capabilities': None, + 'capabilities': dict({ + 'state_class': , + }), 'config_entry_id': , 'config_subentry_id': , 'device_class': None, @@ -16847,7 +17056,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_energy_production_last_seven_days_l1', + 'entity_id': 'sensor.envoy_1234_backfeed_ct_energy_delivered_l3', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -16855,48 +17064,51 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Energy production last seven days l1', + 'object_id_base': 'Backfeed CT energy delivered l3', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 1, + 'suggested_display_precision': 3, }), 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_unit_of_measurement': , }), }), 'original_device_class': , 'original_icon': None, - 'original_name': 'Energy production last seven days l1', + 'original_name': 'Backfeed CT energy delivered l3', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'seven_days_production_phase', - 'unique_id': '1234_seven_days_production_l1', - 'unit_of_measurement': , + 'translation_key': 'backfeed_ct_energy_delivered_phase', + 'unique_id': '1234_backfeed_ct_energy_delivered_l3', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_energy_production_last_seven_days_l1-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_backfeed_ct_energy_delivered_l3-state] StateSnapshot({ 'attributes': ReadOnlyDict({ 'device_class': 'energy', - 'friendly_name': 'Envoy 1234 Energy production last seven days l1', - 'unit_of_measurement': , + 'friendly_name': 'Envoy 1234 Backfeed CT energy delivered l3', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_energy_production_last_seven_days_l1', + 'entity_id': 'sensor.envoy_1234_backfeed_ct_energy_delivered_l3', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '1.231', + 'state': '0.412343', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_energy_production_last_seven_days_l2-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_backfeed_ct_energy_received-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, - 'capabilities': None, + 'capabilities': dict({ + 'state_class': , + }), 'config_entry_id': , 'config_subentry_id': , 'device_class': None, @@ -16904,7 +17116,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_energy_production_last_seven_days_l2', + 'entity_id': 'sensor.envoy_1234_backfeed_ct_energy_received', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -16912,48 +17124,51 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Energy production last seven days l2', + 'object_id_base': 'Backfeed CT energy received', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 1, + 'suggested_display_precision': 3, }), 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_unit_of_measurement': , }), }), 'original_device_class': , 'original_icon': None, - 'original_name': 'Energy production last seven days l2', + 'original_name': 'Backfeed CT energy received', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'seven_days_production_phase', - 'unique_id': '1234_seven_days_production_l2', - 'unit_of_measurement': , + 'translation_key': 'backfeed_ct_energy_received', + 'unique_id': '1234_backfeed_ct_energy_received', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_energy_production_last_seven_days_l2-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_backfeed_ct_energy_received-state] StateSnapshot({ 'attributes': ReadOnlyDict({ 'device_class': 'energy', - 'friendly_name': 'Envoy 1234 Energy production last seven days l2', - 'unit_of_measurement': , + 'friendly_name': 'Envoy 1234 Backfeed CT energy received', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_energy_production_last_seven_days_l2', + 'entity_id': 'sensor.envoy_1234_backfeed_ct_energy_received', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '2.231', + 'state': '0.042345', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_energy_production_last_seven_days_l3-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_backfeed_ct_energy_received_l1-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, - 'capabilities': None, + 'capabilities': dict({ + 'state_class': , + }), 'config_entry_id': , 'config_subentry_id': , 'device_class': None, @@ -16961,7 +17176,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_energy_production_last_seven_days_l3', + 'entity_id': 'sensor.envoy_1234_backfeed_ct_energy_received_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -16969,43 +17184,44 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Energy production last seven days l3', + 'object_id_base': 'Backfeed CT energy received l1', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 1, + 'suggested_display_precision': 3, }), 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_unit_of_measurement': , }), }), 'original_device_class': , 'original_icon': None, - 'original_name': 'Energy production last seven days l3', + 'original_name': 'Backfeed CT energy received l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'seven_days_production_phase', - 'unique_id': '1234_seven_days_production_l3', - 'unit_of_measurement': , + 'translation_key': 'backfeed_ct_energy_received_phase', + 'unique_id': '1234_backfeed_ct_energy_received_l1', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_energy_production_last_seven_days_l3-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_backfeed_ct_energy_received_l1-state] StateSnapshot({ 'attributes': ReadOnlyDict({ 'device_class': 'energy', - 'friendly_name': 'Envoy 1234 Energy production last seven days l3', - 'unit_of_measurement': , + 'friendly_name': 'Envoy 1234 Backfeed CT energy received l1', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_energy_production_last_seven_days_l3', + 'entity_id': 'sensor.envoy_1234_backfeed_ct_energy_received_l1', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '3.231', + 'state': '0.423451', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_energy_production_today-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_backfeed_ct_energy_received_l2-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -17020,7 +17236,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_energy_production_today', + 'entity_id': 'sensor.envoy_1234_backfeed_ct_energy_received_l2', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -17028,44 +17244,44 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Energy production today', + 'object_id_base': 'Backfeed CT energy received l2', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 2, + 'suggested_display_precision': 3, }), 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_unit_of_measurement': , }), }), 'original_device_class': , 'original_icon': None, - 'original_name': 'Energy production today', + 'original_name': 'Backfeed CT energy received l2', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'daily_production', - 'unique_id': '1234_daily_production', - 'unit_of_measurement': , + 'translation_key': 'backfeed_ct_energy_received_phase', + 'unique_id': '1234_backfeed_ct_energy_received_l2', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_energy_production_today-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_backfeed_ct_energy_received_l2-state] StateSnapshot({ 'attributes': ReadOnlyDict({ 'device_class': 'energy', - 'friendly_name': 'Envoy 1234 Energy production today', + 'friendly_name': 'Envoy 1234 Backfeed CT energy received l2', 'state_class': , - 'unit_of_measurement': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_energy_production_today', + 'entity_id': 'sensor.envoy_1234_backfeed_ct_energy_received_l2', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '1.234', + 'state': '0.423452', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_energy_production_today_l1-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_backfeed_ct_energy_received_l3-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -17080,7 +17296,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_energy_production_today_l1', + 'entity_id': 'sensor.envoy_1234_backfeed_ct_energy_received_l3', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -17088,50 +17304,50 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Energy production today l1', + 'object_id_base': 'Backfeed CT energy received l3', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 2, + 'suggested_display_precision': 3, }), 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_unit_of_measurement': , }), }), 'original_device_class': , 'original_icon': None, - 'original_name': 'Energy production today l1', + 'original_name': 'Backfeed CT energy received l3', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'daily_production_phase', - 'unique_id': '1234_daily_production_l1', - 'unit_of_measurement': , + 'translation_key': 'backfeed_ct_energy_received_phase', + 'unique_id': '1234_backfeed_ct_energy_received_l3', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_energy_production_today_l1-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_backfeed_ct_energy_received_l3-state] StateSnapshot({ 'attributes': ReadOnlyDict({ 'device_class': 'energy', - 'friendly_name': 'Envoy 1234 Energy production today l1', + 'friendly_name': 'Envoy 1234 Backfeed CT energy received l3', 'state_class': , - 'unit_of_measurement': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_energy_production_today_l1', + 'entity_id': 'sensor.envoy_1234_backfeed_ct_energy_received_l3', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '1.233', + 'state': '0.423453', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_energy_production_today_l2-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_backfeed_ct_power-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -17140,7 +17356,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_energy_production_today_l2', + 'entity_id': 'sensor.envoy_1234_backfeed_ct_power', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -17148,50 +17364,50 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Energy production today l2', + 'object_id_base': 'Backfeed CT power', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 2, + 'suggested_display_precision': 3, }), 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Energy production today l2', + 'original_name': 'Backfeed CT power', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'daily_production_phase', - 'unique_id': '1234_daily_production_l2', - 'unit_of_measurement': , + 'translation_key': 'backfeed_ct_power', + 'unique_id': '1234_backfeed_ct_power', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_energy_production_today_l2-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_backfeed_ct_power-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'energy', - 'friendly_name': 'Envoy 1234 Energy production today l2', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'power', + 'friendly_name': 'Envoy 1234 Backfeed CT power', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_energy_production_today_l2', + 'entity_id': 'sensor.envoy_1234_backfeed_ct_power', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '2.233', + 'state': '0.104', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_energy_production_today_l3-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_backfeed_ct_power_l1-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -17200,7 +17416,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_energy_production_today_l3', + 'entity_id': 'sensor.envoy_1234_backfeed_ct_power_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -17208,44 +17424,44 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Energy production today l3', + 'object_id_base': 'Backfeed CT power l1', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 2, + 'suggested_display_precision': 3, }), 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Energy production today l3', + 'original_name': 'Backfeed CT power l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'daily_production_phase', - 'unique_id': '1234_daily_production_l3', - 'unit_of_measurement': , + 'translation_key': 'backfeed_ct_power_phase', + 'unique_id': '1234_backfeed_ct_power_l1', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_energy_production_today_l3-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_backfeed_ct_power_l1-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'energy', - 'friendly_name': 'Envoy 1234 Energy production today l3', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'power', + 'friendly_name': 'Envoy 1234 Backfeed CT power l1', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_energy_production_today_l3', + 'entity_id': 'sensor.envoy_1234_backfeed_ct_power_l1', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '3.233', + 'state': '0.114', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_frequency_net_consumption_ct-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_backfeed_ct_power_l2-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -17260,7 +17476,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_frequency_net_consumption_ct', + 'entity_id': 'sensor.envoy_1234_backfeed_ct_power_l2', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -17268,41 +17484,44 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Frequency net consumption CT', + 'object_id_base': 'Backfeed CT power l2', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 1, + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Frequency net consumption CT', + 'original_name': 'Backfeed CT power l2', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_ct_frequency', - 'unique_id': '1234_frequency', - 'unit_of_measurement': , + 'translation_key': 'backfeed_ct_power_phase', + 'unique_id': '1234_backfeed_ct_power_l2', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_frequency_net_consumption_ct-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_backfeed_ct_power_l2-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'frequency', - 'friendly_name': 'Envoy 1234 Frequency net consumption CT', + 'device_class': 'power', + 'friendly_name': 'Envoy 1234 Backfeed CT power l2', 'state_class': , - 'unit_of_measurement': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_frequency_net_consumption_ct', + 'entity_id': 'sensor.envoy_1234_backfeed_ct_power_l2', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '50.2', + 'state': '0.124', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_frequency_net_consumption_ct_l1-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_backfeed_ct_power_l3-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -17317,7 +17536,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_frequency_net_consumption_ct_l1', + 'entity_id': 'sensor.envoy_1234_backfeed_ct_power_l3', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -17325,41 +17544,44 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Frequency net consumption CT l1', + 'object_id_base': 'Backfeed CT power l3', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 1, + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Frequency net consumption CT l1', + 'original_name': 'Backfeed CT power l3', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_ct_frequency_phase', - 'unique_id': '1234_frequency_l1', - 'unit_of_measurement': , + 'translation_key': 'backfeed_ct_power_phase', + 'unique_id': '1234_backfeed_ct_power_l3', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_frequency_net_consumption_ct_l1-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_backfeed_ct_power_l3-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'frequency', - 'friendly_name': 'Envoy 1234 Frequency net consumption CT l1', + 'device_class': 'power', + 'friendly_name': 'Envoy 1234 Backfeed CT power l3', 'state_class': , - 'unit_of_measurement': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_frequency_net_consumption_ct_l1', + 'entity_id': 'sensor.envoy_1234_backfeed_ct_power_l3', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '50.2', + 'state': '0.134', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_frequency_net_consumption_ct_l2-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_balanced_net_power_consumption-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -17374,7 +17596,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_frequency_net_consumption_ct_l2', + 'entity_id': 'sensor.envoy_1234_balanced_net_power_consumption', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -17382,41 +17604,44 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Frequency net consumption CT l2', + 'object_id_base': 'Balanced net power consumption', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 1, + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Frequency net consumption CT l2', + 'original_name': 'Balanced net power consumption', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_ct_frequency_phase', - 'unique_id': '1234_frequency_l2', - 'unit_of_measurement': , - }) -# --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_frequency_net_consumption_ct_l2-state] + 'translation_key': 'balanced_net_consumption', + 'unique_id': '1234_balanced_net_consumption', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_balanced_net_power_consumption-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'frequency', - 'friendly_name': 'Envoy 1234 Frequency net consumption CT l2', + 'device_class': 'power', + 'friendly_name': 'Envoy 1234 Balanced net power consumption', 'state_class': , - 'unit_of_measurement': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_frequency_net_consumption_ct_l2', + 'entity_id': 'sensor.envoy_1234_balanced_net_power_consumption', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '50.2', + 'state': '2.341', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_frequency_net_consumption_ct_l3-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_balanced_net_power_consumption_l1-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -17431,7 +17656,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_frequency_net_consumption_ct_l3', + 'entity_id': 'sensor.envoy_1234_balanced_net_power_consumption_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -17439,41 +17664,44 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Frequency net consumption CT l3', + 'object_id_base': 'Balanced net power consumption l1', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 1, + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Frequency net consumption CT l3', + 'original_name': 'Balanced net power consumption l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_ct_frequency_phase', - 'unique_id': '1234_frequency_l3', - 'unit_of_measurement': , + 'translation_key': 'balanced_net_consumption_phase', + 'unique_id': '1234_balanced_net_consumption_l1', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_frequency_net_consumption_ct_l3-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_balanced_net_power_consumption_l1-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'frequency', - 'friendly_name': 'Envoy 1234 Frequency net consumption CT l3', + 'device_class': 'power', + 'friendly_name': 'Envoy 1234 Balanced net power consumption l1', 'state_class': , - 'unit_of_measurement': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_frequency_net_consumption_ct_l3', + 'entity_id': 'sensor.envoy_1234_balanced_net_power_consumption_l1', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '50.2', + 'state': '12.341', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_frequency_production_ct-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_balanced_net_power_consumption_l2-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -17488,7 +17716,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_frequency_production_ct', + 'entity_id': 'sensor.envoy_1234_balanced_net_power_consumption_l2', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -17496,41 +17724,44 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Frequency production CT', + 'object_id_base': 'Balanced net power consumption l2', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 1, + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Frequency production CT', + 'original_name': 'Balanced net power consumption l2', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'production_ct_frequency', - 'unique_id': '1234_production_ct_frequency', - 'unit_of_measurement': , + 'translation_key': 'balanced_net_consumption_phase', + 'unique_id': '1234_balanced_net_consumption_l2', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_frequency_production_ct-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_balanced_net_power_consumption_l2-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'frequency', - 'friendly_name': 'Envoy 1234 Frequency production CT', + 'device_class': 'power', + 'friendly_name': 'Envoy 1234 Balanced net power consumption l2', 'state_class': , - 'unit_of_measurement': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_frequency_production_ct', + 'entity_id': 'sensor.envoy_1234_balanced_net_power_consumption_l2', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '50.1', + 'state': '22.341', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_frequency_production_ct_l1-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_balanced_net_power_consumption_l3-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -17545,7 +17776,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_frequency_production_ct_l1', + 'entity_id': 'sensor.envoy_1234_balanced_net_power_consumption_l3', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -17553,41 +17784,44 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Frequency production CT l1', + 'object_id_base': 'Balanced net power consumption l3', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 1, + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Frequency production CT l1', + 'original_name': 'Balanced net power consumption l3', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'production_ct_frequency_phase', - 'unique_id': '1234_production_ct_frequency_l1', - 'unit_of_measurement': , + 'translation_key': 'balanced_net_consumption_phase', + 'unique_id': '1234_balanced_net_consumption_l3', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_frequency_production_ct_l1-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_balanced_net_power_consumption_l3-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'frequency', - 'friendly_name': 'Envoy 1234 Frequency production CT l1', + 'device_class': 'power', + 'friendly_name': 'Envoy 1234 Balanced net power consumption l3', 'state_class': , - 'unit_of_measurement': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_frequency_production_ct_l1', + 'entity_id': 'sensor.envoy_1234_balanced_net_power_consumption_l3', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '50.1', + 'state': '32.341', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_frequency_production_ct_l2-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_battery-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -17602,7 +17836,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_frequency_production_ct_l2', + 'entity_id': 'sensor.envoy_1234_battery', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -17610,48 +17844,43 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Frequency production CT l2', + 'object_id_base': 'Battery', 'options': dict({ - 'sensor': dict({ - 'suggested_display_precision': 1, - }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Frequency production CT l2', + 'original_name': 'Battery', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'production_ct_frequency_phase', - 'unique_id': '1234_production_ct_frequency_l2', - 'unit_of_measurement': , + 'translation_key': None, + 'unique_id': '1234_battery_level', + 'unit_of_measurement': '%', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_frequency_production_ct_l2-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_battery-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'frequency', - 'friendly_name': 'Envoy 1234 Frequency production CT l2', + 'device_class': 'battery', + 'friendly_name': 'Envoy 1234 Battery', 'state_class': , - 'unit_of_measurement': , + 'unit_of_measurement': '%', }), 'context': , - 'entity_id': 'sensor.envoy_1234_frequency_production_ct_l2', + 'entity_id': 'sensor.envoy_1234_battery', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '50.1', + 'state': '15', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_frequency_production_ct_l3-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_battery_capacity-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, - 'capabilities': dict({ - 'state_class': , - }), + 'capabilities': None, 'config_entry_id': , 'config_subentry_id': , 'device_class': None, @@ -17659,7 +17888,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_frequency_production_ct_l3', + 'entity_id': 'sensor.envoy_1234_battery_capacity', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -17667,41 +17896,40 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Frequency production CT l3', + 'object_id_base': 'Battery capacity', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 1, + 'suggested_display_precision': 0, }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Frequency production CT l3', + 'original_name': 'Battery capacity', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'production_ct_frequency_phase', - 'unique_id': '1234_production_ct_frequency_l3', - 'unit_of_measurement': , + 'translation_key': 'max_capacity', + 'unique_id': '1234_max_capacity', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_frequency_production_ct_l3-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_battery_capacity-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'frequency', - 'friendly_name': 'Envoy 1234 Frequency production CT l3', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'energy_storage', + 'friendly_name': 'Envoy 1234 Battery capacity', + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_frequency_production_ct_l3', + 'entity_id': 'sensor.envoy_1234_battery_capacity', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '50.1', + 'state': '3500', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_frequency_storage_ct-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_current_battery_discharge-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -17716,7 +17944,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_frequency_storage_ct', + 'entity_id': 'sensor.envoy_1234_current_battery_discharge', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -17724,41 +17952,44 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Frequency storage CT', + 'object_id_base': 'Current battery discharge', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 1, + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Frequency storage CT', + 'original_name': 'Current battery discharge', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'storage_ct_frequency', - 'unique_id': '1234_storage_ct_frequency', - 'unit_of_measurement': , + 'translation_key': 'battery_discharge', + 'unique_id': '1234_battery_discharge', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_frequency_storage_ct-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_current_battery_discharge-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'frequency', - 'friendly_name': 'Envoy 1234 Frequency storage CT', + 'device_class': 'power', + 'friendly_name': 'Envoy 1234 Current battery discharge', 'state_class': , - 'unit_of_measurement': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_frequency_storage_ct', + 'entity_id': 'sensor.envoy_1234_current_battery_discharge', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '50.3', + 'state': '0.103', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_frequency_storage_ct_l1-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_current_battery_discharge_l1-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -17773,7 +18004,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_frequency_storage_ct_l1', + 'entity_id': 'sensor.envoy_1234_current_battery_discharge_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -17781,41 +18012,44 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Frequency storage CT l1', + 'object_id_base': 'Current battery discharge l1', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 1, + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Frequency storage CT l1', + 'original_name': 'Current battery discharge l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'storage_ct_frequency_phase', - 'unique_id': '1234_storage_ct_frequency_l1', - 'unit_of_measurement': , + 'translation_key': 'battery_discharge_phase', + 'unique_id': '1234_battery_discharge_l1', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_frequency_storage_ct_l1-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_current_battery_discharge_l1-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'frequency', - 'friendly_name': 'Envoy 1234 Frequency storage CT l1', + 'device_class': 'power', + 'friendly_name': 'Envoy 1234 Current battery discharge l1', 'state_class': , - 'unit_of_measurement': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_frequency_storage_ct_l1', + 'entity_id': 'sensor.envoy_1234_current_battery_discharge_l1', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '50.3', + 'state': '0.022', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_frequency_storage_ct_l2-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_current_battery_discharge_l2-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -17830,7 +18064,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_frequency_storage_ct_l2', + 'entity_id': 'sensor.envoy_1234_current_battery_discharge_l2', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -17838,41 +18072,44 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Frequency storage CT l2', + 'object_id_base': 'Current battery discharge l2', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 1, + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Frequency storage CT l2', + 'original_name': 'Current battery discharge l2', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'storage_ct_frequency_phase', - 'unique_id': '1234_storage_ct_frequency_l2', - 'unit_of_measurement': , + 'translation_key': 'battery_discharge_phase', + 'unique_id': '1234_battery_discharge_l2', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_frequency_storage_ct_l2-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_current_battery_discharge_l2-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'frequency', - 'friendly_name': 'Envoy 1234 Frequency storage CT l2', + 'device_class': 'power', + 'friendly_name': 'Envoy 1234 Current battery discharge l2', 'state_class': , - 'unit_of_measurement': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_frequency_storage_ct_l2', + 'entity_id': 'sensor.envoy_1234_current_battery_discharge_l2', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '50.2', + 'state': '0.033', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_frequency_storage_ct_l3-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_current_battery_discharge_l3-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -17887,7 +18124,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_frequency_storage_ct_l3', + 'entity_id': 'sensor.envoy_1234_current_battery_discharge_l3', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -17895,47 +18132,50 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Frequency storage CT l3', + 'object_id_base': 'Current battery discharge l3', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 1, + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Frequency storage CT l3', + 'original_name': 'Current battery discharge l3', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'storage_ct_frequency_phase', - 'unique_id': '1234_storage_ct_frequency_l3', - 'unit_of_measurement': , + 'translation_key': 'battery_discharge_phase', + 'unique_id': '1234_battery_discharge_l3', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_frequency_storage_ct_l3-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_current_battery_discharge_l3-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'frequency', - 'friendly_name': 'Envoy 1234 Frequency storage CT l3', + 'device_class': 'power', + 'friendly_name': 'Envoy 1234 Current battery discharge l3', 'state_class': , - 'unit_of_measurement': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_frequency_storage_ct_l3', + 'entity_id': 'sensor.envoy_1234_current_battery_discharge_l3', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '50.2', + 'state': '0.053', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_balanced_net_energy_consumption-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_current_net_power_consumption-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -17944,7 +18184,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_lifetime_balanced_net_energy_consumption', + 'entity_id': 'sensor.envoy_1234_current_net_power_consumption', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -17952,50 +18192,50 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Lifetime balanced net energy consumption', + 'object_id_base': 'Current net power consumption', 'options': dict({ 'sensor': dict({ 'suggested_display_precision': 3, }), 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Lifetime balanced net energy consumption', + 'original_name': 'Current net power consumption', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'lifetime_balanced_net_consumption', - 'unique_id': '1234_lifetime_balanced_net_consumption', - 'unit_of_measurement': , + 'translation_key': 'net_consumption', + 'unique_id': '1234_net_consumption', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_balanced_net_energy_consumption-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_current_net_power_consumption-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'energy', - 'friendly_name': 'Envoy 1234 Lifetime balanced net energy consumption', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'power', + 'friendly_name': 'Envoy 1234 Current net power consumption', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_lifetime_balanced_net_energy_consumption', + 'entity_id': 'sensor.envoy_1234_current_net_power_consumption', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '4.321', + 'state': '0.101', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_balanced_net_energy_consumption_l1-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_current_net_power_consumption_l1-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -18004,7 +18244,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_lifetime_balanced_net_energy_consumption_l1', + 'entity_id': 'sensor.envoy_1234_current_net_power_consumption_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -18012,50 +18252,50 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Lifetime balanced net energy consumption l1', + 'object_id_base': 'Current net power consumption l1', 'options': dict({ 'sensor': dict({ 'suggested_display_precision': 3, }), 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Lifetime balanced net energy consumption l1', + 'original_name': 'Current net power consumption l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'lifetime_balanced_net_consumption_phase', - 'unique_id': '1234_lifetime_balanced_net_consumption_l1', - 'unit_of_measurement': , + 'translation_key': 'net_consumption_phase', + 'unique_id': '1234_net_consumption_l1', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_balanced_net_energy_consumption_l1-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_current_net_power_consumption_l1-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'energy', - 'friendly_name': 'Envoy 1234 Lifetime balanced net energy consumption l1', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'power', + 'friendly_name': 'Envoy 1234 Current net power consumption l1', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_lifetime_balanced_net_energy_consumption_l1', + 'entity_id': 'sensor.envoy_1234_current_net_power_consumption_l1', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '1.321', + 'state': '0.021', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_balanced_net_energy_consumption_l2-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_current_net_power_consumption_l2-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -18064,7 +18304,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_lifetime_balanced_net_energy_consumption_l2', + 'entity_id': 'sensor.envoy_1234_current_net_power_consumption_l2', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -18072,50 +18312,50 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Lifetime balanced net energy consumption l2', + 'object_id_base': 'Current net power consumption l2', 'options': dict({ 'sensor': dict({ 'suggested_display_precision': 3, }), 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Lifetime balanced net energy consumption l2', + 'original_name': 'Current net power consumption l2', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'lifetime_balanced_net_consumption_phase', - 'unique_id': '1234_lifetime_balanced_net_consumption_l2', - 'unit_of_measurement': , + 'translation_key': 'net_consumption_phase', + 'unique_id': '1234_net_consumption_l2', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_balanced_net_energy_consumption_l2-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_current_net_power_consumption_l2-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'energy', - 'friendly_name': 'Envoy 1234 Lifetime balanced net energy consumption l2', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'power', + 'friendly_name': 'Envoy 1234 Current net power consumption l2', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_lifetime_balanced_net_energy_consumption_l2', + 'entity_id': 'sensor.envoy_1234_current_net_power_consumption_l2', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '2.321', + 'state': '0.031', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_balanced_net_energy_consumption_l3-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_current_net_power_consumption_l3-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -18124,7 +18364,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_lifetime_balanced_net_energy_consumption_l3', + 'entity_id': 'sensor.envoy_1234_current_net_power_consumption_l3', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -18132,50 +18372,50 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Lifetime balanced net energy consumption l3', + 'object_id_base': 'Current net power consumption l3', 'options': dict({ 'sensor': dict({ 'suggested_display_precision': 3, }), 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Lifetime balanced net energy consumption l3', + 'original_name': 'Current net power consumption l3', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'lifetime_balanced_net_consumption_phase', - 'unique_id': '1234_lifetime_balanced_net_consumption_l3', - 'unit_of_measurement': , + 'translation_key': 'net_consumption_phase', + 'unique_id': '1234_net_consumption_l3', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_balanced_net_energy_consumption_l3-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_current_net_power_consumption_l3-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'energy', - 'friendly_name': 'Envoy 1234 Lifetime balanced net energy consumption l3', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'power', + 'friendly_name': 'Envoy 1234 Current net power consumption l3', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_lifetime_balanced_net_energy_consumption_l3', + 'entity_id': 'sensor.envoy_1234_current_net_power_consumption_l3', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '3.321', + 'state': '0.051', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_battery_energy_charged-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_current_power_consumption-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -18184,7 +18424,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_lifetime_battery_energy_charged', + 'entity_id': 'sensor.envoy_1234_current_power_consumption', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -18192,50 +18432,50 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Lifetime battery energy charged', + 'object_id_base': 'Current power consumption', 'options': dict({ 'sensor': dict({ 'suggested_display_precision': 3, }), 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Lifetime battery energy charged', + 'original_name': 'Current power consumption', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'lifetime_battery_charged', - 'unique_id': '1234_lifetime_battery_charged', - 'unit_of_measurement': , + 'translation_key': 'current_power_consumption', + 'unique_id': '1234_consumption', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_battery_energy_charged-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_current_power_consumption-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'energy', - 'friendly_name': 'Envoy 1234 Lifetime battery energy charged', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'power', + 'friendly_name': 'Envoy 1234 Current power consumption', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_lifetime_battery_energy_charged', + 'entity_id': 'sensor.envoy_1234_current_power_consumption', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.032345', + 'state': '1.234', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_battery_energy_charged_l1-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_current_power_consumption_l1-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -18244,7 +18484,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_lifetime_battery_energy_charged_l1', + 'entity_id': 'sensor.envoy_1234_current_power_consumption_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -18252,50 +18492,50 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Lifetime battery energy charged l1', + 'object_id_base': 'Current power consumption l1', 'options': dict({ 'sensor': dict({ 'suggested_display_precision': 3, }), 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Lifetime battery energy charged l1', + 'original_name': 'Current power consumption l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'lifetime_battery_charged_phase', - 'unique_id': '1234_lifetime_battery_charged_l1', - 'unit_of_measurement': , + 'translation_key': 'current_power_consumption_phase', + 'unique_id': '1234_consumption_l1', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_battery_energy_charged_l1-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_current_power_consumption_l1-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'energy', - 'friendly_name': 'Envoy 1234 Lifetime battery energy charged l1', - 'state_class': , - 'unit_of_measurement': , - }), - 'context': , - 'entity_id': 'sensor.envoy_1234_lifetime_battery_energy_charged_l1', + 'device_class': 'power', + 'friendly_name': 'Envoy 1234 Current power consumption l1', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_current_power_consumption_l1', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.323451', + 'state': '1.324', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_battery_energy_charged_l2-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_current_power_consumption_l2-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -18304,7 +18544,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_lifetime_battery_energy_charged_l2', + 'entity_id': 'sensor.envoy_1234_current_power_consumption_l2', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -18312,50 +18552,50 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Lifetime battery energy charged l2', + 'object_id_base': 'Current power consumption l2', 'options': dict({ 'sensor': dict({ 'suggested_display_precision': 3, }), 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Lifetime battery energy charged l2', + 'original_name': 'Current power consumption l2', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'lifetime_battery_charged_phase', - 'unique_id': '1234_lifetime_battery_charged_l2', - 'unit_of_measurement': , + 'translation_key': 'current_power_consumption_phase', + 'unique_id': '1234_consumption_l2', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_battery_energy_charged_l2-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_current_power_consumption_l2-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'energy', - 'friendly_name': 'Envoy 1234 Lifetime battery energy charged l2', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'power', + 'friendly_name': 'Envoy 1234 Current power consumption l2', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_lifetime_battery_energy_charged_l2', + 'entity_id': 'sensor.envoy_1234_current_power_consumption_l2', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.323452', + 'state': '2.324', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_battery_energy_charged_l3-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_current_power_consumption_l3-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -18364,7 +18604,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_lifetime_battery_energy_charged_l3', + 'entity_id': 'sensor.envoy_1234_current_power_consumption_l3', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -18372,50 +18612,50 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Lifetime battery energy charged l3', + 'object_id_base': 'Current power consumption l3', 'options': dict({ 'sensor': dict({ 'suggested_display_precision': 3, }), 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Lifetime battery energy charged l3', + 'original_name': 'Current power consumption l3', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'lifetime_battery_charged_phase', - 'unique_id': '1234_lifetime_battery_charged_l3', - 'unit_of_measurement': , + 'translation_key': 'current_power_consumption_phase', + 'unique_id': '1234_consumption_l3', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_battery_energy_charged_l3-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_current_power_consumption_l3-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'energy', - 'friendly_name': 'Envoy 1234 Lifetime battery energy charged l3', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'power', + 'friendly_name': 'Envoy 1234 Current power consumption l3', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_lifetime_battery_energy_charged_l3', + 'entity_id': 'sensor.envoy_1234_current_power_consumption_l3', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.323453', + 'state': '3.324', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_battery_energy_discharged-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_current_power_production-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -18424,7 +18664,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_lifetime_battery_energy_discharged', + 'entity_id': 'sensor.envoy_1234_current_power_production', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -18432,50 +18672,50 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Lifetime battery energy discharged', + 'object_id_base': 'Current power production', 'options': dict({ 'sensor': dict({ 'suggested_display_precision': 3, }), 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Lifetime battery energy discharged', + 'original_name': 'Current power production', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'lifetime_battery_discharged', - 'unique_id': '1234_lifetime_battery_discharged', - 'unit_of_measurement': , + 'translation_key': 'current_power_production', + 'unique_id': '1234_production', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_battery_energy_discharged-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_current_power_production-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'energy', - 'friendly_name': 'Envoy 1234 Lifetime battery energy discharged', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'power', + 'friendly_name': 'Envoy 1234 Current power production', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_lifetime_battery_energy_discharged', + 'entity_id': 'sensor.envoy_1234_current_power_production', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.031234', + 'state': '1.234', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_battery_energy_discharged_l1-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_current_power_production_l1-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -18484,7 +18724,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_lifetime_battery_energy_discharged_l1', + 'entity_id': 'sensor.envoy_1234_current_power_production_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -18492,50 +18732,50 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Lifetime battery energy discharged l1', + 'object_id_base': 'Current power production l1', 'options': dict({ 'sensor': dict({ 'suggested_display_precision': 3, }), 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Lifetime battery energy discharged l1', + 'original_name': 'Current power production l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'lifetime_battery_discharged_phase', - 'unique_id': '1234_lifetime_battery_discharged_l1', - 'unit_of_measurement': , + 'translation_key': 'current_power_production_phase', + 'unique_id': '1234_production_l1', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_battery_energy_discharged_l1-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_current_power_production_l1-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'energy', - 'friendly_name': 'Envoy 1234 Lifetime battery energy discharged l1', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'power', + 'friendly_name': 'Envoy 1234 Current power production l1', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_lifetime_battery_energy_discharged_l1', + 'entity_id': 'sensor.envoy_1234_current_power_production_l1', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.312341', + 'state': '1.234', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_battery_energy_discharged_l2-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_current_power_production_l2-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -18544,7 +18784,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_lifetime_battery_energy_discharged_l2', + 'entity_id': 'sensor.envoy_1234_current_power_production_l2', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -18552,50 +18792,50 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Lifetime battery energy discharged l2', + 'object_id_base': 'Current power production l2', 'options': dict({ 'sensor': dict({ 'suggested_display_precision': 3, }), 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Lifetime battery energy discharged l2', + 'original_name': 'Current power production l2', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'lifetime_battery_discharged_phase', - 'unique_id': '1234_lifetime_battery_discharged_l2', - 'unit_of_measurement': , + 'translation_key': 'current_power_production_phase', + 'unique_id': '1234_production_l2', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_battery_energy_discharged_l2-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_current_power_production_l2-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'energy', - 'friendly_name': 'Envoy 1234 Lifetime battery energy discharged l2', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'power', + 'friendly_name': 'Envoy 1234 Current power production l2', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_lifetime_battery_energy_discharged_l2', + 'entity_id': 'sensor.envoy_1234_current_power_production_l2', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.312342', + 'state': '2.234', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_battery_energy_discharged_l3-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_current_power_production_l3-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -18604,7 +18844,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_lifetime_battery_energy_discharged_l3', + 'entity_id': 'sensor.envoy_1234_current_power_production_l3', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -18612,51 +18852,49 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Lifetime battery energy discharged l3', + 'object_id_base': 'Current power production l3', 'options': dict({ 'sensor': dict({ 'suggested_display_precision': 3, }), 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Lifetime battery energy discharged l3', + 'original_name': 'Current power production l3', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'lifetime_battery_discharged_phase', - 'unique_id': '1234_lifetime_battery_discharged_l3', - 'unit_of_measurement': , + 'translation_key': 'current_power_production_phase', + 'unique_id': '1234_production_l3', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_battery_energy_discharged_l3-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_current_power_production_l3-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'energy', - 'friendly_name': 'Envoy 1234 Lifetime battery energy discharged l3', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'power', + 'friendly_name': 'Envoy 1234 Current power production l3', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_lifetime_battery_energy_discharged_l3', + 'entity_id': 'sensor.envoy_1234_current_power_production_l3', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.312343', + 'state': '3.234', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_energy_consumption-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_energy_consumption_last_seven_days-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, - 'capabilities': dict({ - 'state_class': , - }), + 'capabilities': None, 'config_entry_id': , 'config_subentry_id': , 'device_class': None, @@ -18664,7 +18902,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_lifetime_energy_consumption', + 'entity_id': 'sensor.envoy_1234_energy_consumption_last_seven_days', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -18672,51 +18910,48 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Lifetime energy consumption', + 'object_id_base': 'Energy consumption last seven days', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 3, + 'suggested_display_precision': 1, }), 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_unit_of_measurement': , }), }), 'original_device_class': , 'original_icon': None, - 'original_name': 'Lifetime energy consumption', + 'original_name': 'Energy consumption last seven days', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'lifetime_consumption', - 'unique_id': '1234_lifetime_consumption', - 'unit_of_measurement': , + 'translation_key': 'seven_days_consumption', + 'unique_id': '1234_seven_days_consumption', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_energy_consumption-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_energy_consumption_last_seven_days-state] StateSnapshot({ 'attributes': ReadOnlyDict({ 'device_class': 'energy', - 'friendly_name': 'Envoy 1234 Lifetime energy consumption', - 'state_class': , - 'unit_of_measurement': , + 'friendly_name': 'Envoy 1234 Energy consumption last seven days', + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_lifetime_energy_consumption', + 'entity_id': 'sensor.envoy_1234_energy_consumption_last_seven_days', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.001234', + 'state': '1.234', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_energy_consumption_l1-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_energy_consumption_last_seven_days_l1-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, - 'capabilities': dict({ - 'state_class': , - }), + 'capabilities': None, 'config_entry_id': , 'config_subentry_id': , 'device_class': None, @@ -18724,7 +18959,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_lifetime_energy_consumption_l1', + 'entity_id': 'sensor.envoy_1234_energy_consumption_last_seven_days_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -18732,51 +18967,48 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Lifetime energy consumption l1', + 'object_id_base': 'Energy consumption last seven days l1', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 3, + 'suggested_display_precision': 1, }), 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_unit_of_measurement': , }), }), 'original_device_class': , 'original_icon': None, - 'original_name': 'Lifetime energy consumption l1', + 'original_name': 'Energy consumption last seven days l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'lifetime_consumption_phase', - 'unique_id': '1234_lifetime_consumption_l1', - 'unit_of_measurement': , + 'translation_key': 'seven_days_consumption_phase', + 'unique_id': '1234_seven_days_consumption_l1', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_energy_consumption_l1-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_energy_consumption_last_seven_days_l1-state] StateSnapshot({ 'attributes': ReadOnlyDict({ 'device_class': 'energy', - 'friendly_name': 'Envoy 1234 Lifetime energy consumption l1', - 'state_class': , - 'unit_of_measurement': , + 'friendly_name': 'Envoy 1234 Energy consumption last seven days l1', + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_lifetime_energy_consumption_l1', + 'entity_id': 'sensor.envoy_1234_energy_consumption_last_seven_days_l1', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.001322', + 'state': '1.321', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_energy_consumption_l2-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_energy_consumption_last_seven_days_l2-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, - 'capabilities': dict({ - 'state_class': , - }), + 'capabilities': None, 'config_entry_id': , 'config_subentry_id': , 'device_class': None, @@ -18784,7 +19016,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_lifetime_energy_consumption_l2', + 'entity_id': 'sensor.envoy_1234_energy_consumption_last_seven_days_l2', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -18792,51 +19024,48 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Lifetime energy consumption l2', + 'object_id_base': 'Energy consumption last seven days l2', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 3, + 'suggested_display_precision': 1, }), 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_unit_of_measurement': , }), }), 'original_device_class': , 'original_icon': None, - 'original_name': 'Lifetime energy consumption l2', + 'original_name': 'Energy consumption last seven days l2', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'lifetime_consumption_phase', - 'unique_id': '1234_lifetime_consumption_l2', - 'unit_of_measurement': , + 'translation_key': 'seven_days_consumption_phase', + 'unique_id': '1234_seven_days_consumption_l2', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_energy_consumption_l2-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_energy_consumption_last_seven_days_l2-state] StateSnapshot({ 'attributes': ReadOnlyDict({ 'device_class': 'energy', - 'friendly_name': 'Envoy 1234 Lifetime energy consumption l2', - 'state_class': , - 'unit_of_measurement': , + 'friendly_name': 'Envoy 1234 Energy consumption last seven days l2', + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_lifetime_energy_consumption_l2', + 'entity_id': 'sensor.envoy_1234_energy_consumption_last_seven_days_l2', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.002322', + 'state': '2.321', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_energy_consumption_l3-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_energy_consumption_last_seven_days_l3-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, - 'capabilities': dict({ - 'state_class': , - }), + 'capabilities': None, 'config_entry_id': , 'config_subentry_id': , 'device_class': None, @@ -18844,7 +19073,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_lifetime_energy_consumption_l3', + 'entity_id': 'sensor.envoy_1234_energy_consumption_last_seven_days_l3', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -18852,44 +19081,43 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Lifetime energy consumption l3', + 'object_id_base': 'Energy consumption last seven days l3', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 3, + 'suggested_display_precision': 1, }), 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_unit_of_measurement': , }), }), 'original_device_class': , 'original_icon': None, - 'original_name': 'Lifetime energy consumption l3', + 'original_name': 'Energy consumption last seven days l3', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'lifetime_consumption_phase', - 'unique_id': '1234_lifetime_consumption_l3', - 'unit_of_measurement': , + 'translation_key': 'seven_days_consumption_phase', + 'unique_id': '1234_seven_days_consumption_l3', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_energy_consumption_l3-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_energy_consumption_last_seven_days_l3-state] StateSnapshot({ 'attributes': ReadOnlyDict({ 'device_class': 'energy', - 'friendly_name': 'Envoy 1234 Lifetime energy consumption l3', - 'state_class': , - 'unit_of_measurement': , + 'friendly_name': 'Envoy 1234 Energy consumption last seven days l3', + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_lifetime_energy_consumption_l3', + 'entity_id': 'sensor.envoy_1234_energy_consumption_last_seven_days_l3', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.003322', + 'state': '3.321', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_energy_production-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_energy_consumption_today-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -18904,7 +19132,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_lifetime_energy_production', + 'entity_id': 'sensor.envoy_1234_energy_consumption_today', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -18912,44 +19140,44 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Lifetime energy production', + 'object_id_base': 'Energy consumption today', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 3, + 'suggested_display_precision': 2, }), 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_unit_of_measurement': , }), }), 'original_device_class': , 'original_icon': None, - 'original_name': 'Lifetime energy production', + 'original_name': 'Energy consumption today', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'lifetime_production', - 'unique_id': '1234_lifetime_production', - 'unit_of_measurement': , + 'translation_key': 'daily_consumption', + 'unique_id': '1234_daily_consumption', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_energy_production-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_energy_consumption_today-state] StateSnapshot({ 'attributes': ReadOnlyDict({ 'device_class': 'energy', - 'friendly_name': 'Envoy 1234 Lifetime energy production', + 'friendly_name': 'Envoy 1234 Energy consumption today', 'state_class': , - 'unit_of_measurement': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_lifetime_energy_production', + 'entity_id': 'sensor.envoy_1234_energy_consumption_today', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.001234', + 'state': '1.234', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_energy_production_l1-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_energy_consumption_today_l1-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -18964,7 +19192,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_lifetime_energy_production_l1', + 'entity_id': 'sensor.envoy_1234_energy_consumption_today_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -18972,44 +19200,44 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Lifetime energy production l1', + 'object_id_base': 'Energy consumption today l1', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 3, + 'suggested_display_precision': 2, }), 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_unit_of_measurement': , }), }), 'original_device_class': , 'original_icon': None, - 'original_name': 'Lifetime energy production l1', + 'original_name': 'Energy consumption today l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'lifetime_production_phase', - 'unique_id': '1234_lifetime_production_l1', - 'unit_of_measurement': , + 'translation_key': 'daily_consumption_phase', + 'unique_id': '1234_daily_consumption_l1', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_energy_production_l1-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_energy_consumption_today_l1-state] StateSnapshot({ 'attributes': ReadOnlyDict({ 'device_class': 'energy', - 'friendly_name': 'Envoy 1234 Lifetime energy production l1', + 'friendly_name': 'Envoy 1234 Energy consumption today l1', 'state_class': , - 'unit_of_measurement': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_lifetime_energy_production_l1', + 'entity_id': 'sensor.envoy_1234_energy_consumption_today_l1', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.001232', + 'state': '1.323', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_energy_production_l2-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_energy_consumption_today_l2-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -19024,7 +19252,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_lifetime_energy_production_l2', + 'entity_id': 'sensor.envoy_1234_energy_consumption_today_l2', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -19032,44 +19260,44 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Lifetime energy production l2', + 'object_id_base': 'Energy consumption today l2', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 3, + 'suggested_display_precision': 2, }), 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_unit_of_measurement': , }), }), 'original_device_class': , 'original_icon': None, - 'original_name': 'Lifetime energy production l2', + 'original_name': 'Energy consumption today l2', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'lifetime_production_phase', - 'unique_id': '1234_lifetime_production_l2', - 'unit_of_measurement': , + 'translation_key': 'daily_consumption_phase', + 'unique_id': '1234_daily_consumption_l2', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_energy_production_l2-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_energy_consumption_today_l2-state] StateSnapshot({ 'attributes': ReadOnlyDict({ 'device_class': 'energy', - 'friendly_name': 'Envoy 1234 Lifetime energy production l2', + 'friendly_name': 'Envoy 1234 Energy consumption today l2', 'state_class': , - 'unit_of_measurement': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_lifetime_energy_production_l2', + 'entity_id': 'sensor.envoy_1234_energy_consumption_today_l2', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.002232', + 'state': '2.323', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_energy_production_l3-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_energy_consumption_today_l3-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -19084,7 +19312,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_lifetime_energy_production_l3', + 'entity_id': 'sensor.envoy_1234_energy_consumption_today_l3', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -19092,51 +19320,49 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Lifetime energy production l3', + 'object_id_base': 'Energy consumption today l3', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 3, + 'suggested_display_precision': 2, }), 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_unit_of_measurement': , }), }), 'original_device_class': , 'original_icon': None, - 'original_name': 'Lifetime energy production l3', + 'original_name': 'Energy consumption today l3', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'lifetime_production_phase', - 'unique_id': '1234_lifetime_production_l3', - 'unit_of_measurement': , + 'translation_key': 'daily_consumption_phase', + 'unique_id': '1234_daily_consumption_l3', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_energy_production_l3-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_energy_consumption_today_l3-state] StateSnapshot({ 'attributes': ReadOnlyDict({ 'device_class': 'energy', - 'friendly_name': 'Envoy 1234 Lifetime energy production l3', + 'friendly_name': 'Envoy 1234 Energy consumption today l3', 'state_class': , - 'unit_of_measurement': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_lifetime_energy_production_l3', + 'entity_id': 'sensor.envoy_1234_energy_consumption_today_l3', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.003232', + 'state': '3.323', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_net_energy_consumption-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_energy_production_last_seven_days-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, - 'capabilities': dict({ - 'state_class': , - }), + 'capabilities': None, 'config_entry_id': , 'config_subentry_id': , 'device_class': None, @@ -19144,7 +19370,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_lifetime_net_energy_consumption', + 'entity_id': 'sensor.envoy_1234_energy_production_last_seven_days', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -19152,51 +19378,48 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Lifetime net energy consumption', + 'object_id_base': 'Energy production last seven days', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 3, + 'suggested_display_precision': 1, }), 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_unit_of_measurement': , }), }), 'original_device_class': , 'original_icon': None, - 'original_name': 'Lifetime net energy consumption', + 'original_name': 'Energy production last seven days', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'lifetime_net_consumption', - 'unique_id': '1234_lifetime_net_consumption', - 'unit_of_measurement': , + 'translation_key': 'seven_days_production', + 'unique_id': '1234_seven_days_production', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_net_energy_consumption-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_energy_production_last_seven_days-state] StateSnapshot({ 'attributes': ReadOnlyDict({ 'device_class': 'energy', - 'friendly_name': 'Envoy 1234 Lifetime net energy consumption', - 'state_class': , - 'unit_of_measurement': , + 'friendly_name': 'Envoy 1234 Energy production last seven days', + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_lifetime_net_energy_consumption', + 'entity_id': 'sensor.envoy_1234_energy_production_last_seven_days', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.021234', + 'state': '1.234', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_net_energy_consumption_l1-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_energy_production_last_seven_days_l1-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, - 'capabilities': dict({ - 'state_class': , - }), + 'capabilities': None, 'config_entry_id': , 'config_subentry_id': , 'device_class': None, @@ -19204,7 +19427,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_lifetime_net_energy_consumption_l1', + 'entity_id': 'sensor.envoy_1234_energy_production_last_seven_days_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -19212,51 +19435,48 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Lifetime net energy consumption l1', + 'object_id_base': 'Energy production last seven days l1', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 3, + 'suggested_display_precision': 1, }), 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_unit_of_measurement': , }), }), 'original_device_class': , 'original_icon': None, - 'original_name': 'Lifetime net energy consumption l1', + 'original_name': 'Energy production last seven days l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'lifetime_net_consumption_phase', - 'unique_id': '1234_lifetime_net_consumption_l1', - 'unit_of_measurement': , - }) -# --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_net_energy_consumption_l1-state] + 'translation_key': 'seven_days_production_phase', + 'unique_id': '1234_seven_days_production_l1', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_energy_production_last_seven_days_l1-state] StateSnapshot({ 'attributes': ReadOnlyDict({ 'device_class': 'energy', - 'friendly_name': 'Envoy 1234 Lifetime net energy consumption l1', - 'state_class': , - 'unit_of_measurement': , + 'friendly_name': 'Envoy 1234 Energy production last seven days l1', + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_lifetime_net_energy_consumption_l1', + 'entity_id': 'sensor.envoy_1234_energy_production_last_seven_days_l1', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.212341', + 'state': '1.231', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_net_energy_consumption_l2-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_energy_production_last_seven_days_l2-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, - 'capabilities': dict({ - 'state_class': , - }), + 'capabilities': None, 'config_entry_id': , 'config_subentry_id': , 'device_class': None, @@ -19264,7 +19484,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_lifetime_net_energy_consumption_l2', + 'entity_id': 'sensor.envoy_1234_energy_production_last_seven_days_l2', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -19272,51 +19492,48 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Lifetime net energy consumption l2', + 'object_id_base': 'Energy production last seven days l2', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 3, + 'suggested_display_precision': 1, }), 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_unit_of_measurement': , }), }), 'original_device_class': , 'original_icon': None, - 'original_name': 'Lifetime net energy consumption l2', + 'original_name': 'Energy production last seven days l2', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'lifetime_net_consumption_phase', - 'unique_id': '1234_lifetime_net_consumption_l2', - 'unit_of_measurement': , + 'translation_key': 'seven_days_production_phase', + 'unique_id': '1234_seven_days_production_l2', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_net_energy_consumption_l2-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_energy_production_last_seven_days_l2-state] StateSnapshot({ 'attributes': ReadOnlyDict({ 'device_class': 'energy', - 'friendly_name': 'Envoy 1234 Lifetime net energy consumption l2', - 'state_class': , - 'unit_of_measurement': , + 'friendly_name': 'Envoy 1234 Energy production last seven days l2', + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_lifetime_net_energy_consumption_l2', + 'entity_id': 'sensor.envoy_1234_energy_production_last_seven_days_l2', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.212342', + 'state': '2.231', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_net_energy_consumption_l3-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_energy_production_last_seven_days_l3-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, - 'capabilities': dict({ - 'state_class': , - }), + 'capabilities': None, 'config_entry_id': , 'config_subentry_id': , 'device_class': None, @@ -19324,7 +19541,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_lifetime_net_energy_consumption_l3', + 'entity_id': 'sensor.envoy_1234_energy_production_last_seven_days_l3', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -19332,44 +19549,43 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Lifetime net energy consumption l3', + 'object_id_base': 'Energy production last seven days l3', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 3, + 'suggested_display_precision': 1, }), 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_unit_of_measurement': , }), }), 'original_device_class': , 'original_icon': None, - 'original_name': 'Lifetime net energy consumption l3', + 'original_name': 'Energy production last seven days l3', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'lifetime_net_consumption_phase', - 'unique_id': '1234_lifetime_net_consumption_l3', - 'unit_of_measurement': , + 'translation_key': 'seven_days_production_phase', + 'unique_id': '1234_seven_days_production_l3', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_net_energy_consumption_l3-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_energy_production_last_seven_days_l3-state] StateSnapshot({ 'attributes': ReadOnlyDict({ 'device_class': 'energy', - 'friendly_name': 'Envoy 1234 Lifetime net energy consumption l3', - 'state_class': , - 'unit_of_measurement': , + 'friendly_name': 'Envoy 1234 Energy production last seven days l3', + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_lifetime_net_energy_consumption_l3', + 'entity_id': 'sensor.envoy_1234_energy_production_last_seven_days_l3', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.212343', + 'state': '3.231', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_net_energy_production-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_energy_production_today-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -19384,7 +19600,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_lifetime_net_energy_production', + 'entity_id': 'sensor.envoy_1234_energy_production_today', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -19392,44 +19608,44 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Lifetime net energy production', + 'object_id_base': 'Energy production today', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 3, + 'suggested_display_precision': 2, }), 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_unit_of_measurement': , }), }), 'original_device_class': , 'original_icon': None, - 'original_name': 'Lifetime net energy production', + 'original_name': 'Energy production today', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'lifetime_net_production', - 'unique_id': '1234_lifetime_net_production', - 'unit_of_measurement': , + 'translation_key': 'daily_production', + 'unique_id': '1234_daily_production', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_net_energy_production-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_energy_production_today-state] StateSnapshot({ 'attributes': ReadOnlyDict({ 'device_class': 'energy', - 'friendly_name': 'Envoy 1234 Lifetime net energy production', + 'friendly_name': 'Envoy 1234 Energy production today', 'state_class': , - 'unit_of_measurement': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_lifetime_net_energy_production', + 'entity_id': 'sensor.envoy_1234_energy_production_today', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.022345', + 'state': '1.234', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_net_energy_production_l1-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_energy_production_today_l1-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -19444,7 +19660,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_lifetime_net_energy_production_l1', + 'entity_id': 'sensor.envoy_1234_energy_production_today_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -19452,44 +19668,44 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Lifetime net energy production l1', + 'object_id_base': 'Energy production today l1', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 3, + 'suggested_display_precision': 2, }), 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_unit_of_measurement': , }), }), 'original_device_class': , 'original_icon': None, - 'original_name': 'Lifetime net energy production l1', + 'original_name': 'Energy production today l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'lifetime_net_production_phase', - 'unique_id': '1234_lifetime_net_production_l1', - 'unit_of_measurement': , + 'translation_key': 'daily_production_phase', + 'unique_id': '1234_daily_production_l1', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_net_energy_production_l1-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_energy_production_today_l1-state] StateSnapshot({ 'attributes': ReadOnlyDict({ 'device_class': 'energy', - 'friendly_name': 'Envoy 1234 Lifetime net energy production l1', + 'friendly_name': 'Envoy 1234 Energy production today l1', 'state_class': , - 'unit_of_measurement': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_lifetime_net_energy_production_l1', + 'entity_id': 'sensor.envoy_1234_energy_production_today_l1', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.223451', + 'state': '1.233', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_net_energy_production_l2-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_energy_production_today_l2-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -19504,7 +19720,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_lifetime_net_energy_production_l2', + 'entity_id': 'sensor.envoy_1234_energy_production_today_l2', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -19512,44 +19728,44 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Lifetime net energy production l2', + 'object_id_base': 'Energy production today l2', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 3, + 'suggested_display_precision': 2, }), 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_unit_of_measurement': , }), }), 'original_device_class': , 'original_icon': None, - 'original_name': 'Lifetime net energy production l2', + 'original_name': 'Energy production today l2', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'lifetime_net_production_phase', - 'unique_id': '1234_lifetime_net_production_l2', - 'unit_of_measurement': , + 'translation_key': 'daily_production_phase', + 'unique_id': '1234_daily_production_l2', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_net_energy_production_l2-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_energy_production_today_l2-state] StateSnapshot({ 'attributes': ReadOnlyDict({ 'device_class': 'energy', - 'friendly_name': 'Envoy 1234 Lifetime net energy production l2', + 'friendly_name': 'Envoy 1234 Energy production today l2', 'state_class': , - 'unit_of_measurement': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_lifetime_net_energy_production_l2', + 'entity_id': 'sensor.envoy_1234_energy_production_today_l2', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.223452', + 'state': '2.233', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_net_energy_production_l3-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_energy_production_today_l3-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -19564,7 +19780,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_lifetime_net_energy_production_l3', + 'entity_id': 'sensor.envoy_1234_energy_production_today_l3', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -19572,57 +19788,59 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Lifetime net energy production l3', + 'object_id_base': 'Energy production today l3', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 3, + 'suggested_display_precision': 2, }), 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_unit_of_measurement': , }), }), 'original_device_class': , 'original_icon': None, - 'original_name': 'Lifetime net energy production l3', + 'original_name': 'Energy production today l3', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'lifetime_net_production_phase', - 'unique_id': '1234_lifetime_net_production_l3', - 'unit_of_measurement': , + 'translation_key': 'daily_production_phase', + 'unique_id': '1234_daily_production_l3', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_net_energy_production_l3-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_energy_production_today_l3-state] StateSnapshot({ 'attributes': ReadOnlyDict({ 'device_class': 'energy', - 'friendly_name': 'Envoy 1234 Lifetime net energy production l3', + 'friendly_name': 'Envoy 1234 Energy production today l3', 'state_class': , - 'unit_of_measurement': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_lifetime_net_energy_production_l3', + 'entity_id': 'sensor.envoy_1234_energy_production_today_l3', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.223453', + 'state': '3.233', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_meter_status_flags_active_net_consumption_ct-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_evse_ct_current-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, - 'capabilities': None, + 'capabilities': dict({ + 'state_class': , + }), 'config_entry_id': , 'config_subentry_id': , 'device_class': None, 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': , - 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_net_consumption_ct', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_evse_ct_current', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -19630,48 +19848,59 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Meter status flags active net consumption CT', + 'object_id_base': 'EVSE CT current', 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), }), - 'original_device_class': None, + 'original_device_class': , 'original_icon': None, - 'original_name': 'Meter status flags active net consumption CT', + 'original_name': 'EVSE CT current', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_ct_status_flags', - 'unique_id': '1234_net_consumption_ct_status_flags', - 'unit_of_measurement': None, + 'translation_key': 'evse_ct_current', + 'unique_id': '1234_evse_ct_current', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_meter_status_flags_active_net_consumption_ct-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_evse_ct_current-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'friendly_name': 'Envoy 1234 Meter status flags active net consumption CT', + 'device_class': 'current', + 'friendly_name': 'Envoy 1234 EVSE CT current', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_net_consumption_ct', + 'entity_id': 'sensor.envoy_1234_evse_ct_current', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0', + 'state': '0.7', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_meter_status_flags_active_net_consumption_ct_l1-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_evse_ct_current_l1-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, - 'capabilities': None, + 'capabilities': dict({ + 'state_class': , + }), 'config_entry_id': , 'config_subentry_id': , 'device_class': None, 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': , - 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_net_consumption_ct_l1', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_evse_ct_current_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -19679,48 +19908,59 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Meter status flags active net consumption CT l1', + 'object_id_base': 'EVSE CT current l1', 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), }), - 'original_device_class': None, + 'original_device_class': , 'original_icon': None, - 'original_name': 'Meter status flags active net consumption CT l1', + 'original_name': 'EVSE CT current l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_ct_status_flags_phase', - 'unique_id': '1234_net_consumption_ct_status_flags_l1', - 'unit_of_measurement': None, + 'translation_key': 'evse_ct_current_phase', + 'unique_id': '1234_evse_ct_current_l1', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_meter_status_flags_active_net_consumption_ct_l1-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_evse_ct_current_l1-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'friendly_name': 'Envoy 1234 Meter status flags active net consumption CT l1', + 'device_class': 'current', + 'friendly_name': 'Envoy 1234 EVSE CT current l1', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_net_consumption_ct_l1', + 'entity_id': 'sensor.envoy_1234_evse_ct_current_l1', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0', + 'state': '6.1', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_meter_status_flags_active_net_consumption_ct_l2-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_evse_ct_current_l2-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, - 'capabilities': None, + 'capabilities': dict({ + 'state_class': , + }), 'config_entry_id': , 'config_subentry_id': , 'device_class': None, 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': , - 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_net_consumption_ct_l2', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_evse_ct_current_l2', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -19728,48 +19968,59 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Meter status flags active net consumption CT l2', + 'object_id_base': 'EVSE CT current l2', 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), }), - 'original_device_class': None, + 'original_device_class': , 'original_icon': None, - 'original_name': 'Meter status flags active net consumption CT l2', + 'original_name': 'EVSE CT current l2', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_ct_status_flags_phase', - 'unique_id': '1234_net_consumption_ct_status_flags_l2', - 'unit_of_measurement': None, + 'translation_key': 'evse_ct_current_phase', + 'unique_id': '1234_evse_ct_current_l2', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_meter_status_flags_active_net_consumption_ct_l2-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_evse_ct_current_l2-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'friendly_name': 'Envoy 1234 Meter status flags active net consumption CT l2', + 'device_class': 'current', + 'friendly_name': 'Envoy 1234 EVSE CT current l2', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_net_consumption_ct_l2', + 'entity_id': 'sensor.envoy_1234_evse_ct_current_l2', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0', + 'state': '6.2', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_meter_status_flags_active_net_consumption_ct_l3-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_evse_ct_current_l3-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, - 'capabilities': None, + 'capabilities': dict({ + 'state_class': , + }), 'config_entry_id': , 'config_subentry_id': , 'device_class': None, 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': , - 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_net_consumption_ct_l3', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_evse_ct_current_l3', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -19777,48 +20028,59 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Meter status flags active net consumption CT l3', + 'object_id_base': 'EVSE CT current l3', 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), }), - 'original_device_class': None, + 'original_device_class': , 'original_icon': None, - 'original_name': 'Meter status flags active net consumption CT l3', + 'original_name': 'EVSE CT current l3', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_ct_status_flags_phase', - 'unique_id': '1234_net_consumption_ct_status_flags_l3', - 'unit_of_measurement': None, + 'translation_key': 'evse_ct_current_phase', + 'unique_id': '1234_evse_ct_current_l3', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_meter_status_flags_active_net_consumption_ct_l3-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_evse_ct_current_l3-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'friendly_name': 'Envoy 1234 Meter status flags active net consumption CT l3', + 'device_class': 'current', + 'friendly_name': 'Envoy 1234 EVSE CT current l3', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_net_consumption_ct_l3', + 'entity_id': 'sensor.envoy_1234_evse_ct_current_l3', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0', + 'state': '6.3', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_meter_status_flags_active_production_ct-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_evse_ct_energy_delivered-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, - 'capabilities': None, + 'capabilities': dict({ + 'state_class': , + }), 'config_entry_id': , 'config_subentry_id': , 'device_class': None, 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': , - 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_production_ct', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_evse_ct_energy_delivered', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -19826,48 +20088,59 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Meter status flags active production CT', + 'object_id_base': 'EVSE CT energy delivered', 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), }), - 'original_device_class': None, + 'original_device_class': , 'original_icon': None, - 'original_name': 'Meter status flags active production CT', + 'original_name': 'EVSE CT energy delivered', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'production_ct_status_flags', - 'unique_id': '1234_production_ct_status_flags', - 'unit_of_measurement': None, + 'translation_key': 'evse_ct_energy_delivered', + 'unique_id': '1234_evse_ct_energy_delivered', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_meter_status_flags_active_production_ct-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_evse_ct_energy_delivered-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'friendly_name': 'Envoy 1234 Meter status flags active production CT', + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 EVSE CT energy delivered', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_production_ct', + 'entity_id': 'sensor.envoy_1234_evse_ct_energy_delivered', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '2', + 'state': '0.061234', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_meter_status_flags_active_production_ct_l1-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_evse_ct_energy_delivered_l1-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, - 'capabilities': None, + 'capabilities': dict({ + 'state_class': , + }), 'config_entry_id': , 'config_subentry_id': , 'device_class': None, 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': , - 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_production_ct_l1', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_evse_ct_energy_delivered_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -19875,48 +20148,59 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Meter status flags active production CT l1', + 'object_id_base': 'EVSE CT energy delivered l1', 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), }), - 'original_device_class': None, + 'original_device_class': , 'original_icon': None, - 'original_name': 'Meter status flags active production CT l1', + 'original_name': 'EVSE CT energy delivered l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'production_ct_status_flags_phase', - 'unique_id': '1234_production_ct_status_flags_l1', - 'unit_of_measurement': None, + 'translation_key': 'evse_ct_energy_delivered_phase', + 'unique_id': '1234_evse_ct_energy_delivered_l1', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_meter_status_flags_active_production_ct_l1-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_evse_ct_energy_delivered_l1-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'friendly_name': 'Envoy 1234 Meter status flags active production CT l1', + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 EVSE CT energy delivered l1', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_production_ct_l1', + 'entity_id': 'sensor.envoy_1234_evse_ct_energy_delivered_l1', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '1', + 'state': '0.612341', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_meter_status_flags_active_production_ct_l2-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_evse_ct_energy_delivered_l2-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, - 'capabilities': None, + 'capabilities': dict({ + 'state_class': , + }), 'config_entry_id': , 'config_subentry_id': , 'device_class': None, 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': , - 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_production_ct_l2', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_evse_ct_energy_delivered_l2', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -19924,48 +20208,59 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Meter status flags active production CT l2', + 'object_id_base': 'EVSE CT energy delivered l2', 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), }), - 'original_device_class': None, + 'original_device_class': , 'original_icon': None, - 'original_name': 'Meter status flags active production CT l2', + 'original_name': 'EVSE CT energy delivered l2', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'production_ct_status_flags_phase', - 'unique_id': '1234_production_ct_status_flags_l2', - 'unit_of_measurement': None, + 'translation_key': 'evse_ct_energy_delivered_phase', + 'unique_id': '1234_evse_ct_energy_delivered_l2', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_meter_status_flags_active_production_ct_l2-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_evse_ct_energy_delivered_l2-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'friendly_name': 'Envoy 1234 Meter status flags active production CT l2', + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 EVSE CT energy delivered l2', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_production_ct_l2', + 'entity_id': 'sensor.envoy_1234_evse_ct_energy_delivered_l2', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '1', + 'state': '0.612342', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_meter_status_flags_active_production_ct_l3-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_evse_ct_energy_delivered_l3-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, - 'capabilities': None, + 'capabilities': dict({ + 'state_class': , + }), 'config_entry_id': , 'config_subentry_id': , 'device_class': None, 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': , - 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_production_ct_l3', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_evse_ct_energy_delivered_l3', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -19973,48 +20268,59 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Meter status flags active production CT l3', + 'object_id_base': 'EVSE CT energy delivered l3', 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), }), - 'original_device_class': None, + 'original_device_class': , 'original_icon': None, - 'original_name': 'Meter status flags active production CT l3', + 'original_name': 'EVSE CT energy delivered l3', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'production_ct_status_flags_phase', - 'unique_id': '1234_production_ct_status_flags_l3', - 'unit_of_measurement': None, + 'translation_key': 'evse_ct_energy_delivered_phase', + 'unique_id': '1234_evse_ct_energy_delivered_l3', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_meter_status_flags_active_production_ct_l3-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_evse_ct_energy_delivered_l3-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'friendly_name': 'Envoy 1234 Meter status flags active production CT l3', + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 EVSE CT energy delivered l3', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_production_ct_l3', + 'entity_id': 'sensor.envoy_1234_evse_ct_energy_delivered_l3', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0', + 'state': '0.612343', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_meter_status_flags_active_storage_ct-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_evse_ct_energy_received-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, - 'capabilities': None, + 'capabilities': dict({ + 'state_class': , + }), 'config_entry_id': , 'config_subentry_id': , 'device_class': None, 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': , - 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_storage_ct', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_evse_ct_energy_received', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -20022,48 +20328,59 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Meter status flags active storage CT', + 'object_id_base': 'EVSE CT energy received', 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), }), - 'original_device_class': None, + 'original_device_class': , 'original_icon': None, - 'original_name': 'Meter status flags active storage CT', + 'original_name': 'EVSE CT energy received', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'storage_ct_status_flags', - 'unique_id': '1234_storage_ct_status_flags', - 'unit_of_measurement': None, + 'translation_key': 'evse_ct_energy_received', + 'unique_id': '1234_evse_ct_energy_received', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_meter_status_flags_active_storage_ct-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_evse_ct_energy_received-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'friendly_name': 'Envoy 1234 Meter status flags active storage CT', + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 EVSE CT energy received', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_storage_ct', + 'entity_id': 'sensor.envoy_1234_evse_ct_energy_received', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0', + 'state': '0.062345', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_meter_status_flags_active_storage_ct_l1-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_evse_ct_energy_received_l1-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, - 'capabilities': None, + 'capabilities': dict({ + 'state_class': , + }), 'config_entry_id': , 'config_subentry_id': , 'device_class': None, 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': , - 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_storage_ct_l1', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_evse_ct_energy_received_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -20071,48 +20388,59 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Meter status flags active storage CT l1', + 'object_id_base': 'EVSE CT energy received l1', 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), }), - 'original_device_class': None, + 'original_device_class': , 'original_icon': None, - 'original_name': 'Meter status flags active storage CT l1', + 'original_name': 'EVSE CT energy received l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'storage_ct_status_flags_phase', - 'unique_id': '1234_storage_ct_status_flags_l1', - 'unit_of_measurement': None, + 'translation_key': 'evse_ct_energy_received_phase', + 'unique_id': '1234_evse_ct_energy_received_l1', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_meter_status_flags_active_storage_ct_l1-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_evse_ct_energy_received_l1-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'friendly_name': 'Envoy 1234 Meter status flags active storage CT l1', + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 EVSE CT energy received l1', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_storage_ct_l1', + 'entity_id': 'sensor.envoy_1234_evse_ct_energy_received_l1', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0', + 'state': '0.623451', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_meter_status_flags_active_storage_ct_l2-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_evse_ct_energy_received_l2-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, - 'capabilities': None, + 'capabilities': dict({ + 'state_class': , + }), 'config_entry_id': , 'config_subentry_id': , 'device_class': None, 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': , - 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_storage_ct_l2', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_evse_ct_energy_received_l2', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -20120,48 +20448,59 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Meter status flags active storage CT l2', + 'object_id_base': 'EVSE CT energy received l2', 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), }), - 'original_device_class': None, + 'original_device_class': , 'original_icon': None, - 'original_name': 'Meter status flags active storage CT l2', + 'original_name': 'EVSE CT energy received l2', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'storage_ct_status_flags_phase', - 'unique_id': '1234_storage_ct_status_flags_l2', - 'unit_of_measurement': None, + 'translation_key': 'evse_ct_energy_received_phase', + 'unique_id': '1234_evse_ct_energy_received_l2', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_meter_status_flags_active_storage_ct_l2-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_evse_ct_energy_received_l2-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'friendly_name': 'Envoy 1234 Meter status flags active storage CT l2', + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 EVSE CT energy received l2', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_storage_ct_l2', + 'entity_id': 'sensor.envoy_1234_evse_ct_energy_received_l2', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0', + 'state': '0.623452', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_meter_status_flags_active_storage_ct_l3-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_evse_ct_energy_received_l3-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, - 'capabilities': None, + 'capabilities': dict({ + 'state_class': , + }), 'config_entry_id': , 'config_subentry_id': , 'device_class': None, 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': , - 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_storage_ct_l3', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_evse_ct_energy_received_l3', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -20169,45 +20508,50 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Meter status flags active storage CT l3', + 'object_id_base': 'EVSE CT energy received l3', 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), }), - 'original_device_class': None, + 'original_device_class': , 'original_icon': None, - 'original_name': 'Meter status flags active storage CT l3', + 'original_name': 'EVSE CT energy received l3', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'storage_ct_status_flags_phase', - 'unique_id': '1234_storage_ct_status_flags_l3', - 'unit_of_measurement': None, + 'translation_key': 'evse_ct_energy_received_phase', + 'unique_id': '1234_evse_ct_energy_received_l3', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_meter_status_flags_active_storage_ct_l3-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_evse_ct_energy_received_l3-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'friendly_name': 'Envoy 1234 Meter status flags active storage CT l3', + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 EVSE CT energy received l3', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_storage_ct_l3', + 'entity_id': 'sensor.envoy_1234_evse_ct_energy_received_l3', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0', + 'state': '0.623453', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_metering_status_net_consumption_ct-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_evse_ct_power-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'options': list([ - , - , - , - ]), + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -20215,8 +20559,8 @@ 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': , - 'entity_id': 'sensor.envoy_1234_metering_status_net_consumption_ct', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_evse_ct_power', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -20224,51 +20568,50 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Metering status net consumption CT', + 'object_id_base': 'EVSE CT power', 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Metering status net consumption CT', + 'original_name': 'EVSE CT power', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_ct_metering_status', - 'unique_id': '1234_net_consumption_ct_metering_status', - 'unit_of_measurement': None, + 'translation_key': 'evse_ct_power', + 'unique_id': '1234_evse_ct_power', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_metering_status_net_consumption_ct-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_evse_ct_power-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'enum', - 'friendly_name': 'Envoy 1234 Metering status net consumption CT', - 'options': list([ - , - , - , - ]), + 'device_class': 'power', + 'friendly_name': 'Envoy 1234 EVSE CT power', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_metering_status_net_consumption_ct', + 'entity_id': 'sensor.envoy_1234_evse_ct_power', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': 'normal', + 'state': '0.106', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_metering_status_net_consumption_ct_l1-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_evse_ct_power_l1-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'options': list([ - , - , - , - ]), + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -20276,8 +20619,8 @@ 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': , - 'entity_id': 'sensor.envoy_1234_metering_status_net_consumption_ct_l1', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_evse_ct_power_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -20285,51 +20628,50 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Metering status net consumption CT l1', + 'object_id_base': 'EVSE CT power l1', 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Metering status net consumption CT l1', + 'original_name': 'EVSE CT power l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_ct_metering_status_phase', - 'unique_id': '1234_net_consumption_ct_metering_status_l1', - 'unit_of_measurement': None, + 'translation_key': 'evse_ct_power_phase', + 'unique_id': '1234_evse_ct_power_l1', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_metering_status_net_consumption_ct_l1-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_evse_ct_power_l1-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'enum', - 'friendly_name': 'Envoy 1234 Metering status net consumption CT l1', - 'options': list([ - , - , - , - ]), + 'device_class': 'power', + 'friendly_name': 'Envoy 1234 EVSE CT power l1', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_metering_status_net_consumption_ct_l1', + 'entity_id': 'sensor.envoy_1234_evse_ct_power_l1', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': 'normal', + 'state': '0.116', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_metering_status_net_consumption_ct_l2-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_evse_ct_power_l2-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'options': list([ - , - , - , - ]), + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -20337,8 +20679,8 @@ 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': , - 'entity_id': 'sensor.envoy_1234_metering_status_net_consumption_ct_l2', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_evse_ct_power_l2', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -20346,51 +20688,50 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Metering status net consumption CT l2', + 'object_id_base': 'EVSE CT power l2', 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Metering status net consumption CT l2', + 'original_name': 'EVSE CT power l2', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_ct_metering_status_phase', - 'unique_id': '1234_net_consumption_ct_metering_status_l2', - 'unit_of_measurement': None, + 'translation_key': 'evse_ct_power_phase', + 'unique_id': '1234_evse_ct_power_l2', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_metering_status_net_consumption_ct_l2-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_evse_ct_power_l2-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'enum', - 'friendly_name': 'Envoy 1234 Metering status net consumption CT l2', - 'options': list([ - , - , - , - ]), + 'device_class': 'power', + 'friendly_name': 'Envoy 1234 EVSE CT power l2', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_metering_status_net_consumption_ct_l2', + 'entity_id': 'sensor.envoy_1234_evse_ct_power_l2', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': 'normal', + 'state': '0.126', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_metering_status_net_consumption_ct_l3-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_evse_ct_power_l3-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'options': list([ - , - , - , - ]), + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -20398,8 +20739,8 @@ 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': , - 'entity_id': 'sensor.envoy_1234_metering_status_net_consumption_ct_l3', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_evse_ct_power_l3', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -20407,51 +20748,50 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Metering status net consumption CT l3', + 'object_id_base': 'EVSE CT power l3', 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Metering status net consumption CT l3', + 'original_name': 'EVSE CT power l3', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_ct_metering_status_phase', - 'unique_id': '1234_net_consumption_ct_metering_status_l3', - 'unit_of_measurement': None, + 'translation_key': 'evse_ct_power_phase', + 'unique_id': '1234_evse_ct_power_l3', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_metering_status_net_consumption_ct_l3-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_evse_ct_power_l3-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'enum', - 'friendly_name': 'Envoy 1234 Metering status net consumption CT l3', - 'options': list([ - , - , - , - ]), + 'device_class': 'power', + 'friendly_name': 'Envoy 1234 EVSE CT power l3', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_metering_status_net_consumption_ct_l3', + 'entity_id': 'sensor.envoy_1234_evse_ct_power_l3', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': 'normal', + 'state': '0.136', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_metering_status_production_ct-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_frequency_backfeed_ct-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'options': list([ - , - , - , - ]), + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -20459,8 +20799,8 @@ 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': , - 'entity_id': 'sensor.envoy_1234_metering_status_production_ct', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_frequency_backfeed_ct', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -20468,51 +20808,47 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Metering status production CT', + 'object_id_base': 'Frequency backfeed CT', 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 1, + }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Metering status production CT', + 'original_name': 'Frequency backfeed CT', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'production_ct_metering_status', - 'unique_id': '1234_production_ct_metering_status', - 'unit_of_measurement': None, + 'translation_key': 'backfeed_ct_frequency', + 'unique_id': '1234_backfeed_ct_frequency', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_metering_status_production_ct-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_frequency_backfeed_ct-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'enum', - 'friendly_name': 'Envoy 1234 Metering status production CT', - 'options': list([ - , - , - , - ]), + 'device_class': 'frequency', + 'friendly_name': 'Envoy 1234 Frequency backfeed CT', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_metering_status_production_ct', + 'entity_id': 'sensor.envoy_1234_frequency_backfeed_ct', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': 'normal', + 'state': '50.4', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_metering_status_production_ct_l1-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_frequency_backfeed_ct_l1-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'options': list([ - , - , - , - ]), + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -20520,8 +20856,8 @@ 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': , - 'entity_id': 'sensor.envoy_1234_metering_status_production_ct_l1', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_frequency_backfeed_ct_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -20529,51 +20865,47 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Metering status production CT l1', + 'object_id_base': 'Frequency backfeed CT l1', 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 1, + }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Metering status production CT l1', + 'original_name': 'Frequency backfeed CT l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'production_ct_metering_status_phase', - 'unique_id': '1234_production_ct_metering_status_l1', - 'unit_of_measurement': None, + 'translation_key': 'backfeed_ct_frequency_phase', + 'unique_id': '1234_backfeed_ct_frequency_l1', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_metering_status_production_ct_l1-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_frequency_backfeed_ct_l1-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'enum', - 'friendly_name': 'Envoy 1234 Metering status production CT l1', - 'options': list([ - , - , - , - ]), + 'device_class': 'frequency', + 'friendly_name': 'Envoy 1234 Frequency backfeed CT l1', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_metering_status_production_ct_l1', + 'entity_id': 'sensor.envoy_1234_frequency_backfeed_ct_l1', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': 'normal', + 'state': '50.4', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_metering_status_production_ct_l2-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_frequency_backfeed_ct_l2-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'options': list([ - , - , - , - ]), + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -20581,8 +20913,8 @@ 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': , - 'entity_id': 'sensor.envoy_1234_metering_status_production_ct_l2', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_frequency_backfeed_ct_l2', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -20590,51 +20922,47 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Metering status production CT l2', + 'object_id_base': 'Frequency backfeed CT l2', 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 1, + }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Metering status production CT l2', + 'original_name': 'Frequency backfeed CT l2', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'production_ct_metering_status_phase', - 'unique_id': '1234_production_ct_metering_status_l2', - 'unit_of_measurement': None, + 'translation_key': 'backfeed_ct_frequency_phase', + 'unique_id': '1234_backfeed_ct_frequency_l2', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_metering_status_production_ct_l2-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_frequency_backfeed_ct_l2-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'enum', - 'friendly_name': 'Envoy 1234 Metering status production CT l2', - 'options': list([ - , - , - , - ]), + 'device_class': 'frequency', + 'friendly_name': 'Envoy 1234 Frequency backfeed CT l2', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_metering_status_production_ct_l2', + 'entity_id': 'sensor.envoy_1234_frequency_backfeed_ct_l2', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': 'normal', + 'state': '50.4', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_metering_status_production_ct_l3-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_frequency_backfeed_ct_l3-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'options': list([ - , - , - , - ]), + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -20642,8 +20970,8 @@ 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': , - 'entity_id': 'sensor.envoy_1234_metering_status_production_ct_l3', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_frequency_backfeed_ct_l3', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -20651,51 +20979,47 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Metering status production CT l3', + 'object_id_base': 'Frequency backfeed CT l3', 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 1, + }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Metering status production CT l3', + 'original_name': 'Frequency backfeed CT l3', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'production_ct_metering_status_phase', - 'unique_id': '1234_production_ct_metering_status_l3', - 'unit_of_measurement': None, + 'translation_key': 'backfeed_ct_frequency_phase', + 'unique_id': '1234_backfeed_ct_frequency_l3', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_metering_status_production_ct_l3-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_frequency_backfeed_ct_l3-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'enum', - 'friendly_name': 'Envoy 1234 Metering status production CT l3', - 'options': list([ - , - , - , - ]), + 'device_class': 'frequency', + 'friendly_name': 'Envoy 1234 Frequency backfeed CT l3', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_metering_status_production_ct_l3', + 'entity_id': 'sensor.envoy_1234_frequency_backfeed_ct_l3', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': 'normal', + 'state': '50.4', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_metering_status_storage_ct-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_frequency_evse_ct-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'options': list([ - , - , - , - ]), + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -20703,8 +21027,8 @@ 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': , - 'entity_id': 'sensor.envoy_1234_metering_status_storage_ct', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_frequency_evse_ct', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -20712,51 +21036,47 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Metering status storage CT', + 'object_id_base': 'Frequency EVSE CT', 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 1, + }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Metering status storage CT', + 'original_name': 'Frequency EVSE CT', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'storage_ct_metering_status', - 'unique_id': '1234_storage_ct_metering_status', - 'unit_of_measurement': None, + 'translation_key': 'evse_ct_frequency', + 'unique_id': '1234_evse_ct_frequency', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_metering_status_storage_ct-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_frequency_evse_ct-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'enum', - 'friendly_name': 'Envoy 1234 Metering status storage CT', - 'options': list([ - , - , - , - ]), + 'device_class': 'frequency', + 'friendly_name': 'Envoy 1234 Frequency EVSE CT', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_metering_status_storage_ct', + 'entity_id': 'sensor.envoy_1234_frequency_evse_ct', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': 'normal', + 'state': '50.7', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_metering_status_storage_ct_l1-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_frequency_evse_ct_l1-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'options': list([ - , - , - , - ]), + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -20764,8 +21084,8 @@ 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': , - 'entity_id': 'sensor.envoy_1234_metering_status_storage_ct_l1', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_frequency_evse_ct_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -20773,51 +21093,47 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Metering status storage CT l1', + 'object_id_base': 'Frequency EVSE CT l1', 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 1, + }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Metering status storage CT l1', + 'original_name': 'Frequency EVSE CT l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'storage_ct_metering_status_phase', - 'unique_id': '1234_storage_ct_metering_status_l1', - 'unit_of_measurement': None, + 'translation_key': 'evse_ct_frequency_phase', + 'unique_id': '1234_evse_ct_frequency_l1', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_metering_status_storage_ct_l1-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_frequency_evse_ct_l1-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'enum', - 'friendly_name': 'Envoy 1234 Metering status storage CT l1', - 'options': list([ - , - , - , - ]), + 'device_class': 'frequency', + 'friendly_name': 'Envoy 1234 Frequency EVSE CT l1', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_metering_status_storage_ct_l1', + 'entity_id': 'sensor.envoy_1234_frequency_evse_ct_l1', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': 'normal', + 'state': '50.6', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_metering_status_storage_ct_l2-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_frequency_evse_ct_l2-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'options': list([ - , - , - , - ]), + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -20825,8 +21141,8 @@ 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': , - 'entity_id': 'sensor.envoy_1234_metering_status_storage_ct_l2', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_frequency_evse_ct_l2', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -20834,51 +21150,47 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Metering status storage CT l2', + 'object_id_base': 'Frequency EVSE CT l2', 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 1, + }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Metering status storage CT l2', + 'original_name': 'Frequency EVSE CT l2', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'storage_ct_metering_status_phase', - 'unique_id': '1234_storage_ct_metering_status_l2', - 'unit_of_measurement': None, + 'translation_key': 'evse_ct_frequency_phase', + 'unique_id': '1234_evse_ct_frequency_l2', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_metering_status_storage_ct_l2-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_frequency_evse_ct_l2-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'enum', - 'friendly_name': 'Envoy 1234 Metering status storage CT l2', - 'options': list([ - , - , - , - ]), + 'device_class': 'frequency', + 'friendly_name': 'Envoy 1234 Frequency EVSE CT l2', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_metering_status_storage_ct_l2', + 'entity_id': 'sensor.envoy_1234_frequency_evse_ct_l2', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': 'normal', + 'state': '50.6', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_metering_status_storage_ct_l3-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_frequency_evse_ct_l3-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'options': list([ - , - , - , - ]), + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -20886,8 +21198,8 @@ 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': , - 'entity_id': 'sensor.envoy_1234_metering_status_storage_ct_l3', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_frequency_evse_ct_l3', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -20895,41 +21207,41 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Metering status storage CT l3', + 'object_id_base': 'Frequency EVSE CT l3', 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 1, + }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Metering status storage CT l3', + 'original_name': 'Frequency EVSE CT l3', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'storage_ct_metering_status_phase', - 'unique_id': '1234_storage_ct_metering_status_l3', - 'unit_of_measurement': None, + 'translation_key': 'evse_ct_frequency_phase', + 'unique_id': '1234_evse_ct_frequency_l3', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_metering_status_storage_ct_l3-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_frequency_evse_ct_l3-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'enum', - 'friendly_name': 'Envoy 1234 Metering status storage CT l3', - 'options': list([ - , - , - , - ]), + 'device_class': 'frequency', + 'friendly_name': 'Envoy 1234 Frequency EVSE CT l3', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_metering_status_storage_ct_l3', + 'entity_id': 'sensor.envoy_1234_frequency_evse_ct_l3', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': 'normal', + 'state': '50.6', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_net_consumption_ct_current-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_frequency_load_ct-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -20944,7 +21256,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_net_consumption_ct_current', + 'entity_id': 'sensor.envoy_1234_frequency_load_ct', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -20952,44 +21264,41 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Net consumption CT current', + 'object_id_base': 'Frequency load CT', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 3, - }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_display_precision': 1, }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Net consumption CT current', + 'original_name': 'Frequency load CT', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_ct_current', - 'unique_id': '1234_net_ct_current', - 'unit_of_measurement': , + 'translation_key': 'load_ct_frequency', + 'unique_id': '1234_load_ct_frequency', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_net_consumption_ct_current-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_frequency_load_ct-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'current', - 'friendly_name': 'Envoy 1234 Net consumption CT current', + 'device_class': 'frequency', + 'friendly_name': 'Envoy 1234 Frequency load CT', 'state_class': , - 'unit_of_measurement': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_net_consumption_ct_current', + 'entity_id': 'sensor.envoy_1234_frequency_load_ct', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.3', + 'state': '50.6', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_net_consumption_ct_current_l1-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_frequency_load_ct_l1-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -21004,7 +21313,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_net_consumption_ct_current_l1', + 'entity_id': 'sensor.envoy_1234_frequency_load_ct_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -21012,44 +21321,41 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Net consumption CT current l1', + 'object_id_base': 'Frequency load CT l1', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 3, - }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_display_precision': 1, }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Net consumption CT current l1', + 'original_name': 'Frequency load CT l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_ct_current_phase', - 'unique_id': '1234_net_ct_current_l1', - 'unit_of_measurement': , + 'translation_key': 'load_ct_frequency_phase', + 'unique_id': '1234_load_ct_frequency_l1', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_net_consumption_ct_current_l1-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_frequency_load_ct_l1-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'current', - 'friendly_name': 'Envoy 1234 Net consumption CT current l1', + 'device_class': 'frequency', + 'friendly_name': 'Envoy 1234 Frequency load CT l1', 'state_class': , - 'unit_of_measurement': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_net_consumption_ct_current_l1', + 'entity_id': 'sensor.envoy_1234_frequency_load_ct_l1', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.3', + 'state': '50.6', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_net_consumption_ct_current_l2-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_frequency_load_ct_l2-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -21064,7 +21370,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_net_consumption_ct_current_l2', + 'entity_id': 'sensor.envoy_1234_frequency_load_ct_l2', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -21072,44 +21378,41 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Net consumption CT current l2', + 'object_id_base': 'Frequency load CT l2', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 3, - }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_display_precision': 1, }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Net consumption CT current l2', + 'original_name': 'Frequency load CT l2', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_ct_current_phase', - 'unique_id': '1234_net_ct_current_l2', - 'unit_of_measurement': , + 'translation_key': 'load_ct_frequency_phase', + 'unique_id': '1234_load_ct_frequency_l2', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_net_consumption_ct_current_l2-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_frequency_load_ct_l2-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'current', - 'friendly_name': 'Envoy 1234 Net consumption CT current l2', + 'device_class': 'frequency', + 'friendly_name': 'Envoy 1234 Frequency load CT l2', 'state_class': , - 'unit_of_measurement': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_net_consumption_ct_current_l2', + 'entity_id': 'sensor.envoy_1234_frequency_load_ct_l2', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.3', + 'state': '50.6', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_net_consumption_ct_current_l3-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_frequency_load_ct_l3-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -21124,7 +21427,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_net_consumption_ct_current_l3', + 'entity_id': 'sensor.envoy_1234_frequency_load_ct_l3', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -21132,44 +21435,41 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Net consumption CT current l3', + 'object_id_base': 'Frequency load CT l3', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 3, - }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_display_precision': 1, }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Net consumption CT current l3', + 'original_name': 'Frequency load CT l3', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_ct_current_phase', - 'unique_id': '1234_net_ct_current_l3', - 'unit_of_measurement': , + 'translation_key': 'load_ct_frequency_phase', + 'unique_id': '1234_load_ct_frequency_l3', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_net_consumption_ct_current_l3-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_frequency_load_ct_l3-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'current', - 'friendly_name': 'Envoy 1234 Net consumption CT current l3', + 'device_class': 'frequency', + 'friendly_name': 'Envoy 1234 Frequency load CT l3', 'state_class': , - 'unit_of_measurement': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_net_consumption_ct_current_l3', + 'entity_id': 'sensor.envoy_1234_frequency_load_ct_l3', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.3', + 'state': '50.6', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_power_factor_net_consumption_ct-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_frequency_net_consumption_ct-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -21184,7 +21484,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_power_factor_net_consumption_ct', + 'entity_id': 'sensor.envoy_1234_frequency_net_consumption_ct', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -21192,40 +21492,41 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Power factor net consumption CT', + 'object_id_base': 'Frequency net consumption CT', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 2, + 'suggested_display_precision': 1, }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Power factor net consumption CT', + 'original_name': 'Frequency net consumption CT', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_ct_powerfactor', - 'unique_id': '1234_net_ct_powerfactor', - 'unit_of_measurement': None, + 'translation_key': 'net_ct_frequency', + 'unique_id': '1234_frequency', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_power_factor_net_consumption_ct-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_frequency_net_consumption_ct-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'power_factor', - 'friendly_name': 'Envoy 1234 Power factor net consumption CT', + 'device_class': 'frequency', + 'friendly_name': 'Envoy 1234 Frequency net consumption CT', 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_power_factor_net_consumption_ct', + 'entity_id': 'sensor.envoy_1234_frequency_net_consumption_ct', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.21', + 'state': '50.2', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_power_factor_net_consumption_ct_l1-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_frequency_net_consumption_ct_l1-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -21240,7 +21541,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_power_factor_net_consumption_ct_l1', + 'entity_id': 'sensor.envoy_1234_frequency_net_consumption_ct_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -21248,40 +21549,41 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Power factor net consumption CT l1', + 'object_id_base': 'Frequency net consumption CT l1', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 2, + 'suggested_display_precision': 1, }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Power factor net consumption CT l1', + 'original_name': 'Frequency net consumption CT l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_ct_powerfactor_phase', - 'unique_id': '1234_net_ct_powerfactor_l1', - 'unit_of_measurement': None, + 'translation_key': 'net_ct_frequency_phase', + 'unique_id': '1234_frequency_l1', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_power_factor_net_consumption_ct_l1-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_frequency_net_consumption_ct_l1-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'power_factor', - 'friendly_name': 'Envoy 1234 Power factor net consumption CT l1', + 'device_class': 'frequency', + 'friendly_name': 'Envoy 1234 Frequency net consumption CT l1', 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_power_factor_net_consumption_ct_l1', + 'entity_id': 'sensor.envoy_1234_frequency_net_consumption_ct_l1', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.22', + 'state': '50.2', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_power_factor_net_consumption_ct_l2-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_frequency_net_consumption_ct_l2-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -21296,7 +21598,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_power_factor_net_consumption_ct_l2', + 'entity_id': 'sensor.envoy_1234_frequency_net_consumption_ct_l2', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -21304,40 +21606,41 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Power factor net consumption CT l2', + 'object_id_base': 'Frequency net consumption CT l2', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 2, + 'suggested_display_precision': 1, }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Power factor net consumption CT l2', + 'original_name': 'Frequency net consumption CT l2', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_ct_powerfactor_phase', - 'unique_id': '1234_net_ct_powerfactor_l2', - 'unit_of_measurement': None, + 'translation_key': 'net_ct_frequency_phase', + 'unique_id': '1234_frequency_l2', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_power_factor_net_consumption_ct_l2-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_frequency_net_consumption_ct_l2-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'power_factor', - 'friendly_name': 'Envoy 1234 Power factor net consumption CT l2', + 'device_class': 'frequency', + 'friendly_name': 'Envoy 1234 Frequency net consumption CT l2', 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_power_factor_net_consumption_ct_l2', + 'entity_id': 'sensor.envoy_1234_frequency_net_consumption_ct_l2', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.23', + 'state': '50.2', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_power_factor_net_consumption_ct_l3-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_frequency_net_consumption_ct_l3-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -21352,7 +21655,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_power_factor_net_consumption_ct_l3', + 'entity_id': 'sensor.envoy_1234_frequency_net_consumption_ct_l3', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -21360,40 +21663,41 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Power factor net consumption CT l3', + 'object_id_base': 'Frequency net consumption CT l3', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 2, + 'suggested_display_precision': 1, }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Power factor net consumption CT l3', + 'original_name': 'Frequency net consumption CT l3', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_ct_powerfactor_phase', - 'unique_id': '1234_net_ct_powerfactor_l3', - 'unit_of_measurement': None, + 'translation_key': 'net_ct_frequency_phase', + 'unique_id': '1234_frequency_l3', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_power_factor_net_consumption_ct_l3-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_frequency_net_consumption_ct_l3-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'power_factor', - 'friendly_name': 'Envoy 1234 Power factor net consumption CT l3', + 'device_class': 'frequency', + 'friendly_name': 'Envoy 1234 Frequency net consumption CT l3', 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_power_factor_net_consumption_ct_l3', + 'entity_id': 'sensor.envoy_1234_frequency_net_consumption_ct_l3', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.24', + 'state': '50.2', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_power_factor_production_ct-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_frequency_production_ct-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -21408,7 +21712,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_power_factor_production_ct', + 'entity_id': 'sensor.envoy_1234_frequency_production_ct', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -21416,40 +21720,41 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Power factor production CT', + 'object_id_base': 'Frequency production CT', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 2, + 'suggested_display_precision': 1, }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Power factor production CT', + 'original_name': 'Frequency production CT', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'production_ct_powerfactor', - 'unique_id': '1234_production_ct_powerfactor', - 'unit_of_measurement': None, + 'translation_key': 'production_ct_frequency', + 'unique_id': '1234_production_ct_frequency', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_power_factor_production_ct-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_frequency_production_ct-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'power_factor', - 'friendly_name': 'Envoy 1234 Power factor production CT', + 'device_class': 'frequency', + 'friendly_name': 'Envoy 1234 Frequency production CT', 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_power_factor_production_ct', + 'entity_id': 'sensor.envoy_1234_frequency_production_ct', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.11', + 'state': '50.1', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_power_factor_production_ct_l1-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_frequency_production_ct_l1-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -21464,7 +21769,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_power_factor_production_ct_l1', + 'entity_id': 'sensor.envoy_1234_frequency_production_ct_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -21472,40 +21777,41 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Power factor production CT l1', + 'object_id_base': 'Frequency production CT l1', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 2, + 'suggested_display_precision': 1, }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Power factor production CT l1', + 'original_name': 'Frequency production CT l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'production_ct_powerfactor_phase', - 'unique_id': '1234_production_ct_powerfactor_l1', - 'unit_of_measurement': None, + 'translation_key': 'production_ct_frequency_phase', + 'unique_id': '1234_production_ct_frequency_l1', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_power_factor_production_ct_l1-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_frequency_production_ct_l1-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'power_factor', - 'friendly_name': 'Envoy 1234 Power factor production CT l1', + 'device_class': 'frequency', + 'friendly_name': 'Envoy 1234 Frequency production CT l1', 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_power_factor_production_ct_l1', + 'entity_id': 'sensor.envoy_1234_frequency_production_ct_l1', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.12', + 'state': '50.1', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_power_factor_production_ct_l2-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_frequency_production_ct_l2-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -21520,7 +21826,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_power_factor_production_ct_l2', + 'entity_id': 'sensor.envoy_1234_frequency_production_ct_l2', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -21528,40 +21834,41 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Power factor production CT l2', + 'object_id_base': 'Frequency production CT l2', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 2, + 'suggested_display_precision': 1, }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Power factor production CT l2', + 'original_name': 'Frequency production CT l2', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'production_ct_powerfactor_phase', - 'unique_id': '1234_production_ct_powerfactor_l2', - 'unit_of_measurement': None, + 'translation_key': 'production_ct_frequency_phase', + 'unique_id': '1234_production_ct_frequency_l2', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_power_factor_production_ct_l2-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_frequency_production_ct_l2-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'power_factor', - 'friendly_name': 'Envoy 1234 Power factor production CT l2', + 'device_class': 'frequency', + 'friendly_name': 'Envoy 1234 Frequency production CT l2', 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_power_factor_production_ct_l2', + 'entity_id': 'sensor.envoy_1234_frequency_production_ct_l2', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.13', + 'state': '50.1', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_power_factor_production_ct_l3-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_frequency_production_ct_l3-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -21576,7 +21883,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_power_factor_production_ct_l3', + 'entity_id': 'sensor.envoy_1234_frequency_production_ct_l3', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -21584,40 +21891,41 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Power factor production CT l3', + 'object_id_base': 'Frequency production CT l3', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 2, + 'suggested_display_precision': 1, }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Power factor production CT l3', + 'original_name': 'Frequency production CT l3', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'production_ct_powerfactor_phase', - 'unique_id': '1234_production_ct_powerfactor_l3', - 'unit_of_measurement': None, + 'translation_key': 'production_ct_frequency_phase', + 'unique_id': '1234_production_ct_frequency_l3', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_power_factor_production_ct_l3-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_frequency_production_ct_l3-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'power_factor', - 'friendly_name': 'Envoy 1234 Power factor production CT l3', + 'device_class': 'frequency', + 'friendly_name': 'Envoy 1234 Frequency production CT l3', 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_power_factor_production_ct_l3', + 'entity_id': 'sensor.envoy_1234_frequency_production_ct_l3', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.14', + 'state': '50.1', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_power_factor_storage_ct-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_frequency_pv3p_ct-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -21632,7 +21940,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_power_factor_storage_ct', + 'entity_id': 'sensor.envoy_1234_frequency_pv3p_ct', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -21640,40 +21948,41 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Power factor storage CT', + 'object_id_base': 'Frequency PV3P CT', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 2, + 'suggested_display_precision': 1, }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Power factor storage CT', + 'original_name': 'Frequency PV3P CT', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'storage_ct_powerfactor', - 'unique_id': '1234_storage_ct_powerfactor', - 'unit_of_measurement': None, + 'translation_key': 'pv3p_ct_frequency', + 'unique_id': '1234_pv3p_ct_frequency', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_power_factor_storage_ct-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_frequency_pv3p_ct-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'power_factor', - 'friendly_name': 'Envoy 1234 Power factor storage CT', + 'device_class': 'frequency', + 'friendly_name': 'Envoy 1234 Frequency PV3P CT', 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_power_factor_storage_ct', + 'entity_id': 'sensor.envoy_1234_frequency_pv3p_ct', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.23', + 'state': '50.8', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_power_factor_storage_ct_l1-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_frequency_pv3p_ct_l1-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -21688,7 +21997,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_power_factor_storage_ct_l1', + 'entity_id': 'sensor.envoy_1234_frequency_pv3p_ct_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -21696,40 +22005,41 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Power factor storage CT l1', + 'object_id_base': 'Frequency PV3P CT l1', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 2, + 'suggested_display_precision': 1, }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Power factor storage CT l1', + 'original_name': 'Frequency PV3P CT l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'storage_ct_powerfactor_phase', - 'unique_id': '1234_storage_ct_powerfactor_l1', - 'unit_of_measurement': None, + 'translation_key': 'pv3p_ct_frequency_phase', + 'unique_id': '1234_pv3p_ct_frequency_l1', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_power_factor_storage_ct_l1-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_frequency_pv3p_ct_l1-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'power_factor', - 'friendly_name': 'Envoy 1234 Power factor storage CT l1', + 'device_class': 'frequency', + 'friendly_name': 'Envoy 1234 Frequency PV3P CT l1', 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_power_factor_storage_ct_l1', + 'entity_id': 'sensor.envoy_1234_frequency_pv3p_ct_l1', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.32', + 'state': '50.7', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_power_factor_storage_ct_l2-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_frequency_pv3p_ct_l2-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -21744,7 +22054,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_power_factor_storage_ct_l2', + 'entity_id': 'sensor.envoy_1234_frequency_pv3p_ct_l2', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -21752,40 +22062,41 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Power factor storage CT l2', + 'object_id_base': 'Frequency PV3P CT l2', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 2, + 'suggested_display_precision': 1, }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Power factor storage CT l2', + 'original_name': 'Frequency PV3P CT l2', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'storage_ct_powerfactor_phase', - 'unique_id': '1234_storage_ct_powerfactor_l2', - 'unit_of_measurement': None, + 'translation_key': 'pv3p_ct_frequency_phase', + 'unique_id': '1234_pv3p_ct_frequency_l2', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_power_factor_storage_ct_l2-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_frequency_pv3p_ct_l2-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'power_factor', - 'friendly_name': 'Envoy 1234 Power factor storage CT l2', + 'device_class': 'frequency', + 'friendly_name': 'Envoy 1234 Frequency PV3P CT l2', 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_power_factor_storage_ct_l2', + 'entity_id': 'sensor.envoy_1234_frequency_pv3p_ct_l2', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.23', + 'state': '50.7', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_power_factor_storage_ct_l3-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_frequency_pv3p_ct_l3-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -21800,7 +22111,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_power_factor_storage_ct_l3', + 'entity_id': 'sensor.envoy_1234_frequency_pv3p_ct_l3', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -21808,40 +22119,41 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Power factor storage CT l3', + 'object_id_base': 'Frequency PV3P CT l3', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 2, + 'suggested_display_precision': 1, }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Power factor storage CT l3', + 'original_name': 'Frequency PV3P CT l3', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'storage_ct_powerfactor_phase', - 'unique_id': '1234_storage_ct_powerfactor_l3', - 'unit_of_measurement': None, + 'translation_key': 'pv3p_ct_frequency_phase', + 'unique_id': '1234_pv3p_ct_frequency_l3', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_power_factor_storage_ct_l3-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_frequency_pv3p_ct_l3-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'power_factor', - 'friendly_name': 'Envoy 1234 Power factor storage CT l3', + 'device_class': 'frequency', + 'friendly_name': 'Envoy 1234 Frequency PV3P CT l3', 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_power_factor_storage_ct_l3', + 'entity_id': 'sensor.envoy_1234_frequency_pv3p_ct_l3', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.24', + 'state': '50.7', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_production_ct_current-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_frequency_storage_ct-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -21856,7 +22168,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_production_ct_current', + 'entity_id': 'sensor.envoy_1234_frequency_storage_ct', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -21864,44 +22176,41 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Production CT current', + 'object_id_base': 'Frequency storage CT', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 3, - }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_display_precision': 1, }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Production CT current', + 'original_name': 'Frequency storage CT', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'production_ct_current', - 'unique_id': '1234_production_ct_current', - 'unit_of_measurement': , + 'translation_key': 'storage_ct_frequency', + 'unique_id': '1234_storage_ct_frequency', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_production_ct_current-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_frequency_storage_ct-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'current', - 'friendly_name': 'Envoy 1234 Production CT current', + 'device_class': 'frequency', + 'friendly_name': 'Envoy 1234 Frequency storage CT', 'state_class': , - 'unit_of_measurement': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_production_ct_current', + 'entity_id': 'sensor.envoy_1234_frequency_storage_ct', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.2', + 'state': '50.3', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_production_ct_current_l1-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_frequency_storage_ct_l1-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -21916,7 +22225,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_production_ct_current_l1', + 'entity_id': 'sensor.envoy_1234_frequency_storage_ct_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -21924,44 +22233,41 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Production CT current l1', + 'object_id_base': 'Frequency storage CT l1', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 3, - }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_display_precision': 1, }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Production CT current l1', + 'original_name': 'Frequency storage CT l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'production_ct_current_phase', - 'unique_id': '1234_production_ct_current_l1', - 'unit_of_measurement': , + 'translation_key': 'storage_ct_frequency_phase', + 'unique_id': '1234_storage_ct_frequency_l1', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_production_ct_current_l1-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_frequency_storage_ct_l1-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'current', - 'friendly_name': 'Envoy 1234 Production CT current l1', + 'device_class': 'frequency', + 'friendly_name': 'Envoy 1234 Frequency storage CT l1', 'state_class': , - 'unit_of_measurement': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_production_ct_current_l1', + 'entity_id': 'sensor.envoy_1234_frequency_storage_ct_l1', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.2', + 'state': '50.3', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_production_ct_current_l2-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_frequency_storage_ct_l2-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -21976,7 +22282,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_production_ct_current_l2', + 'entity_id': 'sensor.envoy_1234_frequency_storage_ct_l2', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -21984,44 +22290,41 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Production CT current l2', + 'object_id_base': 'Frequency storage CT l2', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 3, - }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_display_precision': 1, }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Production CT current l2', + 'original_name': 'Frequency storage CT l2', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'production_ct_current_phase', - 'unique_id': '1234_production_ct_current_l2', - 'unit_of_measurement': , + 'translation_key': 'storage_ct_frequency_phase', + 'unique_id': '1234_storage_ct_frequency_l2', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_production_ct_current_l2-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_frequency_storage_ct_l2-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'current', - 'friendly_name': 'Envoy 1234 Production CT current l2', + 'device_class': 'frequency', + 'friendly_name': 'Envoy 1234 Frequency storage CT l2', 'state_class': , - 'unit_of_measurement': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_production_ct_current_l2', + 'entity_id': 'sensor.envoy_1234_frequency_storage_ct_l2', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.2', + 'state': '50.2', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_production_ct_current_l3-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_frequency_storage_ct_l3-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -22036,7 +22339,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_production_ct_current_l3', + 'entity_id': 'sensor.envoy_1234_frequency_storage_ct_l3', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -22044,50 +22347,47 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Production CT current l3', + 'object_id_base': 'Frequency storage CT l3', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 3, - }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_display_precision': 1, }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Production CT current l3', + 'original_name': 'Frequency storage CT l3', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'production_ct_current_phase', - 'unique_id': '1234_production_ct_current_l3', - 'unit_of_measurement': , + 'translation_key': 'storage_ct_frequency_phase', + 'unique_id': '1234_storage_ct_frequency_l3', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_production_ct_current_l3-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_frequency_storage_ct_l3-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'current', - 'friendly_name': 'Envoy 1234 Production CT current l3', + 'device_class': 'frequency', + 'friendly_name': 'Envoy 1234 Frequency storage CT l3', 'state_class': , - 'unit_of_measurement': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_production_ct_current_l3', + 'entity_id': 'sensor.envoy_1234_frequency_storage_ct_l3', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.2', + 'state': '50.2', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_reserve_battery_energy-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_balanced_net_energy_consumption-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -22096,7 +22396,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_reserve_battery_energy', + 'entity_id': 'sensor.envoy_1234_lifetime_balanced_net_energy_consumption', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -22104,47 +22404,50 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Reserve battery energy', + 'object_id_base': 'Lifetime balanced net energy consumption', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 0, + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Reserve battery energy', + 'original_name': 'Lifetime balanced net energy consumption', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'reserve_energy', - 'unique_id': '1234_reserve_energy', - 'unit_of_measurement': , + 'translation_key': 'lifetime_balanced_net_consumption', + 'unique_id': '1234_lifetime_balanced_net_consumption', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_reserve_battery_energy-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_balanced_net_energy_consumption-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'energy_storage', - 'friendly_name': 'Envoy 1234 Reserve battery energy', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Lifetime balanced net energy consumption', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_reserve_battery_energy', + 'entity_id': 'sensor.envoy_1234_lifetime_balanced_net_energy_consumption', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '526', + 'state': '4.321', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_reserve_battery_level-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_balanced_net_energy_consumption_l1-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -22153,7 +22456,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_reserve_battery_level', + 'entity_id': 'sensor.envoy_1234_lifetime_balanced_net_energy_consumption_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -22161,44 +22464,50 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Reserve battery level', + 'object_id_base': 'Lifetime balanced net energy consumption l1', 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Reserve battery level', + 'original_name': 'Lifetime balanced net energy consumption l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'reserve_soc', - 'unique_id': '1234_reserve_soc', - 'unit_of_measurement': '%', + 'translation_key': 'lifetime_balanced_net_consumption_phase', + 'unique_id': '1234_lifetime_balanced_net_consumption_l1', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_reserve_battery_level-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_balanced_net_energy_consumption_l1-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'battery', - 'friendly_name': 'Envoy 1234 Reserve battery level', - 'state_class': , - 'unit_of_measurement': '%', + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Lifetime balanced net energy consumption l1', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_reserve_battery_level', + 'entity_id': 'sensor.envoy_1234_lifetime_balanced_net_energy_consumption_l1', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '15', + 'state': '1.321', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_storage_ct_current-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_balanced_net_energy_consumption_l2-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -22207,7 +22516,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_storage_ct_current', + 'entity_id': 'sensor.envoy_1234_lifetime_balanced_net_energy_consumption_l2', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -22215,50 +22524,50 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Storage CT current', + 'object_id_base': 'Lifetime balanced net energy consumption l2', 'options': dict({ 'sensor': dict({ 'suggested_display_precision': 3, }), 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Storage CT current', + 'original_name': 'Lifetime balanced net energy consumption l2', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'storage_ct_current', - 'unique_id': '1234_storage_ct_current', - 'unit_of_measurement': , + 'translation_key': 'lifetime_balanced_net_consumption_phase', + 'unique_id': '1234_lifetime_balanced_net_consumption_l2', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_storage_ct_current-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_balanced_net_energy_consumption_l2-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'current', - 'friendly_name': 'Envoy 1234 Storage CT current', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Lifetime balanced net energy consumption l2', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_storage_ct_current', + 'entity_id': 'sensor.envoy_1234_lifetime_balanced_net_energy_consumption_l2', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.4', + 'state': '2.321', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_storage_ct_current_l1-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_balanced_net_energy_consumption_l3-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -22267,7 +22576,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_storage_ct_current_l1', + 'entity_id': 'sensor.envoy_1234_lifetime_balanced_net_energy_consumption_l3', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -22275,50 +22584,50 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Storage CT current l1', + 'object_id_base': 'Lifetime balanced net energy consumption l3', 'options': dict({ 'sensor': dict({ 'suggested_display_precision': 3, }), 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Storage CT current l1', + 'original_name': 'Lifetime balanced net energy consumption l3', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'storage_ct_current_phase', - 'unique_id': '1234_storage_ct_current_l1', - 'unit_of_measurement': , + 'translation_key': 'lifetime_balanced_net_consumption_phase', + 'unique_id': '1234_lifetime_balanced_net_consumption_l3', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_storage_ct_current_l1-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_balanced_net_energy_consumption_l3-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'current', - 'friendly_name': 'Envoy 1234 Storage CT current l1', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Lifetime balanced net energy consumption l3', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_storage_ct_current_l1', + 'entity_id': 'sensor.envoy_1234_lifetime_balanced_net_energy_consumption_l3', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.4', + 'state': '3.321', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_storage_ct_current_l2-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_battery_energy_charged-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -22327,7 +22636,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_storage_ct_current_l2', + 'entity_id': 'sensor.envoy_1234_lifetime_battery_energy_charged', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -22335,50 +22644,50 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Storage CT current l2', + 'object_id_base': 'Lifetime battery energy charged', 'options': dict({ 'sensor': dict({ 'suggested_display_precision': 3, }), 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Storage CT current l2', + 'original_name': 'Lifetime battery energy charged', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'storage_ct_current_phase', - 'unique_id': '1234_storage_ct_current_l2', - 'unit_of_measurement': , + 'translation_key': 'lifetime_battery_charged', + 'unique_id': '1234_lifetime_battery_charged', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_storage_ct_current_l2-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_battery_energy_charged-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'current', - 'friendly_name': 'Envoy 1234 Storage CT current l2', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Lifetime battery energy charged', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_storage_ct_current_l2', + 'entity_id': 'sensor.envoy_1234_lifetime_battery_energy_charged', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.3', + 'state': '0.032345', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_storage_ct_current_l3-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_battery_energy_charged_l1-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -22387,7 +22696,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_storage_ct_current_l3', + 'entity_id': 'sensor.envoy_1234_lifetime_battery_energy_charged_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -22395,50 +22704,50 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Storage CT current l3', + 'object_id_base': 'Lifetime battery energy charged l1', 'options': dict({ 'sensor': dict({ 'suggested_display_precision': 3, }), 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Storage CT current l3', + 'original_name': 'Lifetime battery energy charged l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'storage_ct_current_phase', - 'unique_id': '1234_storage_ct_current_l3', - 'unit_of_measurement': , + 'translation_key': 'lifetime_battery_charged_phase', + 'unique_id': '1234_lifetime_battery_charged_l1', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_storage_ct_current_l3-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_battery_energy_charged_l1-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'current', - 'friendly_name': 'Envoy 1234 Storage CT current l3', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Lifetime battery energy charged l1', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_storage_ct_current_l3', + 'entity_id': 'sensor.envoy_1234_lifetime_battery_energy_charged_l1', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.3', + 'state': '0.323451', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_voltage_net_consumption_ct-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_battery_energy_charged_l2-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -22447,7 +22756,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_voltage_net_consumption_ct', + 'entity_id': 'sensor.envoy_1234_lifetime_battery_energy_charged_l2', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -22455,50 +22764,50 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Voltage net consumption CT', + 'object_id_base': 'Lifetime battery energy charged l2', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 1, + 'suggested_display_precision': 3, }), 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Voltage net consumption CT', + 'original_name': 'Lifetime battery energy charged l2', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_ct_voltage', - 'unique_id': '1234_voltage', - 'unit_of_measurement': , + 'translation_key': 'lifetime_battery_charged_phase', + 'unique_id': '1234_lifetime_battery_charged_l2', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_voltage_net_consumption_ct-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_battery_energy_charged_l2-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'voltage', - 'friendly_name': 'Envoy 1234 Voltage net consumption CT', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Lifetime battery energy charged l2', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_voltage_net_consumption_ct', + 'entity_id': 'sensor.envoy_1234_lifetime_battery_energy_charged_l2', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '112', + 'state': '0.323452', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_voltage_net_consumption_ct_l1-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_battery_energy_charged_l3-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -22507,7 +22816,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_voltage_net_consumption_ct_l1', + 'entity_id': 'sensor.envoy_1234_lifetime_battery_energy_charged_l3', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -22515,50 +22824,50 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Voltage net consumption CT l1', + 'object_id_base': 'Lifetime battery energy charged l3', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 1, + 'suggested_display_precision': 3, }), 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Voltage net consumption CT l1', + 'original_name': 'Lifetime battery energy charged l3', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_ct_voltage_phase', - 'unique_id': '1234_voltage_l1', - 'unit_of_measurement': , + 'translation_key': 'lifetime_battery_charged_phase', + 'unique_id': '1234_lifetime_battery_charged_l3', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_voltage_net_consumption_ct_l1-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_battery_energy_charged_l3-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'voltage', - 'friendly_name': 'Envoy 1234 Voltage net consumption CT l1', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Lifetime battery energy charged l3', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_voltage_net_consumption_ct_l1', + 'entity_id': 'sensor.envoy_1234_lifetime_battery_energy_charged_l3', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '112', + 'state': '0.323453', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_voltage_net_consumption_ct_l2-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_battery_energy_discharged-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -22567,7 +22876,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_voltage_net_consumption_ct_l2', + 'entity_id': 'sensor.envoy_1234_lifetime_battery_energy_discharged', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -22575,50 +22884,50 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Voltage net consumption CT l2', + 'object_id_base': 'Lifetime battery energy discharged', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 1, + 'suggested_display_precision': 3, }), 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Voltage net consumption CT l2', + 'original_name': 'Lifetime battery energy discharged', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_ct_voltage_phase', - 'unique_id': '1234_voltage_l2', - 'unit_of_measurement': , + 'translation_key': 'lifetime_battery_discharged', + 'unique_id': '1234_lifetime_battery_discharged', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_voltage_net_consumption_ct_l2-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_battery_energy_discharged-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'voltage', - 'friendly_name': 'Envoy 1234 Voltage net consumption CT l2', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Lifetime battery energy discharged', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_voltage_net_consumption_ct_l2', + 'entity_id': 'sensor.envoy_1234_lifetime_battery_energy_discharged', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '112', + 'state': '0.031234', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_voltage_net_consumption_ct_l3-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_battery_energy_discharged_l1-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -22627,7 +22936,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_voltage_net_consumption_ct_l3', + 'entity_id': 'sensor.envoy_1234_lifetime_battery_energy_discharged_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -22635,50 +22944,50 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Voltage net consumption CT l3', + 'object_id_base': 'Lifetime battery energy discharged l1', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 1, + 'suggested_display_precision': 3, }), 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Voltage net consumption CT l3', + 'original_name': 'Lifetime battery energy discharged l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_ct_voltage_phase', - 'unique_id': '1234_voltage_l3', - 'unit_of_measurement': , + 'translation_key': 'lifetime_battery_discharged_phase', + 'unique_id': '1234_lifetime_battery_discharged_l1', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_voltage_net_consumption_ct_l3-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_battery_energy_discharged_l1-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'voltage', - 'friendly_name': 'Envoy 1234 Voltage net consumption CT l3', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Lifetime battery energy discharged l1', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_voltage_net_consumption_ct_l3', + 'entity_id': 'sensor.envoy_1234_lifetime_battery_energy_discharged_l1', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '112', + 'state': '0.312341', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_voltage_production_ct-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_battery_energy_discharged_l2-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -22687,7 +22996,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_voltage_production_ct', + 'entity_id': 'sensor.envoy_1234_lifetime_battery_energy_discharged_l2', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -22695,50 +23004,50 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Voltage production CT', + 'object_id_base': 'Lifetime battery energy discharged l2', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 1, + 'suggested_display_precision': 3, }), 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Voltage production CT', + 'original_name': 'Lifetime battery energy discharged l2', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'production_ct_voltage', - 'unique_id': '1234_production_ct_voltage', - 'unit_of_measurement': , + 'translation_key': 'lifetime_battery_discharged_phase', + 'unique_id': '1234_lifetime_battery_discharged_l2', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_voltage_production_ct-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_battery_energy_discharged_l2-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'voltage', - 'friendly_name': 'Envoy 1234 Voltage production CT', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Lifetime battery energy discharged l2', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_voltage_production_ct', + 'entity_id': 'sensor.envoy_1234_lifetime_battery_energy_discharged_l2', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '111', + 'state': '0.312342', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_voltage_production_ct_l1-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_battery_energy_discharged_l3-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -22747,7 +23056,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_voltage_production_ct_l1', + 'entity_id': 'sensor.envoy_1234_lifetime_battery_energy_discharged_l3', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -22755,50 +23064,50 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Voltage production CT l1', + 'object_id_base': 'Lifetime battery energy discharged l3', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 1, + 'suggested_display_precision': 3, }), 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Voltage production CT l1', + 'original_name': 'Lifetime battery energy discharged l3', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'production_ct_voltage_phase', - 'unique_id': '1234_production_ct_voltage_l1', - 'unit_of_measurement': , + 'translation_key': 'lifetime_battery_discharged_phase', + 'unique_id': '1234_lifetime_battery_discharged_l3', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_voltage_production_ct_l1-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_battery_energy_discharged_l3-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'voltage', - 'friendly_name': 'Envoy 1234 Voltage production CT l1', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Lifetime battery energy discharged l3', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_voltage_production_ct_l1', + 'entity_id': 'sensor.envoy_1234_lifetime_battery_energy_discharged_l3', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '111', + 'state': '0.312343', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_voltage_production_ct_l2-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_energy_consumption-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -22807,7 +23116,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_voltage_production_ct_l2', + 'entity_id': 'sensor.envoy_1234_lifetime_energy_consumption', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -22815,50 +23124,50 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Voltage production CT l2', + 'object_id_base': 'Lifetime energy consumption', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 1, + 'suggested_display_precision': 3, }), 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Voltage production CT l2', + 'original_name': 'Lifetime energy consumption', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'production_ct_voltage_phase', - 'unique_id': '1234_production_ct_voltage_l2', - 'unit_of_measurement': , + 'translation_key': 'lifetime_consumption', + 'unique_id': '1234_lifetime_consumption', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_voltage_production_ct_l2-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_energy_consumption-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'voltage', - 'friendly_name': 'Envoy 1234 Voltage production CT l2', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Lifetime energy consumption', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_voltage_production_ct_l2', + 'entity_id': 'sensor.envoy_1234_lifetime_energy_consumption', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '111', + 'state': '0.001234', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_voltage_production_ct_l3-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_energy_consumption_l1-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -22867,7 +23176,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_voltage_production_ct_l3', + 'entity_id': 'sensor.envoy_1234_lifetime_energy_consumption_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -22875,50 +23184,50 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Voltage production CT l3', + 'object_id_base': 'Lifetime energy consumption l1', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 1, + 'suggested_display_precision': 3, }), 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Voltage production CT l3', + 'original_name': 'Lifetime energy consumption l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'production_ct_voltage_phase', - 'unique_id': '1234_production_ct_voltage_l3', - 'unit_of_measurement': , + 'translation_key': 'lifetime_consumption_phase', + 'unique_id': '1234_lifetime_consumption_l1', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_voltage_production_ct_l3-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_energy_consumption_l1-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'voltage', - 'friendly_name': 'Envoy 1234 Voltage production CT l3', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Lifetime energy consumption l1', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_voltage_production_ct_l3', + 'entity_id': 'sensor.envoy_1234_lifetime_energy_consumption_l1', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '111', + 'state': '0.001322', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_voltage_storage_ct-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_energy_consumption_l2-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -22927,7 +23236,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_voltage_storage_ct', + 'entity_id': 'sensor.envoy_1234_lifetime_energy_consumption_l2', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -22935,50 +23244,50 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Voltage storage CT', + 'object_id_base': 'Lifetime energy consumption l2', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 1, + 'suggested_display_precision': 3, }), 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Voltage storage CT', + 'original_name': 'Lifetime energy consumption l2', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'storage_ct_voltage', - 'unique_id': '1234_storage_voltage', - 'unit_of_measurement': , + 'translation_key': 'lifetime_consumption_phase', + 'unique_id': '1234_lifetime_consumption_l2', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_voltage_storage_ct-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_energy_consumption_l2-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'voltage', - 'friendly_name': 'Envoy 1234 Voltage storage CT', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Lifetime energy consumption l2', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_voltage_storage_ct', + 'entity_id': 'sensor.envoy_1234_lifetime_energy_consumption_l2', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '113', + 'state': '0.002322', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_voltage_storage_ct_l1-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_energy_consumption_l3-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -22987,7 +23296,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_voltage_storage_ct_l1', + 'entity_id': 'sensor.envoy_1234_lifetime_energy_consumption_l3', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -22995,50 +23304,50 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Voltage storage CT l1', + 'object_id_base': 'Lifetime energy consumption l3', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 1, + 'suggested_display_precision': 3, }), 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Voltage storage CT l1', + 'original_name': 'Lifetime energy consumption l3', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'storage_ct_voltage_phase', - 'unique_id': '1234_storage_voltage_l1', - 'unit_of_measurement': , + 'translation_key': 'lifetime_consumption_phase', + 'unique_id': '1234_lifetime_consumption_l3', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_voltage_storage_ct_l1-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_energy_consumption_l3-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'voltage', - 'friendly_name': 'Envoy 1234 Voltage storage CT l1', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Lifetime energy consumption l3', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_voltage_storage_ct_l1', + 'entity_id': 'sensor.envoy_1234_lifetime_energy_consumption_l3', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '113', + 'state': '0.003322', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_voltage_storage_ct_l2-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_energy_production-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -23047,7 +23356,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_voltage_storage_ct_l2', + 'entity_id': 'sensor.envoy_1234_lifetime_energy_production', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -23055,50 +23364,50 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Voltage storage CT l2', + 'object_id_base': 'Lifetime energy production', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 1, + 'suggested_display_precision': 3, }), 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Voltage storage CT l2', + 'original_name': 'Lifetime energy production', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'storage_ct_voltage_phase', - 'unique_id': '1234_storage_voltage_l2', - 'unit_of_measurement': , + 'translation_key': 'lifetime_production', + 'unique_id': '1234_lifetime_production', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_voltage_storage_ct_l2-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_energy_production-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'voltage', - 'friendly_name': 'Envoy 1234 Voltage storage CT l2', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Lifetime energy production', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_voltage_storage_ct_l2', + 'entity_id': 'sensor.envoy_1234_lifetime_energy_production', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '112', + 'state': '0.001234', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_voltage_storage_ct_l3-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_energy_production_l1-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -23107,7 +23416,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_voltage_storage_ct_l3', + 'entity_id': 'sensor.envoy_1234_lifetime_energy_production_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -23115,50 +23424,50 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Voltage storage CT l3', + 'object_id_base': 'Lifetime energy production l1', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 1, + 'suggested_display_precision': 3, }), 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Voltage storage CT l3', + 'original_name': 'Lifetime energy production l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'storage_ct_voltage_phase', - 'unique_id': '1234_storage_voltage_l3', - 'unit_of_measurement': , + 'translation_key': 'lifetime_production_phase', + 'unique_id': '1234_lifetime_production_l1', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_voltage_storage_ct_l3-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_energy_production_l1-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'voltage', - 'friendly_name': 'Envoy 1234 Voltage storage CT l3', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Lifetime energy production l1', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_voltage_storage_ct_l3', + 'entity_id': 'sensor.envoy_1234_lifetime_energy_production_l1', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '112', + 'state': '0.001232', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.inverter_1-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_energy_production_l2-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -23167,7 +23476,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.inverter_1', + 'entity_id': 'sensor.envoy_1234_lifetime_energy_production_l2', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -23175,47 +23484,50 @@ 'labels': set({ }), 'name': None, - 'object_id_base': None, + 'object_id_base': 'Lifetime energy production l2', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 0, + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': None, + 'original_name': 'Lifetime energy production l2', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': None, - 'unique_id': '1', - 'unit_of_measurement': , + 'translation_key': 'lifetime_production_phase', + 'unique_id': '1234_lifetime_production_l2', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.inverter_1-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_energy_production_l2-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'power', - 'friendly_name': 'Inverter 1', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Lifetime energy production l2', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.inverter_1', + 'entity_id': 'sensor.envoy_1234_lifetime_energy_production_l2', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '1', + 'state': '0.002232', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.inverter_1_ac_current-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_energy_production_l3-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -23224,7 +23536,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.inverter_1_ac_current', + 'entity_id': 'sensor.envoy_1234_lifetime_energy_production_l3', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -23232,47 +23544,50 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'AC current', + 'object_id_base': 'Lifetime energy production l3', 'options': dict({ 'sensor': dict({ 'suggested_display_precision': 3, }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'AC current', + 'original_name': 'Lifetime energy production l3', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'ac_current', - 'unique_id': '1_ac_current', - 'unit_of_measurement': , + 'translation_key': 'lifetime_production_phase', + 'unique_id': '1234_lifetime_production_l3', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.inverter_1_ac_current-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_energy_production_l3-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'current', - 'friendly_name': 'Inverter 1 AC current', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Lifetime energy production l3', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.inverter_1_ac_current', + 'entity_id': 'sensor.envoy_1234_lifetime_energy_production_l3', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': 'unknown', + 'state': '0.003232', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.inverter_1_ac_voltage-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_net_energy_consumption-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -23281,7 +23596,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.inverter_1_ac_voltage', + 'entity_id': 'sensor.envoy_1234_lifetime_net_energy_consumption', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -23289,47 +23604,50 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'AC voltage', + 'object_id_base': 'Lifetime net energy consumption', 'options': dict({ 'sensor': dict({ 'suggested_display_precision': 3, }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'AC voltage', + 'original_name': 'Lifetime net energy consumption', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'ac_voltage', - 'unique_id': '1_ac_voltage', - 'unit_of_measurement': , + 'translation_key': 'lifetime_net_consumption', + 'unique_id': '1234_lifetime_net_consumption', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.inverter_1_ac_voltage-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_net_energy_consumption-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'voltage', - 'friendly_name': 'Inverter 1 AC voltage', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Lifetime net energy consumption', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.inverter_1_ac_voltage', + 'entity_id': 'sensor.envoy_1234_lifetime_net_energy_consumption', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': 'unknown', + 'state': '0.021234', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.inverter_1_dc_current-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_net_energy_consumption_l1-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -23338,7 +23656,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.inverter_1_dc_current', + 'entity_id': 'sensor.envoy_1234_lifetime_net_energy_consumption_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -23346,47 +23664,50 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'DC current', + 'object_id_base': 'Lifetime net energy consumption l1', 'options': dict({ 'sensor': dict({ 'suggested_display_precision': 3, }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'DC current', + 'original_name': 'Lifetime net energy consumption l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'dc_current', - 'unique_id': '1_dc_current', - 'unit_of_measurement': , + 'translation_key': 'lifetime_net_consumption_phase', + 'unique_id': '1234_lifetime_net_consumption_l1', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.inverter_1_dc_current-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_net_energy_consumption_l1-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'current', - 'friendly_name': 'Inverter 1 DC current', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Lifetime net energy consumption l1', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.inverter_1_dc_current', + 'entity_id': 'sensor.envoy_1234_lifetime_net_energy_consumption_l1', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': 'unknown', + 'state': '0.212341', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.inverter_1_dc_voltage-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_net_energy_consumption_l2-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -23395,7 +23716,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.inverter_1_dc_voltage', + 'entity_id': 'sensor.envoy_1234_lifetime_net_energy_consumption_l2', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -23403,47 +23724,50 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'DC voltage', + 'object_id_base': 'Lifetime net energy consumption l2', 'options': dict({ 'sensor': dict({ 'suggested_display_precision': 3, }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'DC voltage', + 'original_name': 'Lifetime net energy consumption l2', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'dc_voltage', - 'unique_id': '1_dc_voltage', - 'unit_of_measurement': , + 'translation_key': 'lifetime_net_consumption_phase', + 'unique_id': '1234_lifetime_net_consumption_l2', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.inverter_1_dc_voltage-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_net_energy_consumption_l2-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'voltage', - 'friendly_name': 'Inverter 1 DC voltage', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Lifetime net energy consumption l2', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.inverter_1_dc_voltage', + 'entity_id': 'sensor.envoy_1234_lifetime_net_energy_consumption_l2', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': 'unknown', + 'state': '0.212342', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.inverter_1_energy_production_since_previous_report-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_net_energy_consumption_l3-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -23452,7 +23776,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.inverter_1_energy_production_since_previous_report', + 'entity_id': 'sensor.envoy_1234_lifetime_net_energy_consumption_l3', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -23460,41 +23784,44 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Energy production since previous report', + 'object_id_base': 'Lifetime net energy consumption l3', 'options': dict({ 'sensor': dict({ 'suggested_display_precision': 3, }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), }), 'original_device_class': , 'original_icon': None, - 'original_name': 'Energy production since previous report', + 'original_name': 'Lifetime net energy consumption l3', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'energy_produced', - 'unique_id': '1_energy_produced', - 'unit_of_measurement': , + 'translation_key': 'lifetime_net_consumption_phase', + 'unique_id': '1234_lifetime_net_consumption_l3', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.inverter_1_energy_production_since_previous_report-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_net_energy_consumption_l3-state] StateSnapshot({ 'attributes': ReadOnlyDict({ 'device_class': 'energy', - 'friendly_name': 'Inverter 1 Energy production since previous report', - 'state_class': , - 'unit_of_measurement': , + 'friendly_name': 'Envoy 1234 Lifetime net energy consumption l3', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.inverter_1_energy_production_since_previous_report', + 'entity_id': 'sensor.envoy_1234_lifetime_net_energy_consumption_l3', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': 'unknown', + 'state': '0.212343', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.inverter_1_energy_production_today-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_net_energy_production-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -23509,7 +23836,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.inverter_1_energy_production_today', + 'entity_id': 'sensor.envoy_1234_lifetime_net_energy_production', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -23517,47 +23844,50 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Energy production today', + 'object_id_base': 'Lifetime net energy production', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 0, + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , }), }), 'original_device_class': , 'original_icon': None, - 'original_name': 'Energy production today', + 'original_name': 'Lifetime net energy production', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'energy_today', - 'unique_id': '1_energy_today', - 'unit_of_measurement': , + 'translation_key': 'lifetime_net_production', + 'unique_id': '1234_lifetime_net_production', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.inverter_1_energy_production_today-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_net_energy_production-state] StateSnapshot({ 'attributes': ReadOnlyDict({ 'device_class': 'energy', - 'friendly_name': 'Inverter 1 Energy production today', + 'friendly_name': 'Envoy 1234 Lifetime net energy production', 'state_class': , - 'unit_of_measurement': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.inverter_1_energy_production_today', + 'entity_id': 'sensor.envoy_1234_lifetime_net_energy_production', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': 'unknown', + 'state': '0.022345', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.inverter_1_frequency-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_net_energy_production_l1-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -23566,7 +23896,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.inverter_1_frequency', + 'entity_id': 'sensor.envoy_1234_lifetime_net_energy_production_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -23574,47 +23904,50 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Frequency', + 'object_id_base': 'Lifetime net energy production l1', 'options': dict({ 'sensor': dict({ 'suggested_display_precision': 3, }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Frequency', + 'original_name': 'Lifetime net energy production l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': None, - 'unique_id': '1_ac_frequency', - 'unit_of_measurement': , + 'translation_key': 'lifetime_net_production_phase', + 'unique_id': '1234_lifetime_net_production_l1', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.inverter_1_frequency-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_net_energy_production_l1-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'frequency', - 'friendly_name': 'Inverter 1 Frequency', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Lifetime net energy production l1', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.inverter_1_frequency', + 'entity_id': 'sensor.envoy_1234_lifetime_net_energy_production_l1', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': 'unknown', + 'state': '0.223451', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.inverter_1_last_report_duration-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_net_energy_production_l2-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -23622,8 +23955,8 @@ 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': , - 'entity_id': 'sensor.inverter_1_last_report_duration', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_lifetime_net_energy_production_l2', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -23631,46 +23964,51 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Last report duration', + 'object_id_base': 'Lifetime net energy production l2', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 2, + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Last report duration', + 'original_name': 'Lifetime net energy production l2', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'last_report_duration', - 'unique_id': '1_last_report_duration', - 'unit_of_measurement': , + 'translation_key': 'lifetime_net_production_phase', + 'unique_id': '1234_lifetime_net_production_l2', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.inverter_1_last_report_duration-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_net_energy_production_l2-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'duration', - 'friendly_name': 'Inverter 1 Last report duration', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Lifetime net energy production l2', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.inverter_1_last_report_duration', + 'entity_id': 'sensor.envoy_1234_lifetime_net_energy_production_l2', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': 'unknown', + 'state': '0.223452', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.inverter_1_last_reported-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_net_energy_production_l3-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, - 'capabilities': None, + 'capabilities': dict({ + 'state_class': , + }), 'config_entry_id': , 'config_subentry_id': , 'device_class': None, @@ -23678,7 +24016,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.inverter_1_last_reported', + 'entity_id': 'sensor.envoy_1234_lifetime_net_energy_production_l3', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -23686,42 +24024,50 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Last reported', + 'object_id_base': 'Lifetime net energy production l3', 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Last reported', + 'original_name': 'Lifetime net energy production l3', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'last_reported', - 'unique_id': '1_last_reported', - 'unit_of_measurement': None, + 'translation_key': 'lifetime_net_production_phase', + 'unique_id': '1234_lifetime_net_production_l3', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.inverter_1_last_reported-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_lifetime_net_energy_production_l3-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'timestamp', - 'friendly_name': 'Inverter 1 Last reported', + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Lifetime net energy production l3', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.inverter_1_last_reported', + 'entity_id': 'sensor.envoy_1234_lifetime_net_energy_production_l3', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '1970-01-01T00:00:01+00:00', + 'state': '0.223453', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.inverter_1_lifetime_energy_production-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_load_ct_current-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -23730,7 +24076,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.inverter_1_lifetime_energy_production', + 'entity_id': 'sensor.envoy_1234_load_ct_current', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -23738,44 +24084,44 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Lifetime energy production', + 'object_id_base': 'Load CT current', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 2, + 'suggested_display_precision': 3, }), 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Lifetime energy production', + 'original_name': 'Load CT current', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'lifetime_energy', - 'unique_id': '1_lifetime_energy', - 'unit_of_measurement': , + 'translation_key': 'load_ct_current', + 'unique_id': '1234_load_ct_current', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.inverter_1_lifetime_energy_production-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_load_ct_current-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'energy', - 'friendly_name': 'Inverter 1 Lifetime energy production', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'current', + 'friendly_name': 'Envoy 1234 Load CT current', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.inverter_1_lifetime_energy_production', + 'entity_id': 'sensor.envoy_1234_load_ct_current', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': 'unknown', + 'state': '0.6', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.inverter_1_lifetime_maximum_power-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_load_ct_current_l1-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -23789,8 +24135,8 @@ 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': , - 'entity_id': 'sensor.inverter_1_lifetime_maximum_power', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_load_ct_current_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -23798,41 +24144,44 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Lifetime maximum power', + 'object_id_base': 'Load CT current l1', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 0, + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Lifetime maximum power', + 'original_name': 'Load CT current l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'max_reported', - 'unique_id': '1_max_reported', - 'unit_of_measurement': , + 'translation_key': 'load_ct_current_phase', + 'unique_id': '1234_load_ct_current_l1', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.inverter_1_lifetime_maximum_power-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_load_ct_current_l1-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'power', - 'friendly_name': 'Inverter 1 Lifetime maximum power', + 'device_class': 'current', + 'friendly_name': 'Envoy 1234 Load CT current l1', 'state_class': , - 'unit_of_measurement': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.inverter_1_lifetime_maximum_power', + 'entity_id': 'sensor.envoy_1234_load_ct_current_l1', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '1', + 'state': '5.1', }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.inverter_1_temperature-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_load_ct_current_l2-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -23846,8 +24195,8 @@ 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': , - 'entity_id': 'sensor.inverter_1_temperature', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_load_ct_current_l2', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -23855,41 +24204,44 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Temperature', + 'object_id_base': 'Load CT current l2', 'options': dict({ 'sensor': dict({ 'suggested_display_precision': 3, }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Temperature', + 'original_name': 'Load CT current l2', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': None, - 'unique_id': '1_temperature', - 'unit_of_measurement': , + 'translation_key': 'load_ct_current_phase', + 'unique_id': '1234_load_ct_current_l2', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_metered_batt_relay][sensor.inverter_1_temperature-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_load_ct_current_l2-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'temperature', - 'friendly_name': 'Inverter 1 Temperature', + 'device_class': 'current', + 'friendly_name': 'Envoy 1234 Load CT current l2', 'state_class': , - 'unit_of_measurement': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.inverter_1_temperature', + 'entity_id': 'sensor.envoy_1234_load_ct_current_l2', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': 'unknown', + 'state': '5.2', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_balanced_net_power_consumption-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_load_ct_current_l3-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -23904,7 +24256,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_balanced_net_power_consumption', + 'entity_id': 'sensor.envoy_1234_load_ct_current_l3', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -23912,50 +24264,50 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Balanced net power consumption', + 'object_id_base': 'Load CT current l3', 'options': dict({ 'sensor': dict({ 'suggested_display_precision': 3, }), 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Balanced net power consumption', + 'original_name': 'Load CT current l3', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'balanced_net_consumption', - 'unique_id': '1234_balanced_net_consumption', - 'unit_of_measurement': , + 'translation_key': 'load_ct_current_phase', + 'unique_id': '1234_load_ct_current_l3', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_balanced_net_power_consumption-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_load_ct_current_l3-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'power', - 'friendly_name': 'Envoy 1234 Balanced net power consumption', + 'device_class': 'current', + 'friendly_name': 'Envoy 1234 Load CT current l3', 'state_class': , - 'unit_of_measurement': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_balanced_net_power_consumption', + 'entity_id': 'sensor.envoy_1234_load_ct_current_l3', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '2.341', + 'state': '5.3', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_balanced_net_power_consumption_l1-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_load_ct_energy_delivered-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -23964,7 +24316,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_balanced_net_power_consumption_l1', + 'entity_id': 'sensor.envoy_1234_load_ct_energy_delivered', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -23972,50 +24324,50 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Balanced net power consumption l1', + 'object_id_base': 'Load CT energy delivered', 'options': dict({ 'sensor': dict({ 'suggested_display_precision': 3, }), 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Balanced net power consumption l1', + 'original_name': 'Load CT energy delivered', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'balanced_net_consumption_phase', - 'unique_id': '1234_balanced_net_consumption_l1', - 'unit_of_measurement': , + 'translation_key': 'load_ct_energy_delivered', + 'unique_id': '1234_load_ct_energy_delivered', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_balanced_net_power_consumption_l1-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_load_ct_energy_delivered-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'power', - 'friendly_name': 'Envoy 1234 Balanced net power consumption l1', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Load CT energy delivered', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_balanced_net_power_consumption_l1', + 'entity_id': 'sensor.envoy_1234_load_ct_energy_delivered', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '12.341', + 'state': '0.051234', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_balanced_net_power_consumption_l2-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_load_ct_energy_delivered_l1-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -24024,7 +24376,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_balanced_net_power_consumption_l2', + 'entity_id': 'sensor.envoy_1234_load_ct_energy_delivered_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -24032,50 +24384,50 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Balanced net power consumption l2', + 'object_id_base': 'Load CT energy delivered l1', 'options': dict({ 'sensor': dict({ 'suggested_display_precision': 3, }), 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Balanced net power consumption l2', + 'original_name': 'Load CT energy delivered l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'balanced_net_consumption_phase', - 'unique_id': '1234_balanced_net_consumption_l2', - 'unit_of_measurement': , + 'translation_key': 'load_ct_energy_delivered_phase', + 'unique_id': '1234_load_ct_energy_delivered_l1', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_balanced_net_power_consumption_l2-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_load_ct_energy_delivered_l1-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'power', - 'friendly_name': 'Envoy 1234 Balanced net power consumption l2', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Load CT energy delivered l1', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_balanced_net_power_consumption_l2', + 'entity_id': 'sensor.envoy_1234_load_ct_energy_delivered_l1', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '22.341', + 'state': '0.512341', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_balanced_net_power_consumption_l3-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_load_ct_energy_delivered_l2-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -24084,7 +24436,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_balanced_net_power_consumption_l3', + 'entity_id': 'sensor.envoy_1234_load_ct_energy_delivered_l2', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -24092,50 +24444,50 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Balanced net power consumption l3', + 'object_id_base': 'Load CT energy delivered l2', 'options': dict({ 'sensor': dict({ 'suggested_display_precision': 3, }), 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Balanced net power consumption l3', + 'original_name': 'Load CT energy delivered l2', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'balanced_net_consumption_phase', - 'unique_id': '1234_balanced_net_consumption_l3', - 'unit_of_measurement': , + 'translation_key': 'load_ct_energy_delivered_phase', + 'unique_id': '1234_load_ct_energy_delivered_l2', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_balanced_net_power_consumption_l3-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_load_ct_energy_delivered_l2-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'power', - 'friendly_name': 'Envoy 1234 Balanced net power consumption l3', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Load CT energy delivered l2', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_balanced_net_power_consumption_l3', + 'entity_id': 'sensor.envoy_1234_load_ct_energy_delivered_l2', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '32.341', + 'state': '0.512342', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_current_net_power_consumption-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_load_ct_energy_delivered_l3-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -24144,7 +24496,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_current_net_power_consumption', + 'entity_id': 'sensor.envoy_1234_load_ct_energy_delivered_l3', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -24152,50 +24504,50 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Current net power consumption', + 'object_id_base': 'Load CT energy delivered l3', 'options': dict({ 'sensor': dict({ 'suggested_display_precision': 3, }), 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Current net power consumption', + 'original_name': 'Load CT energy delivered l3', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_consumption', - 'unique_id': '1234_net_consumption', - 'unit_of_measurement': , + 'translation_key': 'load_ct_energy_delivered_phase', + 'unique_id': '1234_load_ct_energy_delivered_l3', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_current_net_power_consumption-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_load_ct_energy_delivered_l3-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'power', - 'friendly_name': 'Envoy 1234 Current net power consumption', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Load CT energy delivered l3', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_current_net_power_consumption', + 'entity_id': 'sensor.envoy_1234_load_ct_energy_delivered_l3', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.101', + 'state': '0.512343', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_current_net_power_consumption_l1-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_load_ct_energy_received-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -24204,7 +24556,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_current_net_power_consumption_l1', + 'entity_id': 'sensor.envoy_1234_load_ct_energy_received', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -24212,50 +24564,50 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Current net power consumption l1', + 'object_id_base': 'Load CT energy received', 'options': dict({ 'sensor': dict({ 'suggested_display_precision': 3, }), 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Current net power consumption l1', + 'original_name': 'Load CT energy received', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_consumption_phase', - 'unique_id': '1234_net_consumption_l1', - 'unit_of_measurement': , + 'translation_key': 'load_ct_energy_received', + 'unique_id': '1234_load_ct_energy_received', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_current_net_power_consumption_l1-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_load_ct_energy_received-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'power', - 'friendly_name': 'Envoy 1234 Current net power consumption l1', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Load CT energy received', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_current_net_power_consumption_l1', + 'entity_id': 'sensor.envoy_1234_load_ct_energy_received', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.021', + 'state': '0.052345', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_current_net_power_consumption_l2-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_load_ct_energy_received_l1-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -24264,7 +24616,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_current_net_power_consumption_l2', + 'entity_id': 'sensor.envoy_1234_load_ct_energy_received_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -24272,50 +24624,50 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Current net power consumption l2', + 'object_id_base': 'Load CT energy received l1', 'options': dict({ 'sensor': dict({ 'suggested_display_precision': 3, }), 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Current net power consumption l2', + 'original_name': 'Load CT energy received l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_consumption_phase', - 'unique_id': '1234_net_consumption_l2', - 'unit_of_measurement': , + 'translation_key': 'load_ct_energy_received_phase', + 'unique_id': '1234_load_ct_energy_received_l1', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_current_net_power_consumption_l2-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_load_ct_energy_received_l1-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'power', - 'friendly_name': 'Envoy 1234 Current net power consumption l2', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Load CT energy received l1', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_current_net_power_consumption_l2', + 'entity_id': 'sensor.envoy_1234_load_ct_energy_received_l1', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.031', + 'state': '0.523451', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_current_net_power_consumption_l3-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_load_ct_energy_received_l2-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -24324,7 +24676,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_current_net_power_consumption_l3', + 'entity_id': 'sensor.envoy_1234_load_ct_energy_received_l2', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -24332,50 +24684,50 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Current net power consumption l3', + 'object_id_base': 'Load CT energy received l2', 'options': dict({ 'sensor': dict({ 'suggested_display_precision': 3, }), 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Current net power consumption l3', + 'original_name': 'Load CT energy received l2', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_consumption_phase', - 'unique_id': '1234_net_consumption_l3', - 'unit_of_measurement': , + 'translation_key': 'load_ct_energy_received_phase', + 'unique_id': '1234_load_ct_energy_received_l2', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_current_net_power_consumption_l3-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_load_ct_energy_received_l2-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'power', - 'friendly_name': 'Envoy 1234 Current net power consumption l3', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Load CT energy received l2', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_current_net_power_consumption_l3', + 'entity_id': 'sensor.envoy_1234_load_ct_energy_received_l2', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.051', + 'state': '0.523452', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_current_power_consumption-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_load_ct_energy_received_l3-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -24384,7 +24736,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_current_power_consumption', + 'entity_id': 'sensor.envoy_1234_load_ct_energy_received_l3', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -24392,44 +24744,44 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Current power consumption', + 'object_id_base': 'Load CT energy received l3', 'options': dict({ 'sensor': dict({ 'suggested_display_precision': 3, }), 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Current power consumption', + 'original_name': 'Load CT energy received l3', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'current_power_consumption', - 'unique_id': '1234_consumption', - 'unit_of_measurement': , + 'translation_key': 'load_ct_energy_received_phase', + 'unique_id': '1234_load_ct_energy_received_l3', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_current_power_consumption-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_load_ct_energy_received_l3-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'power', - 'friendly_name': 'Envoy 1234 Current power consumption', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Load CT energy received l3', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_current_power_consumption', + 'entity_id': 'sensor.envoy_1234_load_ct_energy_received_l3', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '1.234', + 'state': '0.523453', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_current_power_consumption_l1-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_load_ct_power-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -24444,7 +24796,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_current_power_consumption_l1', + 'entity_id': 'sensor.envoy_1234_load_ct_power', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -24452,7 +24804,7 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Current power consumption l1', + 'object_id_base': 'Load CT power', 'options': dict({ 'sensor': dict({ 'suggested_display_precision': 3, @@ -24463,33 +24815,33 @@ }), 'original_device_class': , 'original_icon': None, - 'original_name': 'Current power consumption l1', + 'original_name': 'Load CT power', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'current_power_consumption_phase', - 'unique_id': '1234_consumption_l1', + 'translation_key': 'load_ct_power', + 'unique_id': '1234_load_ct_power', 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_current_power_consumption_l1-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_load_ct_power-state] StateSnapshot({ 'attributes': ReadOnlyDict({ 'device_class': 'power', - 'friendly_name': 'Envoy 1234 Current power consumption l1', + 'friendly_name': 'Envoy 1234 Load CT power', 'state_class': , 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_current_power_consumption_l1', + 'entity_id': 'sensor.envoy_1234_load_ct_power', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '1.324', + 'state': '0.105', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_current_power_consumption_l2-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_load_ct_power_l1-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -24504,7 +24856,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_current_power_consumption_l2', + 'entity_id': 'sensor.envoy_1234_load_ct_power_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -24512,7 +24864,7 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Current power consumption l2', + 'object_id_base': 'Load CT power l1', 'options': dict({ 'sensor': dict({ 'suggested_display_precision': 3, @@ -24523,33 +24875,33 @@ }), 'original_device_class': , 'original_icon': None, - 'original_name': 'Current power consumption l2', + 'original_name': 'Load CT power l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'current_power_consumption_phase', - 'unique_id': '1234_consumption_l2', + 'translation_key': 'load_ct_power_phase', + 'unique_id': '1234_load_ct_power_l1', 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_current_power_consumption_l2-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_load_ct_power_l1-state] StateSnapshot({ 'attributes': ReadOnlyDict({ 'device_class': 'power', - 'friendly_name': 'Envoy 1234 Current power consumption l2', + 'friendly_name': 'Envoy 1234 Load CT power l1', 'state_class': , 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_current_power_consumption_l2', + 'entity_id': 'sensor.envoy_1234_load_ct_power_l1', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '2.324', + 'state': '0.115', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_current_power_consumption_l3-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_load_ct_power_l2-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -24564,7 +24916,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_current_power_consumption_l3', + 'entity_id': 'sensor.envoy_1234_load_ct_power_l2', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -24572,7 +24924,7 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Current power consumption l3', + 'object_id_base': 'Load CT power l2', 'options': dict({ 'sensor': dict({ 'suggested_display_precision': 3, @@ -24583,33 +24935,33 @@ }), 'original_device_class': , 'original_icon': None, - 'original_name': 'Current power consumption l3', + 'original_name': 'Load CT power l2', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'current_power_consumption_phase', - 'unique_id': '1234_consumption_l3', + 'translation_key': 'load_ct_power_phase', + 'unique_id': '1234_load_ct_power_l2', 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_current_power_consumption_l3-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_load_ct_power_l2-state] StateSnapshot({ 'attributes': ReadOnlyDict({ 'device_class': 'power', - 'friendly_name': 'Envoy 1234 Current power consumption l3', + 'friendly_name': 'Envoy 1234 Load CT power l2', 'state_class': , 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_current_power_consumption_l3', + 'entity_id': 'sensor.envoy_1234_load_ct_power_l2', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '3.324', + 'state': '0.125', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_current_power_production-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_load_ct_power_l3-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -24624,7 +24976,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_current_power_production', + 'entity_id': 'sensor.envoy_1234_load_ct_power_l3', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -24632,7 +24984,7 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Current power production', + 'object_id_base': 'Load CT power l3', 'options': dict({ 'sensor': dict({ 'suggested_display_precision': 3, @@ -24643,48 +24995,46 @@ }), 'original_device_class': , 'original_icon': None, - 'original_name': 'Current power production', + 'original_name': 'Load CT power l3', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'current_power_production', - 'unique_id': '1234_production', + 'translation_key': 'load_ct_power_phase', + 'unique_id': '1234_load_ct_power_l3', 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_current_power_production-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_load_ct_power_l3-state] StateSnapshot({ 'attributes': ReadOnlyDict({ 'device_class': 'power', - 'friendly_name': 'Envoy 1234 Current power production', + 'friendly_name': 'Envoy 1234 Load CT power l3', 'state_class': , 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_current_power_production', + 'entity_id': 'sensor.envoy_1234_load_ct_power_l3', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '1.234', + 'state': '0.135', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_current_power_production_l1-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_meter_status_flags_active_backfeed_ct-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, - 'capabilities': dict({ - 'state_class': , - }), + 'capabilities': None, 'config_entry_id': , 'config_subentry_id': , 'device_class': None, 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_current_power_production_l1', + 'entity_category': , + 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_backfeed_ct', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -24692,59 +25042,48 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Current power production l1', + 'object_id_base': 'Meter status flags active backfeed CT', 'options': dict({ - 'sensor': dict({ - 'suggested_display_precision': 3, - }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': , - }), }), - 'original_device_class': , + 'original_device_class': None, 'original_icon': None, - 'original_name': 'Current power production l1', + 'original_name': 'Meter status flags active backfeed CT', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'current_power_production_phase', - 'unique_id': '1234_production_l1', - 'unit_of_measurement': , + 'translation_key': 'backfeed_ct_status_flags', + 'unique_id': '1234_backfeed_ct_status_flags', + 'unit_of_measurement': None, }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_current_power_production_l1-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_meter_status_flags_active_backfeed_ct-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'power', - 'friendly_name': 'Envoy 1234 Current power production l1', - 'state_class': , - 'unit_of_measurement': , + 'friendly_name': 'Envoy 1234 Meter status flags active backfeed CT', }), 'context': , - 'entity_id': 'sensor.envoy_1234_current_power_production_l1', + 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_backfeed_ct', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '1.234', + 'state': '0', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_current_power_production_l2-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_meter_status_flags_active_backfeed_ct_l1-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, - 'capabilities': dict({ - 'state_class': , - }), + 'capabilities': None, 'config_entry_id': , 'config_subentry_id': , 'device_class': None, 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_current_power_production_l2', + 'entity_category': , + 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_backfeed_ct_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -24752,59 +25091,48 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Current power production l2', + 'object_id_base': 'Meter status flags active backfeed CT l1', 'options': dict({ - 'sensor': dict({ - 'suggested_display_precision': 3, - }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': , - }), }), - 'original_device_class': , + 'original_device_class': None, 'original_icon': None, - 'original_name': 'Current power production l2', + 'original_name': 'Meter status flags active backfeed CT l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'current_power_production_phase', - 'unique_id': '1234_production_l2', - 'unit_of_measurement': , + 'translation_key': 'backfeed_ct_status_flags_phase', + 'unique_id': '1234_backfeed_ct_status_flags_l1', + 'unit_of_measurement': None, }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_current_power_production_l2-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_meter_status_flags_active_backfeed_ct_l1-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'power', - 'friendly_name': 'Envoy 1234 Current power production l2', - 'state_class': , - 'unit_of_measurement': , + 'friendly_name': 'Envoy 1234 Meter status flags active backfeed CT l1', }), 'context': , - 'entity_id': 'sensor.envoy_1234_current_power_production_l2', + 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_backfeed_ct_l1', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '2.234', + 'state': '0', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_current_power_production_l3-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_meter_status_flags_active_backfeed_ct_l2-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, - 'capabilities': dict({ - 'state_class': , - }), + 'capabilities': None, 'config_entry_id': , 'config_subentry_id': , 'device_class': None, 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_current_power_production_l3', + 'entity_category': , + 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_backfeed_ct_l2', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -24812,44 +25140,35 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Current power production l3', + 'object_id_base': 'Meter status flags active backfeed CT l2', 'options': dict({ - 'sensor': dict({ - 'suggested_display_precision': 3, - }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': , - }), }), - 'original_device_class': , + 'original_device_class': None, 'original_icon': None, - 'original_name': 'Current power production l3', + 'original_name': 'Meter status flags active backfeed CT l2', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'current_power_production_phase', - 'unique_id': '1234_production_l3', - 'unit_of_measurement': , + 'translation_key': 'backfeed_ct_status_flags_phase', + 'unique_id': '1234_backfeed_ct_status_flags_l2', + 'unit_of_measurement': None, }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_current_power_production_l3-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_meter_status_flags_active_backfeed_ct_l2-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'power', - 'friendly_name': 'Envoy 1234 Current power production l3', - 'state_class': , - 'unit_of_measurement': , + 'friendly_name': 'Envoy 1234 Meter status flags active backfeed CT l2', }), 'context': , - 'entity_id': 'sensor.envoy_1234_current_power_production_l3', + 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_backfeed_ct_l2', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '3.234', + 'state': '0', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_energy_consumption_last_seven_days-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_meter_status_flags_active_backfeed_ct_l3-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -24861,8 +25180,8 @@ 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_energy_consumption_last_seven_days', + 'entity_category': , + 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_backfeed_ct_l3', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -24870,43 +25189,35 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Energy consumption last seven days', + 'object_id_base': 'Meter status flags active backfeed CT l3', 'options': dict({ - 'sensor': dict({ - 'suggested_display_precision': 1, - }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': , - }), }), - 'original_device_class': , + 'original_device_class': None, 'original_icon': None, - 'original_name': 'Energy consumption last seven days', + 'original_name': 'Meter status flags active backfeed CT l3', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'seven_days_consumption', - 'unique_id': '1234_seven_days_consumption', - 'unit_of_measurement': , + 'translation_key': 'backfeed_ct_status_flags_phase', + 'unique_id': '1234_backfeed_ct_status_flags_l3', + 'unit_of_measurement': None, }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_energy_consumption_last_seven_days-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_meter_status_flags_active_backfeed_ct_l3-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'energy', - 'friendly_name': 'Envoy 1234 Energy consumption last seven days', - 'unit_of_measurement': , + 'friendly_name': 'Envoy 1234 Meter status flags active backfeed CT l3', }), 'context': , - 'entity_id': 'sensor.envoy_1234_energy_consumption_last_seven_days', + 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_backfeed_ct_l3', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '1.234', + 'state': '0', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_energy_consumption_last_seven_days_l1-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_meter_status_flags_active_evse_ct-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -24918,8 +25229,8 @@ 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_energy_consumption_last_seven_days_l1', + 'entity_category': , + 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_evse_ct', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -24927,43 +25238,35 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Energy consumption last seven days l1', + 'object_id_base': 'Meter status flags active EVSE CT', 'options': dict({ - 'sensor': dict({ - 'suggested_display_precision': 1, - }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': , - }), }), - 'original_device_class': , + 'original_device_class': None, 'original_icon': None, - 'original_name': 'Energy consumption last seven days l1', + 'original_name': 'Meter status flags active EVSE CT', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'seven_days_consumption_phase', - 'unique_id': '1234_seven_days_consumption_l1', - 'unit_of_measurement': , + 'translation_key': 'evse_ct_status_flags', + 'unique_id': '1234_evse_ct_status_flags', + 'unit_of_measurement': None, }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_energy_consumption_last_seven_days_l1-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_meter_status_flags_active_evse_ct-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'energy', - 'friendly_name': 'Envoy 1234 Energy consumption last seven days l1', - 'unit_of_measurement': , + 'friendly_name': 'Envoy 1234 Meter status flags active EVSE CT', }), 'context': , - 'entity_id': 'sensor.envoy_1234_energy_consumption_last_seven_days_l1', + 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_evse_ct', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '1.321', + 'state': '0', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_energy_consumption_last_seven_days_l2-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_meter_status_flags_active_evse_ct_l1-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -24975,8 +25278,8 @@ 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_energy_consumption_last_seven_days_l2', + 'entity_category': , + 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_evse_ct_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -24984,43 +25287,35 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Energy consumption last seven days l2', + 'object_id_base': 'Meter status flags active EVSE CT l1', 'options': dict({ - 'sensor': dict({ - 'suggested_display_precision': 1, - }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': , - }), }), - 'original_device_class': , + 'original_device_class': None, 'original_icon': None, - 'original_name': 'Energy consumption last seven days l2', + 'original_name': 'Meter status flags active EVSE CT l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'seven_days_consumption_phase', - 'unique_id': '1234_seven_days_consumption_l2', - 'unit_of_measurement': , + 'translation_key': 'evse_ct_status_flags_phase', + 'unique_id': '1234_evse_ct_status_flags_l1', + 'unit_of_measurement': None, }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_energy_consumption_last_seven_days_l2-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_meter_status_flags_active_evse_ct_l1-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'energy', - 'friendly_name': 'Envoy 1234 Energy consumption last seven days l2', - 'unit_of_measurement': , + 'friendly_name': 'Envoy 1234 Meter status flags active EVSE CT l1', }), 'context': , - 'entity_id': 'sensor.envoy_1234_energy_consumption_last_seven_days_l2', + 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_evse_ct_l1', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '2.321', + 'state': '0', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_energy_consumption_last_seven_days_l3-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_meter_status_flags_active_evse_ct_l2-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -25032,8 +25327,8 @@ 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_energy_consumption_last_seven_days_l3', + 'entity_category': , + 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_evse_ct_l2', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -25041,58 +25336,48 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Energy consumption last seven days l3', + 'object_id_base': 'Meter status flags active EVSE CT l2', 'options': dict({ - 'sensor': dict({ - 'suggested_display_precision': 1, - }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': , - }), }), - 'original_device_class': , + 'original_device_class': None, 'original_icon': None, - 'original_name': 'Energy consumption last seven days l3', + 'original_name': 'Meter status flags active EVSE CT l2', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'seven_days_consumption_phase', - 'unique_id': '1234_seven_days_consumption_l3', - 'unit_of_measurement': , + 'translation_key': 'evse_ct_status_flags_phase', + 'unique_id': '1234_evse_ct_status_flags_l2', + 'unit_of_measurement': None, }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_energy_consumption_last_seven_days_l3-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_meter_status_flags_active_evse_ct_l2-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'energy', - 'friendly_name': 'Envoy 1234 Energy consumption last seven days l3', - 'unit_of_measurement': , + 'friendly_name': 'Envoy 1234 Meter status flags active EVSE CT l2', }), 'context': , - 'entity_id': 'sensor.envoy_1234_energy_consumption_last_seven_days_l3', + 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_evse_ct_l2', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '3.321', + 'state': '0', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_energy_consumption_today-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_meter_status_flags_active_evse_ct_l3-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, - 'capabilities': dict({ - 'state_class': , - }), + 'capabilities': None, 'config_entry_id': , 'config_subentry_id': , 'device_class': None, 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_energy_consumption_today', + 'entity_category': , + 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_evse_ct_l3', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -25100,59 +25385,48 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Energy consumption today', + 'object_id_base': 'Meter status flags active EVSE CT l3', 'options': dict({ - 'sensor': dict({ - 'suggested_display_precision': 2, - }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': , - }), }), - 'original_device_class': , + 'original_device_class': None, 'original_icon': None, - 'original_name': 'Energy consumption today', + 'original_name': 'Meter status flags active EVSE CT l3', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'daily_consumption', - 'unique_id': '1234_daily_consumption', - 'unit_of_measurement': , + 'translation_key': 'evse_ct_status_flags_phase', + 'unique_id': '1234_evse_ct_status_flags_l3', + 'unit_of_measurement': None, }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_energy_consumption_today-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_meter_status_flags_active_evse_ct_l3-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'energy', - 'friendly_name': 'Envoy 1234 Energy consumption today', - 'state_class': , - 'unit_of_measurement': , + 'friendly_name': 'Envoy 1234 Meter status flags active EVSE CT l3', }), 'context': , - 'entity_id': 'sensor.envoy_1234_energy_consumption_today', + 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_evse_ct_l3', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '1.234', + 'state': '0', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_energy_consumption_today_l1-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_meter_status_flags_active_load_ct-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, - 'capabilities': dict({ - 'state_class': , - }), + 'capabilities': None, 'config_entry_id': , 'config_subentry_id': , 'device_class': None, 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_energy_consumption_today_l1', + 'entity_category': , + 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_load_ct', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -25160,59 +25434,48 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Energy consumption today l1', + 'object_id_base': 'Meter status flags active load CT', 'options': dict({ - 'sensor': dict({ - 'suggested_display_precision': 2, - }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': , - }), }), - 'original_device_class': , + 'original_device_class': None, 'original_icon': None, - 'original_name': 'Energy consumption today l1', + 'original_name': 'Meter status flags active load CT', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'daily_consumption_phase', - 'unique_id': '1234_daily_consumption_l1', - 'unit_of_measurement': , + 'translation_key': 'load_ct_status_flags', + 'unique_id': '1234_load_ct_status_flags', + 'unit_of_measurement': None, }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_energy_consumption_today_l1-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_meter_status_flags_active_load_ct-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'energy', - 'friendly_name': 'Envoy 1234 Energy consumption today l1', - 'state_class': , - 'unit_of_measurement': , + 'friendly_name': 'Envoy 1234 Meter status flags active load CT', }), 'context': , - 'entity_id': 'sensor.envoy_1234_energy_consumption_today_l1', + 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_load_ct', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '1.323', + 'state': '0', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_energy_consumption_today_l2-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_meter_status_flags_active_load_ct_l1-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, - 'capabilities': dict({ - 'state_class': , - }), + 'capabilities': None, 'config_entry_id': , 'config_subentry_id': , 'device_class': None, 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_energy_consumption_today_l2', + 'entity_category': , + 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_load_ct_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -25220,59 +25483,48 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Energy consumption today l2', + 'object_id_base': 'Meter status flags active load CT l1', 'options': dict({ - 'sensor': dict({ - 'suggested_display_precision': 2, - }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': , - }), }), - 'original_device_class': , + 'original_device_class': None, 'original_icon': None, - 'original_name': 'Energy consumption today l2', + 'original_name': 'Meter status flags active load CT l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'daily_consumption_phase', - 'unique_id': '1234_daily_consumption_l2', - 'unit_of_measurement': , + 'translation_key': 'load_ct_status_flags_phase', + 'unique_id': '1234_load_ct_status_flags_l1', + 'unit_of_measurement': None, }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_energy_consumption_today_l2-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_meter_status_flags_active_load_ct_l1-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'energy', - 'friendly_name': 'Envoy 1234 Energy consumption today l2', - 'state_class': , - 'unit_of_measurement': , + 'friendly_name': 'Envoy 1234 Meter status flags active load CT l1', }), 'context': , - 'entity_id': 'sensor.envoy_1234_energy_consumption_today_l2', + 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_load_ct_l1', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '2.323', + 'state': '0', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_energy_consumption_today_l3-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_meter_status_flags_active_load_ct_l2-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, - 'capabilities': dict({ - 'state_class': , - }), + 'capabilities': None, 'config_entry_id': , 'config_subentry_id': , 'device_class': None, 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_energy_consumption_today_l3', + 'entity_category': , + 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_load_ct_l2', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -25280,44 +25532,35 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Energy consumption today l3', + 'object_id_base': 'Meter status flags active load CT l2', 'options': dict({ - 'sensor': dict({ - 'suggested_display_precision': 2, - }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': , - }), }), - 'original_device_class': , + 'original_device_class': None, 'original_icon': None, - 'original_name': 'Energy consumption today l3', + 'original_name': 'Meter status flags active load CT l2', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'daily_consumption_phase', - 'unique_id': '1234_daily_consumption_l3', - 'unit_of_measurement': , + 'translation_key': 'load_ct_status_flags_phase', + 'unique_id': '1234_load_ct_status_flags_l2', + 'unit_of_measurement': None, }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_energy_consumption_today_l3-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_meter_status_flags_active_load_ct_l2-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'energy', - 'friendly_name': 'Envoy 1234 Energy consumption today l3', - 'state_class': , - 'unit_of_measurement': , + 'friendly_name': 'Envoy 1234 Meter status flags active load CT l2', }), 'context': , - 'entity_id': 'sensor.envoy_1234_energy_consumption_today_l3', + 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_load_ct_l2', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '3.323', + 'state': '0', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_energy_production_last_seven_days-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_meter_status_flags_active_load_ct_l3-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -25329,8 +25572,8 @@ 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_energy_production_last_seven_days', + 'entity_category': , + 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_load_ct_l3', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -25338,43 +25581,35 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Energy production last seven days', + 'object_id_base': 'Meter status flags active load CT l3', 'options': dict({ - 'sensor': dict({ - 'suggested_display_precision': 1, - }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': , - }), }), - 'original_device_class': , + 'original_device_class': None, 'original_icon': None, - 'original_name': 'Energy production last seven days', + 'original_name': 'Meter status flags active load CT l3', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'seven_days_production', - 'unique_id': '1234_seven_days_production', - 'unit_of_measurement': , + 'translation_key': 'load_ct_status_flags_phase', + 'unique_id': '1234_load_ct_status_flags_l3', + 'unit_of_measurement': None, }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_energy_production_last_seven_days-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_meter_status_flags_active_load_ct_l3-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'energy', - 'friendly_name': 'Envoy 1234 Energy production last seven days', - 'unit_of_measurement': , + 'friendly_name': 'Envoy 1234 Meter status flags active load CT l3', }), 'context': , - 'entity_id': 'sensor.envoy_1234_energy_production_last_seven_days', + 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_load_ct_l3', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '1.234', + 'state': '0', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_energy_production_last_seven_days_l1-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_meter_status_flags_active_net_consumption_ct-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -25386,8 +25621,8 @@ 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_energy_production_last_seven_days_l1', + 'entity_category': , + 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_net_consumption_ct', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -25395,43 +25630,35 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Energy production last seven days l1', + 'object_id_base': 'Meter status flags active net consumption CT', 'options': dict({ - 'sensor': dict({ - 'suggested_display_precision': 1, - }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': , - }), }), - 'original_device_class': , + 'original_device_class': None, 'original_icon': None, - 'original_name': 'Energy production last seven days l1', + 'original_name': 'Meter status flags active net consumption CT', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'seven_days_production_phase', - 'unique_id': '1234_seven_days_production_l1', - 'unit_of_measurement': , + 'translation_key': 'net_ct_status_flags', + 'unique_id': '1234_net_consumption_ct_status_flags', + 'unit_of_measurement': None, }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_energy_production_last_seven_days_l1-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_meter_status_flags_active_net_consumption_ct-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'energy', - 'friendly_name': 'Envoy 1234 Energy production last seven days l1', - 'unit_of_measurement': , + 'friendly_name': 'Envoy 1234 Meter status flags active net consumption CT', }), 'context': , - 'entity_id': 'sensor.envoy_1234_energy_production_last_seven_days_l1', + 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_net_consumption_ct', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '1.231', + 'state': '0', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_energy_production_last_seven_days_l2-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_meter_status_flags_active_net_consumption_ct_l1-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -25443,8 +25670,8 @@ 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_energy_production_last_seven_days_l2', + 'entity_category': , + 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_net_consumption_ct_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -25452,43 +25679,35 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Energy production last seven days l2', + 'object_id_base': 'Meter status flags active net consumption CT l1', 'options': dict({ - 'sensor': dict({ - 'suggested_display_precision': 1, - }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': , - }), }), - 'original_device_class': , + 'original_device_class': None, 'original_icon': None, - 'original_name': 'Energy production last seven days l2', + 'original_name': 'Meter status flags active net consumption CT l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'seven_days_production_phase', - 'unique_id': '1234_seven_days_production_l2', - 'unit_of_measurement': , + 'translation_key': 'net_ct_status_flags_phase', + 'unique_id': '1234_net_consumption_ct_status_flags_l1', + 'unit_of_measurement': None, }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_energy_production_last_seven_days_l2-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_meter_status_flags_active_net_consumption_ct_l1-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'energy', - 'friendly_name': 'Envoy 1234 Energy production last seven days l2', - 'unit_of_measurement': , + 'friendly_name': 'Envoy 1234 Meter status flags active net consumption CT l1', }), 'context': , - 'entity_id': 'sensor.envoy_1234_energy_production_last_seven_days_l2', + 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_net_consumption_ct_l1', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '2.231', + 'state': '0', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_energy_production_last_seven_days_l3-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_meter_status_flags_active_net_consumption_ct_l2-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -25500,8 +25719,8 @@ 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_energy_production_last_seven_days_l3', + 'entity_category': , + 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_net_consumption_ct_l2', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -25509,58 +25728,48 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Energy production last seven days l3', + 'object_id_base': 'Meter status flags active net consumption CT l2', 'options': dict({ - 'sensor': dict({ - 'suggested_display_precision': 1, - }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': , - }), }), - 'original_device_class': , + 'original_device_class': None, 'original_icon': None, - 'original_name': 'Energy production last seven days l3', + 'original_name': 'Meter status flags active net consumption CT l2', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'seven_days_production_phase', - 'unique_id': '1234_seven_days_production_l3', - 'unit_of_measurement': , + 'translation_key': 'net_ct_status_flags_phase', + 'unique_id': '1234_net_consumption_ct_status_flags_l2', + 'unit_of_measurement': None, }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_energy_production_last_seven_days_l3-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_meter_status_flags_active_net_consumption_ct_l2-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'energy', - 'friendly_name': 'Envoy 1234 Energy production last seven days l3', - 'unit_of_measurement': , + 'friendly_name': 'Envoy 1234 Meter status flags active net consumption CT l2', }), 'context': , - 'entity_id': 'sensor.envoy_1234_energy_production_last_seven_days_l3', + 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_net_consumption_ct_l2', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '3.231', + 'state': '0', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_energy_production_today-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_meter_status_flags_active_net_consumption_ct_l3-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, - 'capabilities': dict({ - 'state_class': , - }), + 'capabilities': None, 'config_entry_id': , 'config_subentry_id': , 'device_class': None, 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_energy_production_today', + 'entity_category': , + 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_net_consumption_ct_l3', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -25568,59 +25777,48 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Energy production today', + 'object_id_base': 'Meter status flags active net consumption CT l3', 'options': dict({ - 'sensor': dict({ - 'suggested_display_precision': 2, - }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': , - }), }), - 'original_device_class': , + 'original_device_class': None, 'original_icon': None, - 'original_name': 'Energy production today', + 'original_name': 'Meter status flags active net consumption CT l3', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'daily_production', - 'unique_id': '1234_daily_production', - 'unit_of_measurement': , + 'translation_key': 'net_ct_status_flags_phase', + 'unique_id': '1234_net_consumption_ct_status_flags_l3', + 'unit_of_measurement': None, }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_energy_production_today-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_meter_status_flags_active_net_consumption_ct_l3-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'energy', - 'friendly_name': 'Envoy 1234 Energy production today', - 'state_class': , - 'unit_of_measurement': , + 'friendly_name': 'Envoy 1234 Meter status flags active net consumption CT l3', }), 'context': , - 'entity_id': 'sensor.envoy_1234_energy_production_today', + 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_net_consumption_ct_l3', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '1.234', + 'state': '0', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_energy_production_today_l1-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_meter_status_flags_active_production_ct-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, - 'capabilities': dict({ - 'state_class': , - }), + 'capabilities': None, 'config_entry_id': , 'config_subentry_id': , 'device_class': None, 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_energy_production_today_l1', + 'entity_category': , + 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_production_ct', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -25628,59 +25826,48 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Energy production today l1', + 'object_id_base': 'Meter status flags active production CT', 'options': dict({ - 'sensor': dict({ - 'suggested_display_precision': 2, - }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': , - }), }), - 'original_device_class': , + 'original_device_class': None, 'original_icon': None, - 'original_name': 'Energy production today l1', + 'original_name': 'Meter status flags active production CT', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'daily_production_phase', - 'unique_id': '1234_daily_production_l1', - 'unit_of_measurement': , + 'translation_key': 'production_ct_status_flags', + 'unique_id': '1234_production_ct_status_flags', + 'unit_of_measurement': None, }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_energy_production_today_l1-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_meter_status_flags_active_production_ct-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'energy', - 'friendly_name': 'Envoy 1234 Energy production today l1', - 'state_class': , - 'unit_of_measurement': , + 'friendly_name': 'Envoy 1234 Meter status flags active production CT', }), 'context': , - 'entity_id': 'sensor.envoy_1234_energy_production_today_l1', + 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_production_ct', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '1.233', + 'state': '2', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_energy_production_today_l2-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_meter_status_flags_active_production_ct_l1-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, - 'capabilities': dict({ - 'state_class': , - }), + 'capabilities': None, 'config_entry_id': , 'config_subentry_id': , 'device_class': None, 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_energy_production_today_l2', + 'entity_category': , + 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_production_ct_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -25688,59 +25875,48 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Energy production today l2', + 'object_id_base': 'Meter status flags active production CT l1', 'options': dict({ - 'sensor': dict({ - 'suggested_display_precision': 2, - }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': , - }), }), - 'original_device_class': , + 'original_device_class': None, 'original_icon': None, - 'original_name': 'Energy production today l2', + 'original_name': 'Meter status flags active production CT l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'daily_production_phase', - 'unique_id': '1234_daily_production_l2', - 'unit_of_measurement': , + 'translation_key': 'production_ct_status_flags_phase', + 'unique_id': '1234_production_ct_status_flags_l1', + 'unit_of_measurement': None, }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_energy_production_today_l2-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_meter_status_flags_active_production_ct_l1-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'energy', - 'friendly_name': 'Envoy 1234 Energy production today l2', - 'state_class': , - 'unit_of_measurement': , + 'friendly_name': 'Envoy 1234 Meter status flags active production CT l1', }), 'context': , - 'entity_id': 'sensor.envoy_1234_energy_production_today_l2', + 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_production_ct_l1', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '2.233', + 'state': '1', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_energy_production_today_l3-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_meter_status_flags_active_production_ct_l2-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, - 'capabilities': dict({ - 'state_class': , - }), + 'capabilities': None, 'config_entry_id': , 'config_subentry_id': , 'device_class': None, 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_energy_production_today_l3', + 'entity_category': , + 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_production_ct_l2', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -25748,59 +25924,48 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Energy production today l3', + 'object_id_base': 'Meter status flags active production CT l2', 'options': dict({ - 'sensor': dict({ - 'suggested_display_precision': 2, - }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': , - }), }), - 'original_device_class': , + 'original_device_class': None, 'original_icon': None, - 'original_name': 'Energy production today l3', + 'original_name': 'Meter status flags active production CT l2', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'daily_production_phase', - 'unique_id': '1234_daily_production_l3', - 'unit_of_measurement': , + 'translation_key': 'production_ct_status_flags_phase', + 'unique_id': '1234_production_ct_status_flags_l2', + 'unit_of_measurement': None, }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_energy_production_today_l3-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_meter_status_flags_active_production_ct_l2-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'energy', - 'friendly_name': 'Envoy 1234 Energy production today l3', - 'state_class': , - 'unit_of_measurement': , + 'friendly_name': 'Envoy 1234 Meter status flags active production CT l2', }), 'context': , - 'entity_id': 'sensor.envoy_1234_energy_production_today_l3', + 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_production_ct_l2', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '3.233', + 'state': '1', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_frequency_net_consumption_ct-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_meter_status_flags_active_production_ct_l3-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, - 'capabilities': dict({ - 'state_class': , - }), + 'capabilities': None, 'config_entry_id': , 'config_subentry_id': , 'device_class': None, 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_frequency_net_consumption_ct', + 'entity_category': , + 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_production_ct_l3', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -25808,56 +25973,48 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Frequency net consumption CT', + 'object_id_base': 'Meter status flags active production CT l3', 'options': dict({ - 'sensor': dict({ - 'suggested_display_precision': 1, - }), }), - 'original_device_class': , + 'original_device_class': None, 'original_icon': None, - 'original_name': 'Frequency net consumption CT', + 'original_name': 'Meter status flags active production CT l3', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_ct_frequency', - 'unique_id': '1234_frequency', - 'unit_of_measurement': , + 'translation_key': 'production_ct_status_flags_phase', + 'unique_id': '1234_production_ct_status_flags_l3', + 'unit_of_measurement': None, }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_frequency_net_consumption_ct-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_meter_status_flags_active_production_ct_l3-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'frequency', - 'friendly_name': 'Envoy 1234 Frequency net consumption CT', - 'state_class': , - 'unit_of_measurement': , + 'friendly_name': 'Envoy 1234 Meter status flags active production CT l3', }), 'context': , - 'entity_id': 'sensor.envoy_1234_frequency_net_consumption_ct', + 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_production_ct_l3', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '50.2', + 'state': '0', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_frequency_net_consumption_ct_l1-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_meter_status_flags_active_pv3p_ct-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, - 'capabilities': dict({ - 'state_class': , - }), + 'capabilities': None, 'config_entry_id': , 'config_subentry_id': , 'device_class': None, 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_frequency_net_consumption_ct_l1', + 'entity_category': , + 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_pv3p_ct', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -25865,56 +26022,48 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Frequency net consumption CT l1', + 'object_id_base': 'Meter status flags active PV3P CT', 'options': dict({ - 'sensor': dict({ - 'suggested_display_precision': 1, - }), }), - 'original_device_class': , + 'original_device_class': None, 'original_icon': None, - 'original_name': 'Frequency net consumption CT l1', + 'original_name': 'Meter status flags active PV3P CT', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_ct_frequency_phase', - 'unique_id': '1234_frequency_l1', - 'unit_of_measurement': , + 'translation_key': 'pv3p_ct_status_flags', + 'unique_id': '1234_pv3p_ct_status_flags', + 'unit_of_measurement': None, }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_frequency_net_consumption_ct_l1-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_meter_status_flags_active_pv3p_ct-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'frequency', - 'friendly_name': 'Envoy 1234 Frequency net consumption CT l1', - 'state_class': , - 'unit_of_measurement': , + 'friendly_name': 'Envoy 1234 Meter status flags active PV3P CT', }), 'context': , - 'entity_id': 'sensor.envoy_1234_frequency_net_consumption_ct_l1', + 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_pv3p_ct', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '50.2', + 'state': '0', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_frequency_net_consumption_ct_l2-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_meter_status_flags_active_pv3p_ct_l1-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, - 'capabilities': dict({ - 'state_class': , - }), + 'capabilities': None, 'config_entry_id': , 'config_subentry_id': , 'device_class': None, 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_frequency_net_consumption_ct_l2', + 'entity_category': , + 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_pv3p_ct_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -25922,56 +26071,48 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Frequency net consumption CT l2', + 'object_id_base': 'Meter status flags active PV3P CT l1', 'options': dict({ - 'sensor': dict({ - 'suggested_display_precision': 1, - }), }), - 'original_device_class': , + 'original_device_class': None, 'original_icon': None, - 'original_name': 'Frequency net consumption CT l2', + 'original_name': 'Meter status flags active PV3P CT l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_ct_frequency_phase', - 'unique_id': '1234_frequency_l2', - 'unit_of_measurement': , + 'translation_key': 'pv3p_ct_status_flags_phase', + 'unique_id': '1234_pv3p_ct_status_flags_l1', + 'unit_of_measurement': None, }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_frequency_net_consumption_ct_l2-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_meter_status_flags_active_pv3p_ct_l1-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'frequency', - 'friendly_name': 'Envoy 1234 Frequency net consumption CT l2', - 'state_class': , - 'unit_of_measurement': , + 'friendly_name': 'Envoy 1234 Meter status flags active PV3P CT l1', }), 'context': , - 'entity_id': 'sensor.envoy_1234_frequency_net_consumption_ct_l2', + 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_pv3p_ct_l1', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '50.2', + 'state': '0', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_frequency_net_consumption_ct_l3-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_meter_status_flags_active_pv3p_ct_l2-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, - 'capabilities': dict({ - 'state_class': , - }), + 'capabilities': None, 'config_entry_id': , 'config_subentry_id': , 'device_class': None, 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_frequency_net_consumption_ct_l3', + 'entity_category': , + 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_pv3p_ct_l2', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -25979,56 +26120,48 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Frequency net consumption CT l3', + 'object_id_base': 'Meter status flags active PV3P CT l2', 'options': dict({ - 'sensor': dict({ - 'suggested_display_precision': 1, - }), }), - 'original_device_class': , + 'original_device_class': None, 'original_icon': None, - 'original_name': 'Frequency net consumption CT l3', + 'original_name': 'Meter status flags active PV3P CT l2', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_ct_frequency_phase', - 'unique_id': '1234_frequency_l3', - 'unit_of_measurement': , + 'translation_key': 'pv3p_ct_status_flags_phase', + 'unique_id': '1234_pv3p_ct_status_flags_l2', + 'unit_of_measurement': None, }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_frequency_net_consumption_ct_l3-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_meter_status_flags_active_pv3p_ct_l2-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'frequency', - 'friendly_name': 'Envoy 1234 Frequency net consumption CT l3', - 'state_class': , - 'unit_of_measurement': , + 'friendly_name': 'Envoy 1234 Meter status flags active PV3P CT l2', }), 'context': , - 'entity_id': 'sensor.envoy_1234_frequency_net_consumption_ct_l3', + 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_pv3p_ct_l2', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '50.2', + 'state': '0', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_frequency_production_ct-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_meter_status_flags_active_pv3p_ct_l3-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, - 'capabilities': dict({ - 'state_class': , - }), + 'capabilities': None, 'config_entry_id': , 'config_subentry_id': , 'device_class': None, 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_frequency_production_ct', + 'entity_category': , + 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_pv3p_ct_l3', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -26036,56 +26169,48 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Frequency production CT', + 'object_id_base': 'Meter status flags active PV3P CT l3', 'options': dict({ - 'sensor': dict({ - 'suggested_display_precision': 1, - }), }), - 'original_device_class': , + 'original_device_class': None, 'original_icon': None, - 'original_name': 'Frequency production CT', + 'original_name': 'Meter status flags active PV3P CT l3', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'production_ct_frequency', - 'unique_id': '1234_production_ct_frequency', - 'unit_of_measurement': , + 'translation_key': 'pv3p_ct_status_flags_phase', + 'unique_id': '1234_pv3p_ct_status_flags_l3', + 'unit_of_measurement': None, }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_frequency_production_ct-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_meter_status_flags_active_pv3p_ct_l3-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'frequency', - 'friendly_name': 'Envoy 1234 Frequency production CT', - 'state_class': , - 'unit_of_measurement': , + 'friendly_name': 'Envoy 1234 Meter status flags active PV3P CT l3', }), 'context': , - 'entity_id': 'sensor.envoy_1234_frequency_production_ct', + 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_pv3p_ct_l3', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '50.1', + 'state': '0', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_frequency_production_ct_l1-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_meter_status_flags_active_storage_ct-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, - 'capabilities': dict({ - 'state_class': , - }), + 'capabilities': None, 'config_entry_id': , 'config_subentry_id': , 'device_class': None, 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_frequency_production_ct_l1', + 'entity_category': , + 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_storage_ct', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -26093,47 +26218,192 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Frequency production CT l1', + 'object_id_base': 'Meter status flags active storage CT', 'options': dict({ - 'sensor': dict({ - 'suggested_display_precision': 1, - }), }), - 'original_device_class': , + 'original_device_class': None, 'original_icon': None, - 'original_name': 'Frequency production CT l1', + 'original_name': 'Meter status flags active storage CT', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'production_ct_frequency_phase', - 'unique_id': '1234_production_ct_frequency_l1', - 'unit_of_measurement': , + 'translation_key': 'storage_ct_status_flags', + 'unique_id': '1234_storage_ct_status_flags', + 'unit_of_measurement': None, }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_frequency_production_ct_l1-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_meter_status_flags_active_storage_ct-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'frequency', - 'friendly_name': 'Envoy 1234 Frequency production CT l1', - 'state_class': , - 'unit_of_measurement': , + 'friendly_name': 'Envoy 1234 Meter status flags active storage CT', }), 'context': , - 'entity_id': 'sensor.envoy_1234_frequency_production_ct_l1', + 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_storage_ct', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '50.1', + 'state': '0', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_frequency_production_ct_l2-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_meter_status_flags_active_storage_ct_l1-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': None, + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': , + 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_storage_ct_l1', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Meter status flags active storage CT l1', + 'options': dict({ + }), + 'original_device_class': None, + 'original_icon': None, + 'original_name': 'Meter status flags active storage CT l1', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'storage_ct_status_flags_phase', + 'unique_id': '1234_storage_ct_status_flags_l1', + 'unit_of_measurement': None, + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_meter_status_flags_active_storage_ct_l1-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'friendly_name': 'Envoy 1234 Meter status flags active storage CT l1', + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_storage_ct_l1', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '0', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_meter_status_flags_active_storage_ct_l2-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': None, + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': , + 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_storage_ct_l2', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Meter status flags active storage CT l2', + 'options': dict({ + }), + 'original_device_class': None, + 'original_icon': None, + 'original_name': 'Meter status flags active storage CT l2', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'storage_ct_status_flags_phase', + 'unique_id': '1234_storage_ct_status_flags_l2', + 'unit_of_measurement': None, + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_meter_status_flags_active_storage_ct_l2-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'friendly_name': 'Envoy 1234 Meter status flags active storage CT l2', + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_storage_ct_l2', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '0', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_meter_status_flags_active_storage_ct_l3-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': None, + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': , + 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_storage_ct_l3', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Meter status flags active storage CT l3', + 'options': dict({ + }), + 'original_device_class': None, + 'original_icon': None, + 'original_name': 'Meter status flags active storage CT l3', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'storage_ct_status_flags_phase', + 'unique_id': '1234_storage_ct_status_flags_l3', + 'unit_of_measurement': None, + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_meter_status_flags_active_storage_ct_l3-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'friendly_name': 'Envoy 1234 Meter status flags active storage CT l3', + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_storage_ct_l3', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '0', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_metering_status_backfeed_ct-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'options': list([ + , + , + , + ]), }), 'config_entry_id': , 'config_subentry_id': , @@ -26141,8 +26411,8 @@ 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_frequency_production_ct_l2', + 'entity_category': , + 'entity_id': 'sensor.envoy_1234_metering_status_backfeed_ct', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -26150,47 +26420,51 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Frequency production CT l2', + 'object_id_base': 'Metering status backfeed CT', 'options': dict({ - 'sensor': dict({ - 'suggested_display_precision': 1, - }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Frequency production CT l2', + 'original_name': 'Metering status backfeed CT', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'production_ct_frequency_phase', - 'unique_id': '1234_production_ct_frequency_l2', - 'unit_of_measurement': , + 'translation_key': 'backfeed_ct_metering_status', + 'unique_id': '1234_backfeed_ct_metering_status', + 'unit_of_measurement': None, }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_frequency_production_ct_l2-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_metering_status_backfeed_ct-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'frequency', - 'friendly_name': 'Envoy 1234 Frequency production CT l2', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'enum', + 'friendly_name': 'Envoy 1234 Metering status backfeed CT', + 'options': list([ + , + , + , + ]), }), 'context': , - 'entity_id': 'sensor.envoy_1234_frequency_production_ct_l2', + 'entity_id': 'sensor.envoy_1234_metering_status_backfeed_ct', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '50.1', + 'state': 'normal', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_frequency_production_ct_l3-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_metering_status_backfeed_ct_l1-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'options': list([ + , + , + , + ]), }), 'config_entry_id': , 'config_subentry_id': , @@ -26198,8 +26472,8 @@ 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_frequency_production_ct_l3', + 'entity_category': , + 'entity_id': 'sensor.envoy_1234_metering_status_backfeed_ct_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -26207,47 +26481,51 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Frequency production CT l3', + 'object_id_base': 'Metering status backfeed CT l1', 'options': dict({ - 'sensor': dict({ - 'suggested_display_precision': 1, - }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Frequency production CT l3', + 'original_name': 'Metering status backfeed CT l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'production_ct_frequency_phase', - 'unique_id': '1234_production_ct_frequency_l3', - 'unit_of_measurement': , + 'translation_key': 'backfeed_ct_metering_status_phase', + 'unique_id': '1234_backfeed_ct_metering_status_l1', + 'unit_of_measurement': None, }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_frequency_production_ct_l3-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_metering_status_backfeed_ct_l1-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'frequency', - 'friendly_name': 'Envoy 1234 Frequency production CT l3', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'enum', + 'friendly_name': 'Envoy 1234 Metering status backfeed CT l1', + 'options': list([ + , + , + , + ]), }), 'context': , - 'entity_id': 'sensor.envoy_1234_frequency_production_ct_l3', + 'entity_id': 'sensor.envoy_1234_metering_status_backfeed_ct_l1', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '50.1', + 'state': 'normal', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_lifetime_balanced_net_energy_consumption-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_metering_status_backfeed_ct_l2-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'options': list([ + , + , + , + ]), }), 'config_entry_id': , 'config_subentry_id': , @@ -26255,8 +26533,8 @@ 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_lifetime_balanced_net_energy_consumption', + 'entity_category': , + 'entity_id': 'sensor.envoy_1234_metering_status_backfeed_ct_l2', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -26264,50 +26542,51 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Lifetime balanced net energy consumption', + 'object_id_base': 'Metering status backfeed CT l2', 'options': dict({ - 'sensor': dict({ - 'suggested_display_precision': 3, - }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': , - }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Lifetime balanced net energy consumption', + 'original_name': 'Metering status backfeed CT l2', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'lifetime_balanced_net_consumption', - 'unique_id': '1234_lifetime_balanced_net_consumption', - 'unit_of_measurement': , + 'translation_key': 'backfeed_ct_metering_status_phase', + 'unique_id': '1234_backfeed_ct_metering_status_l2', + 'unit_of_measurement': None, }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_lifetime_balanced_net_energy_consumption-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_metering_status_backfeed_ct_l2-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'energy', - 'friendly_name': 'Envoy 1234 Lifetime balanced net energy consumption', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'enum', + 'friendly_name': 'Envoy 1234 Metering status backfeed CT l2', + 'options': list([ + , + , + , + ]), }), 'context': , - 'entity_id': 'sensor.envoy_1234_lifetime_balanced_net_energy_consumption', + 'entity_id': 'sensor.envoy_1234_metering_status_backfeed_ct_l2', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '4.321', + 'state': 'normal', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_lifetime_balanced_net_energy_consumption_l1-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_metering_status_backfeed_ct_l3-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'options': list([ + , + , + , + ]), }), 'config_entry_id': , 'config_subentry_id': , @@ -26315,8 +26594,8 @@ 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_lifetime_balanced_net_energy_consumption_l1', + 'entity_category': , + 'entity_id': 'sensor.envoy_1234_metering_status_backfeed_ct_l3', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -26324,50 +26603,51 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Lifetime balanced net energy consumption l1', + 'object_id_base': 'Metering status backfeed CT l3', 'options': dict({ - 'sensor': dict({ - 'suggested_display_precision': 3, - }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': , - }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Lifetime balanced net energy consumption l1', + 'original_name': 'Metering status backfeed CT l3', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'lifetime_balanced_net_consumption_phase', - 'unique_id': '1234_lifetime_balanced_net_consumption_l1', - 'unit_of_measurement': , + 'translation_key': 'backfeed_ct_metering_status_phase', + 'unique_id': '1234_backfeed_ct_metering_status_l3', + 'unit_of_measurement': None, }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_lifetime_balanced_net_energy_consumption_l1-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_metering_status_backfeed_ct_l3-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'energy', - 'friendly_name': 'Envoy 1234 Lifetime balanced net energy consumption l1', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'enum', + 'friendly_name': 'Envoy 1234 Metering status backfeed CT l3', + 'options': list([ + , + , + , + ]), }), 'context': , - 'entity_id': 'sensor.envoy_1234_lifetime_balanced_net_energy_consumption_l1', + 'entity_id': 'sensor.envoy_1234_metering_status_backfeed_ct_l3', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '1.321', + 'state': 'normal', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_lifetime_balanced_net_energy_consumption_l2-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_metering_status_evse_ct-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'options': list([ + , + , + , + ]), }), 'config_entry_id': , 'config_subentry_id': , @@ -26375,8 +26655,8 @@ 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_lifetime_balanced_net_energy_consumption_l2', + 'entity_category': , + 'entity_id': 'sensor.envoy_1234_metering_status_evse_ct', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -26384,50 +26664,51 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Lifetime balanced net energy consumption l2', + 'object_id_base': 'Metering status EVSE CT', 'options': dict({ - 'sensor': dict({ - 'suggested_display_precision': 3, - }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': , - }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Lifetime balanced net energy consumption l2', + 'original_name': 'Metering status EVSE CT', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'lifetime_balanced_net_consumption_phase', - 'unique_id': '1234_lifetime_balanced_net_consumption_l2', - 'unit_of_measurement': , + 'translation_key': 'evse_ct_metering_status', + 'unique_id': '1234_evse_ct_metering_status', + 'unit_of_measurement': None, }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_lifetime_balanced_net_energy_consumption_l2-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_metering_status_evse_ct-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'energy', - 'friendly_name': 'Envoy 1234 Lifetime balanced net energy consumption l2', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'enum', + 'friendly_name': 'Envoy 1234 Metering status EVSE CT', + 'options': list([ + , + , + , + ]), }), 'context': , - 'entity_id': 'sensor.envoy_1234_lifetime_balanced_net_energy_consumption_l2', + 'entity_id': 'sensor.envoy_1234_metering_status_evse_ct', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '2.321', + 'state': 'normal', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_lifetime_balanced_net_energy_consumption_l3-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_metering_status_evse_ct_l1-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'options': list([ + , + , + , + ]), }), 'config_entry_id': , 'config_subentry_id': , @@ -26435,8 +26716,8 @@ 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_lifetime_balanced_net_energy_consumption_l3', + 'entity_category': , + 'entity_id': 'sensor.envoy_1234_metering_status_evse_ct_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -26444,50 +26725,51 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Lifetime balanced net energy consumption l3', + 'object_id_base': 'Metering status EVSE CT l1', 'options': dict({ - 'sensor': dict({ - 'suggested_display_precision': 3, - }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': , - }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Lifetime balanced net energy consumption l3', + 'original_name': 'Metering status EVSE CT l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'lifetime_balanced_net_consumption_phase', - 'unique_id': '1234_lifetime_balanced_net_consumption_l3', - 'unit_of_measurement': , + 'translation_key': 'evse_ct_metering_status_phase', + 'unique_id': '1234_evse_ct_metering_status_l1', + 'unit_of_measurement': None, }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_lifetime_balanced_net_energy_consumption_l3-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_metering_status_evse_ct_l1-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'energy', - 'friendly_name': 'Envoy 1234 Lifetime balanced net energy consumption l3', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'enum', + 'friendly_name': 'Envoy 1234 Metering status EVSE CT l1', + 'options': list([ + , + , + , + ]), }), 'context': , - 'entity_id': 'sensor.envoy_1234_lifetime_balanced_net_energy_consumption_l3', + 'entity_id': 'sensor.envoy_1234_metering_status_evse_ct_l1', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '3.321', + 'state': 'normal', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_lifetime_energy_consumption-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_metering_status_evse_ct_l2-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'options': list([ + , + , + , + ]), }), 'config_entry_id': , 'config_subentry_id': , @@ -26495,8 +26777,8 @@ 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_lifetime_energy_consumption', + 'entity_category': , + 'entity_id': 'sensor.envoy_1234_metering_status_evse_ct_l2', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -26504,50 +26786,51 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Lifetime energy consumption', + 'object_id_base': 'Metering status EVSE CT l2', 'options': dict({ - 'sensor': dict({ - 'suggested_display_precision': 3, - }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': , - }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Lifetime energy consumption', + 'original_name': 'Metering status EVSE CT l2', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'lifetime_consumption', - 'unique_id': '1234_lifetime_consumption', - 'unit_of_measurement': , + 'translation_key': 'evse_ct_metering_status_phase', + 'unique_id': '1234_evse_ct_metering_status_l2', + 'unit_of_measurement': None, }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_lifetime_energy_consumption-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_metering_status_evse_ct_l2-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'energy', - 'friendly_name': 'Envoy 1234 Lifetime energy consumption', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'enum', + 'friendly_name': 'Envoy 1234 Metering status EVSE CT l2', + 'options': list([ + , + , + , + ]), }), 'context': , - 'entity_id': 'sensor.envoy_1234_lifetime_energy_consumption', + 'entity_id': 'sensor.envoy_1234_metering_status_evse_ct_l2', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.001234', + 'state': 'normal', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_lifetime_energy_consumption_l1-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_metering_status_evse_ct_l3-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'options': list([ + , + , + , + ]), }), 'config_entry_id': , 'config_subentry_id': , @@ -26555,8 +26838,8 @@ 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_lifetime_energy_consumption_l1', + 'entity_category': , + 'entity_id': 'sensor.envoy_1234_metering_status_evse_ct_l3', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -26564,50 +26847,51 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Lifetime energy consumption l1', + 'object_id_base': 'Metering status EVSE CT l3', 'options': dict({ - 'sensor': dict({ - 'suggested_display_precision': 3, - }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': , - }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Lifetime energy consumption l1', + 'original_name': 'Metering status EVSE CT l3', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'lifetime_consumption_phase', - 'unique_id': '1234_lifetime_consumption_l1', - 'unit_of_measurement': , + 'translation_key': 'evse_ct_metering_status_phase', + 'unique_id': '1234_evse_ct_metering_status_l3', + 'unit_of_measurement': None, }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_lifetime_energy_consumption_l1-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_metering_status_evse_ct_l3-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'energy', - 'friendly_name': 'Envoy 1234 Lifetime energy consumption l1', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'enum', + 'friendly_name': 'Envoy 1234 Metering status EVSE CT l3', + 'options': list([ + , + , + , + ]), }), 'context': , - 'entity_id': 'sensor.envoy_1234_lifetime_energy_consumption_l1', + 'entity_id': 'sensor.envoy_1234_metering_status_evse_ct_l3', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.001322', + 'state': 'normal', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_lifetime_energy_consumption_l2-entry] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_metering_status_load_ct-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'options': list([ + , + , + , + ]), }), 'config_entry_id': , 'config_subentry_id': , @@ -26615,8 +26899,8 @@ 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_lifetime_energy_consumption_l2', + 'entity_category': , + 'entity_id': 'sensor.envoy_1234_metering_status_load_ct', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -26624,50 +26908,11894 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Lifetime energy consumption l2', + 'object_id_base': 'Metering status load CT', 'options': dict({ - 'sensor': dict({ - 'suggested_display_precision': 3, - }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': , - }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Lifetime energy consumption l2', + 'original_name': 'Metering status load CT', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'lifetime_consumption_phase', - 'unique_id': '1234_lifetime_consumption_l2', - 'unit_of_measurement': , + 'translation_key': 'load_ct_metering_status', + 'unique_id': '1234_load_ct_metering_status', + 'unit_of_measurement': None, }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_lifetime_energy_consumption_l2-state] +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_metering_status_load_ct-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'energy', - 'friendly_name': 'Envoy 1234 Lifetime energy consumption l2', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'enum', + 'friendly_name': 'Envoy 1234 Metering status load CT', + 'options': list([ + , + , + , + ]), }), 'context': , - 'entity_id': 'sensor.envoy_1234_lifetime_energy_consumption_l2', + 'entity_id': 'sensor.envoy_1234_metering_status_load_ct', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': 'normal', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_metering_status_load_ct_l1-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'options': list([ + , + , + , + ]), + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': , + 'entity_id': 'sensor.envoy_1234_metering_status_load_ct_l1', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Metering status load CT l1', + 'options': dict({ + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Metering status load CT l1', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'load_ct_metering_status_phase', + 'unique_id': '1234_load_ct_metering_status_l1', + 'unit_of_measurement': None, + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_metering_status_load_ct_l1-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'enum', + 'friendly_name': 'Envoy 1234 Metering status load CT l1', + 'options': list([ + , + , + , + ]), + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_metering_status_load_ct_l1', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': 'normal', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_metering_status_load_ct_l2-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'options': list([ + , + , + , + ]), + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': , + 'entity_id': 'sensor.envoy_1234_metering_status_load_ct_l2', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Metering status load CT l2', + 'options': dict({ + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Metering status load CT l2', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'load_ct_metering_status_phase', + 'unique_id': '1234_load_ct_metering_status_l2', + 'unit_of_measurement': None, + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_metering_status_load_ct_l2-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'enum', + 'friendly_name': 'Envoy 1234 Metering status load CT l2', + 'options': list([ + , + , + , + ]), + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_metering_status_load_ct_l2', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': 'normal', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_metering_status_load_ct_l3-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'options': list([ + , + , + , + ]), + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': , + 'entity_id': 'sensor.envoy_1234_metering_status_load_ct_l3', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Metering status load CT l3', + 'options': dict({ + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Metering status load CT l3', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'load_ct_metering_status_phase', + 'unique_id': '1234_load_ct_metering_status_l3', + 'unit_of_measurement': None, + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_metering_status_load_ct_l3-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'enum', + 'friendly_name': 'Envoy 1234 Metering status load CT l3', + 'options': list([ + , + , + , + ]), + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_metering_status_load_ct_l3', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': 'normal', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_metering_status_net_consumption_ct-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'options': list([ + , + , + , + ]), + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': , + 'entity_id': 'sensor.envoy_1234_metering_status_net_consumption_ct', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Metering status net consumption CT', + 'options': dict({ + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Metering status net consumption CT', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'net_ct_metering_status', + 'unique_id': '1234_net_consumption_ct_metering_status', + 'unit_of_measurement': None, + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_metering_status_net_consumption_ct-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'enum', + 'friendly_name': 'Envoy 1234 Metering status net consumption CT', + 'options': list([ + , + , + , + ]), + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_metering_status_net_consumption_ct', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': 'normal', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_metering_status_net_consumption_ct_l1-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'options': list([ + , + , + , + ]), + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': , + 'entity_id': 'sensor.envoy_1234_metering_status_net_consumption_ct_l1', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Metering status net consumption CT l1', + 'options': dict({ + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Metering status net consumption CT l1', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'net_ct_metering_status_phase', + 'unique_id': '1234_net_consumption_ct_metering_status_l1', + 'unit_of_measurement': None, + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_metering_status_net_consumption_ct_l1-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'enum', + 'friendly_name': 'Envoy 1234 Metering status net consumption CT l1', + 'options': list([ + , + , + , + ]), + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_metering_status_net_consumption_ct_l1', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': 'normal', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_metering_status_net_consumption_ct_l2-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'options': list([ + , + , + , + ]), + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': , + 'entity_id': 'sensor.envoy_1234_metering_status_net_consumption_ct_l2', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Metering status net consumption CT l2', + 'options': dict({ + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Metering status net consumption CT l2', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'net_ct_metering_status_phase', + 'unique_id': '1234_net_consumption_ct_metering_status_l2', + 'unit_of_measurement': None, + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_metering_status_net_consumption_ct_l2-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'enum', + 'friendly_name': 'Envoy 1234 Metering status net consumption CT l2', + 'options': list([ + , + , + , + ]), + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_metering_status_net_consumption_ct_l2', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': 'normal', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_metering_status_net_consumption_ct_l3-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'options': list([ + , + , + , + ]), + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': , + 'entity_id': 'sensor.envoy_1234_metering_status_net_consumption_ct_l3', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Metering status net consumption CT l3', + 'options': dict({ + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Metering status net consumption CT l3', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'net_ct_metering_status_phase', + 'unique_id': '1234_net_consumption_ct_metering_status_l3', + 'unit_of_measurement': None, + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_metering_status_net_consumption_ct_l3-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'enum', + 'friendly_name': 'Envoy 1234 Metering status net consumption CT l3', + 'options': list([ + , + , + , + ]), + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_metering_status_net_consumption_ct_l3', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': 'normal', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_metering_status_production_ct-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'options': list([ + , + , + , + ]), + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': , + 'entity_id': 'sensor.envoy_1234_metering_status_production_ct', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Metering status production CT', + 'options': dict({ + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Metering status production CT', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'production_ct_metering_status', + 'unique_id': '1234_production_ct_metering_status', + 'unit_of_measurement': None, + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_metering_status_production_ct-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'enum', + 'friendly_name': 'Envoy 1234 Metering status production CT', + 'options': list([ + , + , + , + ]), + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_metering_status_production_ct', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': 'normal', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_metering_status_production_ct_l1-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'options': list([ + , + , + , + ]), + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': , + 'entity_id': 'sensor.envoy_1234_metering_status_production_ct_l1', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Metering status production CT l1', + 'options': dict({ + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Metering status production CT l1', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'production_ct_metering_status_phase', + 'unique_id': '1234_production_ct_metering_status_l1', + 'unit_of_measurement': None, + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_metering_status_production_ct_l1-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'enum', + 'friendly_name': 'Envoy 1234 Metering status production CT l1', + 'options': list([ + , + , + , + ]), + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_metering_status_production_ct_l1', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': 'normal', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_metering_status_production_ct_l2-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'options': list([ + , + , + , + ]), + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': , + 'entity_id': 'sensor.envoy_1234_metering_status_production_ct_l2', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Metering status production CT l2', + 'options': dict({ + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Metering status production CT l2', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'production_ct_metering_status_phase', + 'unique_id': '1234_production_ct_metering_status_l2', + 'unit_of_measurement': None, + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_metering_status_production_ct_l2-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'enum', + 'friendly_name': 'Envoy 1234 Metering status production CT l2', + 'options': list([ + , + , + , + ]), + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_metering_status_production_ct_l2', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': 'normal', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_metering_status_production_ct_l3-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'options': list([ + , + , + , + ]), + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': , + 'entity_id': 'sensor.envoy_1234_metering_status_production_ct_l3', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Metering status production CT l3', + 'options': dict({ + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Metering status production CT l3', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'production_ct_metering_status_phase', + 'unique_id': '1234_production_ct_metering_status_l3', + 'unit_of_measurement': None, + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_metering_status_production_ct_l3-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'enum', + 'friendly_name': 'Envoy 1234 Metering status production CT l3', + 'options': list([ + , + , + , + ]), + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_metering_status_production_ct_l3', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': 'normal', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_metering_status_pv3p_ct-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'options': list([ + , + , + , + ]), + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': , + 'entity_id': 'sensor.envoy_1234_metering_status_pv3p_ct', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Metering status PV3P CT', + 'options': dict({ + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Metering status PV3P CT', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'pv3p_ct_metering_status', + 'unique_id': '1234_pv3p_ct_metering_status', + 'unit_of_measurement': None, + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_metering_status_pv3p_ct-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'enum', + 'friendly_name': 'Envoy 1234 Metering status PV3P CT', + 'options': list([ + , + , + , + ]), + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_metering_status_pv3p_ct', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': 'normal', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_metering_status_pv3p_ct_l1-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'options': list([ + , + , + , + ]), + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': , + 'entity_id': 'sensor.envoy_1234_metering_status_pv3p_ct_l1', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Metering status PV3P CT l1', + 'options': dict({ + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Metering status PV3P CT l1', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'pv3p_ct_metering_status_phase', + 'unique_id': '1234_pv3p_ct_metering_status_l1', + 'unit_of_measurement': None, + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_metering_status_pv3p_ct_l1-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'enum', + 'friendly_name': 'Envoy 1234 Metering status PV3P CT l1', + 'options': list([ + , + , + , + ]), + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_metering_status_pv3p_ct_l1', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': 'normal', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_metering_status_pv3p_ct_l2-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'options': list([ + , + , + , + ]), + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': , + 'entity_id': 'sensor.envoy_1234_metering_status_pv3p_ct_l2', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Metering status PV3P CT l2', + 'options': dict({ + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Metering status PV3P CT l2', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'pv3p_ct_metering_status_phase', + 'unique_id': '1234_pv3p_ct_metering_status_l2', + 'unit_of_measurement': None, + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_metering_status_pv3p_ct_l2-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'enum', + 'friendly_name': 'Envoy 1234 Metering status PV3P CT l2', + 'options': list([ + , + , + , + ]), + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_metering_status_pv3p_ct_l2', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': 'normal', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_metering_status_pv3p_ct_l3-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'options': list([ + , + , + , + ]), + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': , + 'entity_id': 'sensor.envoy_1234_metering_status_pv3p_ct_l3', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Metering status PV3P CT l3', + 'options': dict({ + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Metering status PV3P CT l3', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'pv3p_ct_metering_status_phase', + 'unique_id': '1234_pv3p_ct_metering_status_l3', + 'unit_of_measurement': None, + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_metering_status_pv3p_ct_l3-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'enum', + 'friendly_name': 'Envoy 1234 Metering status PV3P CT l3', + 'options': list([ + , + , + , + ]), + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_metering_status_pv3p_ct_l3', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': 'normal', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_metering_status_storage_ct-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'options': list([ + , + , + , + ]), + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': , + 'entity_id': 'sensor.envoy_1234_metering_status_storage_ct', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Metering status storage CT', + 'options': dict({ + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Metering status storage CT', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'storage_ct_metering_status', + 'unique_id': '1234_storage_ct_metering_status', + 'unit_of_measurement': None, + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_metering_status_storage_ct-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'enum', + 'friendly_name': 'Envoy 1234 Metering status storage CT', + 'options': list([ + , + , + , + ]), + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_metering_status_storage_ct', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': 'normal', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_metering_status_storage_ct_l1-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'options': list([ + , + , + , + ]), + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': , + 'entity_id': 'sensor.envoy_1234_metering_status_storage_ct_l1', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Metering status storage CT l1', + 'options': dict({ + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Metering status storage CT l1', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'storage_ct_metering_status_phase', + 'unique_id': '1234_storage_ct_metering_status_l1', + 'unit_of_measurement': None, + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_metering_status_storage_ct_l1-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'enum', + 'friendly_name': 'Envoy 1234 Metering status storage CT l1', + 'options': list([ + , + , + , + ]), + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_metering_status_storage_ct_l1', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': 'normal', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_metering_status_storage_ct_l2-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'options': list([ + , + , + , + ]), + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': , + 'entity_id': 'sensor.envoy_1234_metering_status_storage_ct_l2', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Metering status storage CT l2', + 'options': dict({ + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Metering status storage CT l2', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'storage_ct_metering_status_phase', + 'unique_id': '1234_storage_ct_metering_status_l2', + 'unit_of_measurement': None, + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_metering_status_storage_ct_l2-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'enum', + 'friendly_name': 'Envoy 1234 Metering status storage CT l2', + 'options': list([ + , + , + , + ]), + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_metering_status_storage_ct_l2', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': 'normal', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_metering_status_storage_ct_l3-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'options': list([ + , + , + , + ]), + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': , + 'entity_id': 'sensor.envoy_1234_metering_status_storage_ct_l3', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Metering status storage CT l3', + 'options': dict({ + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Metering status storage CT l3', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'storage_ct_metering_status_phase', + 'unique_id': '1234_storage_ct_metering_status_l3', + 'unit_of_measurement': None, + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_metering_status_storage_ct_l3-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'enum', + 'friendly_name': 'Envoy 1234 Metering status storage CT l3', + 'options': list([ + , + , + , + ]), + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_metering_status_storage_ct_l3', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': 'normal', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_net_consumption_ct_current-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_net_consumption_ct_current', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Net consumption CT current', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Net consumption CT current', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'net_ct_current', + 'unique_id': '1234_net_ct_current', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_net_consumption_ct_current-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'current', + 'friendly_name': 'Envoy 1234 Net consumption CT current', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_net_consumption_ct_current', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '0.3', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_net_consumption_ct_current_l1-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_net_consumption_ct_current_l1', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Net consumption CT current l1', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Net consumption CT current l1', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'net_ct_current_phase', + 'unique_id': '1234_net_ct_current_l1', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_net_consumption_ct_current_l1-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'current', + 'friendly_name': 'Envoy 1234 Net consumption CT current l1', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_net_consumption_ct_current_l1', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '0.3', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_net_consumption_ct_current_l2-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_net_consumption_ct_current_l2', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Net consumption CT current l2', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Net consumption CT current l2', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'net_ct_current_phase', + 'unique_id': '1234_net_ct_current_l2', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_net_consumption_ct_current_l2-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'current', + 'friendly_name': 'Envoy 1234 Net consumption CT current l2', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_net_consumption_ct_current_l2', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '0.3', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_net_consumption_ct_current_l3-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_net_consumption_ct_current_l3', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Net consumption CT current l3', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Net consumption CT current l3', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'net_ct_current_phase', + 'unique_id': '1234_net_ct_current_l3', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_net_consumption_ct_current_l3-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'current', + 'friendly_name': 'Envoy 1234 Net consumption CT current l3', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_net_consumption_ct_current_l3', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '0.3', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_power_factor_backfeed_ct-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_power_factor_backfeed_ct', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Power factor backfeed CT', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 2, + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Power factor backfeed CT', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'backfeed_ct_powerfactor', + 'unique_id': '1234_backfeed_ct_powerfactor', + 'unit_of_measurement': None, + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_power_factor_backfeed_ct-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'power_factor', + 'friendly_name': 'Envoy 1234 Power factor backfeed CT', + 'state_class': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_power_factor_backfeed_ct', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '0.24', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_power_factor_backfeed_ct_l1-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_power_factor_backfeed_ct_l1', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Power factor backfeed CT l1', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 2, + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Power factor backfeed CT l1', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'backfeed_ct_powerfactor_phase', + 'unique_id': '1234_backfeed_ct_powerfactor_l1', + 'unit_of_measurement': None, + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_power_factor_backfeed_ct_l1-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'power_factor', + 'friendly_name': 'Envoy 1234 Power factor backfeed CT l1', + 'state_class': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_power_factor_backfeed_ct_l1', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '0.24', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_power_factor_backfeed_ct_l2-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_power_factor_backfeed_ct_l2', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Power factor backfeed CT l2', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 2, + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Power factor backfeed CT l2', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'backfeed_ct_powerfactor_phase', + 'unique_id': '1234_backfeed_ct_powerfactor_l2', + 'unit_of_measurement': None, + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_power_factor_backfeed_ct_l2-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'power_factor', + 'friendly_name': 'Envoy 1234 Power factor backfeed CT l2', + 'state_class': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_power_factor_backfeed_ct_l2', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '0.24', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_power_factor_backfeed_ct_l3-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_power_factor_backfeed_ct_l3', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Power factor backfeed CT l3', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 2, + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Power factor backfeed CT l3', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'backfeed_ct_powerfactor_phase', + 'unique_id': '1234_backfeed_ct_powerfactor_l3', + 'unit_of_measurement': None, + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_power_factor_backfeed_ct_l3-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'power_factor', + 'friendly_name': 'Envoy 1234 Power factor backfeed CT l3', + 'state_class': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_power_factor_backfeed_ct_l3', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '0.24', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_power_factor_evse_ct-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_power_factor_evse_ct', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Power factor EVSE CT', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 2, + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Power factor EVSE CT', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'evse_ct_powerfactor', + 'unique_id': '1234_evse_ct_powerfactor', + 'unit_of_measurement': None, + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_power_factor_evse_ct-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'power_factor', + 'friendly_name': 'Envoy 1234 Power factor EVSE CT', + 'state_class': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_power_factor_evse_ct', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '0.26', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_power_factor_evse_ct_l1-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_power_factor_evse_ct_l1', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Power factor EVSE CT l1', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 2, + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Power factor EVSE CT l1', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'evse_ct_powerfactor_phase', + 'unique_id': '1234_evse_ct_powerfactor_l1', + 'unit_of_measurement': None, + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_power_factor_evse_ct_l1-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'power_factor', + 'friendly_name': 'Envoy 1234 Power factor EVSE CT l1', + 'state_class': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_power_factor_evse_ct_l1', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '0.26', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_power_factor_evse_ct_l2-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_power_factor_evse_ct_l2', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Power factor EVSE CT l2', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 2, + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Power factor EVSE CT l2', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'evse_ct_powerfactor_phase', + 'unique_id': '1234_evse_ct_powerfactor_l2', + 'unit_of_measurement': None, + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_power_factor_evse_ct_l2-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'power_factor', + 'friendly_name': 'Envoy 1234 Power factor EVSE CT l2', + 'state_class': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_power_factor_evse_ct_l2', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '0.26', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_power_factor_evse_ct_l3-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_power_factor_evse_ct_l3', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Power factor EVSE CT l3', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 2, + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Power factor EVSE CT l3', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'evse_ct_powerfactor_phase', + 'unique_id': '1234_evse_ct_powerfactor_l3', + 'unit_of_measurement': None, + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_power_factor_evse_ct_l3-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'power_factor', + 'friendly_name': 'Envoy 1234 Power factor EVSE CT l3', + 'state_class': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_power_factor_evse_ct_l3', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '0.26', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_power_factor_load_ct-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_power_factor_load_ct', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Power factor load CT', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 2, + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Power factor load CT', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'load_ct_powerfactor', + 'unique_id': '1234_load_ct_powerfactor', + 'unit_of_measurement': None, + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_power_factor_load_ct-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'power_factor', + 'friendly_name': 'Envoy 1234 Power factor load CT', + 'state_class': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_power_factor_load_ct', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '0.25', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_power_factor_load_ct_l1-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_power_factor_load_ct_l1', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Power factor load CT l1', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 2, + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Power factor load CT l1', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'load_ct_powerfactor_phase', + 'unique_id': '1234_load_ct_powerfactor_l1', + 'unit_of_measurement': None, + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_power_factor_load_ct_l1-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'power_factor', + 'friendly_name': 'Envoy 1234 Power factor load CT l1', + 'state_class': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_power_factor_load_ct_l1', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '0.25', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_power_factor_load_ct_l2-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_power_factor_load_ct_l2', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Power factor load CT l2', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 2, + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Power factor load CT l2', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'load_ct_powerfactor_phase', + 'unique_id': '1234_load_ct_powerfactor_l2', + 'unit_of_measurement': None, + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_power_factor_load_ct_l2-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'power_factor', + 'friendly_name': 'Envoy 1234 Power factor load CT l2', + 'state_class': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_power_factor_load_ct_l2', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '0.25', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_power_factor_load_ct_l3-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_power_factor_load_ct_l3', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Power factor load CT l3', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 2, + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Power factor load CT l3', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'load_ct_powerfactor_phase', + 'unique_id': '1234_load_ct_powerfactor_l3', + 'unit_of_measurement': None, + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_power_factor_load_ct_l3-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'power_factor', + 'friendly_name': 'Envoy 1234 Power factor load CT l3', + 'state_class': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_power_factor_load_ct_l3', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '0.25', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_power_factor_net_consumption_ct-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_power_factor_net_consumption_ct', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Power factor net consumption CT', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 2, + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Power factor net consumption CT', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'net_ct_powerfactor', + 'unique_id': '1234_net_ct_powerfactor', + 'unit_of_measurement': None, + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_power_factor_net_consumption_ct-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'power_factor', + 'friendly_name': 'Envoy 1234 Power factor net consumption CT', + 'state_class': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_power_factor_net_consumption_ct', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '0.21', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_power_factor_net_consumption_ct_l1-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_power_factor_net_consumption_ct_l1', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Power factor net consumption CT l1', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 2, + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Power factor net consumption CT l1', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'net_ct_powerfactor_phase', + 'unique_id': '1234_net_ct_powerfactor_l1', + 'unit_of_measurement': None, + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_power_factor_net_consumption_ct_l1-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'power_factor', + 'friendly_name': 'Envoy 1234 Power factor net consumption CT l1', + 'state_class': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_power_factor_net_consumption_ct_l1', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '0.22', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_power_factor_net_consumption_ct_l2-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_power_factor_net_consumption_ct_l2', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Power factor net consumption CT l2', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 2, + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Power factor net consumption CT l2', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'net_ct_powerfactor_phase', + 'unique_id': '1234_net_ct_powerfactor_l2', + 'unit_of_measurement': None, + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_power_factor_net_consumption_ct_l2-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'power_factor', + 'friendly_name': 'Envoy 1234 Power factor net consumption CT l2', + 'state_class': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_power_factor_net_consumption_ct_l2', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '0.23', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_power_factor_net_consumption_ct_l3-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_power_factor_net_consumption_ct_l3', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Power factor net consumption CT l3', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 2, + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Power factor net consumption CT l3', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'net_ct_powerfactor_phase', + 'unique_id': '1234_net_ct_powerfactor_l3', + 'unit_of_measurement': None, + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_power_factor_net_consumption_ct_l3-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'power_factor', + 'friendly_name': 'Envoy 1234 Power factor net consumption CT l3', + 'state_class': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_power_factor_net_consumption_ct_l3', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '0.24', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_power_factor_production_ct-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_power_factor_production_ct', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Power factor production CT', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 2, + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Power factor production CT', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'production_ct_powerfactor', + 'unique_id': '1234_production_ct_powerfactor', + 'unit_of_measurement': None, + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_power_factor_production_ct-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'power_factor', + 'friendly_name': 'Envoy 1234 Power factor production CT', + 'state_class': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_power_factor_production_ct', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '0.11', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_power_factor_production_ct_l1-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_power_factor_production_ct_l1', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Power factor production CT l1', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 2, + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Power factor production CT l1', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'production_ct_powerfactor_phase', + 'unique_id': '1234_production_ct_powerfactor_l1', + 'unit_of_measurement': None, + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_power_factor_production_ct_l1-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'power_factor', + 'friendly_name': 'Envoy 1234 Power factor production CT l1', + 'state_class': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_power_factor_production_ct_l1', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '0.12', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_power_factor_production_ct_l2-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_power_factor_production_ct_l2', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Power factor production CT l2', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 2, + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Power factor production CT l2', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'production_ct_powerfactor_phase', + 'unique_id': '1234_production_ct_powerfactor_l2', + 'unit_of_measurement': None, + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_power_factor_production_ct_l2-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'power_factor', + 'friendly_name': 'Envoy 1234 Power factor production CT l2', + 'state_class': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_power_factor_production_ct_l2', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '0.13', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_power_factor_production_ct_l3-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_power_factor_production_ct_l3', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Power factor production CT l3', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 2, + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Power factor production CT l3', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'production_ct_powerfactor_phase', + 'unique_id': '1234_production_ct_powerfactor_l3', + 'unit_of_measurement': None, + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_power_factor_production_ct_l3-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'power_factor', + 'friendly_name': 'Envoy 1234 Power factor production CT l3', + 'state_class': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_power_factor_production_ct_l3', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '0.14', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_power_factor_pv3p_ct-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_power_factor_pv3p_ct', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Power factor PV3P CT', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 2, + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Power factor PV3P CT', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'pv3p_ct_powerfactor', + 'unique_id': '1234_pv3p_ct_powerfactor', + 'unit_of_measurement': None, + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_power_factor_pv3p_ct-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'power_factor', + 'friendly_name': 'Envoy 1234 Power factor PV3P CT', + 'state_class': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_power_factor_pv3p_ct', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '0.27', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_power_factor_pv3p_ct_l1-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_power_factor_pv3p_ct_l1', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Power factor PV3P CT l1', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 2, + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Power factor PV3P CT l1', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'pv3p_ct_powerfactor_phase', + 'unique_id': '1234_pv3p_ct_powerfactor_l1', + 'unit_of_measurement': None, + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_power_factor_pv3p_ct_l1-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'power_factor', + 'friendly_name': 'Envoy 1234 Power factor PV3P CT l1', + 'state_class': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_power_factor_pv3p_ct_l1', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '0.27', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_power_factor_pv3p_ct_l2-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_power_factor_pv3p_ct_l2', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Power factor PV3P CT l2', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 2, + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Power factor PV3P CT l2', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'pv3p_ct_powerfactor_phase', + 'unique_id': '1234_pv3p_ct_powerfactor_l2', + 'unit_of_measurement': None, + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_power_factor_pv3p_ct_l2-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'power_factor', + 'friendly_name': 'Envoy 1234 Power factor PV3P CT l2', + 'state_class': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_power_factor_pv3p_ct_l2', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '0.27', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_power_factor_pv3p_ct_l3-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_power_factor_pv3p_ct_l3', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Power factor PV3P CT l3', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 2, + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Power factor PV3P CT l3', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'pv3p_ct_powerfactor_phase', + 'unique_id': '1234_pv3p_ct_powerfactor_l3', + 'unit_of_measurement': None, + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_power_factor_pv3p_ct_l3-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'power_factor', + 'friendly_name': 'Envoy 1234 Power factor PV3P CT l3', + 'state_class': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_power_factor_pv3p_ct_l3', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '0.27', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_power_factor_storage_ct-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_power_factor_storage_ct', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Power factor storage CT', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 2, + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Power factor storage CT', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'storage_ct_powerfactor', + 'unique_id': '1234_storage_ct_powerfactor', + 'unit_of_measurement': None, + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_power_factor_storage_ct-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'power_factor', + 'friendly_name': 'Envoy 1234 Power factor storage CT', + 'state_class': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_power_factor_storage_ct', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '0.23', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_power_factor_storage_ct_l1-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_power_factor_storage_ct_l1', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Power factor storage CT l1', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 2, + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Power factor storage CT l1', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'storage_ct_powerfactor_phase', + 'unique_id': '1234_storage_ct_powerfactor_l1', + 'unit_of_measurement': None, + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_power_factor_storage_ct_l1-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'power_factor', + 'friendly_name': 'Envoy 1234 Power factor storage CT l1', + 'state_class': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_power_factor_storage_ct_l1', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '0.32', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_power_factor_storage_ct_l2-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_power_factor_storage_ct_l2', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Power factor storage CT l2', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 2, + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Power factor storage CT l2', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'storage_ct_powerfactor_phase', + 'unique_id': '1234_storage_ct_powerfactor_l2', + 'unit_of_measurement': None, + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_power_factor_storage_ct_l2-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'power_factor', + 'friendly_name': 'Envoy 1234 Power factor storage CT l2', + 'state_class': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_power_factor_storage_ct_l2', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '0.23', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_power_factor_storage_ct_l3-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_power_factor_storage_ct_l3', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Power factor storage CT l3', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 2, + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Power factor storage CT l3', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'storage_ct_powerfactor_phase', + 'unique_id': '1234_storage_ct_powerfactor_l3', + 'unit_of_measurement': None, + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_power_factor_storage_ct_l3-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'power_factor', + 'friendly_name': 'Envoy 1234 Power factor storage CT l3', + 'state_class': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_power_factor_storage_ct_l3', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '0.24', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_production_ct_current-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_production_ct_current', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Production CT current', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Production CT current', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'production_ct_current', + 'unique_id': '1234_production_ct_current', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_production_ct_current-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'current', + 'friendly_name': 'Envoy 1234 Production CT current', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_production_ct_current', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '0.2', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_production_ct_current_l1-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_production_ct_current_l1', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Production CT current l1', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Production CT current l1', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'production_ct_current_phase', + 'unique_id': '1234_production_ct_current_l1', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_production_ct_current_l1-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'current', + 'friendly_name': 'Envoy 1234 Production CT current l1', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_production_ct_current_l1', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '0.2', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_production_ct_current_l2-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_production_ct_current_l2', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Production CT current l2', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Production CT current l2', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'production_ct_current_phase', + 'unique_id': '1234_production_ct_current_l2', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_production_ct_current_l2-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'current', + 'friendly_name': 'Envoy 1234 Production CT current l2', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_production_ct_current_l2', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '0.2', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_production_ct_current_l3-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_production_ct_current_l3', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Production CT current l3', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Production CT current l3', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'production_ct_current_phase', + 'unique_id': '1234_production_ct_current_l3', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_production_ct_current_l3-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'current', + 'friendly_name': 'Envoy 1234 Production CT current l3', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_production_ct_current_l3', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '0.2', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_production_ct_energy_delivered-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_production_ct_energy_delivered', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Production CT energy delivered', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Production CT energy delivered', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'production_ct_energy_delivered', + 'unique_id': '1234_production_ct_energy_delivered', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_production_ct_energy_delivered-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Production CT energy delivered', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_production_ct_energy_delivered', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '0.011234', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_production_ct_energy_delivered_l1-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_production_ct_energy_delivered_l1', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Production CT energy delivered l1', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Production CT energy delivered l1', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'production_ct_energy_delivered_phase', + 'unique_id': '1234_production_ct_energy_delivered_l1', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_production_ct_energy_delivered_l1-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Production CT energy delivered l1', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_production_ct_energy_delivered_l1', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '0.112341', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_production_ct_energy_delivered_l2-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_production_ct_energy_delivered_l2', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Production CT energy delivered l2', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Production CT energy delivered l2', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'production_ct_energy_delivered_phase', + 'unique_id': '1234_production_ct_energy_delivered_l2', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_production_ct_energy_delivered_l2-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Production CT energy delivered l2', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_production_ct_energy_delivered_l2', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '0.112342', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_production_ct_energy_delivered_l3-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_production_ct_energy_delivered_l3', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Production CT energy delivered l3', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Production CT energy delivered l3', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'production_ct_energy_delivered_phase', + 'unique_id': '1234_production_ct_energy_delivered_l3', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_production_ct_energy_delivered_l3-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Production CT energy delivered l3', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_production_ct_energy_delivered_l3', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '0.112343', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_production_ct_energy_received-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_production_ct_energy_received', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Production CT energy received', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Production CT energy received', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'production_ct_energy_received', + 'unique_id': '1234_production_ct_energy_received', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_production_ct_energy_received-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Production CT energy received', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_production_ct_energy_received', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '0.012345', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_production_ct_energy_received_l1-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_production_ct_energy_received_l1', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Production CT energy received l1', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Production CT energy received l1', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'production_ct_energy_received_phase', + 'unique_id': '1234_production_ct_energy_received_l1', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_production_ct_energy_received_l1-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Production CT energy received l1', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_production_ct_energy_received_l1', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '0.123451', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_production_ct_energy_received_l2-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_production_ct_energy_received_l2', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Production CT energy received l2', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Production CT energy received l2', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'production_ct_energy_received_phase', + 'unique_id': '1234_production_ct_energy_received_l2', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_production_ct_energy_received_l2-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Production CT energy received l2', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_production_ct_energy_received_l2', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '0.123452', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_production_ct_energy_received_l3-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_production_ct_energy_received_l3', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Production CT energy received l3', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Production CT energy received l3', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'production_ct_energy_received_phase', + 'unique_id': '1234_production_ct_energy_received_l3', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_production_ct_energy_received_l3-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Production CT energy received l3', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_production_ct_energy_received_l3', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '0.123453', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_production_ct_power-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_production_ct_power', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Production CT power', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Production CT power', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'production_ct_power', + 'unique_id': '1234_production_ct_power', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_production_ct_power-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'power', + 'friendly_name': 'Envoy 1234 Production CT power', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_production_ct_power', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '0.1', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_production_ct_power_l1-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_production_ct_power_l1', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Production CT power l1', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Production CT power l1', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'production_ct_power_phase', + 'unique_id': '1234_production_ct_power_l1', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_production_ct_power_l1-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'power', + 'friendly_name': 'Envoy 1234 Production CT power l1', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_production_ct_power_l1', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '0.02', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_production_ct_power_l2-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_production_ct_power_l2', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Production CT power l2', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Production CT power l2', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'production_ct_power_phase', + 'unique_id': '1234_production_ct_power_l2', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_production_ct_power_l2-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'power', + 'friendly_name': 'Envoy 1234 Production CT power l2', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_production_ct_power_l2', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '0.03', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_production_ct_power_l3-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_production_ct_power_l3', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Production CT power l3', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Production CT power l3', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'production_ct_power_phase', + 'unique_id': '1234_production_ct_power_l3', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_production_ct_power_l3-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'power', + 'friendly_name': 'Envoy 1234 Production CT power l3', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_production_ct_power_l3', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '0.05', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_pv3p_ct_current-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_pv3p_ct_current', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'PV3P CT current', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'PV3P CT current', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'pv3p_ct_current', + 'unique_id': '1234_pv3p_ct_current', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_pv3p_ct_current-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'current', + 'friendly_name': 'Envoy 1234 PV3P CT current', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_pv3p_ct_current', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '0.8', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_pv3p_ct_current_l1-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_pv3p_ct_current_l1', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'PV3P CT current l1', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'PV3P CT current l1', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'pv3p_ct_current_phase', + 'unique_id': '1234_pv3p_ct_current_l1', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_pv3p_ct_current_l1-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'current', + 'friendly_name': 'Envoy 1234 PV3P CT current l1', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_pv3p_ct_current_l1', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '7.1', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_pv3p_ct_current_l2-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_pv3p_ct_current_l2', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'PV3P CT current l2', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'PV3P CT current l2', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'pv3p_ct_current_phase', + 'unique_id': '1234_pv3p_ct_current_l2', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_pv3p_ct_current_l2-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'current', + 'friendly_name': 'Envoy 1234 PV3P CT current l2', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_pv3p_ct_current_l2', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '7.2', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_pv3p_ct_current_l3-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_pv3p_ct_current_l3', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'PV3P CT current l3', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'PV3P CT current l3', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'pv3p_ct_current_phase', + 'unique_id': '1234_pv3p_ct_current_l3', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_pv3p_ct_current_l3-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'current', + 'friendly_name': 'Envoy 1234 PV3P CT current l3', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_pv3p_ct_current_l3', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '7.3', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_pv3p_ct_energy_delivered-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_pv3p_ct_energy_delivered', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'PV3P CT energy delivered', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'PV3P CT energy delivered', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'pv3p_ct_energy_delivered', + 'unique_id': '1234_pv3p_ct_energy_delivered', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_pv3p_ct_energy_delivered-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 PV3P CT energy delivered', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_pv3p_ct_energy_delivered', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '0.071234', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_pv3p_ct_energy_delivered_l1-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_pv3p_ct_energy_delivered_l1', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'PV3P CT energy delivered l1', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'PV3P CT energy delivered l1', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'pv3p_ct_energy_delivered_phase', + 'unique_id': '1234_pv3p_ct_energy_delivered_l1', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_pv3p_ct_energy_delivered_l1-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 PV3P CT energy delivered l1', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_pv3p_ct_energy_delivered_l1', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '0.712341', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_pv3p_ct_energy_delivered_l2-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_pv3p_ct_energy_delivered_l2', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'PV3P CT energy delivered l2', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'PV3P CT energy delivered l2', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'pv3p_ct_energy_delivered_phase', + 'unique_id': '1234_pv3p_ct_energy_delivered_l2', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_pv3p_ct_energy_delivered_l2-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 PV3P CT energy delivered l2', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_pv3p_ct_energy_delivered_l2', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '0.712342', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_pv3p_ct_energy_delivered_l3-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_pv3p_ct_energy_delivered_l3', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'PV3P CT energy delivered l3', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'PV3P CT energy delivered l3', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'pv3p_ct_energy_delivered_phase', + 'unique_id': '1234_pv3p_ct_energy_delivered_l3', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_pv3p_ct_energy_delivered_l3-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 PV3P CT energy delivered l3', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_pv3p_ct_energy_delivered_l3', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '0.712343', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_pv3p_ct_energy_received-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_pv3p_ct_energy_received', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'PV3P CT energy received', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'PV3P CT energy received', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'pv3p_ct_energy_received', + 'unique_id': '1234_pv3p_ct_energy_received', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_pv3p_ct_energy_received-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 PV3P CT energy received', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_pv3p_ct_energy_received', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '0.072345', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_pv3p_ct_energy_received_l1-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_pv3p_ct_energy_received_l1', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'PV3P CT energy received l1', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'PV3P CT energy received l1', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'pv3p_ct_energy_received_phase', + 'unique_id': '1234_pv3p_ct_energy_received_l1', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_pv3p_ct_energy_received_l1-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 PV3P CT energy received l1', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_pv3p_ct_energy_received_l1', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '0.723451', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_pv3p_ct_energy_received_l2-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_pv3p_ct_energy_received_l2', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'PV3P CT energy received l2', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'PV3P CT energy received l2', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'pv3p_ct_energy_received_phase', + 'unique_id': '1234_pv3p_ct_energy_received_l2', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_pv3p_ct_energy_received_l2-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 PV3P CT energy received l2', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_pv3p_ct_energy_received_l2', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '0.723452', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_pv3p_ct_energy_received_l3-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_pv3p_ct_energy_received_l3', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'PV3P CT energy received l3', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'PV3P CT energy received l3', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'pv3p_ct_energy_received_phase', + 'unique_id': '1234_pv3p_ct_energy_received_l3', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_pv3p_ct_energy_received_l3-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 PV3P CT energy received l3', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_pv3p_ct_energy_received_l3', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '0.723453', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_pv3p_ct_power-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_pv3p_ct_power', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'PV3P CT power', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'PV3P CT power', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'pv3p_ct_power', + 'unique_id': '1234_pv3p_ct_power', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_pv3p_ct_power-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'power', + 'friendly_name': 'Envoy 1234 PV3P CT power', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_pv3p_ct_power', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '0.107', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_pv3p_ct_power_l1-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_pv3p_ct_power_l1', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'PV3P CT power l1', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'PV3P CT power l1', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'pv3p_ct_power_phase', + 'unique_id': '1234_pv3p_ct_power_l1', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_pv3p_ct_power_l1-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'power', + 'friendly_name': 'Envoy 1234 PV3P CT power l1', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_pv3p_ct_power_l1', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '0.117', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_pv3p_ct_power_l2-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_pv3p_ct_power_l2', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'PV3P CT power l2', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'PV3P CT power l2', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'pv3p_ct_power_phase', + 'unique_id': '1234_pv3p_ct_power_l2', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_pv3p_ct_power_l2-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'power', + 'friendly_name': 'Envoy 1234 PV3P CT power l2', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_pv3p_ct_power_l2', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '0.127', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_pv3p_ct_power_l3-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_pv3p_ct_power_l3', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'PV3P CT power l3', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'PV3P CT power l3', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'pv3p_ct_power_phase', + 'unique_id': '1234_pv3p_ct_power_l3', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_pv3p_ct_power_l3-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'power', + 'friendly_name': 'Envoy 1234 PV3P CT power l3', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_pv3p_ct_power_l3', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '0.137', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_reserve_battery_energy-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_reserve_battery_energy', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Reserve battery energy', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 0, + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Reserve battery energy', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'reserve_energy', + 'unique_id': '1234_reserve_energy', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_reserve_battery_energy-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'energy_storage', + 'friendly_name': 'Envoy 1234 Reserve battery energy', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_reserve_battery_energy', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '526', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_reserve_battery_level-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_reserve_battery_level', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Reserve battery level', + 'options': dict({ + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Reserve battery level', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'reserve_soc', + 'unique_id': '1234_reserve_soc', + 'unit_of_measurement': '%', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_reserve_battery_level-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'battery', + 'friendly_name': 'Envoy 1234 Reserve battery level', + 'state_class': , + 'unit_of_measurement': '%', + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_reserve_battery_level', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '15', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_storage_ct_current-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_storage_ct_current', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Storage CT current', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Storage CT current', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'storage_ct_current', + 'unique_id': '1234_storage_ct_current', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_storage_ct_current-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'current', + 'friendly_name': 'Envoy 1234 Storage CT current', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_storage_ct_current', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '0.4', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_storage_ct_current_l1-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_storage_ct_current_l1', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Storage CT current l1', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Storage CT current l1', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'storage_ct_current_phase', + 'unique_id': '1234_storage_ct_current_l1', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_storage_ct_current_l1-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'current', + 'friendly_name': 'Envoy 1234 Storage CT current l1', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_storage_ct_current_l1', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '0.4', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_storage_ct_current_l2-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_storage_ct_current_l2', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Storage CT current l2', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Storage CT current l2', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'storage_ct_current_phase', + 'unique_id': '1234_storage_ct_current_l2', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_storage_ct_current_l2-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'current', + 'friendly_name': 'Envoy 1234 Storage CT current l2', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_storage_ct_current_l2', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '0.3', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_storage_ct_current_l3-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_storage_ct_current_l3', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Storage CT current l3', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Storage CT current l3', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'storage_ct_current_phase', + 'unique_id': '1234_storage_ct_current_l3', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_storage_ct_current_l3-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'current', + 'friendly_name': 'Envoy 1234 Storage CT current l3', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_storage_ct_current_l3', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '0.3', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_voltage_backfeed_ct-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_voltage_backfeed_ct', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Voltage backfeed CT', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 1, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Voltage backfeed CT', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'backfeed_ct_voltage', + 'unique_id': '1234_backfeed_ct_voltage', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_voltage_backfeed_ct-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'voltage', + 'friendly_name': 'Envoy 1234 Voltage backfeed CT', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_voltage_backfeed_ct', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '114', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_voltage_backfeed_ct_l1-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_voltage_backfeed_ct_l1', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Voltage backfeed CT l1', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 1, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Voltage backfeed CT l1', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'backfeed_ct_voltage_phase', + 'unique_id': '1234_backfeed_ct_voltage_l1', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_voltage_backfeed_ct_l1-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'voltage', + 'friendly_name': 'Envoy 1234 Voltage backfeed CT l1', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_voltage_backfeed_ct_l1', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '114', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_voltage_backfeed_ct_l2-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_voltage_backfeed_ct_l2', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Voltage backfeed CT l2', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 1, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Voltage backfeed CT l2', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'backfeed_ct_voltage_phase', + 'unique_id': '1234_backfeed_ct_voltage_l2', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_voltage_backfeed_ct_l2-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'voltage', + 'friendly_name': 'Envoy 1234 Voltage backfeed CT l2', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_voltage_backfeed_ct_l2', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '114', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_voltage_backfeed_ct_l3-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_voltage_backfeed_ct_l3', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Voltage backfeed CT l3', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 1, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Voltage backfeed CT l3', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'backfeed_ct_voltage_phase', + 'unique_id': '1234_backfeed_ct_voltage_l3', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_voltage_backfeed_ct_l3-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'voltage', + 'friendly_name': 'Envoy 1234 Voltage backfeed CT l3', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_voltage_backfeed_ct_l3', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '114', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_voltage_evse_ct-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_voltage_evse_ct', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Voltage EVSE CT', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 1, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Voltage EVSE CT', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'evse_ct_voltage', + 'unique_id': '1234_evse_ct_voltage', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_voltage_evse_ct-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'voltage', + 'friendly_name': 'Envoy 1234 Voltage EVSE CT', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_voltage_evse_ct', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '116', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_voltage_evse_ct_l1-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_voltage_evse_ct_l1', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Voltage EVSE CT l1', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 1, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Voltage EVSE CT l1', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'evse_ct_voltage_phase', + 'unique_id': '1234_evse_ct_voltage_l1', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_voltage_evse_ct_l1-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'voltage', + 'friendly_name': 'Envoy 1234 Voltage EVSE CT l1', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_voltage_evse_ct_l1', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '116', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_voltage_evse_ct_l2-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_voltage_evse_ct_l2', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Voltage EVSE CT l2', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 1, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Voltage EVSE CT l2', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'evse_ct_voltage_phase', + 'unique_id': '1234_evse_ct_voltage_l2', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_voltage_evse_ct_l2-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'voltage', + 'friendly_name': 'Envoy 1234 Voltage EVSE CT l2', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_voltage_evse_ct_l2', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '116', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_voltage_evse_ct_l3-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_voltage_evse_ct_l3', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Voltage EVSE CT l3', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 1, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Voltage EVSE CT l3', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'evse_ct_voltage_phase', + 'unique_id': '1234_evse_ct_voltage_l3', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_voltage_evse_ct_l3-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'voltage', + 'friendly_name': 'Envoy 1234 Voltage EVSE CT l3', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_voltage_evse_ct_l3', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '116', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_voltage_load_ct-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_voltage_load_ct', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Voltage load CT', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 1, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Voltage load CT', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'load_ct_voltage', + 'unique_id': '1234_load_ct_voltage', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_voltage_load_ct-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'voltage', + 'friendly_name': 'Envoy 1234 Voltage load CT', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_voltage_load_ct', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '115', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_voltage_load_ct_l1-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_voltage_load_ct_l1', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Voltage load CT l1', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 1, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Voltage load CT l1', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'load_ct_voltage_phase', + 'unique_id': '1234_load_ct_voltage_l1', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_voltage_load_ct_l1-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'voltage', + 'friendly_name': 'Envoy 1234 Voltage load CT l1', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_voltage_load_ct_l1', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '115', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_voltage_load_ct_l2-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_voltage_load_ct_l2', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Voltage load CT l2', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 1, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Voltage load CT l2', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'load_ct_voltage_phase', + 'unique_id': '1234_load_ct_voltage_l2', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_voltage_load_ct_l2-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'voltage', + 'friendly_name': 'Envoy 1234 Voltage load CT l2', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_voltage_load_ct_l2', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '115', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_voltage_load_ct_l3-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_voltage_load_ct_l3', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Voltage load CT l3', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 1, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Voltage load CT l3', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'load_ct_voltage_phase', + 'unique_id': '1234_load_ct_voltage_l3', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_voltage_load_ct_l3-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'voltage', + 'friendly_name': 'Envoy 1234 Voltage load CT l3', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_voltage_load_ct_l3', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '115', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_voltage_net_consumption_ct-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_voltage_net_consumption_ct', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Voltage net consumption CT', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 1, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Voltage net consumption CT', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'net_ct_voltage', + 'unique_id': '1234_voltage', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_voltage_net_consumption_ct-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'voltage', + 'friendly_name': 'Envoy 1234 Voltage net consumption CT', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_voltage_net_consumption_ct', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '112', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_voltage_net_consumption_ct_l1-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_voltage_net_consumption_ct_l1', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Voltage net consumption CT l1', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 1, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Voltage net consumption CT l1', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'net_ct_voltage_phase', + 'unique_id': '1234_voltage_l1', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_voltage_net_consumption_ct_l1-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'voltage', + 'friendly_name': 'Envoy 1234 Voltage net consumption CT l1', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_voltage_net_consumption_ct_l1', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '112', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_voltage_net_consumption_ct_l2-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_voltage_net_consumption_ct_l2', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Voltage net consumption CT l2', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 1, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Voltage net consumption CT l2', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'net_ct_voltage_phase', + 'unique_id': '1234_voltage_l2', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_voltage_net_consumption_ct_l2-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'voltage', + 'friendly_name': 'Envoy 1234 Voltage net consumption CT l2', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_voltage_net_consumption_ct_l2', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '112', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_voltage_net_consumption_ct_l3-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_voltage_net_consumption_ct_l3', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Voltage net consumption CT l3', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 1, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Voltage net consumption CT l3', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'net_ct_voltage_phase', + 'unique_id': '1234_voltage_l3', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_voltage_net_consumption_ct_l3-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'voltage', + 'friendly_name': 'Envoy 1234 Voltage net consumption CT l3', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_voltage_net_consumption_ct_l3', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '112', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_voltage_production_ct-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_voltage_production_ct', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Voltage production CT', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 1, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Voltage production CT', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'production_ct_voltage', + 'unique_id': '1234_production_ct_voltage', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_voltage_production_ct-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'voltage', + 'friendly_name': 'Envoy 1234 Voltage production CT', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_voltage_production_ct', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '111', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_voltage_production_ct_l1-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_voltage_production_ct_l1', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Voltage production CT l1', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 1, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Voltage production CT l1', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'production_ct_voltage_phase', + 'unique_id': '1234_production_ct_voltage_l1', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_voltage_production_ct_l1-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'voltage', + 'friendly_name': 'Envoy 1234 Voltage production CT l1', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_voltage_production_ct_l1', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '111', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_voltage_production_ct_l2-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_voltage_production_ct_l2', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Voltage production CT l2', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 1, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Voltage production CT l2', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'production_ct_voltage_phase', + 'unique_id': '1234_production_ct_voltage_l2', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_voltage_production_ct_l2-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'voltage', + 'friendly_name': 'Envoy 1234 Voltage production CT l2', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_voltage_production_ct_l2', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '111', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_voltage_production_ct_l3-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_voltage_production_ct_l3', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Voltage production CT l3', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 1, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Voltage production CT l3', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'production_ct_voltage_phase', + 'unique_id': '1234_production_ct_voltage_l3', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_voltage_production_ct_l3-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'voltage', + 'friendly_name': 'Envoy 1234 Voltage production CT l3', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_voltage_production_ct_l3', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '111', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_voltage_pv3p_ct-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_voltage_pv3p_ct', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Voltage PV3P CT', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 1, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Voltage PV3P CT', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'pv3p_ct_voltage', + 'unique_id': '1234_pv3p_ct_voltage', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_voltage_pv3p_ct-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'voltage', + 'friendly_name': 'Envoy 1234 Voltage PV3P CT', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_voltage_pv3p_ct', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '117', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_voltage_pv3p_ct_l1-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_voltage_pv3p_ct_l1', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Voltage PV3P CT l1', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 1, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Voltage PV3P CT l1', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'pv3p_ct_voltage_phase', + 'unique_id': '1234_pv3p_ct_voltage_l1', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_voltage_pv3p_ct_l1-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'voltage', + 'friendly_name': 'Envoy 1234 Voltage PV3P CT l1', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_voltage_pv3p_ct_l1', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '117', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_voltage_pv3p_ct_l2-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_voltage_pv3p_ct_l2', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Voltage PV3P CT l2', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 1, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Voltage PV3P CT l2', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'pv3p_ct_voltage_phase', + 'unique_id': '1234_pv3p_ct_voltage_l2', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_voltage_pv3p_ct_l2-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'voltage', + 'friendly_name': 'Envoy 1234 Voltage PV3P CT l2', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_voltage_pv3p_ct_l2', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '117', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_voltage_pv3p_ct_l3-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_voltage_pv3p_ct_l3', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Voltage PV3P CT l3', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 1, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Voltage PV3P CT l3', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'pv3p_ct_voltage_phase', + 'unique_id': '1234_pv3p_ct_voltage_l3', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_voltage_pv3p_ct_l3-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'voltage', + 'friendly_name': 'Envoy 1234 Voltage PV3P CT l3', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_voltage_pv3p_ct_l3', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '117', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_voltage_storage_ct-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_voltage_storage_ct', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Voltage storage CT', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 1, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Voltage storage CT', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'storage_ct_voltage', + 'unique_id': '1234_storage_voltage', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_voltage_storage_ct-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'voltage', + 'friendly_name': 'Envoy 1234 Voltage storage CT', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_voltage_storage_ct', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '113', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_voltage_storage_ct_l1-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_voltage_storage_ct_l1', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Voltage storage CT l1', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 1, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Voltage storage CT l1', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'storage_ct_voltage_phase', + 'unique_id': '1234_storage_voltage_l1', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_voltage_storage_ct_l1-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'voltage', + 'friendly_name': 'Envoy 1234 Voltage storage CT l1', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_voltage_storage_ct_l1', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '113', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_voltage_storage_ct_l2-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_voltage_storage_ct_l2', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Voltage storage CT l2', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 1, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Voltage storage CT l2', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'storage_ct_voltage_phase', + 'unique_id': '1234_storage_voltage_l2', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_voltage_storage_ct_l2-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'voltage', + 'friendly_name': 'Envoy 1234 Voltage storage CT l2', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_voltage_storage_ct_l2', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '112', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_voltage_storage_ct_l3-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_voltage_storage_ct_l3', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Voltage storage CT l3', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 1, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Voltage storage CT l3', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'storage_ct_voltage_phase', + 'unique_id': '1234_storage_voltage_l3', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.envoy_1234_voltage_storage_ct_l3-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'voltage', + 'friendly_name': 'Envoy 1234 Voltage storage CT l3', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_voltage_storage_ct_l3', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '112', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.inverter_1-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.inverter_1', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': None, + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 0, + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': None, + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': None, + 'unique_id': '1', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.inverter_1-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'power', + 'friendly_name': 'Inverter 1', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.inverter_1', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '1', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.inverter_1_ac_current-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.inverter_1_ac_current', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'AC current', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'AC current', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'ac_current', + 'unique_id': '1_ac_current', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.inverter_1_ac_current-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'current', + 'friendly_name': 'Inverter 1 AC current', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.inverter_1_ac_current', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': 'unknown', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.inverter_1_ac_voltage-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.inverter_1_ac_voltage', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'AC voltage', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'AC voltage', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'ac_voltage', + 'unique_id': '1_ac_voltage', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.inverter_1_ac_voltage-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'voltage', + 'friendly_name': 'Inverter 1 AC voltage', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.inverter_1_ac_voltage', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': 'unknown', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.inverter_1_dc_current-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.inverter_1_dc_current', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'DC current', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'DC current', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'dc_current', + 'unique_id': '1_dc_current', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.inverter_1_dc_current-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'current', + 'friendly_name': 'Inverter 1 DC current', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.inverter_1_dc_current', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': 'unknown', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.inverter_1_dc_voltage-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.inverter_1_dc_voltage', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'DC voltage', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'DC voltage', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'dc_voltage', + 'unique_id': '1_dc_voltage', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.inverter_1_dc_voltage-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'voltage', + 'friendly_name': 'Inverter 1 DC voltage', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.inverter_1_dc_voltage', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': 'unknown', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.inverter_1_energy_production_since_previous_report-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.inverter_1_energy_production_since_previous_report', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Energy production since previous report', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Energy production since previous report', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'energy_produced', + 'unique_id': '1_energy_produced', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.inverter_1_energy_production_since_previous_report-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'energy', + 'friendly_name': 'Inverter 1 Energy production since previous report', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.inverter_1_energy_production_since_previous_report', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': 'unknown', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.inverter_1_energy_production_today-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.inverter_1_energy_production_today', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Energy production today', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 0, + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Energy production today', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'energy_today', + 'unique_id': '1_energy_today', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.inverter_1_energy_production_today-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'energy', + 'friendly_name': 'Inverter 1 Energy production today', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.inverter_1_energy_production_today', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': 'unknown', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.inverter_1_frequency-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.inverter_1_frequency', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Frequency', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Frequency', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': None, + 'unique_id': '1_ac_frequency', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.inverter_1_frequency-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'frequency', + 'friendly_name': 'Inverter 1 Frequency', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.inverter_1_frequency', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': 'unknown', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.inverter_1_last_report_duration-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': , + 'entity_id': 'sensor.inverter_1_last_report_duration', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Last report duration', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 2, + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Last report duration', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'last_report_duration', + 'unique_id': '1_last_report_duration', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.inverter_1_last_report_duration-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'duration', + 'friendly_name': 'Inverter 1 Last report duration', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.inverter_1_last_report_duration', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': 'unknown', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.inverter_1_last_reported-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': None, + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.inverter_1_last_reported', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Last reported', + 'options': dict({ + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Last reported', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'last_reported', + 'unique_id': '1_last_reported', + 'unit_of_measurement': None, + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.inverter_1_last_reported-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'timestamp', + 'friendly_name': 'Inverter 1 Last reported', + }), + 'context': , + 'entity_id': 'sensor.inverter_1_last_reported', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '1970-01-01T00:00:01+00:00', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.inverter_1_lifetime_energy_production-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.inverter_1_lifetime_energy_production', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Lifetime energy production', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 2, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Lifetime energy production', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'lifetime_energy', + 'unique_id': '1_lifetime_energy', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.inverter_1_lifetime_energy_production-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'energy', + 'friendly_name': 'Inverter 1 Lifetime energy production', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.inverter_1_lifetime_energy_production', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': 'unknown', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.inverter_1_lifetime_maximum_power-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': , + 'entity_id': 'sensor.inverter_1_lifetime_maximum_power', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Lifetime maximum power', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 0, + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Lifetime maximum power', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'max_reported', + 'unique_id': '1_max_reported', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.inverter_1_lifetime_maximum_power-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'power', + 'friendly_name': 'Inverter 1 Lifetime maximum power', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.inverter_1_lifetime_maximum_power', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '1', + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.inverter_1_temperature-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': , + 'entity_id': 'sensor.inverter_1_temperature', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Temperature', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Temperature', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': None, + 'unique_id': '1_temperature', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_metered_batt_relay][sensor.inverter_1_temperature-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'temperature', + 'friendly_name': 'Inverter 1 Temperature', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.inverter_1_temperature', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': 'unknown', + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_balanced_net_power_consumption-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_balanced_net_power_consumption', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Balanced net power consumption', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Balanced net power consumption', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'balanced_net_consumption', + 'unique_id': '1234_balanced_net_consumption', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_balanced_net_power_consumption-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'power', + 'friendly_name': 'Envoy 1234 Balanced net power consumption', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_balanced_net_power_consumption', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '2.341', + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_balanced_net_power_consumption_l1-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_balanced_net_power_consumption_l1', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Balanced net power consumption l1', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Balanced net power consumption l1', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'balanced_net_consumption_phase', + 'unique_id': '1234_balanced_net_consumption_l1', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_balanced_net_power_consumption_l1-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'power', + 'friendly_name': 'Envoy 1234 Balanced net power consumption l1', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_balanced_net_power_consumption_l1', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '12.341', + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_balanced_net_power_consumption_l2-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_balanced_net_power_consumption_l2', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Balanced net power consumption l2', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Balanced net power consumption l2', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'balanced_net_consumption_phase', + 'unique_id': '1234_balanced_net_consumption_l2', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_balanced_net_power_consumption_l2-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'power', + 'friendly_name': 'Envoy 1234 Balanced net power consumption l2', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_balanced_net_power_consumption_l2', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '22.341', + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_balanced_net_power_consumption_l3-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_balanced_net_power_consumption_l3', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Balanced net power consumption l3', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Balanced net power consumption l3', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'balanced_net_consumption_phase', + 'unique_id': '1234_balanced_net_consumption_l3', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_balanced_net_power_consumption_l3-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'power', + 'friendly_name': 'Envoy 1234 Balanced net power consumption l3', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_balanced_net_power_consumption_l3', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '32.341', + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_current_net_power_consumption-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_current_net_power_consumption', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Current net power consumption', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Current net power consumption', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'net_consumption', + 'unique_id': '1234_net_consumption', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_current_net_power_consumption-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'power', + 'friendly_name': 'Envoy 1234 Current net power consumption', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_current_net_power_consumption', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '0.101', + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_current_net_power_consumption_l1-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_current_net_power_consumption_l1', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Current net power consumption l1', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Current net power consumption l1', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'net_consumption_phase', + 'unique_id': '1234_net_consumption_l1', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_current_net_power_consumption_l1-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'power', + 'friendly_name': 'Envoy 1234 Current net power consumption l1', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_current_net_power_consumption_l1', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '0.021', + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_current_net_power_consumption_l2-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_current_net_power_consumption_l2', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Current net power consumption l2', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Current net power consumption l2', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'net_consumption_phase', + 'unique_id': '1234_net_consumption_l2', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_current_net_power_consumption_l2-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'power', + 'friendly_name': 'Envoy 1234 Current net power consumption l2', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_current_net_power_consumption_l2', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '0.031', + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_current_net_power_consumption_l3-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_current_net_power_consumption_l3', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Current net power consumption l3', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Current net power consumption l3', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'net_consumption_phase', + 'unique_id': '1234_net_consumption_l3', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_current_net_power_consumption_l3-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'power', + 'friendly_name': 'Envoy 1234 Current net power consumption l3', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_current_net_power_consumption_l3', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '0.051', + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_current_power_consumption-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_current_power_consumption', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Current power consumption', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Current power consumption', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'current_power_consumption', + 'unique_id': '1234_consumption', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_current_power_consumption-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'power', + 'friendly_name': 'Envoy 1234 Current power consumption', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_current_power_consumption', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '1.234', + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_current_power_consumption_l1-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_current_power_consumption_l1', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Current power consumption l1', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Current power consumption l1', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'current_power_consumption_phase', + 'unique_id': '1234_consumption_l1', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_current_power_consumption_l1-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'power', + 'friendly_name': 'Envoy 1234 Current power consumption l1', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_current_power_consumption_l1', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '1.324', + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_current_power_consumption_l2-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_current_power_consumption_l2', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Current power consumption l2', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Current power consumption l2', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'current_power_consumption_phase', + 'unique_id': '1234_consumption_l2', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_current_power_consumption_l2-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'power', + 'friendly_name': 'Envoy 1234 Current power consumption l2', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_current_power_consumption_l2', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '2.324', + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_current_power_consumption_l3-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_current_power_consumption_l3', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Current power consumption l3', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Current power consumption l3', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'current_power_consumption_phase', + 'unique_id': '1234_consumption_l3', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_current_power_consumption_l3-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'power', + 'friendly_name': 'Envoy 1234 Current power consumption l3', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_current_power_consumption_l3', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '3.324', + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_current_power_production-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_current_power_production', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Current power production', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Current power production', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'current_power_production', + 'unique_id': '1234_production', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_current_power_production-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'power', + 'friendly_name': 'Envoy 1234 Current power production', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_current_power_production', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '1.234', + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_current_power_production_l1-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_current_power_production_l1', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Current power production l1', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Current power production l1', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'current_power_production_phase', + 'unique_id': '1234_production_l1', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_current_power_production_l1-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'power', + 'friendly_name': 'Envoy 1234 Current power production l1', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_current_power_production_l1', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '1.234', + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_current_power_production_l2-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_current_power_production_l2', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Current power production l2', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Current power production l2', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'current_power_production_phase', + 'unique_id': '1234_production_l2', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_current_power_production_l2-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'power', + 'friendly_name': 'Envoy 1234 Current power production l2', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_current_power_production_l2', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '2.234', + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_current_power_production_l3-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_current_power_production_l3', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Current power production l3', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Current power production l3', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'current_power_production_phase', + 'unique_id': '1234_production_l3', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_current_power_production_l3-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'power', + 'friendly_name': 'Envoy 1234 Current power production l3', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_current_power_production_l3', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '3.234', + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_energy_consumption_last_seven_days-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': None, + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_energy_consumption_last_seven_days', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Energy consumption last seven days', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 1, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Energy consumption last seven days', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'seven_days_consumption', + 'unique_id': '1234_seven_days_consumption', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_energy_consumption_last_seven_days-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Energy consumption last seven days', + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_energy_consumption_last_seven_days', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '1.234', + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_energy_consumption_last_seven_days_l1-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': None, + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_energy_consumption_last_seven_days_l1', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Energy consumption last seven days l1', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 1, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Energy consumption last seven days l1', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'seven_days_consumption_phase', + 'unique_id': '1234_seven_days_consumption_l1', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_energy_consumption_last_seven_days_l1-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Energy consumption last seven days l1', + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_energy_consumption_last_seven_days_l1', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '1.321', + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_energy_consumption_last_seven_days_l2-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': None, + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_energy_consumption_last_seven_days_l2', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Energy consumption last seven days l2', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 1, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Energy consumption last seven days l2', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'seven_days_consumption_phase', + 'unique_id': '1234_seven_days_consumption_l2', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_energy_consumption_last_seven_days_l2-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Energy consumption last seven days l2', + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_energy_consumption_last_seven_days_l2', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '2.321', + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_energy_consumption_last_seven_days_l3-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': None, + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_energy_consumption_last_seven_days_l3', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Energy consumption last seven days l3', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 1, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Energy consumption last seven days l3', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'seven_days_consumption_phase', + 'unique_id': '1234_seven_days_consumption_l3', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_energy_consumption_last_seven_days_l3-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Energy consumption last seven days l3', + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_energy_consumption_last_seven_days_l3', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '3.321', + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_energy_consumption_today-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_energy_consumption_today', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Energy consumption today', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 2, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Energy consumption today', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'daily_consumption', + 'unique_id': '1234_daily_consumption', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_energy_consumption_today-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Energy consumption today', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_energy_consumption_today', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '1.234', + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_energy_consumption_today_l1-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_energy_consumption_today_l1', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Energy consumption today l1', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 2, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Energy consumption today l1', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'daily_consumption_phase', + 'unique_id': '1234_daily_consumption_l1', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_energy_consumption_today_l1-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Energy consumption today l1', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_energy_consumption_today_l1', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '1.323', + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_energy_consumption_today_l2-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_energy_consumption_today_l2', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Energy consumption today l2', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 2, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Energy consumption today l2', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'daily_consumption_phase', + 'unique_id': '1234_daily_consumption_l2', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_energy_consumption_today_l2-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Energy consumption today l2', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_energy_consumption_today_l2', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '2.323', + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_energy_consumption_today_l3-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_energy_consumption_today_l3', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Energy consumption today l3', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 2, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Energy consumption today l3', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'daily_consumption_phase', + 'unique_id': '1234_daily_consumption_l3', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_energy_consumption_today_l3-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Energy consumption today l3', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_energy_consumption_today_l3', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '3.323', + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_energy_production_last_seven_days-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': None, + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_energy_production_last_seven_days', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Energy production last seven days', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 1, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Energy production last seven days', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'seven_days_production', + 'unique_id': '1234_seven_days_production', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_energy_production_last_seven_days-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Energy production last seven days', + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_energy_production_last_seven_days', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '1.234', + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_energy_production_last_seven_days_l1-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': None, + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_energy_production_last_seven_days_l1', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Energy production last seven days l1', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 1, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Energy production last seven days l1', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'seven_days_production_phase', + 'unique_id': '1234_seven_days_production_l1', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_energy_production_last_seven_days_l1-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Energy production last seven days l1', + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_energy_production_last_seven_days_l1', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '1.231', + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_energy_production_last_seven_days_l2-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': None, + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_energy_production_last_seven_days_l2', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Energy production last seven days l2', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 1, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Energy production last seven days l2', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'seven_days_production_phase', + 'unique_id': '1234_seven_days_production_l2', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_energy_production_last_seven_days_l2-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Energy production last seven days l2', + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_energy_production_last_seven_days_l2', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '2.231', + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_energy_production_last_seven_days_l3-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': None, + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_energy_production_last_seven_days_l3', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Energy production last seven days l3', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 1, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Energy production last seven days l3', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'seven_days_production_phase', + 'unique_id': '1234_seven_days_production_l3', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_energy_production_last_seven_days_l3-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Energy production last seven days l3', + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_energy_production_last_seven_days_l3', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '3.231', + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_energy_production_today-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_energy_production_today', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Energy production today', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 2, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Energy production today', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'daily_production', + 'unique_id': '1234_daily_production', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_energy_production_today-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Energy production today', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_energy_production_today', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '1.234', + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_energy_production_today_l1-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_energy_production_today_l1', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Energy production today l1', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 2, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Energy production today l1', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'daily_production_phase', + 'unique_id': '1234_daily_production_l1', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_energy_production_today_l1-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Energy production today l1', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_energy_production_today_l1', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '1.233', + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_energy_production_today_l2-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_energy_production_today_l2', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Energy production today l2', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 2, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Energy production today l2', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'daily_production_phase', + 'unique_id': '1234_daily_production_l2', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_energy_production_today_l2-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Energy production today l2', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_energy_production_today_l2', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '2.233', + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_energy_production_today_l3-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_energy_production_today_l3', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Energy production today l3', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 2, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Energy production today l3', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'daily_production_phase', + 'unique_id': '1234_daily_production_l3', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_energy_production_today_l3-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Energy production today l3', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_energy_production_today_l3', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '3.233', + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_frequency_net_consumption_ct-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_frequency_net_consumption_ct', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Frequency net consumption CT', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 1, + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Frequency net consumption CT', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'net_ct_frequency', + 'unique_id': '1234_frequency', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_frequency_net_consumption_ct-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'frequency', + 'friendly_name': 'Envoy 1234 Frequency net consumption CT', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_frequency_net_consumption_ct', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '50.2', + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_frequency_net_consumption_ct_l1-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_frequency_net_consumption_ct_l1', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Frequency net consumption CT l1', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 1, + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Frequency net consumption CT l1', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'net_ct_frequency_phase', + 'unique_id': '1234_frequency_l1', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_frequency_net_consumption_ct_l1-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'frequency', + 'friendly_name': 'Envoy 1234 Frequency net consumption CT l1', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_frequency_net_consumption_ct_l1', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '50.2', + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_frequency_net_consumption_ct_l2-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_frequency_net_consumption_ct_l2', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Frequency net consumption CT l2', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 1, + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Frequency net consumption CT l2', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'net_ct_frequency_phase', + 'unique_id': '1234_frequency_l2', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_frequency_net_consumption_ct_l2-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'frequency', + 'friendly_name': 'Envoy 1234 Frequency net consumption CT l2', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_frequency_net_consumption_ct_l2', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '50.2', + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_frequency_net_consumption_ct_l3-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_frequency_net_consumption_ct_l3', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Frequency net consumption CT l3', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 1, + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Frequency net consumption CT l3', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'net_ct_frequency_phase', + 'unique_id': '1234_frequency_l3', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_frequency_net_consumption_ct_l3-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'frequency', + 'friendly_name': 'Envoy 1234 Frequency net consumption CT l3', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_frequency_net_consumption_ct_l3', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '50.2', + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_frequency_production_ct-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_frequency_production_ct', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Frequency production CT', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 1, + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Frequency production CT', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'production_ct_frequency', + 'unique_id': '1234_production_ct_frequency', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_frequency_production_ct-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'frequency', + 'friendly_name': 'Envoy 1234 Frequency production CT', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_frequency_production_ct', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '50.1', + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_frequency_production_ct_l1-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_frequency_production_ct_l1', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Frequency production CT l1', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 1, + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Frequency production CT l1', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'production_ct_frequency_phase', + 'unique_id': '1234_production_ct_frequency_l1', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_frequency_production_ct_l1-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'frequency', + 'friendly_name': 'Envoy 1234 Frequency production CT l1', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_frequency_production_ct_l1', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '50.1', + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_frequency_production_ct_l2-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_frequency_production_ct_l2', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Frequency production CT l2', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 1, + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Frequency production CT l2', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'production_ct_frequency_phase', + 'unique_id': '1234_production_ct_frequency_l2', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_frequency_production_ct_l2-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'frequency', + 'friendly_name': 'Envoy 1234 Frequency production CT l2', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_frequency_production_ct_l2', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '50.1', + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_frequency_production_ct_l3-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_frequency_production_ct_l3', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Frequency production CT l3', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 1, + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Frequency production CT l3', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'production_ct_frequency_phase', + 'unique_id': '1234_production_ct_frequency_l3', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_frequency_production_ct_l3-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'frequency', + 'friendly_name': 'Envoy 1234 Frequency production CT l3', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_frequency_production_ct_l3', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '50.1', + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_lifetime_balanced_net_energy_consumption-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_lifetime_balanced_net_energy_consumption', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Lifetime balanced net energy consumption', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Lifetime balanced net energy consumption', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'lifetime_balanced_net_consumption', + 'unique_id': '1234_lifetime_balanced_net_consumption', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_lifetime_balanced_net_energy_consumption-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Lifetime balanced net energy consumption', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_lifetime_balanced_net_energy_consumption', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '4.321', + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_lifetime_balanced_net_energy_consumption_l1-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_lifetime_balanced_net_energy_consumption_l1', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Lifetime balanced net energy consumption l1', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Lifetime balanced net energy consumption l1', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'lifetime_balanced_net_consumption_phase', + 'unique_id': '1234_lifetime_balanced_net_consumption_l1', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_lifetime_balanced_net_energy_consumption_l1-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Lifetime balanced net energy consumption l1', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_lifetime_balanced_net_energy_consumption_l1', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '1.321', + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_lifetime_balanced_net_energy_consumption_l2-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_lifetime_balanced_net_energy_consumption_l2', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Lifetime balanced net energy consumption l2', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Lifetime balanced net energy consumption l2', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'lifetime_balanced_net_consumption_phase', + 'unique_id': '1234_lifetime_balanced_net_consumption_l2', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_lifetime_balanced_net_energy_consumption_l2-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Lifetime balanced net energy consumption l2', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_lifetime_balanced_net_energy_consumption_l2', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '2.321', + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_lifetime_balanced_net_energy_consumption_l3-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_lifetime_balanced_net_energy_consumption_l3', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Lifetime balanced net energy consumption l3', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Lifetime balanced net energy consumption l3', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'lifetime_balanced_net_consumption_phase', + 'unique_id': '1234_lifetime_balanced_net_consumption_l3', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_lifetime_balanced_net_energy_consumption_l3-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Lifetime balanced net energy consumption l3', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_lifetime_balanced_net_energy_consumption_l3', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '3.321', + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_lifetime_energy_consumption-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_lifetime_energy_consumption', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Lifetime energy consumption', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Lifetime energy consumption', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'lifetime_consumption', + 'unique_id': '1234_lifetime_consumption', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_lifetime_energy_consumption-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Lifetime energy consumption', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_lifetime_energy_consumption', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '0.001234', + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_lifetime_energy_consumption_l1-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_lifetime_energy_consumption_l1', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Lifetime energy consumption l1', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Lifetime energy consumption l1', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'lifetime_consumption_phase', + 'unique_id': '1234_lifetime_consumption_l1', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_lifetime_energy_consumption_l1-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Lifetime energy consumption l1', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_lifetime_energy_consumption_l1', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '0.001322', + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_lifetime_energy_consumption_l2-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_lifetime_energy_consumption_l2', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Lifetime energy consumption l2', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Lifetime energy consumption l2', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'lifetime_consumption_phase', + 'unique_id': '1234_lifetime_consumption_l2', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_lifetime_energy_consumption_l2-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Lifetime energy consumption l2', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_lifetime_energy_consumption_l2', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '0.002322', + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_lifetime_energy_consumption_l3-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_lifetime_energy_consumption_l3', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Lifetime energy consumption l3', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Lifetime energy consumption l3', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'lifetime_consumption_phase', + 'unique_id': '1234_lifetime_consumption_l3', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_lifetime_energy_consumption_l3-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Lifetime energy consumption l3', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_lifetime_energy_consumption_l3', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '0.003322', + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_lifetime_energy_production-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_lifetime_energy_production', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Lifetime energy production', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Lifetime energy production', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'lifetime_production', + 'unique_id': '1234_lifetime_production', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_lifetime_energy_production-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Lifetime energy production', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_lifetime_energy_production', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '0.001234', + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_lifetime_energy_production_l1-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_lifetime_energy_production_l1', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Lifetime energy production l1', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Lifetime energy production l1', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'lifetime_production_phase', + 'unique_id': '1234_lifetime_production_l1', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_lifetime_energy_production_l1-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Lifetime energy production l1', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_lifetime_energy_production_l1', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '0.001232', + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_lifetime_energy_production_l2-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_lifetime_energy_production_l2', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Lifetime energy production l2', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Lifetime energy production l2', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'lifetime_production_phase', + 'unique_id': '1234_lifetime_production_l2', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_lifetime_energy_production_l2-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Lifetime energy production l2', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_lifetime_energy_production_l2', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '0.002232', + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_lifetime_energy_production_l3-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_lifetime_energy_production_l3', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Lifetime energy production l3', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Lifetime energy production l3', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'lifetime_production_phase', + 'unique_id': '1234_lifetime_production_l3', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_lifetime_energy_production_l3-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Lifetime energy production l3', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_lifetime_energy_production_l3', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '0.003232', + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_lifetime_net_energy_consumption-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_lifetime_net_energy_consumption', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Lifetime net energy consumption', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Lifetime net energy consumption', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'lifetime_net_consumption', + 'unique_id': '1234_lifetime_net_consumption', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_lifetime_net_energy_consumption-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Lifetime net energy consumption', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_lifetime_net_energy_consumption', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '0.021234', + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_lifetime_net_energy_consumption_l1-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_lifetime_net_energy_consumption_l1', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Lifetime net energy consumption l1', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Lifetime net energy consumption l1', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'lifetime_net_consumption_phase', + 'unique_id': '1234_lifetime_net_consumption_l1', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_lifetime_net_energy_consumption_l1-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Lifetime net energy consumption l1', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_lifetime_net_energy_consumption_l1', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '0.212341', + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_lifetime_net_energy_consumption_l2-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_lifetime_net_energy_consumption_l2', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Lifetime net energy consumption l2', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Lifetime net energy consumption l2', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'lifetime_net_consumption_phase', + 'unique_id': '1234_lifetime_net_consumption_l2', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_lifetime_net_energy_consumption_l2-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Lifetime net energy consumption l2', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_lifetime_net_energy_consumption_l2', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '0.212342', + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_lifetime_net_energy_consumption_l3-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_lifetime_net_energy_consumption_l3', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Lifetime net energy consumption l3', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Lifetime net energy consumption l3', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'lifetime_net_consumption_phase', + 'unique_id': '1234_lifetime_net_consumption_l3', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_lifetime_net_energy_consumption_l3-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Lifetime net energy consumption l3', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_lifetime_net_energy_consumption_l3', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '0.212343', + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_lifetime_net_energy_production-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_lifetime_net_energy_production', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Lifetime net energy production', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Lifetime net energy production', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'lifetime_net_production', + 'unique_id': '1234_lifetime_net_production', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_lifetime_net_energy_production-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Lifetime net energy production', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_lifetime_net_energy_production', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '0.022345', + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_lifetime_net_energy_production_l1-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_lifetime_net_energy_production_l1', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Lifetime net energy production l1', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Lifetime net energy production l1', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'lifetime_net_production_phase', + 'unique_id': '1234_lifetime_net_production_l1', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_lifetime_net_energy_production_l1-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Lifetime net energy production l1', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_lifetime_net_energy_production_l1', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '0.223451', + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_lifetime_net_energy_production_l2-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_lifetime_net_energy_production_l2', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Lifetime net energy production l2', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Lifetime net energy production l2', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'lifetime_net_production_phase', + 'unique_id': '1234_lifetime_net_production_l2', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_lifetime_net_energy_production_l2-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Lifetime net energy production l2', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_lifetime_net_energy_production_l2', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '0.223452', + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_lifetime_net_energy_production_l3-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_lifetime_net_energy_production_l3', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Lifetime net energy production l3', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Lifetime net energy production l3', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'lifetime_net_production_phase', + 'unique_id': '1234_lifetime_net_production_l3', + 'unit_of_measurement': , + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_lifetime_net_energy_production_l3-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Lifetime net energy production l3', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_lifetime_net_energy_production_l3', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '0.223453', + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_meter_status_flags_active_net_consumption_ct-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': None, + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': , + 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_net_consumption_ct', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Meter status flags active net consumption CT', + 'options': dict({ + }), + 'original_device_class': None, + 'original_icon': None, + 'original_name': 'Meter status flags active net consumption CT', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'net_ct_status_flags', + 'unique_id': '1234_net_consumption_ct_status_flags', + 'unit_of_measurement': None, + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_meter_status_flags_active_net_consumption_ct-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'friendly_name': 'Envoy 1234 Meter status flags active net consumption CT', + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_net_consumption_ct', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '0', + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_meter_status_flags_active_net_consumption_ct_l1-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': None, + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': , + 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_net_consumption_ct_l1', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Meter status flags active net consumption CT l1', + 'options': dict({ + }), + 'original_device_class': None, + 'original_icon': None, + 'original_name': 'Meter status flags active net consumption CT l1', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'net_ct_status_flags_phase', + 'unique_id': '1234_net_consumption_ct_status_flags_l1', + 'unit_of_measurement': None, + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_meter_status_flags_active_net_consumption_ct_l1-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'friendly_name': 'Envoy 1234 Meter status flags active net consumption CT l1', + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_net_consumption_ct_l1', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '0', + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_meter_status_flags_active_net_consumption_ct_l2-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': None, + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': , + 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_net_consumption_ct_l2', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Meter status flags active net consumption CT l2', + 'options': dict({ + }), + 'original_device_class': None, + 'original_icon': None, + 'original_name': 'Meter status flags active net consumption CT l2', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'net_ct_status_flags_phase', + 'unique_id': '1234_net_consumption_ct_status_flags_l2', + 'unit_of_measurement': None, + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_meter_status_flags_active_net_consumption_ct_l2-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'friendly_name': 'Envoy 1234 Meter status flags active net consumption CT l2', + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_net_consumption_ct_l2', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '0', + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_meter_status_flags_active_net_consumption_ct_l3-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': None, + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': , + 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_net_consumption_ct_l3', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Meter status flags active net consumption CT l3', + 'options': dict({ + }), + 'original_device_class': None, + 'original_icon': None, + 'original_name': 'Meter status flags active net consumption CT l3', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'net_ct_status_flags_phase', + 'unique_id': '1234_net_consumption_ct_status_flags_l3', + 'unit_of_measurement': None, + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_meter_status_flags_active_net_consumption_ct_l3-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'friendly_name': 'Envoy 1234 Meter status flags active net consumption CT l3', + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_net_consumption_ct_l3', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '0', + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_meter_status_flags_active_production_ct-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': None, + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': , + 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_production_ct', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Meter status flags active production CT', + 'options': dict({ + }), + 'original_device_class': None, + 'original_icon': None, + 'original_name': 'Meter status flags active production CT', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'production_ct_status_flags', + 'unique_id': '1234_production_ct_status_flags', + 'unit_of_measurement': None, + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_meter_status_flags_active_production_ct-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'friendly_name': 'Envoy 1234 Meter status flags active production CT', + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_production_ct', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '2', + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_meter_status_flags_active_production_ct_l1-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': None, + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': , + 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_production_ct_l1', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Meter status flags active production CT l1', + 'options': dict({ + }), + 'original_device_class': None, + 'original_icon': None, + 'original_name': 'Meter status flags active production CT l1', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'production_ct_status_flags_phase', + 'unique_id': '1234_production_ct_status_flags_l1', + 'unit_of_measurement': None, + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_meter_status_flags_active_production_ct_l1-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'friendly_name': 'Envoy 1234 Meter status flags active production CT l1', + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_production_ct_l1', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '1', + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_meter_status_flags_active_production_ct_l2-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': None, + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': , + 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_production_ct_l2', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Meter status flags active production CT l2', + 'options': dict({ + }), + 'original_device_class': None, + 'original_icon': None, + 'original_name': 'Meter status flags active production CT l2', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'production_ct_status_flags_phase', + 'unique_id': '1234_production_ct_status_flags_l2', + 'unit_of_measurement': None, + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_meter_status_flags_active_production_ct_l2-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'friendly_name': 'Envoy 1234 Meter status flags active production CT l2', + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_production_ct_l2', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '1', + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_meter_status_flags_active_production_ct_l3-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': None, + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': , + 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_production_ct_l3', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Meter status flags active production CT l3', + 'options': dict({ + }), + 'original_device_class': None, + 'original_icon': None, + 'original_name': 'Meter status flags active production CT l3', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'production_ct_status_flags_phase', + 'unique_id': '1234_production_ct_status_flags_l3', + 'unit_of_measurement': None, + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_meter_status_flags_active_production_ct_l3-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'friendly_name': 'Envoy 1234 Meter status flags active production CT l3', + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_production_ct_l3', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '0', + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_metering_status_net_consumption_ct-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'options': list([ + , + , + , + ]), + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': , + 'entity_id': 'sensor.envoy_1234_metering_status_net_consumption_ct', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Metering status net consumption CT', + 'options': dict({ + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Metering status net consumption CT', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'net_ct_metering_status', + 'unique_id': '1234_net_consumption_ct_metering_status', + 'unit_of_measurement': None, + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_metering_status_net_consumption_ct-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'enum', + 'friendly_name': 'Envoy 1234 Metering status net consumption CT', + 'options': list([ + , + , + , + ]), + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_metering_status_net_consumption_ct', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': 'normal', + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_metering_status_net_consumption_ct_l1-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'options': list([ + , + , + , + ]), + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': , + 'entity_id': 'sensor.envoy_1234_metering_status_net_consumption_ct_l1', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Metering status net consumption CT l1', + 'options': dict({ + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Metering status net consumption CT l1', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'net_ct_metering_status_phase', + 'unique_id': '1234_net_consumption_ct_metering_status_l1', + 'unit_of_measurement': None, + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_metering_status_net_consumption_ct_l1-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'enum', + 'friendly_name': 'Envoy 1234 Metering status net consumption CT l1', + 'options': list([ + , + , + , + ]), + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_metering_status_net_consumption_ct_l1', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': 'normal', + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_metering_status_net_consumption_ct_l2-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'options': list([ + , + , + , + ]), + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': , + 'entity_id': 'sensor.envoy_1234_metering_status_net_consumption_ct_l2', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Metering status net consumption CT l2', + 'options': dict({ + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Metering status net consumption CT l2', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'net_ct_metering_status_phase', + 'unique_id': '1234_net_consumption_ct_metering_status_l2', + 'unit_of_measurement': None, + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_metering_status_net_consumption_ct_l2-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'enum', + 'friendly_name': 'Envoy 1234 Metering status net consumption CT l2', + 'options': list([ + , + , + , + ]), + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_metering_status_net_consumption_ct_l2', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': 'normal', + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_metering_status_net_consumption_ct_l3-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'options': list([ + , + , + , + ]), + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': , + 'entity_id': 'sensor.envoy_1234_metering_status_net_consumption_ct_l3', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Metering status net consumption CT l3', + 'options': dict({ + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Metering status net consumption CT l3', + 'platform': 'enphase_envoy', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'net_ct_metering_status_phase', + 'unique_id': '1234_net_consumption_ct_metering_status_l3', + 'unit_of_measurement': None, + }) +# --- +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_metering_status_net_consumption_ct_l3-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'enum', + 'friendly_name': 'Envoy 1234 Metering status net consumption CT l3', + 'options': list([ + , + , + , + ]), + }), + 'context': , + 'entity_id': 'sensor.envoy_1234_metering_status_net_consumption_ct_l3', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.002322', + 'state': 'normal', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_lifetime_energy_consumption_l3-entry] +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_metering_status_production_ct-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'options': list([ + , + , + , + ]), }), 'config_entry_id': , 'config_subentry_id': , @@ -26675,8 +38803,8 @@ 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_lifetime_energy_consumption_l3', + 'entity_category': , + 'entity_id': 'sensor.envoy_1234_metering_status_production_ct', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -26684,50 +38812,51 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Lifetime energy consumption l3', + 'object_id_base': 'Metering status production CT', 'options': dict({ - 'sensor': dict({ - 'suggested_display_precision': 3, - }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': , - }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Lifetime energy consumption l3', + 'original_name': 'Metering status production CT', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'lifetime_consumption_phase', - 'unique_id': '1234_lifetime_consumption_l3', - 'unit_of_measurement': , + 'translation_key': 'production_ct_metering_status', + 'unique_id': '1234_production_ct_metering_status', + 'unit_of_measurement': None, }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_lifetime_energy_consumption_l3-state] +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_metering_status_production_ct-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'energy', - 'friendly_name': 'Envoy 1234 Lifetime energy consumption l3', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'enum', + 'friendly_name': 'Envoy 1234 Metering status production CT', + 'options': list([ + , + , + , + ]), }), 'context': , - 'entity_id': 'sensor.envoy_1234_lifetime_energy_consumption_l3', + 'entity_id': 'sensor.envoy_1234_metering_status_production_ct', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.003322', + 'state': 'normal', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_lifetime_energy_production-entry] +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_metering_status_production_ct_l1-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'options': list([ + , + , + , + ]), }), 'config_entry_id': , 'config_subentry_id': , @@ -26735,8 +38864,8 @@ 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_lifetime_energy_production', + 'entity_category': , + 'entity_id': 'sensor.envoy_1234_metering_status_production_ct_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -26744,50 +38873,51 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Lifetime energy production', + 'object_id_base': 'Metering status production CT l1', 'options': dict({ - 'sensor': dict({ - 'suggested_display_precision': 3, - }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': , - }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Lifetime energy production', + 'original_name': 'Metering status production CT l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'lifetime_production', - 'unique_id': '1234_lifetime_production', - 'unit_of_measurement': , + 'translation_key': 'production_ct_metering_status_phase', + 'unique_id': '1234_production_ct_metering_status_l1', + 'unit_of_measurement': None, }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_lifetime_energy_production-state] +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_metering_status_production_ct_l1-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'energy', - 'friendly_name': 'Envoy 1234 Lifetime energy production', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'enum', + 'friendly_name': 'Envoy 1234 Metering status production CT l1', + 'options': list([ + , + , + , + ]), }), 'context': , - 'entity_id': 'sensor.envoy_1234_lifetime_energy_production', + 'entity_id': 'sensor.envoy_1234_metering_status_production_ct_l1', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.001234', + 'state': 'normal', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_lifetime_energy_production_l1-entry] +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_metering_status_production_ct_l2-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'options': list([ + , + , + , + ]), }), 'config_entry_id': , 'config_subentry_id': , @@ -26795,8 +38925,8 @@ 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_lifetime_energy_production_l1', + 'entity_category': , + 'entity_id': 'sensor.envoy_1234_metering_status_production_ct_l2', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -26804,50 +38934,51 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Lifetime energy production l1', + 'object_id_base': 'Metering status production CT l2', 'options': dict({ - 'sensor': dict({ - 'suggested_display_precision': 3, - }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': , - }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Lifetime energy production l1', + 'original_name': 'Metering status production CT l2', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'lifetime_production_phase', - 'unique_id': '1234_lifetime_production_l1', - 'unit_of_measurement': , + 'translation_key': 'production_ct_metering_status_phase', + 'unique_id': '1234_production_ct_metering_status_l2', + 'unit_of_measurement': None, }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_lifetime_energy_production_l1-state] +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_metering_status_production_ct_l2-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'energy', - 'friendly_name': 'Envoy 1234 Lifetime energy production l1', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'enum', + 'friendly_name': 'Envoy 1234 Metering status production CT l2', + 'options': list([ + , + , + , + ]), }), 'context': , - 'entity_id': 'sensor.envoy_1234_lifetime_energy_production_l1', + 'entity_id': 'sensor.envoy_1234_metering_status_production_ct_l2', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.001232', + 'state': 'normal', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_lifetime_energy_production_l2-entry] +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_metering_status_production_ct_l3-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'options': list([ + , + , + , + ]), }), 'config_entry_id': , 'config_subentry_id': , @@ -26855,8 +38986,8 @@ 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_lifetime_energy_production_l2', + 'entity_category': , + 'entity_id': 'sensor.envoy_1234_metering_status_production_ct_l3', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -26864,50 +38995,47 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Lifetime energy production l2', + 'object_id_base': 'Metering status production CT l3', 'options': dict({ - 'sensor': dict({ - 'suggested_display_precision': 3, - }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': , - }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Lifetime energy production l2', + 'original_name': 'Metering status production CT l3', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'lifetime_production_phase', - 'unique_id': '1234_lifetime_production_l2', - 'unit_of_measurement': , + 'translation_key': 'production_ct_metering_status_phase', + 'unique_id': '1234_production_ct_metering_status_l3', + 'unit_of_measurement': None, }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_lifetime_energy_production_l2-state] +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_metering_status_production_ct_l3-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'energy', - 'friendly_name': 'Envoy 1234 Lifetime energy production l2', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'enum', + 'friendly_name': 'Envoy 1234 Metering status production CT l3', + 'options': list([ + , + , + , + ]), }), 'context': , - 'entity_id': 'sensor.envoy_1234_lifetime_energy_production_l2', + 'entity_id': 'sensor.envoy_1234_metering_status_production_ct_l3', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.002232', + 'state': 'normal', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_lifetime_energy_production_l3-entry] +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_net_consumption_ct_current-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -26916,7 +39044,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_lifetime_energy_production_l3', + 'entity_id': 'sensor.envoy_1234_net_consumption_ct_current', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -26924,50 +39052,50 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Lifetime energy production l3', + 'object_id_base': 'Net consumption CT current', 'options': dict({ 'sensor': dict({ 'suggested_display_precision': 3, }), 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Lifetime energy production l3', + 'original_name': 'Net consumption CT current', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'lifetime_production_phase', - 'unique_id': '1234_lifetime_production_l3', - 'unit_of_measurement': , + 'translation_key': 'net_ct_current', + 'unique_id': '1234_net_ct_current', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_lifetime_energy_production_l3-state] +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_net_consumption_ct_current-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'energy', - 'friendly_name': 'Envoy 1234 Lifetime energy production l3', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'current', + 'friendly_name': 'Envoy 1234 Net consumption CT current', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_lifetime_energy_production_l3', + 'entity_id': 'sensor.envoy_1234_net_consumption_ct_current', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.003232', + 'state': '0.3', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_lifetime_net_energy_consumption-entry] +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_net_consumption_ct_current_l1-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -26976,7 +39104,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_lifetime_net_energy_consumption', + 'entity_id': 'sensor.envoy_1234_net_consumption_ct_current_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -26984,50 +39112,50 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Lifetime net energy consumption', + 'object_id_base': 'Net consumption CT current l1', 'options': dict({ 'sensor': dict({ 'suggested_display_precision': 3, }), 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Lifetime net energy consumption', + 'original_name': 'Net consumption CT current l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'lifetime_net_consumption', - 'unique_id': '1234_lifetime_net_consumption', - 'unit_of_measurement': , + 'translation_key': 'net_ct_current_phase', + 'unique_id': '1234_net_ct_current_l1', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_lifetime_net_energy_consumption-state] +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_net_consumption_ct_current_l1-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'energy', - 'friendly_name': 'Envoy 1234 Lifetime net energy consumption', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'current', + 'friendly_name': 'Envoy 1234 Net consumption CT current l1', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_lifetime_net_energy_consumption', + 'entity_id': 'sensor.envoy_1234_net_consumption_ct_current_l1', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.021234', + 'state': '0.3', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_lifetime_net_energy_consumption_l1-entry] +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_net_consumption_ct_current_l2-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -27036,7 +39164,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_lifetime_net_energy_consumption_l1', + 'entity_id': 'sensor.envoy_1234_net_consumption_ct_current_l2', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -27044,50 +39172,50 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Lifetime net energy consumption l1', + 'object_id_base': 'Net consumption CT current l2', 'options': dict({ 'sensor': dict({ 'suggested_display_precision': 3, }), 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Lifetime net energy consumption l1', + 'original_name': 'Net consumption CT current l2', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'lifetime_net_consumption_phase', - 'unique_id': '1234_lifetime_net_consumption_l1', - 'unit_of_measurement': , + 'translation_key': 'net_ct_current_phase', + 'unique_id': '1234_net_ct_current_l2', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_lifetime_net_energy_consumption_l1-state] +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_net_consumption_ct_current_l2-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'energy', - 'friendly_name': 'Envoy 1234 Lifetime net energy consumption l1', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'current', + 'friendly_name': 'Envoy 1234 Net consumption CT current l2', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_lifetime_net_energy_consumption_l1', + 'entity_id': 'sensor.envoy_1234_net_consumption_ct_current_l2', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.212341', + 'state': '0.3', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_lifetime_net_energy_consumption_l2-entry] +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_net_consumption_ct_current_l3-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -27096,7 +39224,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_lifetime_net_energy_consumption_l2', + 'entity_id': 'sensor.envoy_1234_net_consumption_ct_current_l3', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -27104,50 +39232,50 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Lifetime net energy consumption l2', + 'object_id_base': 'Net consumption CT current l3', 'options': dict({ 'sensor': dict({ 'suggested_display_precision': 3, }), 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Lifetime net energy consumption l2', + 'original_name': 'Net consumption CT current l3', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'lifetime_net_consumption_phase', - 'unique_id': '1234_lifetime_net_consumption_l2', - 'unit_of_measurement': , + 'translation_key': 'net_ct_current_phase', + 'unique_id': '1234_net_ct_current_l3', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_lifetime_net_energy_consumption_l2-state] +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_net_consumption_ct_current_l3-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'energy', - 'friendly_name': 'Envoy 1234 Lifetime net energy consumption l2', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'current', + 'friendly_name': 'Envoy 1234 Net consumption CT current l3', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_lifetime_net_energy_consumption_l2', + 'entity_id': 'sensor.envoy_1234_net_consumption_ct_current_l3', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.212342', + 'state': '0.3', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_lifetime_net_energy_consumption_l3-entry] +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_power_factor_net_consumption_ct-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -27156,7 +39284,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_lifetime_net_energy_consumption_l3', + 'entity_id': 'sensor.envoy_1234_power_factor_net_consumption_ct', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -27164,50 +39292,46 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Lifetime net energy consumption l3', + 'object_id_base': 'Power factor net consumption CT', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 3, - }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_display_precision': 2, }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Lifetime net energy consumption l3', + 'original_name': 'Power factor net consumption CT', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'lifetime_net_consumption_phase', - 'unique_id': '1234_lifetime_net_consumption_l3', - 'unit_of_measurement': , + 'translation_key': 'net_ct_powerfactor', + 'unique_id': '1234_net_ct_powerfactor', + 'unit_of_measurement': None, }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_lifetime_net_energy_consumption_l3-state] +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_power_factor_net_consumption_ct-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'energy', - 'friendly_name': 'Envoy 1234 Lifetime net energy consumption l3', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'power_factor', + 'friendly_name': 'Envoy 1234 Power factor net consumption CT', + 'state_class': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_lifetime_net_energy_consumption_l3', + 'entity_id': 'sensor.envoy_1234_power_factor_net_consumption_ct', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.212343', + 'state': '0.21', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_lifetime_net_energy_production-entry] +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_power_factor_net_consumption_ct_l1-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -27216,7 +39340,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_lifetime_net_energy_production', + 'entity_id': 'sensor.envoy_1234_power_factor_net_consumption_ct_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -27224,50 +39348,46 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Lifetime net energy production', + 'object_id_base': 'Power factor net consumption CT l1', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 3, - }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_display_precision': 2, }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Lifetime net energy production', + 'original_name': 'Power factor net consumption CT l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'lifetime_net_production', - 'unique_id': '1234_lifetime_net_production', - 'unit_of_measurement': , + 'translation_key': 'net_ct_powerfactor_phase', + 'unique_id': '1234_net_ct_powerfactor_l1', + 'unit_of_measurement': None, }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_lifetime_net_energy_production-state] +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_power_factor_net_consumption_ct_l1-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'energy', - 'friendly_name': 'Envoy 1234 Lifetime net energy production', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'power_factor', + 'friendly_name': 'Envoy 1234 Power factor net consumption CT l1', + 'state_class': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_lifetime_net_energy_production', + 'entity_id': 'sensor.envoy_1234_power_factor_net_consumption_ct_l1', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.022345', + 'state': '0.22', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_lifetime_net_energy_production_l1-entry] +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_power_factor_net_consumption_ct_l2-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -27276,7 +39396,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_lifetime_net_energy_production_l1', + 'entity_id': 'sensor.envoy_1234_power_factor_net_consumption_ct_l2', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -27284,50 +39404,46 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Lifetime net energy production l1', + 'object_id_base': 'Power factor net consumption CT l2', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 3, - }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_display_precision': 2, }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Lifetime net energy production l1', + 'original_name': 'Power factor net consumption CT l2', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'lifetime_net_production_phase', - 'unique_id': '1234_lifetime_net_production_l1', - 'unit_of_measurement': , + 'translation_key': 'net_ct_powerfactor_phase', + 'unique_id': '1234_net_ct_powerfactor_l2', + 'unit_of_measurement': None, }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_lifetime_net_energy_production_l1-state] +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_power_factor_net_consumption_ct_l2-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'energy', - 'friendly_name': 'Envoy 1234 Lifetime net energy production l1', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'power_factor', + 'friendly_name': 'Envoy 1234 Power factor net consumption CT l2', + 'state_class': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_lifetime_net_energy_production_l1', + 'entity_id': 'sensor.envoy_1234_power_factor_net_consumption_ct_l2', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.223451', + 'state': '0.23', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_lifetime_net_energy_production_l2-entry] +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_power_factor_net_consumption_ct_l3-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -27336,7 +39452,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_lifetime_net_energy_production_l2', + 'entity_id': 'sensor.envoy_1234_power_factor_net_consumption_ct_l3', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -27344,50 +39460,46 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Lifetime net energy production l2', + 'object_id_base': 'Power factor net consumption CT l3', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 3, - }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_display_precision': 2, }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Lifetime net energy production l2', + 'original_name': 'Power factor net consumption CT l3', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'lifetime_net_production_phase', - 'unique_id': '1234_lifetime_net_production_l2', - 'unit_of_measurement': , + 'translation_key': 'net_ct_powerfactor_phase', + 'unique_id': '1234_net_ct_powerfactor_l3', + 'unit_of_measurement': None, }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_lifetime_net_energy_production_l2-state] +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_power_factor_net_consumption_ct_l3-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'energy', - 'friendly_name': 'Envoy 1234 Lifetime net energy production l2', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'power_factor', + 'friendly_name': 'Envoy 1234 Power factor net consumption CT l3', + 'state_class': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_lifetime_net_energy_production_l2', + 'entity_id': 'sensor.envoy_1234_power_factor_net_consumption_ct_l3', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.223452', + 'state': '0.24', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_lifetime_net_energy_production_l3-entry] +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_power_factor_production_ct-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -27396,7 +39508,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_lifetime_net_energy_production_l3', + 'entity_id': 'sensor.envoy_1234_power_factor_production_ct', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -27404,57 +39516,55 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Lifetime net energy production l3', + 'object_id_base': 'Power factor production CT', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 3, - }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_display_precision': 2, }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Lifetime net energy production l3', + 'original_name': 'Power factor production CT', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'lifetime_net_production_phase', - 'unique_id': '1234_lifetime_net_production_l3', - 'unit_of_measurement': , + 'translation_key': 'production_ct_powerfactor', + 'unique_id': '1234_production_ct_powerfactor', + 'unit_of_measurement': None, }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_lifetime_net_energy_production_l3-state] +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_power_factor_production_ct-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'energy', - 'friendly_name': 'Envoy 1234 Lifetime net energy production l3', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'power_factor', + 'friendly_name': 'Envoy 1234 Power factor production CT', + 'state_class': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_lifetime_net_energy_production_l3', + 'entity_id': 'sensor.envoy_1234_power_factor_production_ct', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.223453', + 'state': '0.11', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_meter_status_flags_active_net_consumption_ct-entry] +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_power_factor_production_ct_l1-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), - 'area_id': None, - 'capabilities': None, + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), 'config_entry_id': , 'config_subentry_id': , 'device_class': None, 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': , - 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_net_consumption_ct', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_power_factor_production_ct_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -27462,48 +39572,55 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Meter status flags active net consumption CT', + 'object_id_base': 'Power factor production CT l1', 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 2, + }), }), - 'original_device_class': None, + 'original_device_class': , 'original_icon': None, - 'original_name': 'Meter status flags active net consumption CT', + 'original_name': 'Power factor production CT l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_ct_status_flags', - 'unique_id': '1234_net_consumption_ct_status_flags', + 'translation_key': 'production_ct_powerfactor_phase', + 'unique_id': '1234_production_ct_powerfactor_l1', 'unit_of_measurement': None, }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_meter_status_flags_active_net_consumption_ct-state] +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_power_factor_production_ct_l1-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'friendly_name': 'Envoy 1234 Meter status flags active net consumption CT', + 'device_class': 'power_factor', + 'friendly_name': 'Envoy 1234 Power factor production CT l1', + 'state_class': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_net_consumption_ct', + 'entity_id': 'sensor.envoy_1234_power_factor_production_ct_l1', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0', + 'state': '0.12', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_meter_status_flags_active_net_consumption_ct_l1-entry] +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_power_factor_production_ct_l2-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, - 'capabilities': None, + 'capabilities': dict({ + 'state_class': , + }), 'config_entry_id': , 'config_subentry_id': , 'device_class': None, 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': , - 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_net_consumption_ct_l1', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_power_factor_production_ct_l2', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -27511,48 +39628,55 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Meter status flags active net consumption CT l1', + 'object_id_base': 'Power factor production CT l2', 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 2, + }), }), - 'original_device_class': None, + 'original_device_class': , 'original_icon': None, - 'original_name': 'Meter status flags active net consumption CT l1', + 'original_name': 'Power factor production CT l2', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_ct_status_flags_phase', - 'unique_id': '1234_net_consumption_ct_status_flags_l1', + 'translation_key': 'production_ct_powerfactor_phase', + 'unique_id': '1234_production_ct_powerfactor_l2', 'unit_of_measurement': None, }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_meter_status_flags_active_net_consumption_ct_l1-state] +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_power_factor_production_ct_l2-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'friendly_name': 'Envoy 1234 Meter status flags active net consumption CT l1', + 'device_class': 'power_factor', + 'friendly_name': 'Envoy 1234 Power factor production CT l2', + 'state_class': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_net_consumption_ct_l1', + 'entity_id': 'sensor.envoy_1234_power_factor_production_ct_l2', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0', + 'state': '0.13', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_meter_status_flags_active_net_consumption_ct_l2-entry] +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_power_factor_production_ct_l3-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, - 'capabilities': None, + 'capabilities': dict({ + 'state_class': , + }), 'config_entry_id': , 'config_subentry_id': , 'device_class': None, 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': , - 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_net_consumption_ct_l2', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_power_factor_production_ct_l3', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -27560,48 +39684,55 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Meter status flags active net consumption CT l2', + 'object_id_base': 'Power factor production CT l3', 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 2, + }), }), - 'original_device_class': None, + 'original_device_class': , 'original_icon': None, - 'original_name': 'Meter status flags active net consumption CT l2', + 'original_name': 'Power factor production CT l3', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_ct_status_flags_phase', - 'unique_id': '1234_net_consumption_ct_status_flags_l2', + 'translation_key': 'production_ct_powerfactor_phase', + 'unique_id': '1234_production_ct_powerfactor_l3', 'unit_of_measurement': None, }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_meter_status_flags_active_net_consumption_ct_l2-state] +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_power_factor_production_ct_l3-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'friendly_name': 'Envoy 1234 Meter status flags active net consumption CT l2', + 'device_class': 'power_factor', + 'friendly_name': 'Envoy 1234 Power factor production CT l3', + 'state_class': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_net_consumption_ct_l2', + 'entity_id': 'sensor.envoy_1234_power_factor_production_ct_l3', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0', + 'state': '0.14', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_meter_status_flags_active_net_consumption_ct_l3-entry] +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_production_ct_current-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, - 'capabilities': None, + 'capabilities': dict({ + 'state_class': , + }), 'config_entry_id': , 'config_subentry_id': , 'device_class': None, 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': , - 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_net_consumption_ct_l3', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_production_ct_current', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -27609,48 +39740,59 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Meter status flags active net consumption CT l3', + 'object_id_base': 'Production CT current', 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), }), - 'original_device_class': None, + 'original_device_class': , 'original_icon': None, - 'original_name': 'Meter status flags active net consumption CT l3', + 'original_name': 'Production CT current', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_ct_status_flags_phase', - 'unique_id': '1234_net_consumption_ct_status_flags_l3', - 'unit_of_measurement': None, + 'translation_key': 'production_ct_current', + 'unique_id': '1234_production_ct_current', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_meter_status_flags_active_net_consumption_ct_l3-state] +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_production_ct_current-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'friendly_name': 'Envoy 1234 Meter status flags active net consumption CT l3', + 'device_class': 'current', + 'friendly_name': 'Envoy 1234 Production CT current', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_net_consumption_ct_l3', + 'entity_id': 'sensor.envoy_1234_production_ct_current', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0', + 'state': '0.2', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_meter_status_flags_active_production_ct-entry] +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_production_ct_current_l1-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, - 'capabilities': None, + 'capabilities': dict({ + 'state_class': , + }), 'config_entry_id': , 'config_subentry_id': , 'device_class': None, 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': , - 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_production_ct', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_production_ct_current_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -27658,48 +39800,59 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Meter status flags active production CT', + 'object_id_base': 'Production CT current l1', 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), }), - 'original_device_class': None, + 'original_device_class': , 'original_icon': None, - 'original_name': 'Meter status flags active production CT', + 'original_name': 'Production CT current l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'production_ct_status_flags', - 'unique_id': '1234_production_ct_status_flags', - 'unit_of_measurement': None, + 'translation_key': 'production_ct_current_phase', + 'unique_id': '1234_production_ct_current_l1', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_meter_status_flags_active_production_ct-state] +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_production_ct_current_l1-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'friendly_name': 'Envoy 1234 Meter status flags active production CT', + 'device_class': 'current', + 'friendly_name': 'Envoy 1234 Production CT current l1', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_production_ct', + 'entity_id': 'sensor.envoy_1234_production_ct_current_l1', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '2', + 'state': '0.2', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_meter_status_flags_active_production_ct_l1-entry] +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_production_ct_current_l2-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, - 'capabilities': None, + 'capabilities': dict({ + 'state_class': , + }), 'config_entry_id': , 'config_subentry_id': , 'device_class': None, 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': , - 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_production_ct_l1', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_production_ct_current_l2', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -27707,48 +39860,59 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Meter status flags active production CT l1', + 'object_id_base': 'Production CT current l2', 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), }), - 'original_device_class': None, + 'original_device_class': , 'original_icon': None, - 'original_name': 'Meter status flags active production CT l1', + 'original_name': 'Production CT current l2', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'production_ct_status_flags_phase', - 'unique_id': '1234_production_ct_status_flags_l1', - 'unit_of_measurement': None, + 'translation_key': 'production_ct_current_phase', + 'unique_id': '1234_production_ct_current_l2', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_meter_status_flags_active_production_ct_l1-state] +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_production_ct_current_l2-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'friendly_name': 'Envoy 1234 Meter status flags active production CT l1', + 'device_class': 'current', + 'friendly_name': 'Envoy 1234 Production CT current l2', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_production_ct_l1', + 'entity_id': 'sensor.envoy_1234_production_ct_current_l2', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '1', + 'state': '0.2', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_meter_status_flags_active_production_ct_l2-entry] +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_production_ct_current_l3-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, - 'capabilities': None, + 'capabilities': dict({ + 'state_class': , + }), 'config_entry_id': , 'config_subentry_id': , 'device_class': None, 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': , - 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_production_ct_l2', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_production_ct_current_l3', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -27756,48 +39920,59 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Meter status flags active production CT l2', + 'object_id_base': 'Production CT current l3', 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), }), - 'original_device_class': None, + 'original_device_class': , 'original_icon': None, - 'original_name': 'Meter status flags active production CT l2', + 'original_name': 'Production CT current l3', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'production_ct_status_flags_phase', - 'unique_id': '1234_production_ct_status_flags_l2', - 'unit_of_measurement': None, + 'translation_key': 'production_ct_current_phase', + 'unique_id': '1234_production_ct_current_l3', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_meter_status_flags_active_production_ct_l2-state] +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_production_ct_current_l3-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'friendly_name': 'Envoy 1234 Meter status flags active production CT l2', + 'device_class': 'current', + 'friendly_name': 'Envoy 1234 Production CT current l3', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_production_ct_l2', + 'entity_id': 'sensor.envoy_1234_production_ct_current_l3', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '1', + 'state': '0.2', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_meter_status_flags_active_production_ct_l3-entry] +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_production_ct_energy_delivered-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, - 'capabilities': None, + 'capabilities': dict({ + 'state_class': , + }), 'config_entry_id': , 'config_subentry_id': , 'device_class': None, 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': , - 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_production_ct_l3', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_production_ct_energy_delivered', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -27805,45 +39980,50 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Meter status flags active production CT l3', + 'object_id_base': 'Production CT energy delivered', 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), }), - 'original_device_class': None, + 'original_device_class': , 'original_icon': None, - 'original_name': 'Meter status flags active production CT l3', + 'original_name': 'Production CT energy delivered', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'production_ct_status_flags_phase', - 'unique_id': '1234_production_ct_status_flags_l3', - 'unit_of_measurement': None, + 'translation_key': 'production_ct_energy_delivered', + 'unique_id': '1234_production_ct_energy_delivered', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_meter_status_flags_active_production_ct_l3-state] +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_production_ct_energy_delivered-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'friendly_name': 'Envoy 1234 Meter status flags active production CT l3', + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Production CT energy delivered', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_production_ct_l3', + 'entity_id': 'sensor.envoy_1234_production_ct_energy_delivered', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0', + 'state': '0.011234', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_metering_status_net_consumption_ct-entry] +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_production_ct_energy_delivered_l1-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'options': list([ - , - , - , - ]), + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -27851,8 +40031,8 @@ 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': , - 'entity_id': 'sensor.envoy_1234_metering_status_net_consumption_ct', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_production_ct_energy_delivered_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -27860,51 +40040,50 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Metering status net consumption CT', + 'object_id_base': 'Production CT energy delivered l1', 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Metering status net consumption CT', + 'original_name': 'Production CT energy delivered l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_ct_metering_status', - 'unique_id': '1234_net_consumption_ct_metering_status', - 'unit_of_measurement': None, + 'translation_key': 'production_ct_energy_delivered_phase', + 'unique_id': '1234_production_ct_energy_delivered_l1', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_metering_status_net_consumption_ct-state] +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_production_ct_energy_delivered_l1-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'enum', - 'friendly_name': 'Envoy 1234 Metering status net consumption CT', - 'options': list([ - , - , - , - ]), + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Production CT energy delivered l1', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_metering_status_net_consumption_ct', + 'entity_id': 'sensor.envoy_1234_production_ct_energy_delivered_l1', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': 'normal', + 'state': '0.112341', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_metering_status_net_consumption_ct_l1-entry] +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_production_ct_energy_delivered_l2-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'options': list([ - , - , - , - ]), + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -27912,8 +40091,8 @@ 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': , - 'entity_id': 'sensor.envoy_1234_metering_status_net_consumption_ct_l1', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_production_ct_energy_delivered_l2', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -27921,51 +40100,50 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Metering status net consumption CT l1', + 'object_id_base': 'Production CT energy delivered l2', 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Metering status net consumption CT l1', + 'original_name': 'Production CT energy delivered l2', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_ct_metering_status_phase', - 'unique_id': '1234_net_consumption_ct_metering_status_l1', - 'unit_of_measurement': None, + 'translation_key': 'production_ct_energy_delivered_phase', + 'unique_id': '1234_production_ct_energy_delivered_l2', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_metering_status_net_consumption_ct_l1-state] +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_production_ct_energy_delivered_l2-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'enum', - 'friendly_name': 'Envoy 1234 Metering status net consumption CT l1', - 'options': list([ - , - , - , - ]), + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Production CT energy delivered l2', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_metering_status_net_consumption_ct_l1', + 'entity_id': 'sensor.envoy_1234_production_ct_energy_delivered_l2', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': 'normal', + 'state': '0.112342', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_metering_status_net_consumption_ct_l2-entry] +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_production_ct_energy_delivered_l3-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'options': list([ - , - , - , - ]), + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -27973,8 +40151,8 @@ 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': , - 'entity_id': 'sensor.envoy_1234_metering_status_net_consumption_ct_l2', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_production_ct_energy_delivered_l3', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -27982,51 +40160,50 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Metering status net consumption CT l2', + 'object_id_base': 'Production CT energy delivered l3', 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Metering status net consumption CT l2', + 'original_name': 'Production CT energy delivered l3', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_ct_metering_status_phase', - 'unique_id': '1234_net_consumption_ct_metering_status_l2', - 'unit_of_measurement': None, + 'translation_key': 'production_ct_energy_delivered_phase', + 'unique_id': '1234_production_ct_energy_delivered_l3', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_metering_status_net_consumption_ct_l2-state] +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_production_ct_energy_delivered_l3-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'enum', - 'friendly_name': 'Envoy 1234 Metering status net consumption CT l2', - 'options': list([ - , - , - , - ]), + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Production CT energy delivered l3', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_metering_status_net_consumption_ct_l2', + 'entity_id': 'sensor.envoy_1234_production_ct_energy_delivered_l3', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': 'normal', + 'state': '0.112343', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_metering_status_net_consumption_ct_l3-entry] +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_production_ct_energy_received-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'options': list([ - , - , - , - ]), + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -28034,8 +40211,8 @@ 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': , - 'entity_id': 'sensor.envoy_1234_metering_status_net_consumption_ct_l3', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_production_ct_energy_received', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -28043,51 +40220,50 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Metering status net consumption CT l3', + 'object_id_base': 'Production CT energy received', 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Metering status net consumption CT l3', + 'original_name': 'Production CT energy received', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_ct_metering_status_phase', - 'unique_id': '1234_net_consumption_ct_metering_status_l3', - 'unit_of_measurement': None, + 'translation_key': 'production_ct_energy_received', + 'unique_id': '1234_production_ct_energy_received', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_metering_status_net_consumption_ct_l3-state] +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_production_ct_energy_received-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'enum', - 'friendly_name': 'Envoy 1234 Metering status net consumption CT l3', - 'options': list([ - , - , - , - ]), + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Production CT energy received', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_metering_status_net_consumption_ct_l3', + 'entity_id': 'sensor.envoy_1234_production_ct_energy_received', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': 'normal', + 'state': '0.012345', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_metering_status_production_ct-entry] +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_production_ct_energy_received_l1-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'options': list([ - , - , - , - ]), + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -28095,8 +40271,8 @@ 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': , - 'entity_id': 'sensor.envoy_1234_metering_status_production_ct', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_production_ct_energy_received_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -28104,51 +40280,50 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Metering status production CT', + 'object_id_base': 'Production CT energy received l1', 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Metering status production CT', + 'original_name': 'Production CT energy received l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'production_ct_metering_status', - 'unique_id': '1234_production_ct_metering_status', - 'unit_of_measurement': None, + 'translation_key': 'production_ct_energy_received_phase', + 'unique_id': '1234_production_ct_energy_received_l1', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_metering_status_production_ct-state] +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_production_ct_energy_received_l1-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'enum', - 'friendly_name': 'Envoy 1234 Metering status production CT', - 'options': list([ - , - , - , - ]), + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Production CT energy received l1', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_metering_status_production_ct', + 'entity_id': 'sensor.envoy_1234_production_ct_energy_received_l1', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': 'normal', + 'state': '0.123451', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_metering_status_production_ct_l1-entry] +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_production_ct_energy_received_l2-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'options': list([ - , - , - , - ]), + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -28156,8 +40331,8 @@ 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': , - 'entity_id': 'sensor.envoy_1234_metering_status_production_ct_l1', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_production_ct_energy_received_l2', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -28165,51 +40340,50 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Metering status production CT l1', + 'object_id_base': 'Production CT energy received l2', 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Metering status production CT l1', + 'original_name': 'Production CT energy received l2', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'production_ct_metering_status_phase', - 'unique_id': '1234_production_ct_metering_status_l1', - 'unit_of_measurement': None, + 'translation_key': 'production_ct_energy_received_phase', + 'unique_id': '1234_production_ct_energy_received_l2', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_metering_status_production_ct_l1-state] +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_production_ct_energy_received_l2-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'enum', - 'friendly_name': 'Envoy 1234 Metering status production CT l1', - 'options': list([ - , - , - , - ]), + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Production CT energy received l2', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_metering_status_production_ct_l1', + 'entity_id': 'sensor.envoy_1234_production_ct_energy_received_l2', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': 'normal', + 'state': '0.123452', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_metering_status_production_ct_l2-entry] +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_production_ct_energy_received_l3-entry] EntityRegistryEntrySnapshot({ - 'aliases': set({ - }), - 'area_id': None, - 'capabilities': dict({ - 'options': list([ - , - , - , - ]), + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -28217,8 +40391,8 @@ 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': , - 'entity_id': 'sensor.envoy_1234_metering_status_production_ct_l2', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_production_ct_energy_received_l3', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -28226,51 +40400,50 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Metering status production CT l2', + 'object_id_base': 'Production CT energy received l3', 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Metering status production CT l2', + 'original_name': 'Production CT energy received l3', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'production_ct_metering_status_phase', - 'unique_id': '1234_production_ct_metering_status_l2', - 'unit_of_measurement': None, + 'translation_key': 'production_ct_energy_received_phase', + 'unique_id': '1234_production_ct_energy_received_l3', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_metering_status_production_ct_l2-state] +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_production_ct_energy_received_l3-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'enum', - 'friendly_name': 'Envoy 1234 Metering status production CT l2', - 'options': list([ - , - , - , - ]), + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Production CT energy received l3', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_metering_status_production_ct_l2', + 'entity_id': 'sensor.envoy_1234_production_ct_energy_received_l3', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': 'normal', + 'state': '0.123453', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_metering_status_production_ct_l3-entry] +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_production_ct_power-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'options': list([ - , - , - , - ]), + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -28278,8 +40451,8 @@ 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': , - 'entity_id': 'sensor.envoy_1234_metering_status_production_ct_l3', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_production_ct_power', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -28287,41 +40460,44 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Metering status production CT l3', + 'object_id_base': 'Production CT power', 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Metering status production CT l3', + 'original_name': 'Production CT power', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'production_ct_metering_status_phase', - 'unique_id': '1234_production_ct_metering_status_l3', - 'unit_of_measurement': None, + 'translation_key': 'production_ct_power', + 'unique_id': '1234_production_ct_power', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_metering_status_production_ct_l3-state] +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_production_ct_power-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'enum', - 'friendly_name': 'Envoy 1234 Metering status production CT l3', - 'options': list([ - , - , - , - ]), + 'device_class': 'power', + 'friendly_name': 'Envoy 1234 Production CT power', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_metering_status_production_ct_l3', + 'entity_id': 'sensor.envoy_1234_production_ct_power', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': 'normal', + 'state': '0.1', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_net_consumption_ct_current-entry] +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_production_ct_power_l1-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -28336,7 +40512,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_net_consumption_ct_current', + 'entity_id': 'sensor.envoy_1234_production_ct_power_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -28344,44 +40520,44 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Net consumption CT current', + 'object_id_base': 'Production CT power l1', 'options': dict({ 'sensor': dict({ 'suggested_display_precision': 3, }), 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Net consumption CT current', + 'original_name': 'Production CT power l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_ct_current', - 'unique_id': '1234_net_ct_current', - 'unit_of_measurement': , + 'translation_key': 'production_ct_power_phase', + 'unique_id': '1234_production_ct_power_l1', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_net_consumption_ct_current-state] +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_production_ct_power_l1-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'current', - 'friendly_name': 'Envoy 1234 Net consumption CT current', + 'device_class': 'power', + 'friendly_name': 'Envoy 1234 Production CT power l1', 'state_class': , - 'unit_of_measurement': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_net_consumption_ct_current', + 'entity_id': 'sensor.envoy_1234_production_ct_power_l1', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.3', + 'state': '0.02', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_net_consumption_ct_current_l1-entry] +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_production_ct_power_l2-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -28396,7 +40572,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_net_consumption_ct_current_l1', + 'entity_id': 'sensor.envoy_1234_production_ct_power_l2', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -28404,44 +40580,44 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Net consumption CT current l1', + 'object_id_base': 'Production CT power l2', 'options': dict({ 'sensor': dict({ 'suggested_display_precision': 3, }), 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Net consumption CT current l1', + 'original_name': 'Production CT power l2', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_ct_current_phase', - 'unique_id': '1234_net_ct_current_l1', - 'unit_of_measurement': , + 'translation_key': 'production_ct_power_phase', + 'unique_id': '1234_production_ct_power_l2', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_net_consumption_ct_current_l1-state] +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_production_ct_power_l2-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'current', - 'friendly_name': 'Envoy 1234 Net consumption CT current l1', + 'device_class': 'power', + 'friendly_name': 'Envoy 1234 Production CT power l2', 'state_class': , - 'unit_of_measurement': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_net_consumption_ct_current_l1', + 'entity_id': 'sensor.envoy_1234_production_ct_power_l2', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.3', + 'state': '0.03', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_net_consumption_ct_current_l2-entry] +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_production_ct_power_l3-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -28456,7 +40632,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_net_consumption_ct_current_l2', + 'entity_id': 'sensor.envoy_1234_production_ct_power_l3', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -28464,44 +40640,44 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Net consumption CT current l2', + 'object_id_base': 'Production CT power l3', 'options': dict({ 'sensor': dict({ 'suggested_display_precision': 3, }), 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Net consumption CT current l2', + 'original_name': 'Production CT power l3', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_ct_current_phase', - 'unique_id': '1234_net_ct_current_l2', - 'unit_of_measurement': , + 'translation_key': 'production_ct_power_phase', + 'unique_id': '1234_production_ct_power_l3', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_net_consumption_ct_current_l2-state] +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_production_ct_power_l3-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'current', - 'friendly_name': 'Envoy 1234 Net consumption CT current l2', + 'device_class': 'power', + 'friendly_name': 'Envoy 1234 Production CT power l3', 'state_class': , - 'unit_of_measurement': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_net_consumption_ct_current_l2', + 'entity_id': 'sensor.envoy_1234_production_ct_power_l3', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.3', + 'state': '0.05', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_net_consumption_ct_current_l3-entry] +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_voltage_net_consumption_ct-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -28516,7 +40692,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_net_consumption_ct_current_l3', + 'entity_id': 'sensor.envoy_1234_voltage_net_consumption_ct', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -28524,44 +40700,44 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Net consumption CT current l3', + 'object_id_base': 'Voltage net consumption CT', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 3, + 'suggested_display_precision': 1, }), 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Net consumption CT current l3', + 'original_name': 'Voltage net consumption CT', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_ct_current_phase', - 'unique_id': '1234_net_ct_current_l3', - 'unit_of_measurement': , + 'translation_key': 'net_ct_voltage', + 'unique_id': '1234_voltage', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_net_consumption_ct_current_l3-state] +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_voltage_net_consumption_ct-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'current', - 'friendly_name': 'Envoy 1234 Net consumption CT current l3', + 'device_class': 'voltage', + 'friendly_name': 'Envoy 1234 Voltage net consumption CT', 'state_class': , - 'unit_of_measurement': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_net_consumption_ct_current_l3', + 'entity_id': 'sensor.envoy_1234_voltage_net_consumption_ct', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.3', + 'state': '112', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_power_factor_net_consumption_ct-entry] +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_voltage_net_consumption_ct_l1-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -28576,7 +40752,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_power_factor_net_consumption_ct', + 'entity_id': 'sensor.envoy_1234_voltage_net_consumption_ct_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -28584,40 +40760,44 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Power factor net consumption CT', + 'object_id_base': 'Voltage net consumption CT l1', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 2, + 'suggested_display_precision': 1, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Power factor net consumption CT', + 'original_name': 'Voltage net consumption CT l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_ct_powerfactor', - 'unique_id': '1234_net_ct_powerfactor', - 'unit_of_measurement': None, + 'translation_key': 'net_ct_voltage_phase', + 'unique_id': '1234_voltage_l1', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_power_factor_net_consumption_ct-state] +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_voltage_net_consumption_ct_l1-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'power_factor', - 'friendly_name': 'Envoy 1234 Power factor net consumption CT', + 'device_class': 'voltage', + 'friendly_name': 'Envoy 1234 Voltage net consumption CT l1', 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_power_factor_net_consumption_ct', + 'entity_id': 'sensor.envoy_1234_voltage_net_consumption_ct_l1', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.21', + 'state': '112', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_power_factor_net_consumption_ct_l1-entry] +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_voltage_net_consumption_ct_l2-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -28632,7 +40812,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_power_factor_net_consumption_ct_l1', + 'entity_id': 'sensor.envoy_1234_voltage_net_consumption_ct_l2', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -28640,40 +40820,44 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Power factor net consumption CT l1', + 'object_id_base': 'Voltage net consumption CT l2', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 2, + 'suggested_display_precision': 1, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Power factor net consumption CT l1', + 'original_name': 'Voltage net consumption CT l2', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_ct_powerfactor_phase', - 'unique_id': '1234_net_ct_powerfactor_l1', - 'unit_of_measurement': None, + 'translation_key': 'net_ct_voltage_phase', + 'unique_id': '1234_voltage_l2', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_power_factor_net_consumption_ct_l1-state] +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_voltage_net_consumption_ct_l2-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'power_factor', - 'friendly_name': 'Envoy 1234 Power factor net consumption CT l1', + 'device_class': 'voltage', + 'friendly_name': 'Envoy 1234 Voltage net consumption CT l2', 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_power_factor_net_consumption_ct_l1', + 'entity_id': 'sensor.envoy_1234_voltage_net_consumption_ct_l2', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.22', + 'state': '112', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_power_factor_net_consumption_ct_l2-entry] +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_voltage_net_consumption_ct_l3-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -28688,7 +40872,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_power_factor_net_consumption_ct_l2', + 'entity_id': 'sensor.envoy_1234_voltage_net_consumption_ct_l3', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -28696,40 +40880,44 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Power factor net consumption CT l2', + 'object_id_base': 'Voltage net consumption CT l3', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 2, + 'suggested_display_precision': 1, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Power factor net consumption CT l2', + 'original_name': 'Voltage net consumption CT l3', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_ct_powerfactor_phase', - 'unique_id': '1234_net_ct_powerfactor_l2', - 'unit_of_measurement': None, + 'translation_key': 'net_ct_voltage_phase', + 'unique_id': '1234_voltage_l3', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_power_factor_net_consumption_ct_l2-state] +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_voltage_net_consumption_ct_l3-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'power_factor', - 'friendly_name': 'Envoy 1234 Power factor net consumption CT l2', + 'device_class': 'voltage', + 'friendly_name': 'Envoy 1234 Voltage net consumption CT l3', 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_power_factor_net_consumption_ct_l2', + 'entity_id': 'sensor.envoy_1234_voltage_net_consumption_ct_l3', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.23', + 'state': '112', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_power_factor_net_consumption_ct_l3-entry] +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_voltage_production_ct-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -28744,7 +40932,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_power_factor_net_consumption_ct_l3', + 'entity_id': 'sensor.envoy_1234_voltage_production_ct', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -28752,40 +40940,44 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Power factor net consumption CT l3', + 'object_id_base': 'Voltage production CT', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 2, + 'suggested_display_precision': 1, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Power factor net consumption CT l3', + 'original_name': 'Voltage production CT', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_ct_powerfactor_phase', - 'unique_id': '1234_net_ct_powerfactor_l3', - 'unit_of_measurement': None, + 'translation_key': 'production_ct_voltage', + 'unique_id': '1234_production_ct_voltage', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_power_factor_net_consumption_ct_l3-state] +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_voltage_production_ct-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'power_factor', - 'friendly_name': 'Envoy 1234 Power factor net consumption CT l3', + 'device_class': 'voltage', + 'friendly_name': 'Envoy 1234 Voltage production CT', 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_power_factor_net_consumption_ct_l3', + 'entity_id': 'sensor.envoy_1234_voltage_production_ct', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.24', + 'state': '111', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_power_factor_production_ct-entry] +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_voltage_production_ct_l1-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -28800,7 +40992,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_power_factor_production_ct', + 'entity_id': 'sensor.envoy_1234_voltage_production_ct_l1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -28808,40 +41000,44 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Power factor production CT', + 'object_id_base': 'Voltage production CT l1', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 2, + 'suggested_display_precision': 1, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Power factor production CT', + 'original_name': 'Voltage production CT l1', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'production_ct_powerfactor', - 'unique_id': '1234_production_ct_powerfactor', - 'unit_of_measurement': None, + 'translation_key': 'production_ct_voltage_phase', + 'unique_id': '1234_production_ct_voltage_l1', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_power_factor_production_ct-state] +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_voltage_production_ct_l1-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'power_factor', - 'friendly_name': 'Envoy 1234 Power factor production CT', + 'device_class': 'voltage', + 'friendly_name': 'Envoy 1234 Voltage production CT l1', 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_power_factor_production_ct', + 'entity_id': 'sensor.envoy_1234_voltage_production_ct_l1', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.11', + 'state': '111', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_power_factor_production_ct_l1-entry] +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_voltage_production_ct_l2-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -28856,7 +41052,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_power_factor_production_ct_l1', + 'entity_id': 'sensor.envoy_1234_voltage_production_ct_l2', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -28864,40 +41060,44 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Power factor production CT l1', + 'object_id_base': 'Voltage production CT l2', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 2, + 'suggested_display_precision': 1, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Power factor production CT l1', + 'original_name': 'Voltage production CT l2', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'production_ct_powerfactor_phase', - 'unique_id': '1234_production_ct_powerfactor_l1', - 'unit_of_measurement': None, + 'translation_key': 'production_ct_voltage_phase', + 'unique_id': '1234_production_ct_voltage_l2', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_power_factor_production_ct_l1-state] +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_voltage_production_ct_l2-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'power_factor', - 'friendly_name': 'Envoy 1234 Power factor production CT l1', + 'device_class': 'voltage', + 'friendly_name': 'Envoy 1234 Voltage production CT l2', 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_power_factor_production_ct_l1', + 'entity_id': 'sensor.envoy_1234_voltage_production_ct_l2', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.12', + 'state': '111', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_power_factor_production_ct_l2-entry] +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_voltage_production_ct_l3-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -28912,7 +41112,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_power_factor_production_ct_l2', + 'entity_id': 'sensor.envoy_1234_voltage_production_ct_l3', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -28920,40 +41120,44 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Power factor production CT l2', + 'object_id_base': 'Voltage production CT l3', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 2, + 'suggested_display_precision': 1, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Power factor production CT l2', + 'original_name': 'Voltage production CT l3', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'production_ct_powerfactor_phase', - 'unique_id': '1234_production_ct_powerfactor_l2', - 'unit_of_measurement': None, + 'translation_key': 'production_ct_voltage_phase', + 'unique_id': '1234_production_ct_voltage_l3', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_power_factor_production_ct_l2-state] +# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_voltage_production_ct_l3-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'power_factor', - 'friendly_name': 'Envoy 1234 Power factor production CT l2', + 'device_class': 'voltage', + 'friendly_name': 'Envoy 1234 Voltage production CT l3', 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_power_factor_production_ct_l2', + 'entity_id': 'sensor.envoy_1234_voltage_production_ct_l3', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.13', + 'state': '111', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_power_factor_production_ct_l3-entry] +# name: test_sensor[envoy_nobatt_metered_3p][sensor.inverter_1-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -28968,7 +41172,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_power_factor_production_ct_l3', + 'entity_id': 'sensor.inverter_1', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -28976,40 +41180,41 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Power factor production CT l3', + 'object_id_base': None, 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 2, + 'suggested_display_precision': 0, }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Power factor production CT l3', + 'original_name': None, 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'production_ct_powerfactor_phase', - 'unique_id': '1234_production_ct_powerfactor_l3', - 'unit_of_measurement': None, + 'translation_key': None, + 'unique_id': '1', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_power_factor_production_ct_l3-state] +# name: test_sensor[envoy_nobatt_metered_3p][sensor.inverter_1-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'power_factor', - 'friendly_name': 'Envoy 1234 Power factor production CT l3', + 'device_class': 'power', + 'friendly_name': 'Inverter 1', 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_power_factor_production_ct_l3', + 'entity_id': 'sensor.inverter_1', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.14', + 'state': '1', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_production_ct_current-entry] +# name: test_sensor[envoy_nobatt_metered_3p][sensor.inverter_1_ac_current-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -29024,7 +41229,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_production_ct_current', + 'entity_id': 'sensor.inverter_1_ac_current', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -29032,44 +41237,41 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Production CT current', + 'object_id_base': 'AC current', 'options': dict({ 'sensor': dict({ 'suggested_display_precision': 3, }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': , - }), }), 'original_device_class': , 'original_icon': None, - 'original_name': 'Production CT current', + 'original_name': 'AC current', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'production_ct_current', - 'unique_id': '1234_production_ct_current', + 'translation_key': 'ac_current', + 'unique_id': '1_ac_current', 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_production_ct_current-state] +# name: test_sensor[envoy_nobatt_metered_3p][sensor.inverter_1_ac_current-state] StateSnapshot({ 'attributes': ReadOnlyDict({ 'device_class': 'current', - 'friendly_name': 'Envoy 1234 Production CT current', + 'friendly_name': 'Inverter 1 AC current', 'state_class': , 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_production_ct_current', + 'entity_id': 'sensor.inverter_1_ac_current', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.2', + 'state': 'unknown', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_production_ct_current_l1-entry] +# name: test_sensor[envoy_nobatt_metered_3p][sensor.inverter_1_ac_voltage-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -29084,7 +41286,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_production_ct_current_l1', + 'entity_id': 'sensor.inverter_1_ac_voltage', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -29092,44 +41294,41 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Production CT current l1', + 'object_id_base': 'AC voltage', 'options': dict({ 'sensor': dict({ 'suggested_display_precision': 3, }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': , - }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Production CT current l1', + 'original_name': 'AC voltage', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'production_ct_current_phase', - 'unique_id': '1234_production_ct_current_l1', - 'unit_of_measurement': , + 'translation_key': 'ac_voltage', + 'unique_id': '1_ac_voltage', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_production_ct_current_l1-state] +# name: test_sensor[envoy_nobatt_metered_3p][sensor.inverter_1_ac_voltage-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'current', - 'friendly_name': 'Envoy 1234 Production CT current l1', + 'device_class': 'voltage', + 'friendly_name': 'Inverter 1 AC voltage', 'state_class': , - 'unit_of_measurement': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_production_ct_current_l1', + 'entity_id': 'sensor.inverter_1_ac_voltage', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.2', + 'state': 'unknown', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_production_ct_current_l2-entry] +# name: test_sensor[envoy_nobatt_metered_3p][sensor.inverter_1_dc_current-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -29144,7 +41343,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_production_ct_current_l2', + 'entity_id': 'sensor.inverter_1_dc_current', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -29152,44 +41351,41 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Production CT current l2', + 'object_id_base': 'DC current', 'options': dict({ 'sensor': dict({ 'suggested_display_precision': 3, }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': , - }), }), 'original_device_class': , 'original_icon': None, - 'original_name': 'Production CT current l2', + 'original_name': 'DC current', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'production_ct_current_phase', - 'unique_id': '1234_production_ct_current_l2', + 'translation_key': 'dc_current', + 'unique_id': '1_dc_current', 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_production_ct_current_l2-state] +# name: test_sensor[envoy_nobatt_metered_3p][sensor.inverter_1_dc_current-state] StateSnapshot({ 'attributes': ReadOnlyDict({ 'device_class': 'current', - 'friendly_name': 'Envoy 1234 Production CT current l2', + 'friendly_name': 'Inverter 1 DC current', 'state_class': , 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_production_ct_current_l2', + 'entity_id': 'sensor.inverter_1_dc_current', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.2', + 'state': 'unknown', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_production_ct_current_l3-entry] +# name: test_sensor[envoy_nobatt_metered_3p][sensor.inverter_1_dc_voltage-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -29204,7 +41400,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_production_ct_current_l3', + 'entity_id': 'sensor.inverter_1_dc_voltage', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -29212,50 +41408,47 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Production CT current l3', + 'object_id_base': 'DC voltage', 'options': dict({ 'sensor': dict({ 'suggested_display_precision': 3, }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': , - }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Production CT current l3', + 'original_name': 'DC voltage', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'production_ct_current_phase', - 'unique_id': '1234_production_ct_current_l3', - 'unit_of_measurement': , + 'translation_key': 'dc_voltage', + 'unique_id': '1_dc_voltage', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_production_ct_current_l3-state] +# name: test_sensor[envoy_nobatt_metered_3p][sensor.inverter_1_dc_voltage-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'current', - 'friendly_name': 'Envoy 1234 Production CT current l3', + 'device_class': 'voltage', + 'friendly_name': 'Inverter 1 DC voltage', 'state_class': , - 'unit_of_measurement': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_production_ct_current_l3', + 'entity_id': 'sensor.inverter_1_dc_voltage', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.2', + 'state': 'unknown', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_voltage_net_consumption_ct-entry] +# name: test_sensor[envoy_nobatt_metered_3p][sensor.inverter_1_energy_production_since_previous_report-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -29264,7 +41457,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_voltage_net_consumption_ct', + 'entity_id': 'sensor.inverter_1_energy_production_since_previous_report', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -29272,50 +41465,47 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Voltage net consumption CT', + 'object_id_base': 'Energy production since previous report', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 1, - }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_display_precision': 3, }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Voltage net consumption CT', + 'original_name': 'Energy production since previous report', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_ct_voltage', - 'unique_id': '1234_voltage', - 'unit_of_measurement': , + 'translation_key': 'energy_produced', + 'unique_id': '1_energy_produced', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_voltage_net_consumption_ct-state] +# name: test_sensor[envoy_nobatt_metered_3p][sensor.inverter_1_energy_production_since_previous_report-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'voltage', - 'friendly_name': 'Envoy 1234 Voltage net consumption CT', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'energy', + 'friendly_name': 'Inverter 1 Energy production since previous report', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_voltage_net_consumption_ct', + 'entity_id': 'sensor.inverter_1_energy_production_since_previous_report', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '112', + 'state': 'unknown', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_voltage_net_consumption_ct_l1-entry] +# name: test_sensor[envoy_nobatt_metered_3p][sensor.inverter_1_energy_production_today-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -29324,7 +41514,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_voltage_net_consumption_ct_l1', + 'entity_id': 'sensor.inverter_1_energy_production_today', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -29332,44 +41522,41 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Voltage net consumption CT l1', + 'object_id_base': 'Energy production today', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 1, - }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_display_precision': 0, }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Voltage net consumption CT l1', + 'original_name': 'Energy production today', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_ct_voltage_phase', - 'unique_id': '1234_voltage_l1', - 'unit_of_measurement': , + 'translation_key': 'energy_today', + 'unique_id': '1_energy_today', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_voltage_net_consumption_ct_l1-state] +# name: test_sensor[envoy_nobatt_metered_3p][sensor.inverter_1_energy_production_today-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'voltage', - 'friendly_name': 'Envoy 1234 Voltage net consumption CT l1', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'energy', + 'friendly_name': 'Inverter 1 Energy production today', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_voltage_net_consumption_ct_l1', + 'entity_id': 'sensor.inverter_1_energy_production_today', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '112', + 'state': 'unknown', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_voltage_net_consumption_ct_l2-entry] +# name: test_sensor[envoy_nobatt_metered_3p][sensor.inverter_1_frequency-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -29384,7 +41571,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_voltage_net_consumption_ct_l2', + 'entity_id': 'sensor.inverter_1_frequency', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -29392,44 +41579,41 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Voltage net consumption CT l2', + 'object_id_base': 'Frequency', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 1, - }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_display_precision': 3, }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Voltage net consumption CT l2', + 'original_name': 'Frequency', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_ct_voltage_phase', - 'unique_id': '1234_voltage_l2', - 'unit_of_measurement': , + 'translation_key': None, + 'unique_id': '1_ac_frequency', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_voltage_net_consumption_ct_l2-state] +# name: test_sensor[envoy_nobatt_metered_3p][sensor.inverter_1_frequency-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'voltage', - 'friendly_name': 'Envoy 1234 Voltage net consumption CT l2', + 'device_class': 'frequency', + 'friendly_name': 'Inverter 1 Frequency', 'state_class': , - 'unit_of_measurement': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_voltage_net_consumption_ct_l2', + 'entity_id': 'sensor.inverter_1_frequency', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '112', + 'state': 'unknown', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_voltage_net_consumption_ct_l3-entry] +# name: test_sensor[envoy_nobatt_metered_3p][sensor.inverter_1_last_report_duration-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -29443,8 +41627,8 @@ 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_voltage_net_consumption_ct_l3', + 'entity_category': , + 'entity_id': 'sensor.inverter_1_last_report_duration', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -29452,51 +41636,46 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Voltage net consumption CT l3', + 'object_id_base': 'Last report duration', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 1, - }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_display_precision': 2, }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Voltage net consumption CT l3', + 'original_name': 'Last report duration', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'net_ct_voltage_phase', - 'unique_id': '1234_voltage_l3', - 'unit_of_measurement': , + 'translation_key': 'last_report_duration', + 'unique_id': '1_last_report_duration', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_voltage_net_consumption_ct_l3-state] +# name: test_sensor[envoy_nobatt_metered_3p][sensor.inverter_1_last_report_duration-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'voltage', - 'friendly_name': 'Envoy 1234 Voltage net consumption CT l3', + 'device_class': 'duration', + 'friendly_name': 'Inverter 1 Last report duration', 'state_class': , - 'unit_of_measurement': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_voltage_net_consumption_ct_l3', + 'entity_id': 'sensor.inverter_1_last_report_duration', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '112', + 'state': 'unknown', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_voltage_production_ct-entry] +# name: test_sensor[envoy_nobatt_metered_3p][sensor.inverter_1_last_reported-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, - 'capabilities': dict({ - 'state_class': , - }), + 'capabilities': None, 'config_entry_id': , 'config_subentry_id': , 'device_class': None, @@ -29504,7 +41683,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_voltage_production_ct', + 'entity_id': 'sensor.inverter_1_last_reported', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -29512,50 +41691,42 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Voltage production CT', + 'object_id_base': 'Last reported', 'options': dict({ - 'sensor': dict({ - 'suggested_display_precision': 1, - }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': , - }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Voltage production CT', + 'original_name': 'Last reported', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'production_ct_voltage', - 'unique_id': '1234_production_ct_voltage', - 'unit_of_measurement': , + 'translation_key': 'last_reported', + 'unique_id': '1_last_reported', + 'unit_of_measurement': None, }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_voltage_production_ct-state] +# name: test_sensor[envoy_nobatt_metered_3p][sensor.inverter_1_last_reported-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'voltage', - 'friendly_name': 'Envoy 1234 Voltage production CT', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'timestamp', + 'friendly_name': 'Inverter 1 Last reported', }), 'context': , - 'entity_id': 'sensor.envoy_1234_voltage_production_ct', + 'entity_id': 'sensor.inverter_1_last_reported', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '111', + 'state': '1970-01-01T00:00:01+00:00', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_voltage_production_ct_l1-entry] +# name: test_sensor[envoy_nobatt_metered_3p][sensor.inverter_1_lifetime_energy_production-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -29564,7 +41735,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_voltage_production_ct_l1', + 'entity_id': 'sensor.inverter_1_lifetime_energy_production', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -29572,44 +41743,44 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Voltage production CT l1', + 'object_id_base': 'Lifetime energy production', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 1, + 'suggested_display_precision': 2, }), 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Voltage production CT l1', + 'original_name': 'Lifetime energy production', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'production_ct_voltage_phase', - 'unique_id': '1234_production_ct_voltage_l1', - 'unit_of_measurement': , + 'translation_key': 'lifetime_energy', + 'unique_id': '1_lifetime_energy', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_voltage_production_ct_l1-state] +# name: test_sensor[envoy_nobatt_metered_3p][sensor.inverter_1_lifetime_energy_production-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'voltage', - 'friendly_name': 'Envoy 1234 Voltage production CT l1', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'energy', + 'friendly_name': 'Inverter 1 Lifetime energy production', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_voltage_production_ct_l1', + 'entity_id': 'sensor.inverter_1_lifetime_energy_production', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '111', + 'state': 'unknown', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_voltage_production_ct_l2-entry] +# name: test_sensor[envoy_nobatt_metered_3p][sensor.inverter_1_lifetime_maximum_power-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -29623,8 +41794,8 @@ 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_voltage_production_ct_l2', + 'entity_category': , + 'entity_id': 'sensor.inverter_1_lifetime_maximum_power', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -29632,44 +41803,41 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Voltage production CT l2', + 'object_id_base': 'Lifetime maximum power', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 1, - }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_display_precision': 0, }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Voltage production CT l2', + 'original_name': 'Lifetime maximum power', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'production_ct_voltage_phase', - 'unique_id': '1234_production_ct_voltage_l2', - 'unit_of_measurement': , + 'translation_key': 'max_reported', + 'unique_id': '1_max_reported', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_voltage_production_ct_l2-state] +# name: test_sensor[envoy_nobatt_metered_3p][sensor.inverter_1_lifetime_maximum_power-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'voltage', - 'friendly_name': 'Envoy 1234 Voltage production CT l2', + 'device_class': 'power', + 'friendly_name': 'Inverter 1 Lifetime maximum power', 'state_class': , - 'unit_of_measurement': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_voltage_production_ct_l2', + 'entity_id': 'sensor.inverter_1_lifetime_maximum_power', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '111', + 'state': '1', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_voltage_production_ct_l3-entry] +# name: test_sensor[envoy_nobatt_metered_3p][sensor.inverter_1_temperature-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -29683,8 +41851,8 @@ 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_voltage_production_ct_l3', + 'entity_category': , + 'entity_id': 'sensor.inverter_1_temperature', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -29692,44 +41860,41 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Voltage production CT l3', + 'object_id_base': 'Temperature', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 1, - }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_display_precision': 3, }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Voltage production CT l3', + 'original_name': 'Temperature', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'production_ct_voltage_phase', - 'unique_id': '1234_production_ct_voltage_l3', - 'unit_of_measurement': , + 'translation_key': None, + 'unique_id': '1_temperature', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.envoy_1234_voltage_production_ct_l3-state] +# name: test_sensor[envoy_nobatt_metered_3p][sensor.inverter_1_temperature-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'voltage', - 'friendly_name': 'Envoy 1234 Voltage production CT l3', + 'device_class': 'temperature', + 'friendly_name': 'Inverter 1 Temperature', 'state_class': , - 'unit_of_measurement': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_voltage_production_ct_l3', + 'entity_id': 'sensor.inverter_1_temperature', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '111', + 'state': 'unknown', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.inverter_1-entry] +# name: test_sensor[envoy_tot_cons_metered][sensor.envoy_1234_balanced_net_power_consumption-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -29744,7 +41909,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.inverter_1', + 'entity_id': 'sensor.envoy_1234_balanced_net_power_consumption', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -29752,41 +41917,44 @@ 'labels': set({ }), 'name': None, - 'object_id_base': None, + 'object_id_base': 'Balanced net power consumption', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 0, + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , }), }), 'original_device_class': , 'original_icon': None, - 'original_name': None, + 'original_name': 'Balanced net power consumption', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': None, - 'unique_id': '1', - 'unit_of_measurement': , + 'translation_key': 'balanced_net_consumption', + 'unique_id': '1234_balanced_net_consumption', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.inverter_1-state] +# name: test_sensor[envoy_tot_cons_metered][sensor.envoy_1234_balanced_net_power_consumption-state] StateSnapshot({ 'attributes': ReadOnlyDict({ 'device_class': 'power', - 'friendly_name': 'Inverter 1', + 'friendly_name': 'Envoy 1234 Balanced net power consumption', 'state_class': , - 'unit_of_measurement': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.inverter_1', + 'entity_id': 'sensor.envoy_1234_balanced_net_power_consumption', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '1', + 'state': '2.341', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.inverter_1_ac_current-entry] +# name: test_sensor[envoy_tot_cons_metered][sensor.envoy_1234_current_power_production-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -29801,7 +41969,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.inverter_1_ac_current', + 'entity_id': 'sensor.envoy_1234_current_power_production', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -29809,48 +41977,49 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'AC current', + 'object_id_base': 'Current power production', 'options': dict({ 'sensor': dict({ 'suggested_display_precision': 3, }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'AC current', + 'original_name': 'Current power production', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'ac_current', - 'unique_id': '1_ac_current', - 'unit_of_measurement': , + 'translation_key': 'current_power_production', + 'unique_id': '1234_production', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.inverter_1_ac_current-state] +# name: test_sensor[envoy_tot_cons_metered][sensor.envoy_1234_current_power_production-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'current', - 'friendly_name': 'Inverter 1 AC current', + 'device_class': 'power', + 'friendly_name': 'Envoy 1234 Current power production', 'state_class': , - 'unit_of_measurement': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.inverter_1_ac_current', + 'entity_id': 'sensor.envoy_1234_current_power_production', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': 'unknown', + 'state': '1.234', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.inverter_1_ac_voltage-entry] +# name: test_sensor[envoy_tot_cons_metered][sensor.envoy_1234_energy_production_last_seven_days-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, - 'capabilities': dict({ - 'state_class': , - }), + 'capabilities': None, 'config_entry_id': , 'config_subentry_id': , 'device_class': None, @@ -29858,7 +42027,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.inverter_1_ac_voltage', + 'entity_id': 'sensor.envoy_1234_energy_production_last_seven_days', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -29866,47 +42035,49 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'AC voltage', + 'object_id_base': 'Energy production last seven days', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 3, + 'suggested_display_precision': 1, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'AC voltage', + 'original_name': 'Energy production last seven days', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'ac_voltage', - 'unique_id': '1_ac_voltage', - 'unit_of_measurement': , + 'translation_key': 'seven_days_production', + 'unique_id': '1234_seven_days_production', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.inverter_1_ac_voltage-state] +# name: test_sensor[envoy_tot_cons_metered][sensor.envoy_1234_energy_production_last_seven_days-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'voltage', - 'friendly_name': 'Inverter 1 AC voltage', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Energy production last seven days', + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.inverter_1_ac_voltage', + 'entity_id': 'sensor.envoy_1234_energy_production_last_seven_days', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': 'unknown', + 'state': '1.234', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.inverter_1_dc_current-entry] +# name: test_sensor[envoy_tot_cons_metered][sensor.envoy_1234_energy_production_today-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -29915,7 +42086,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.inverter_1_dc_current', + 'entity_id': 'sensor.envoy_1234_energy_production_today', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -29923,41 +42094,44 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'DC current', + 'object_id_base': 'Energy production today', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 3, + 'suggested_display_precision': 2, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'DC current', + 'original_name': 'Energy production today', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'dc_current', - 'unique_id': '1_dc_current', - 'unit_of_measurement': , + 'translation_key': 'daily_production', + 'unique_id': '1234_daily_production', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.inverter_1_dc_current-state] +# name: test_sensor[envoy_tot_cons_metered][sensor.envoy_1234_energy_production_today-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'current', - 'friendly_name': 'Inverter 1 DC current', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Energy production today', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.inverter_1_dc_current', + 'entity_id': 'sensor.envoy_1234_energy_production_today', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': 'unknown', + 'state': '1.234', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.inverter_1_dc_voltage-entry] +# name: test_sensor[envoy_tot_cons_metered][sensor.envoy_1234_frequency_production_ct-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -29972,7 +42146,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.inverter_1_dc_voltage', + 'entity_id': 'sensor.envoy_1234_frequency_production_ct', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -29980,47 +42154,47 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'DC voltage', + 'object_id_base': 'Frequency production CT', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 3, + 'suggested_display_precision': 1, }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'DC voltage', + 'original_name': 'Frequency production CT', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'dc_voltage', - 'unique_id': '1_dc_voltage', - 'unit_of_measurement': , + 'translation_key': 'production_ct_frequency', + 'unique_id': '1234_production_ct_frequency', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.inverter_1_dc_voltage-state] +# name: test_sensor[envoy_tot_cons_metered][sensor.envoy_1234_frequency_production_ct-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'voltage', - 'friendly_name': 'Inverter 1 DC voltage', + 'device_class': 'frequency', + 'friendly_name': 'Envoy 1234 Frequency production CT', 'state_class': , - 'unit_of_measurement': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.inverter_1_dc_voltage', + 'entity_id': 'sensor.envoy_1234_frequency_production_ct', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': 'unknown', + 'state': '50.1', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.inverter_1_energy_production_since_previous_report-entry] +# name: test_sensor[envoy_tot_cons_metered][sensor.envoy_1234_frequency_total_consumption_ct-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -30029,7 +42203,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.inverter_1_energy_production_since_previous_report', + 'entity_id': 'sensor.envoy_1234_frequency_total_consumption_ct', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -30037,47 +42211,47 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Energy production since previous report', + 'object_id_base': 'Frequency total consumption CT', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 3, + 'suggested_display_precision': 1, }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Energy production since previous report', + 'original_name': 'Frequency total consumption CT', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'energy_produced', - 'unique_id': '1_energy_produced', - 'unit_of_measurement': , + 'translation_key': 'total_consumption_ct_frequency', + 'unique_id': '1234_total_consumption_ct_frequency', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.inverter_1_energy_production_since_previous_report-state] +# name: test_sensor[envoy_tot_cons_metered][sensor.envoy_1234_frequency_total_consumption_ct-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'energy', - 'friendly_name': 'Inverter 1 Energy production since previous report', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'frequency', + 'friendly_name': 'Envoy 1234 Frequency total consumption CT', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.inverter_1_energy_production_since_previous_report', + 'entity_id': 'sensor.envoy_1234_frequency_total_consumption_ct', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': 'unknown', + 'state': '50.2', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.inverter_1_energy_production_today-entry] +# name: test_sensor[envoy_tot_cons_metered][sensor.envoy_1234_lifetime_balanced_net_energy_consumption-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -30086,7 +42260,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.inverter_1_energy_production_today', + 'entity_id': 'sensor.envoy_1234_lifetime_balanced_net_energy_consumption', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -30094,47 +42268,50 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Energy production today', + 'object_id_base': 'Lifetime balanced net energy consumption', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 0, + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , }), }), 'original_device_class': , 'original_icon': None, - 'original_name': 'Energy production today', + 'original_name': 'Lifetime balanced net energy consumption', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'energy_today', - 'unique_id': '1_energy_today', - 'unit_of_measurement': , + 'translation_key': 'lifetime_balanced_net_consumption', + 'unique_id': '1234_lifetime_balanced_net_consumption', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.inverter_1_energy_production_today-state] +# name: test_sensor[envoy_tot_cons_metered][sensor.envoy_1234_lifetime_balanced_net_energy_consumption-state] StateSnapshot({ 'attributes': ReadOnlyDict({ 'device_class': 'energy', - 'friendly_name': 'Inverter 1 Energy production today', - 'state_class': , - 'unit_of_measurement': , + 'friendly_name': 'Envoy 1234 Lifetime balanced net energy consumption', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.inverter_1_energy_production_today', + 'entity_id': 'sensor.envoy_1234_lifetime_balanced_net_energy_consumption', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': 'unknown', + 'state': '4.321', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.inverter_1_frequency-entry] +# name: test_sensor[envoy_tot_cons_metered][sensor.envoy_1234_lifetime_energy_production-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -30143,7 +42320,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.inverter_1_frequency', + 'entity_id': 'sensor.envoy_1234_lifetime_energy_production', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -30151,48 +42328,49 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Frequency', + 'object_id_base': 'Lifetime energy production', 'options': dict({ 'sensor': dict({ 'suggested_display_precision': 3, }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Frequency', + 'original_name': 'Lifetime energy production', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': None, - 'unique_id': '1_ac_frequency', - 'unit_of_measurement': , + 'translation_key': 'lifetime_production', + 'unique_id': '1234_lifetime_production', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.inverter_1_frequency-state] +# name: test_sensor[envoy_tot_cons_metered][sensor.envoy_1234_lifetime_energy_production-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'frequency', - 'friendly_name': 'Inverter 1 Frequency', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Lifetime energy production', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.inverter_1_frequency', + 'entity_id': 'sensor.envoy_1234_lifetime_energy_production', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': 'unknown', + 'state': '0.001234', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.inverter_1_last_report_duration-entry] +# name: test_sensor[envoy_tot_cons_metered][sensor.envoy_1234_meter_status_flags_active_production_ct-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, - 'capabilities': dict({ - 'state_class': , - }), + 'capabilities': None, 'config_entry_id': , 'config_subentry_id': , 'device_class': None, @@ -30200,7 +42378,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': , - 'entity_id': 'sensor.inverter_1_last_report_duration', + 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_production_ct', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -30208,41 +42386,35 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Last report duration', + 'object_id_base': 'Meter status flags active production CT', 'options': dict({ - 'sensor': dict({ - 'suggested_display_precision': 2, - }), }), - 'original_device_class': , + 'original_device_class': None, 'original_icon': None, - 'original_name': 'Last report duration', + 'original_name': 'Meter status flags active production CT', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'last_report_duration', - 'unique_id': '1_last_report_duration', - 'unit_of_measurement': , + 'translation_key': 'production_ct_status_flags', + 'unique_id': '1234_production_ct_status_flags', + 'unit_of_measurement': None, }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.inverter_1_last_report_duration-state] +# name: test_sensor[envoy_tot_cons_metered][sensor.envoy_1234_meter_status_flags_active_production_ct-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'duration', - 'friendly_name': 'Inverter 1 Last report duration', - 'state_class': , - 'unit_of_measurement': , + 'friendly_name': 'Envoy 1234 Meter status flags active production CT', }), 'context': , - 'entity_id': 'sensor.inverter_1_last_report_duration', + 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_production_ct', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': 'unknown', + 'state': '2', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.inverter_1_last_reported-entry] +# name: test_sensor[envoy_tot_cons_metered][sensor.envoy_1234_meter_status_flags_active_total_consumption_ct-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -30254,8 +42426,8 @@ 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': None, - 'entity_id': 'sensor.inverter_1_last_reported', + 'entity_category': , + 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_total_consumption_ct', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -30263,42 +42435,45 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Last reported', + 'object_id_base': 'Meter status flags active total consumption CT', 'options': dict({ }), - 'original_device_class': , + 'original_device_class': None, 'original_icon': None, - 'original_name': 'Last reported', + 'original_name': 'Meter status flags active total consumption CT', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'last_reported', - 'unique_id': '1_last_reported', + 'translation_key': 'total_consumption_ct_status_flags', + 'unique_id': '1234_total_consumption_ct_status_flags', 'unit_of_measurement': None, }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.inverter_1_last_reported-state] +# name: test_sensor[envoy_tot_cons_metered][sensor.envoy_1234_meter_status_flags_active_total_consumption_ct-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'timestamp', - 'friendly_name': 'Inverter 1 Last reported', + 'friendly_name': 'Envoy 1234 Meter status flags active total consumption CT', }), 'context': , - 'entity_id': 'sensor.inverter_1_last_reported', + 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_total_consumption_ct', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '1970-01-01T00:00:01+00:00', + 'state': '0', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.inverter_1_lifetime_energy_production-entry] +# name: test_sensor[envoy_tot_cons_metered][sensor.envoy_1234_metering_status_production_ct-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'options': list([ + , + , + , + ]), }), 'config_entry_id': , 'config_subentry_id': , @@ -30306,8 +42481,8 @@ 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': None, - 'entity_id': 'sensor.inverter_1_lifetime_energy_production', + 'entity_category': , + 'entity_id': 'sensor.envoy_1234_metering_status_production_ct', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -30315,50 +42490,51 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Lifetime energy production', + 'object_id_base': 'Metering status production CT', 'options': dict({ - 'sensor': dict({ - 'suggested_display_precision': 2, - }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': , - }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Lifetime energy production', + 'original_name': 'Metering status production CT', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'lifetime_energy', - 'unique_id': '1_lifetime_energy', - 'unit_of_measurement': , + 'translation_key': 'production_ct_metering_status', + 'unique_id': '1234_production_ct_metering_status', + 'unit_of_measurement': None, }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.inverter_1_lifetime_energy_production-state] +# name: test_sensor[envoy_tot_cons_metered][sensor.envoy_1234_metering_status_production_ct-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'energy', - 'friendly_name': 'Inverter 1 Lifetime energy production', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'enum', + 'friendly_name': 'Envoy 1234 Metering status production CT', + 'options': list([ + , + , + , + ]), }), 'context': , - 'entity_id': 'sensor.inverter_1_lifetime_energy_production', + 'entity_id': 'sensor.envoy_1234_metering_status_production_ct', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': 'unknown', + 'state': 'normal', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.inverter_1_lifetime_maximum_power-entry] +# name: test_sensor[envoy_tot_cons_metered][sensor.envoy_1234_metering_status_total_consumption_ct-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'options': list([ + , + , + , + ]), }), 'config_entry_id': , 'config_subentry_id': , @@ -30367,7 +42543,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': , - 'entity_id': 'sensor.inverter_1_lifetime_maximum_power', + 'entity_id': 'sensor.envoy_1234_metering_status_total_consumption_ct', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -30375,41 +42551,41 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Lifetime maximum power', + 'object_id_base': 'Metering status total consumption CT', 'options': dict({ - 'sensor': dict({ - 'suggested_display_precision': 0, - }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Lifetime maximum power', + 'original_name': 'Metering status total consumption CT', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'max_reported', - 'unique_id': '1_max_reported', - 'unit_of_measurement': , + 'translation_key': 'total_consumption_ct_metering_status', + 'unique_id': '1234_total_consumption_ct_metering_status', + 'unit_of_measurement': None, }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.inverter_1_lifetime_maximum_power-state] +# name: test_sensor[envoy_tot_cons_metered][sensor.envoy_1234_metering_status_total_consumption_ct-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'power', - 'friendly_name': 'Inverter 1 Lifetime maximum power', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'enum', + 'friendly_name': 'Envoy 1234 Metering status total consumption CT', + 'options': list([ + , + , + , + ]), }), 'context': , - 'entity_id': 'sensor.inverter_1_lifetime_maximum_power', + 'entity_id': 'sensor.envoy_1234_metering_status_total_consumption_ct', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '1', + 'state': 'normal', }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.inverter_1_temperature-entry] +# name: test_sensor[envoy_tot_cons_metered][sensor.envoy_1234_power_factor_production_ct-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -30423,8 +42599,8 @@ 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': , - 'entity_id': 'sensor.inverter_1_temperature', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_power_factor_production_ct', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -30432,41 +42608,40 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Temperature', + 'object_id_base': 'Power factor production CT', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 3, + 'suggested_display_precision': 2, }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Temperature', + 'original_name': 'Power factor production CT', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': None, - 'unique_id': '1_temperature', - 'unit_of_measurement': , + 'translation_key': 'production_ct_powerfactor', + 'unique_id': '1234_production_ct_powerfactor', + 'unit_of_measurement': None, }) # --- -# name: test_sensor[envoy_nobatt_metered_3p][sensor.inverter_1_temperature-state] +# name: test_sensor[envoy_tot_cons_metered][sensor.envoy_1234_power_factor_production_ct-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'temperature', - 'friendly_name': 'Inverter 1 Temperature', + 'device_class': 'power_factor', + 'friendly_name': 'Envoy 1234 Power factor production CT', 'state_class': , - 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.inverter_1_temperature', + 'entity_id': 'sensor.envoy_1234_power_factor_production_ct', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': 'unknown', + 'state': '0.11', }) # --- -# name: test_sensor[envoy_tot_cons_metered][sensor.envoy_1234_balanced_net_power_consumption-entry] +# name: test_sensor[envoy_tot_cons_metered][sensor.envoy_1234_power_factor_total_consumption_ct-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -30481,7 +42656,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_balanced_net_power_consumption', + 'entity_id': 'sensor.envoy_1234_power_factor_total_consumption_ct', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -30489,44 +42664,40 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Balanced net power consumption', + 'object_id_base': 'Power factor total consumption CT', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 3, - }), - 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_display_precision': 2, }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Balanced net power consumption', + 'original_name': 'Power factor total consumption CT', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'balanced_net_consumption', - 'unique_id': '1234_balanced_net_consumption', - 'unit_of_measurement': , + 'translation_key': 'total_consumption_ct_powerfactor', + 'unique_id': '1234_total_consumption_ct_powerfactor', + 'unit_of_measurement': None, }) # --- -# name: test_sensor[envoy_tot_cons_metered][sensor.envoy_1234_balanced_net_power_consumption-state] +# name: test_sensor[envoy_tot_cons_metered][sensor.envoy_1234_power_factor_total_consumption_ct-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'power', - 'friendly_name': 'Envoy 1234 Balanced net power consumption', + 'device_class': 'power_factor', + 'friendly_name': 'Envoy 1234 Power factor total consumption CT', 'state_class': , - 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_balanced_net_power_consumption', + 'entity_id': 'sensor.envoy_1234_power_factor_total_consumption_ct', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '2.341', + 'state': '0.21', }) # --- -# name: test_sensor[envoy_tot_cons_metered][sensor.envoy_1234_current_power_production-entry] +# name: test_sensor[envoy_tot_cons_metered][sensor.envoy_1234_production_ct_current-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -30541,7 +42712,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_current_power_production', + 'entity_id': 'sensor.envoy_1234_production_ct_current', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -30549,49 +42720,51 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Current power production', + 'object_id_base': 'Production CT current', 'options': dict({ 'sensor': dict({ 'suggested_display_precision': 3, }), 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Current power production', + 'original_name': 'Production CT current', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'current_power_production', - 'unique_id': '1234_production', - 'unit_of_measurement': , + 'translation_key': 'production_ct_current', + 'unique_id': '1234_production_ct_current', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_tot_cons_metered][sensor.envoy_1234_current_power_production-state] +# name: test_sensor[envoy_tot_cons_metered][sensor.envoy_1234_production_ct_current-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'power', - 'friendly_name': 'Envoy 1234 Current power production', + 'device_class': 'current', + 'friendly_name': 'Envoy 1234 Production CT current', 'state_class': , - 'unit_of_measurement': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_current_power_production', + 'entity_id': 'sensor.envoy_1234_production_ct_current', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '1.234', + 'state': '0.2', }) # --- -# name: test_sensor[envoy_tot_cons_metered][sensor.envoy_1234_energy_production_last_seven_days-entry] +# name: test_sensor[envoy_tot_cons_metered][sensor.envoy_1234_production_ct_energy_delivered-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, - 'capabilities': None, + 'capabilities': dict({ + 'state_class': , + }), 'config_entry_id': , 'config_subentry_id': , 'device_class': None, @@ -30599,7 +42772,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_energy_production_last_seven_days', + 'entity_id': 'sensor.envoy_1234_production_ct_energy_delivered', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -30607,43 +42780,44 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Energy production last seven days', + 'object_id_base': 'Production CT energy delivered', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 1, + 'suggested_display_precision': 3, }), 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_unit_of_measurement': , }), }), 'original_device_class': , 'original_icon': None, - 'original_name': 'Energy production last seven days', + 'original_name': 'Production CT energy delivered', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'seven_days_production', - 'unique_id': '1234_seven_days_production', - 'unit_of_measurement': , + 'translation_key': 'production_ct_energy_delivered', + 'unique_id': '1234_production_ct_energy_delivered', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_tot_cons_metered][sensor.envoy_1234_energy_production_last_seven_days-state] +# name: test_sensor[envoy_tot_cons_metered][sensor.envoy_1234_production_ct_energy_delivered-state] StateSnapshot({ 'attributes': ReadOnlyDict({ 'device_class': 'energy', - 'friendly_name': 'Envoy 1234 Energy production last seven days', - 'unit_of_measurement': , + 'friendly_name': 'Envoy 1234 Production CT energy delivered', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_energy_production_last_seven_days', + 'entity_id': 'sensor.envoy_1234_production_ct_energy_delivered', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '1.234', + 'state': '0.011234', }) # --- -# name: test_sensor[envoy_tot_cons_metered][sensor.envoy_1234_energy_production_today-entry] +# name: test_sensor[envoy_tot_cons_metered][sensor.envoy_1234_production_ct_energy_received-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -30658,7 +42832,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_energy_production_today', + 'entity_id': 'sensor.envoy_1234_production_ct_energy_received', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -30666,44 +42840,44 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Energy production today', + 'object_id_base': 'Production CT energy received', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 2, + 'suggested_display_precision': 3, }), 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_unit_of_measurement': , }), }), 'original_device_class': , 'original_icon': None, - 'original_name': 'Energy production today', + 'original_name': 'Production CT energy received', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'daily_production', - 'unique_id': '1234_daily_production', - 'unit_of_measurement': , + 'translation_key': 'production_ct_energy_received', + 'unique_id': '1234_production_ct_energy_received', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_tot_cons_metered][sensor.envoy_1234_energy_production_today-state] +# name: test_sensor[envoy_tot_cons_metered][sensor.envoy_1234_production_ct_energy_received-state] StateSnapshot({ 'attributes': ReadOnlyDict({ 'device_class': 'energy', - 'friendly_name': 'Envoy 1234 Energy production today', + 'friendly_name': 'Envoy 1234 Production CT energy received', 'state_class': , - 'unit_of_measurement': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_energy_production_today', + 'entity_id': 'sensor.envoy_1234_production_ct_energy_received', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '1.234', + 'state': '0.012345', }) # --- -# name: test_sensor[envoy_tot_cons_metered][sensor.envoy_1234_frequency_production_ct-entry] +# name: test_sensor[envoy_tot_cons_metered][sensor.envoy_1234_production_ct_power-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -30718,7 +42892,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_frequency_production_ct', + 'entity_id': 'sensor.envoy_1234_production_ct_power', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -30726,47 +42900,50 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Frequency production CT', + 'object_id_base': 'Production CT power', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 1, + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Frequency production CT', + 'original_name': 'Production CT power', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'production_ct_frequency', - 'unique_id': '1234_production_ct_frequency', - 'unit_of_measurement': , + 'translation_key': 'production_ct_power', + 'unique_id': '1234_production_ct_power', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_tot_cons_metered][sensor.envoy_1234_frequency_production_ct-state] +# name: test_sensor[envoy_tot_cons_metered][sensor.envoy_1234_production_ct_power-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'frequency', - 'friendly_name': 'Envoy 1234 Frequency production CT', + 'device_class': 'power', + 'friendly_name': 'Envoy 1234 Production CT power', 'state_class': , - 'unit_of_measurement': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_frequency_production_ct', + 'entity_id': 'sensor.envoy_1234_production_ct_power', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '50.1', + 'state': '0.1', }) # --- -# name: test_sensor[envoy_tot_cons_metered][sensor.envoy_1234_lifetime_balanced_net_energy_consumption-entry] +# name: test_sensor[envoy_tot_cons_metered][sensor.envoy_1234_total_consumption_ct_current-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'state_class': , + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -30775,7 +42952,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_lifetime_balanced_net_energy_consumption', + 'entity_id': 'sensor.envoy_1234_total_consumption_ct_current', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -30783,44 +42960,44 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Lifetime balanced net energy consumption', + 'object_id_base': 'Total consumption CT current', 'options': dict({ 'sensor': dict({ 'suggested_display_precision': 3, }), 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Lifetime balanced net energy consumption', + 'original_name': 'Total consumption CT current', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'lifetime_balanced_net_consumption', - 'unique_id': '1234_lifetime_balanced_net_consumption', - 'unit_of_measurement': , + 'translation_key': 'total_consumption_ct_current', + 'unique_id': '1234_total_consumption_ct_current', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_tot_cons_metered][sensor.envoy_1234_lifetime_balanced_net_energy_consumption-state] +# name: test_sensor[envoy_tot_cons_metered][sensor.envoy_1234_total_consumption_ct_current-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'energy', - 'friendly_name': 'Envoy 1234 Lifetime balanced net energy consumption', - 'state_class': , - 'unit_of_measurement': , + 'device_class': 'current', + 'friendly_name': 'Envoy 1234 Total consumption CT current', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_lifetime_balanced_net_energy_consumption', + 'entity_id': 'sensor.envoy_1234_total_consumption_ct_current', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '4.321', + 'state': '0.3', }) # --- -# name: test_sensor[envoy_tot_cons_metered][sensor.envoy_1234_lifetime_energy_production-entry] +# name: test_sensor[envoy_tot_cons_metered][sensor.envoy_1234_total_consumption_ct_energy_delivered-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -30835,7 +43012,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_lifetime_energy_production', + 'entity_id': 'sensor.envoy_1234_total_consumption_ct_energy_delivered', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -30843,7 +43020,7 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Lifetime energy production', + 'object_id_base': 'Total consumption CT energy delivered', 'options': dict({ 'sensor': dict({ 'suggested_display_precision': 3, @@ -30854,92 +43031,39 @@ }), 'original_device_class': , 'original_icon': None, - 'original_name': 'Lifetime energy production', + 'original_name': 'Total consumption CT energy delivered', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'lifetime_production', - 'unique_id': '1234_lifetime_production', + 'translation_key': 'total_consumption_ct_energy_delivered', + 'unique_id': '1234_total_consumption_ct_energy_delivered', 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_tot_cons_metered][sensor.envoy_1234_lifetime_energy_production-state] +# name: test_sensor[envoy_tot_cons_metered][sensor.envoy_1234_total_consumption_ct_energy_delivered-state] StateSnapshot({ 'attributes': ReadOnlyDict({ 'device_class': 'energy', - 'friendly_name': 'Envoy 1234 Lifetime energy production', + 'friendly_name': 'Envoy 1234 Total consumption CT energy delivered', 'state_class': , 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_lifetime_energy_production', - 'last_changed': , - 'last_reported': , - 'last_updated': , - 'state': '0.001234', - }) -# --- -# name: test_sensor[envoy_tot_cons_metered][sensor.envoy_1234_meter_status_flags_active_production_ct-entry] - EntityRegistryEntrySnapshot({ - 'aliases': set({ - }), - 'area_id': None, - 'capabilities': None, - 'config_entry_id': , - 'config_subentry_id': , - 'device_class': None, - 'device_id': , - 'disabled_by': None, - 'domain': 'sensor', - 'entity_category': , - 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_production_ct', - 'has_entity_name': True, - 'hidden_by': None, - 'icon': None, - 'id': , - 'labels': set({ - }), - 'name': None, - 'object_id_base': 'Meter status flags active production CT', - 'options': dict({ - }), - 'original_device_class': None, - 'original_icon': None, - 'original_name': 'Meter status flags active production CT', - 'platform': 'enphase_envoy', - 'previous_unique_id': None, - 'suggested_object_id': None, - 'supported_features': 0, - 'translation_key': 'production_ct_status_flags', - 'unique_id': '1234_production_ct_status_flags', - 'unit_of_measurement': None, - }) -# --- -# name: test_sensor[envoy_tot_cons_metered][sensor.envoy_1234_meter_status_flags_active_production_ct-state] - StateSnapshot({ - 'attributes': ReadOnlyDict({ - 'friendly_name': 'Envoy 1234 Meter status flags active production CT', - }), - 'context': , - 'entity_id': 'sensor.envoy_1234_meter_status_flags_active_production_ct', + 'entity_id': 'sensor.envoy_1234_total_consumption_ct_energy_delivered', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '2', + 'state': '0.021234', }) # --- -# name: test_sensor[envoy_tot_cons_metered][sensor.envoy_1234_metering_status_production_ct-entry] +# name: test_sensor[envoy_tot_cons_metered][sensor.envoy_1234_total_consumption_ct_energy_received-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'options': list([ - , - , - , - ]), + 'state_class': , }), 'config_entry_id': , 'config_subentry_id': , @@ -30947,8 +43071,8 @@ 'device_id': , 'disabled_by': None, 'domain': 'sensor', - 'entity_category': , - 'entity_id': 'sensor.envoy_1234_metering_status_production_ct', + 'entity_category': None, + 'entity_id': 'sensor.envoy_1234_total_consumption_ct_energy_received', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -30956,41 +43080,44 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Metering status production CT', + 'object_id_base': 'Total consumption CT energy received', 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Metering status production CT', + 'original_name': 'Total consumption CT energy received', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'production_ct_metering_status', - 'unique_id': '1234_production_ct_metering_status', - 'unit_of_measurement': None, + 'translation_key': 'total_consumption_ct_energy_received', + 'unique_id': '1234_total_consumption_ct_energy_received', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_tot_cons_metered][sensor.envoy_1234_metering_status_production_ct-state] +# name: test_sensor[envoy_tot_cons_metered][sensor.envoy_1234_total_consumption_ct_energy_received-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'enum', - 'friendly_name': 'Envoy 1234 Metering status production CT', - 'options': list([ - , - , - , - ]), + 'device_class': 'energy', + 'friendly_name': 'Envoy 1234 Total consumption CT energy received', + 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_metering_status_production_ct', + 'entity_id': 'sensor.envoy_1234_total_consumption_ct_energy_received', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': 'normal', + 'state': '0.022345', }) # --- -# name: test_sensor[envoy_tot_cons_metered][sensor.envoy_1234_power_factor_production_ct-entry] +# name: test_sensor[envoy_tot_cons_metered][sensor.envoy_1234_total_consumption_ct_power-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -31005,7 +43132,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_power_factor_production_ct', + 'entity_id': 'sensor.envoy_1234_total_consumption_ct_power', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -31013,40 +43140,44 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Power factor production CT', + 'object_id_base': 'Total consumption CT power', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 2, + 'suggested_display_precision': 3, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Power factor production CT', + 'original_name': 'Total consumption CT power', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'production_ct_powerfactor', - 'unique_id': '1234_production_ct_powerfactor', - 'unit_of_measurement': None, + 'translation_key': 'total_consumption_ct_power', + 'unique_id': '1234_total_consumption_ct_power', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_tot_cons_metered][sensor.envoy_1234_power_factor_production_ct-state] +# name: test_sensor[envoy_tot_cons_metered][sensor.envoy_1234_total_consumption_ct_power-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'power_factor', - 'friendly_name': 'Envoy 1234 Power factor production CT', + 'device_class': 'power', + 'friendly_name': 'Envoy 1234 Total consumption CT power', 'state_class': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_power_factor_production_ct', + 'entity_id': 'sensor.envoy_1234_total_consumption_ct_power', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.11', + 'state': '0.101', }) # --- -# name: test_sensor[envoy_tot_cons_metered][sensor.envoy_1234_production_ct_current-entry] +# name: test_sensor[envoy_tot_cons_metered][sensor.envoy_1234_voltage_production_ct-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -31061,7 +43192,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_production_ct_current', + 'entity_id': 'sensor.envoy_1234_voltage_production_ct', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -31069,44 +43200,44 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Production CT current', + 'object_id_base': 'Voltage production CT', 'options': dict({ 'sensor': dict({ - 'suggested_display_precision': 3, + 'suggested_display_precision': 1, }), 'sensor.private': dict({ - 'suggested_unit_of_measurement': , + 'suggested_unit_of_measurement': , }), }), - 'original_device_class': , + 'original_device_class': , 'original_icon': None, - 'original_name': 'Production CT current', + 'original_name': 'Voltage production CT', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'production_ct_current', - 'unique_id': '1234_production_ct_current', - 'unit_of_measurement': , + 'translation_key': 'production_ct_voltage', + 'unique_id': '1234_production_ct_voltage', + 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_tot_cons_metered][sensor.envoy_1234_production_ct_current-state] +# name: test_sensor[envoy_tot_cons_metered][sensor.envoy_1234_voltage_production_ct-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'device_class': 'current', - 'friendly_name': 'Envoy 1234 Production CT current', + 'device_class': 'voltage', + 'friendly_name': 'Envoy 1234 Voltage production CT', 'state_class': , - 'unit_of_measurement': , + 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_production_ct_current', + 'entity_id': 'sensor.envoy_1234_voltage_production_ct', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.2', + 'state': '111', }) # --- -# name: test_sensor[envoy_tot_cons_metered][sensor.envoy_1234_voltage_production_ct-entry] +# name: test_sensor[envoy_tot_cons_metered][sensor.envoy_1234_voltage_total_consumption_ct-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -31121,7 +43252,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.envoy_1234_voltage_production_ct', + 'entity_id': 'sensor.envoy_1234_voltage_total_consumption_ct', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -31129,7 +43260,7 @@ 'labels': set({ }), 'name': None, - 'object_id_base': 'Voltage production CT', + 'object_id_base': 'Voltage total consumption CT', 'options': dict({ 'sensor': dict({ 'suggested_display_precision': 1, @@ -31140,30 +43271,30 @@ }), 'original_device_class': , 'original_icon': None, - 'original_name': 'Voltage production CT', + 'original_name': 'Voltage total consumption CT', 'platform': 'enphase_envoy', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'production_ct_voltage', - 'unique_id': '1234_production_ct_voltage', + 'translation_key': 'total_consumption_ct_voltage', + 'unique_id': '1234_total_consumption_ct_voltage', 'unit_of_measurement': , }) # --- -# name: test_sensor[envoy_tot_cons_metered][sensor.envoy_1234_voltage_production_ct-state] +# name: test_sensor[envoy_tot_cons_metered][sensor.envoy_1234_voltage_total_consumption_ct-state] StateSnapshot({ 'attributes': ReadOnlyDict({ 'device_class': 'voltage', - 'friendly_name': 'Envoy 1234 Voltage production CT', + 'friendly_name': 'Envoy 1234 Voltage total consumption CT', 'state_class': , 'unit_of_measurement': , }), 'context': , - 'entity_id': 'sensor.envoy_1234_voltage_production_ct', + 'entity_id': 'sensor.envoy_1234_voltage_total_consumption_ct', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '111', + 'state': '112', }) # --- # name: test_sensor[envoy_tot_cons_metered][sensor.inverter_1-entry] diff --git a/tests/components/enphase_envoy/test_diagnostics.py b/tests/components/enphase_envoy/test_diagnostics.py index 06a8ac58e11a4a..fa3f2db5a77bc0 100644 --- a/tests/components/enphase_envoy/test_diagnostics.py +++ b/tests/components/enphase_envoy/test_diagnostics.py @@ -4,6 +4,7 @@ from freezegun.api import FrozenDateTimeFactory from pyenphase.exceptions import EnvoyError +from pyenphase.models.meters import CtType import pytest from syrupy.assertion import SnapshotAssertion @@ -118,6 +119,68 @@ async def test_entry_diagnostics_with_interface_information( async_fire_time_changed(hass) await hass.async_block_till_done(wait_background_tasks=True) - assert await get_diagnostics_for_config_entry( + # fix order of entities by device to avoid snapshot assertion + # failures due to changed id based order between test runs + diagnostics = await get_diagnostics_for_config_entry( hass, hass_client, config_entry - ) == snapshot(exclude=limit_diagnostic_attrs) + ) + diagnostics["envoy_entities_by_device"] = [ + { + "device": device_entities["device"], + "entities": sorted( + device_entities["entities"], key=lambda e: e["entity"]["entity_id"] + ), + } + for device_entities in sorted( + diagnostics["envoy_entities_by_device"], + key=lambda e: e["device"]["identifiers"], + ) + ] + assert diagnostics == snapshot(exclude=limit_diagnostic_attrs) + + +@pytest.mark.parametrize( + ("mock_envoy", "ctpresent"), + [ + ("envoy", ()), + ("envoy_1p_metered", (CtType.PRODUCTION, CtType.NET_CONSUMPTION)), + ("envoy_acb_batt", (CtType.PRODUCTION, CtType.NET_CONSUMPTION)), + ("envoy_eu_batt", (CtType.PRODUCTION, CtType.NET_CONSUMPTION)), + ( + "envoy_metered_batt_relay", + ( + CtType.PRODUCTION, + CtType.NET_CONSUMPTION, + CtType.STORAGE, + CtType.BACKFEED, + CtType.LOAD, + CtType.EVSE, + CtType.PV3P, + ), + ), + ("envoy_nobatt_metered_3p", (CtType.PRODUCTION, CtType.NET_CONSUMPTION)), + ("envoy_tot_cons_metered", (CtType.PRODUCTION, CtType.TOTAL_CONSUMPTION)), + ], + indirect=["mock_envoy"], +) +async def test_entry_diagnostics_ct_presence( + hass: HomeAssistant, + hass_client: ClientSessionGenerator, + config_entry: MockConfigEntry, + snapshot: SnapshotAssertion, + mock_envoy: AsyncMock, + ctpresent: tuple[CtType, ...], +) -> None: + """Test config entry diagnostics including interface data.""" + await setup_integration(hass, config_entry) + + diagnostics = await get_diagnostics_for_config_entry( + hass, hass_client, config_entry + ) + # are expected ct in diagnostic report + for ct in ctpresent: + assert diagnostics["envoy_model_data"]["ctmeters"][ct] + + # are no more ct in diagnostic report as in ctpresent + for ct in diagnostics["envoy_model_data"]["ctmeters"]: + assert ct in ctpresent diff --git a/tests/components/enphase_envoy/test_sensor.py b/tests/components/enphase_envoy/test_sensor.py index d8d19ec6a45835..793d1505088ecd 100644 --- a/tests/components/enphase_envoy/test_sensor.py +++ b/tests/components/enphase_envoy/test_sensor.py @@ -680,6 +680,186 @@ async def test_sensor_storage_ct_phase_data( assert entity_state.state == target +CT_NAMES_FLOAT = ( + "_ct_energy_delivered", + "_ct_energy_received", + "_ct_power", + "frequency__ct", + "voltage__ct", + "_ct_current", + "power_factor__ct", + "meter_status_flags_active__ct", +) +CT_NAMES_STR = ("metering_status__ct",) + + +@pytest.mark.parametrize( + ("cttype", "mock_envoy"), + [ + (CtType.PRODUCTION, "envoy_metered_batt_relay"), + (CtType.TOTAL_CONSUMPTION, "envoy_tot_cons_metered"), + (CtType.BACKFEED, "envoy_metered_batt_relay"), + (CtType.LOAD, "envoy_metered_batt_relay"), + (CtType.EVSE, "envoy_metered_batt_relay"), + (CtType.PV3P, "envoy_metered_batt_relay"), + ], + indirect=["mock_envoy"], +) +@pytest.mark.usefixtures("entity_registry_enabled_by_default") +async def test_sensor_ct_data( + hass: HomeAssistant, + mock_envoy: AsyncMock, + config_entry: MockConfigEntry, + cttype: CtType, +) -> None: + """Test ct entities values.""" + with patch("homeassistant.components.enphase_envoy.PLATFORMS", [Platform.SENSOR]): + await setup_integration(hass, config_entry) + + sn = mock_envoy.serial_number + ENTITY_BASE: str = f"{Platform.SENSOR}.envoy_{sn}" + + data = mock_envoy.data.ctmeters[cttype] + + CT_TARGETS_FLOAT = ( + data.energy_delivered / 1000000.0, + data.energy_received / 1000000.0, + data.active_power / 1000.0, + data.frequency, + data.voltage, + data.current, + data.power_factor, + len(data.status_flags), + ) + count_names: int = 0 + + for name, target in list( + zip( + [ + entity.replace("", cttype).replace("-", "_") + for entity in CT_NAMES_FLOAT + ], + CT_TARGETS_FLOAT, + strict=False, + ) + ): + assert (entity_state := hass.states.get(f"{ENTITY_BASE}_{name}")) + assert float(entity_state.state) == target + count_names += 1 + + CT_TARGETS_STR = (data.metering_status,) + for name, target in list( + zip( + [ + entity.replace("", cttype).replace("-", "_") + for entity in CT_NAMES_STR + ], + CT_TARGETS_STR, + strict=False, + ) + ): + assert (entity_state := hass.states.get(f"{ENTITY_BASE}_{name}")) + assert entity_state.state == target + count_names += 1 + + # verify we're testing them all + assert len(CT_NAMES_FLOAT) + len(CT_NAMES_STR) == count_names + + +CT_NAMES_FLOAT_PHASE = [ + f"{name}_{phase.lower()}" for phase in PHASENAMES for name in (CT_NAMES_FLOAT) +] + +CT_NAMES_STR_PHASE = [ + f"{name}_{phase.lower()}" for phase in PHASENAMES for name in (CT_NAMES_STR) +] + + +@pytest.mark.parametrize( + "cttype", + [ + CtType.PRODUCTION, + CtType.BACKFEED, + CtType.LOAD, + CtType.EVSE, + CtType.PV3P, + ], +) +@pytest.mark.parametrize( + ("mock_envoy"), + [ + "envoy_metered_batt_relay", + ], + indirect=["mock_envoy"], +) +@pytest.mark.usefixtures("entity_registry_enabled_by_default") +async def test_sensor_ct_phase_data( + hass: HomeAssistant, + mock_envoy: AsyncMock, + config_entry: MockConfigEntry, + cttype: CtType, +) -> None: + """Test ct phase entities values.""" + with patch("homeassistant.components.enphase_envoy.PLATFORMS", [Platform.SENSOR]): + await setup_integration(hass, config_entry) + + sn = mock_envoy.serial_number + ENTITY_BASE: str = f"{Platform.SENSOR}.envoy_{sn}" + + CT_NAMES_FLOAT_PHASE_TARGET = chain( + *[ + ( + phase_data.energy_delivered / 1000000.0, + phase_data.energy_received / 1000000.0, + phase_data.active_power / 1000.0, + phase_data.frequency, + phase_data.voltage, + phase_data.current, + phase_data.power_factor, + len(phase_data.status_flags), + ) + for phase_data in mock_envoy.data.ctmeters_phases[cttype].values() + ] + ) + + count_names: int = 0 + for name, target in list( + zip( + [ + entity.replace("", cttype).replace("-", "_") + for entity in CT_NAMES_FLOAT_PHASE + ], + CT_NAMES_FLOAT_PHASE_TARGET, + strict=False, + ) + ): + assert (entity_state := hass.states.get(f"{ENTITY_BASE}_{name}")) + assert float(entity_state.state) == target + count_names += 1 + + CT_NAMES_STR_PHASE_TARGET = [ + phase_data.metering_status + for phase_data in mock_envoy.data.ctmeters_phases[cttype].values() + ] + + for name, target in list( + zip( + [ + entity.replace("", cttype).replace("-", "_") + for entity in CT_NAMES_STR_PHASE + ], + CT_NAMES_STR_PHASE_TARGET, + strict=False, + ) + ): + assert (entity_state := hass.states.get(f"{ENTITY_BASE}_{name}")) + assert entity_state.state == target + count_names += 1 + + # verify we're testing them all + assert len(CT_NAMES_FLOAT_PHASE) + len(CT_NAMES_STR_PHASE) == count_names + + @pytest.mark.parametrize( ("mock_envoy"), [ diff --git a/tests/components/forked_daapd/test_config_flow.py b/tests/components/forked_daapd/test_config_flow.py index ba1f0e6c2275f7..4e885e1f62aef8 100644 --- a/tests/components/forked_daapd/test_config_flow.py +++ b/tests/components/forked_daapd/test_config_flow.py @@ -76,6 +76,10 @@ async def test_config_flow(hass: HomeAssistant, config_entry: MockConfigEntry) - "homeassistant.components.forked_daapd.ForkedDaapdAPI.get_request", autospec=True, ) as mock_get_request, + patch( + "homeassistant.components.forked_daapd.async_setup_entry", + return_value=True, + ), ): mock_get_request.return_value = SAMPLE_CONFIG mock_test_connection.return_value = ["ok", "My Music on myhost"] @@ -229,10 +233,16 @@ async def test_config_flow_zeroconf_valid(hass: HomeAssistant) -> None: async def test_options_flow(hass: HomeAssistant, config_entry: MockConfigEntry) -> None: """Test config flow options.""" - with patch( - "homeassistant.components.forked_daapd.ForkedDaapdAPI.get_request", - autospec=True, - ) as mock_get_request: + with ( + patch( + "homeassistant.components.forked_daapd.ForkedDaapdAPI.get_request", + autospec=True, + ) as mock_get_request, + patch( + "homeassistant.components.forked_daapd.async_setup_entry", + return_value=True, + ), + ): mock_get_request.return_value = SAMPLE_CONFIG config_entry.add_to_hass(hass) await hass.config_entries.async_setup(config_entry.entry_id) diff --git a/tests/components/fully_kiosk/test_config_flow.py b/tests/components/fully_kiosk/test_config_flow.py index a127979c054ab8..5b6746d1445e95 100644 --- a/tests/components/fully_kiosk/test_config_flow.py +++ b/tests/components/fully_kiosk/test_config_flow.py @@ -168,6 +168,7 @@ async def test_duplicate_updates_existing_entry( async def test_dhcp_discovery_updates_entry( hass: HomeAssistant, mock_config_entry: MockConfigEntry, + mock_setup_entry: AsyncMock, ) -> None: """Test DHCP discovery updates config entries.""" mock_config_entry.add_to_hass(hass) diff --git a/tests/components/hdfury/conftest.py b/tests/components/hdfury/conftest.py index b296ed902b8f1c..ac0dc78e5e816c 100644 --- a/tests/components/hdfury/conftest.py +++ b/tests/components/hdfury/conftest.py @@ -104,6 +104,8 @@ def mock_hdfury_client() -> Generator[AsyncMock]: "relay": "0", "macaddr": "c7:1c:df:9d:f6:40", "reboottimer": "0", + "unmutecnt": "500", + "earcunmutecnt": "0", "oled": "1", "oledfade": "30", } diff --git a/tests/components/hdfury/snapshots/test_diagnostics.ambr b/tests/components/hdfury/snapshots/test_diagnostics.ambr index 6d4043fb3b1ca2..b73f3563f341a2 100644 --- a/tests/components/hdfury/snapshots/test_diagnostics.ambr +++ b/tests/components/hdfury/snapshots/test_diagnostics.ambr @@ -15,6 +15,7 @@ 'cec1en': '1', 'cec2en': '1', 'cec3en': '1', + 'earcunmutecnt': '0', 'htpcmode0': '0', 'htpcmode1': '0', 'htpcmode2': '0', @@ -29,6 +30,7 @@ 'relay': '0', 'tx0plus5': '1', 'tx1plus5': '1', + 'unmutecnt': '500', }), 'info': dict({ 'AUD0': 'bitstream 48kHz', diff --git a/tests/components/hdfury/snapshots/test_number.ambr b/tests/components/hdfury/snapshots/test_number.ambr index 20cde1949d63bd..e7cc28ff4e32c5 100644 --- a/tests/components/hdfury/snapshots/test_number.ambr +++ b/tests/components/hdfury/snapshots/test_number.ambr @@ -1,4 +1,64 @@ # serializer version: 1 +# name: test_number_entities[number.hdfury_vrroom_02_earc_unmute_delay-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'max': 1000, + 'min': 0, + 'mode': , + 'step': 1, + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'number', + 'entity_category': , + 'entity_id': 'number.hdfury_vrroom_02_earc_unmute_delay', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'eARC unmute delay', + 'options': dict({ + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'eARC unmute delay', + 'platform': 'hdfury', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'earc_unmute', + 'unique_id': '000123456789_earcunmutecnt', + 'unit_of_measurement': , + }) +# --- +# name: test_number_entities[number.hdfury_vrroom_02_earc_unmute_delay-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'duration', + 'friendly_name': 'HDFury VRROOM-02 eARC unmute delay', + 'max': 1000, + 'min': 0, + 'mode': , + 'step': 1, + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'number.hdfury_vrroom_02_earc_unmute_delay', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '0.0', + }) +# --- # name: test_number_entities[number.hdfury_vrroom_02_oled_fade_timer-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ @@ -119,3 +179,63 @@ 'state': '0.0', }) # --- +# name: test_number_entities[number.hdfury_vrroom_02_unmute_delay-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'max': 1000, + 'min': 50, + 'mode': , + 'step': 1, + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'number', + 'entity_category': , + 'entity_id': 'number.hdfury_vrroom_02_unmute_delay', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Unmute delay', + 'options': dict({ + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Unmute delay', + 'platform': 'hdfury', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'audio_unmute', + 'unique_id': '000123456789_unmutecnt', + 'unit_of_measurement': , + }) +# --- +# name: test_number_entities[number.hdfury_vrroom_02_unmute_delay-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'duration', + 'friendly_name': 'HDFury VRROOM-02 Unmute delay', + 'max': 1000, + 'min': 50, + 'mode': , + 'step': 1, + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'number.hdfury_vrroom_02_unmute_delay', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '500.0', + }) +# --- diff --git a/tests/components/hdfury/test_number.py b/tests/components/hdfury/test_number.py index b39a73d8467df9..57292827646ea8 100644 --- a/tests/components/hdfury/test_number.py +++ b/tests/components/hdfury/test_number.py @@ -23,6 +23,7 @@ from tests.common import MockConfigEntry, async_fire_time_changed, snapshot_platform +@pytest.mark.usefixtures("entity_registry_enabled_by_default") async def test_number_entities( hass: HomeAssistant, snapshot: SnapshotAssertion, @@ -40,8 +41,11 @@ async def test_number_entities( [ ("number.hdfury_vrroom_02_oled_fade_timer", "set_oled_fade"), ("number.hdfury_vrroom_02_restart_timer", "set_reboot_timer"), + ("number.hdfury_vrroom_02_unmute_delay", "set_audio_unmute"), + ("number.hdfury_vrroom_02_earc_unmute_delay", "set_earc_unmute"), ], ) +@pytest.mark.usefixtures("entity_registry_enabled_by_default") async def test_number_set_value( hass: HomeAssistant, mock_hdfury_client: AsyncMock, @@ -68,8 +72,11 @@ async def test_number_set_value( [ ("number.hdfury_vrroom_02_oled_fade_timer", "set_oled_fade"), ("number.hdfury_vrroom_02_restart_timer", "set_reboot_timer"), + ("number.hdfury_vrroom_02_unmute_delay", "set_audio_unmute"), + ("number.hdfury_vrroom_02_earc_unmute_delay", "set_earc_unmute"), ], ) +@pytest.mark.usefixtures("entity_registry_enabled_by_default") async def test_number_error( hass: HomeAssistant, mock_hdfury_client: AsyncMock, @@ -100,8 +107,11 @@ async def test_number_error( [ ("number.hdfury_vrroom_02_oled_fade_timer"), ("number.hdfury_vrroom_02_restart_timer"), + ("number.hdfury_vrroom_02_unmute_delay"), + ("number.hdfury_vrroom_02_earc_unmute_delay"), ], ) +@pytest.mark.usefixtures("entity_registry_enabled_by_default") async def test_number_entities_unavailable_on_error( hass: HomeAssistant, mock_hdfury_client: AsyncMock, diff --git a/tests/components/home_connect/test_init.py b/tests/components/home_connect/test_init.py index b418c46e9842c7..9aaf98538166f3 100644 --- a/tests/components/home_connect/test_init.py +++ b/tests/components/home_connect/test_init.py @@ -336,7 +336,13 @@ async def test_entity_migration( config_entry=config_entry_v1_1, ) - with patch("homeassistant.components.home_connect.PLATFORMS", platforms): + with ( + patch("homeassistant.components.home_connect.PLATFORMS", platforms), + patch( + "homeassistant.components.home_connect.async_setup_entry", + return_value=True, + ), + ): await hass.config_entries.async_setup(config_entry_v1_1.entry_id) await hass.async_block_till_done() @@ -364,8 +370,12 @@ async def test_config_entry_unique_id_migration( assert config_entry_v1_2.unique_id != "1234567890" assert config_entry_v1_2.minor_version == 2 - await hass.config_entries.async_setup(config_entry_v1_2.entry_id) - await hass.async_block_till_done() + with patch( + "homeassistant.components.home_connect.async_setup_entry", + return_value=True, + ): + await hass.config_entries.async_setup(config_entry_v1_2.entry_id) + await hass.async_block_till_done() assert config_entry_v1_2.unique_id == "1234567890" assert config_entry_v1_2.minor_version == 3 diff --git a/tests/components/homematic/test_notify.py b/tests/components/homematic/test_notify.py index a07bece9850c79..f3bfc5cb44cb88 100644 --- a/tests/components/homematic/test_notify.py +++ b/tests/components/homematic/test_notify.py @@ -1,5 +1,7 @@ """The tests for the Homematic notification platform.""" +from unittest.mock import MagicMock, patch + from homeassistant.components.notify import DOMAIN as NOTIFY_DOMAIN from homeassistant.core import HomeAssistant from homeassistant.setup import async_setup_component @@ -9,11 +11,15 @@ async def test_setup_full(hass: HomeAssistant) -> None: """Test valid configuration.""" - await async_setup_component( - hass, - "homematic", - {"homematic": {"hosts": {"ccu2": {"host": "127.0.0.1"}}}}, - ) + with patch( + "homeassistant.components.homematic.HMConnection", + return_value=MagicMock(), + ): + await async_setup_component( + hass, + "homematic", + {"homematic": {"hosts": {"ccu2": {"host": "127.0.0.1"}}}}, + ) with assert_setup_component(1, domain="notify") as handle_config: assert await async_setup_component( hass, @@ -35,11 +41,15 @@ async def test_setup_full(hass: HomeAssistant) -> None: async def test_setup_without_optional(hass: HomeAssistant) -> None: """Test valid configuration without optional.""" - await async_setup_component( - hass, - "homematic", - {"homematic": {"hosts": {"ccu2": {"host": "127.0.0.1"}}}}, - ) + with patch( + "homeassistant.components.homematic.HMConnection", + return_value=MagicMock(), + ): + await async_setup_component( + hass, + "homematic", + {"homematic": {"hosts": {"ccu2": {"host": "127.0.0.1"}}}}, + ) with assert_setup_component(1, domain="notify") as handle_config: assert await async_setup_component( hass, diff --git a/tests/components/homematicip_cloud/conftest.py b/tests/components/homematicip_cloud/conftest.py index e9f2b7af656162..8f6ed62fbfcb62 100644 --- a/tests/components/homematicip_cloud/conftest.py +++ b/tests/components/homematicip_cloud/conftest.py @@ -131,10 +131,15 @@ def simple_mock_home_fixture(): get_current_state_async=AsyncMock(), ) - with patch( - "homeassistant.components.homematicip_cloud.hap.AsyncHome", - autospec=True, - return_value=mock_home, + with ( + patch( + "homeassistant.components.homematicip_cloud.hap.AsyncHome", + autospec=True, + return_value=mock_home, + ), + patch( + "homeassistant.components.homematicip_cloud.hap.ConnectionContextBuilder.build_context_async", + ), ): yield diff --git a/tests/components/homematicip_cloud/test_init.py b/tests/components/homematicip_cloud/test_init.py index 33aa85c201e54d..5fd93badc9dace 100644 --- a/tests/components/homematicip_cloud/test_init.py +++ b/tests/components/homematicip_cloud/test_init.py @@ -2,7 +2,6 @@ from unittest.mock import AsyncMock, Mock, patch -from homematicip.connection.connection_context import ConnectionContext from homematicip.exceptions.connection_exceptions import HmipConnectionError from homeassistant.components.homematicip_cloud.const import ( @@ -107,7 +106,6 @@ async def test_load_entry_fails_due_to_connection_error( ), patch( "homeassistant.components.homematicip_cloud.hap.ConnectionContextBuilder.build_context_async", - return_value=ConnectionContext(), ), ): assert await async_setup_component(hass, DOMAIN, {}) @@ -127,6 +125,9 @@ async def test_load_entry_fails_due_to_generic_exception( "homeassistant.components.homematicip_cloud.hap.AsyncHome.get_current_state_async", side_effect=Exception, ), + patch( + "homeassistant.components.homematicip_cloud.hap.ConnectionContextBuilder.build_context_async", + ), ): assert await async_setup_component(hass, DOMAIN, {}) diff --git a/tests/components/http/test_init.py b/tests/components/http/test_init.py index 2f7517f8ecb008..87701aba657143 100644 --- a/tests/components/http/test_init.py +++ b/tests/components/http/test_init.py @@ -27,7 +27,7 @@ @pytest.fixture(autouse=True) -def disable_http_server() -> None: +def disable_http_server(socket_enabled: None) -> None: """Override the global disable_http_server fixture with an empty fixture. This allows the HTTP server to start in tests that need it. diff --git a/tests/components/jvc_projector/conftest.py b/tests/components/jvc_projector/conftest.py index e61cd1208e2958..18d57046607d37 100644 --- a/tests/components/jvc_projector/conftest.py +++ b/tests/components/jvc_projector/conftest.py @@ -136,6 +136,7 @@ def fixture_mock_config_entry() -> MockConfigEntry: async def fixture_mock_integration( hass: HomeAssistant, mock_config_entry: MockConfigEntry, + mock_device: MagicMock, ) -> MockConfigEntry: """Return a mock ConfigEntry setup for the integration.""" with ( diff --git a/tests/components/jvc_projector/test_config_flow.py b/tests/components/jvc_projector/test_config_flow.py index d1d4287ab04cbd..fe6ea5634bcfd9 100644 --- a/tests/components/jvc_projector/test_config_flow.py +++ b/tests/components/jvc_projector/test_config_flow.py @@ -1,6 +1,7 @@ """Tests for JVC Projector config flow.""" -from unittest.mock import AsyncMock +from collections.abc import Generator +from unittest.mock import AsyncMock, patch from jvcprojector import JvcProjectorAuthError, JvcProjectorTimeoutError import pytest @@ -18,6 +19,16 @@ TARGET = "homeassistant.components.jvc_projector.config_flow.JvcProjector" +@pytest.fixture(autouse=True) +def mock_setup_entry() -> Generator[AsyncMock]: + """Override async_setup_entry.""" + with patch( + "homeassistant.components.jvc_projector.async_setup_entry", + return_value=True, + ) as mock_setup_entry: + yield mock_setup_entry + + @pytest.mark.parametrize("mock_device", [{"target": TARGET}], indirect=True) async def test_user_config_flow_success( hass: HomeAssistant, mock_device: AsyncMock diff --git a/tests/components/kostal_plenticore/test_config_flow.py b/tests/components/kostal_plenticore/test_config_flow.py index b4e7ffc0695fe2..3f39cf16f13cce 100644 --- a/tests/components/kostal_plenticore/test_config_flow.py +++ b/tests/components/kostal_plenticore/test_config_flow.py @@ -400,14 +400,18 @@ async def test_reconfigure( return_value={"scb:network": {"Hostname": "scb"}} ) - result = await hass.config_entries.flow.async_configure( - result["flow_id"], - { - "host": "1.1.1.1", - "password": "test-password", - }, - ) - await hass.async_block_till_done() + with patch( + "homeassistant.components.kostal_plenticore.async_setup_entry", + return_value=True, + ): + result = await hass.config_entries.flow.async_configure( + result["flow_id"], + { + "host": "1.1.1.1", + "password": "test-password", + }, + ) + await hass.async_block_till_done() mock_apiclient_class.assert_called_once_with(ANY, "1.1.1.1") mock_apiclient.__aenter__.assert_called_once() diff --git a/tests/components/lametric/test_config_flow.py b/tests/components/lametric/test_config_flow.py index c0fb98f190811e..0028f30116955e 100644 --- a/tests/components/lametric/test_config_flow.py +++ b/tests/components/lametric/test_config_flow.py @@ -1,7 +1,7 @@ """Tests for the LaMetric config flow.""" from http import HTTPStatus -from unittest.mock import MagicMock +from unittest.mock import AsyncMock, MagicMock from demetriek import ( LaMetricConnectionError, @@ -686,6 +686,7 @@ async def test_cloud_errors( async def test_dhcp_discovery_updates_entry( hass: HomeAssistant, mock_config_entry: MockConfigEntry, + mock_setup_entry: AsyncMock, ) -> None: """Test DHCP discovery updates config entries.""" mock_config_entry.add_to_hass(hass) diff --git a/tests/components/lunatone/test_config_flow.py b/tests/components/lunatone/test_config_flow.py index 2ed358a54c0a53..d3fbb684f54207 100644 --- a/tests/components/lunatone/test_config_flow.py +++ b/tests/components/lunatone/test_config_flow.py @@ -90,6 +90,7 @@ async def test_device_already_configured( async def test_user_step_fail_with_error( hass: HomeAssistant, mock_lunatone_info: AsyncMock, + mock_setup_entry: AsyncMock, exception: Exception, expected_error: str, ) -> None: @@ -124,6 +125,7 @@ async def test_user_step_fail_with_error( async def test_reconfigure( hass: HomeAssistant, mock_lunatone_info: AsyncMock, + mock_setup_entry: AsyncMock, mock_config_entry: MockConfigEntry, ) -> None: """Test reconfigure flow.""" @@ -153,6 +155,7 @@ async def test_reconfigure( async def test_reconfigure_fail_with_error( hass: HomeAssistant, mock_lunatone_info: AsyncMock, + mock_setup_entry: AsyncMock, mock_config_entry: MockConfigEntry, exception: Exception, expected_error: str, diff --git a/tests/components/madvr/snapshots/test_remote.ambr b/tests/components/madvr/snapshots/test_remote.ambr index d5ab71afd9d86c..519802755fb6e2 100644 --- a/tests/components/madvr/snapshots/test_remote.ambr +++ b/tests/components/madvr/snapshots/test_remote.ambr @@ -46,6 +46,6 @@ 'last_changed': , 'last_reported': , 'last_updated': , - 'state': 'off', + 'state': 'on', }) # --- diff --git a/tests/components/madvr/test_binary_sensor.py b/tests/components/madvr/test_binary_sensor.py index 6db0471b338064..78da9445bd398c 100644 --- a/tests/components/madvr/test_binary_sensor.py +++ b/tests/components/madvr/test_binary_sensor.py @@ -20,6 +20,7 @@ async def test_binary_sensor_setup( hass: HomeAssistant, snapshot: SnapshotAssertion, + mock_madvr_client: AsyncMock, mock_config_entry: MockConfigEntry, entity_registry: er.EntityRegistry, ) -> None: diff --git a/tests/components/madvr/test_remote.py b/tests/components/madvr/test_remote.py index e91c206bdd5ffb..f0e22931f1f2b8 100644 --- a/tests/components/madvr/test_remote.py +++ b/tests/components/madvr/test_remote.py @@ -38,6 +38,7 @@ async def test_remote_setup( hass: HomeAssistant, snapshot: SnapshotAssertion, + mock_madvr_client: AsyncMock, mock_config_entry: MockConfigEntry, entity_registry: er.EntityRegistry, ) -> None: diff --git a/tests/components/metoffice/conftest.py b/tests/components/metoffice/conftest.py index dc64cc8dfb1039..6468a9ea2f899d 100644 --- a/tests/components/metoffice/conftest.py +++ b/tests/components/metoffice/conftest.py @@ -9,7 +9,9 @@ @pytest.fixture def mock_simple_manager_fail(): """Mock datapoint Manager with default values for testing in config_flow.""" - with patch("datapoint.Manager.Manager") as mock_manager: + with patch( + "homeassistant.components.metoffice.config_flow.Manager" + ) as mock_manager: instance = mock_manager.return_value instance.get_forecast = APIException() instance.latitude = None diff --git a/tests/components/mochad/conftest.py b/tests/components/mochad/conftest.py index 2500070b2f10b0..b5e0a51004a552 100644 --- a/tests/components/mochad/conftest.py +++ b/tests/components/mochad/conftest.py @@ -1,3 +1,14 @@ """mochad conftest.""" +from unittest import mock + +import pytest + from tests.components.light.conftest import mock_light_profiles # noqa: F401 + + +@pytest.fixture(autouse=True) +def mock_pymochad_controller(): + """Mock pymochad controller to prevent real socket connections.""" + with mock.patch("homeassistant.components.mochad.controller.PyMochad"): + yield diff --git a/tests/components/onvif/test_config_flow.py b/tests/components/onvif/test_config_flow.py index 0bad7050fd9334..1d75b96aa11773 100644 --- a/tests/components/onvif/test_config_flow.py +++ b/tests/components/onvif/test_config_flow.py @@ -687,10 +687,11 @@ async def test_discovered_by_dhcp_updates_host( assert config_entry.data[CONF_HOST] == "1.2.3.4" await hass.config_entries.async_unload(config_entry.entry_id) - result = await hass.config_entries.flow.async_init( - DOMAIN, context={"source": SOURCE_DHCP}, data=DHCP_DISCOVERY - ) - await hass.async_block_till_done() + with patch("homeassistant.components.onvif.async_setup_entry", return_value=True): + result = await hass.config_entries.flow.async_init( + DOMAIN, context={"source": SOURCE_DHCP}, data=DHCP_DISCOVERY + ) + await hass.async_block_till_done() assert result["type"] is FlowResultType.ABORT assert result["reason"] == "already_configured" diff --git a/tests/components/panasonic_viera/test_config_flow.py b/tests/components/panasonic_viera/test_config_flow.py index 49a2ae6fc90797..06bddc4c3564e4 100644 --- a/tests/components/panasonic_viera/test_config_flow.py +++ b/tests/components/panasonic_viera/test_config_flow.py @@ -1,8 +1,10 @@ """Test the Panasonic Viera config flow.""" -from unittest.mock import patch +from collections.abc import Generator +from unittest.mock import AsyncMock, patch from panasonic_viera import SOAPError +import pytest from homeassistant import config_entries from homeassistant.components.panasonic_viera.const import ( @@ -26,6 +28,16 @@ from tests.common import MockConfigEntry +@pytest.fixture(autouse=True) +def mock_setup_entry() -> Generator[AsyncMock]: + """Mock setting up a config entry.""" + with patch( + "homeassistant.components.panasonic_viera.async_setup_entry", + return_value=True, + ) as mock_setup: + yield mock_setup + + async def test_flow_non_encrypted(hass: HomeAssistant) -> None: """Test flow without encryption.""" diff --git a/tests/components/radarr/test_config_flow.py b/tests/components/radarr/test_config_flow.py index 096c78e1c4a69d..02f9493a32c777 100644 --- a/tests/components/radarr/test_config_flow.py +++ b/tests/components/radarr/test_config_flow.py @@ -122,9 +122,12 @@ async def test_unknown_error(hass: HomeAssistant) -> None: async def test_zero_conf(hass: HomeAssistant) -> None: """Test the manual flow for zero config.""" - with patch( - "homeassistant.components.radarr.config_flow.RadarrClient.async_try_zeroconf", - return_value=("v3", API_KEY, "/test"), + with ( + patch( + "homeassistant.components.radarr.config_flow.RadarrClient.async_try_zeroconf", + return_value=("v3", API_KEY, "/test"), + ), + patch_async_setup_entry(), ): result = await hass.config_entries.flow.async_init( DOMAIN, @@ -139,9 +142,12 @@ async def test_zero_conf(hass: HomeAssistant) -> None: async def test_url_rewrite(hass: HomeAssistant) -> None: """Test auth flow url rewrite.""" - with patch( - "homeassistant.components.radarr.config_flow.RadarrClient.async_try_zeroconf", - return_value=("v3", API_KEY, "/test"), + with ( + patch( + "homeassistant.components.radarr.config_flow.RadarrClient.async_try_zeroconf", + return_value=("v3", API_KEY, "/test"), + ), + patch_async_setup_entry(), ): result = await hass.config_entries.flow.async_init( DOMAIN, diff --git a/tests/components/renault/const.py b/tests/components/renault/const.py index fc2428607d4f44..4f3c79fc842482 100644 --- a/tests/components/renault/const.py +++ b/tests/components/renault/const.py @@ -62,4 +62,12 @@ "pressure": "pressure.1.json", }, }, + "megane_e_tech": { + "endpoints": { + "battery_status": "battery_status_charging.json", + "cockpit": "cockpit_ev.json", + "hvac_status": "hvac_status.1.json", + "location": "location.json", + }, + }, } diff --git a/tests/components/renault/fixtures/vehicle_megane_e_tech.json b/tests/components/renault/fixtures/vehicle_megane_e_tech.json new file mode 100644 index 00000000000000..4fdb6abb46a251 --- /dev/null +++ b/tests/components/renault/fixtures/vehicle_megane_e_tech.json @@ -0,0 +1,219 @@ +{ + "accountId": "account-id-1", + "country": "FR", + "vehicleLinks": [ + { + "brand": "RENAULT", + "vin": "VF1MEGANEETECHVIN", + "status": "ACTIVE", + "linkType": "OWNER", + "garageBrand": "renault", + "startDate": "2024-01-16", + "createdDate": "2024-01-16T13:31:27.089634Z", + "lastModifiedDate": "2024-01-17T18:15:38.607328Z", + "ownershipStartDate": "2024-01-16", + "connectedDriver": { + "role": "MAIN_DRIVER", + "createdDate": "2024-01-17T18:15:38.607044265Z", + "lastModifiedDate": "2024-01-17T18:15:38.607044265Z" + }, + "vehicleDetails": { + "vin": "VF1MEGANEETECHVIN", + "registrationDate": "2024-01-16", + "firstRegistrationDate": "2024-01-16", + "engineType": "6AM", + "engineRatio": "402", + "modelSCR": "ZO1", + "passToSalesDate": "2023-04-04", + "deliveryCountry": { + "code": "FR", + "label": "FRANCE" + }, + "family": { + "code": "XCB", + "label": "XCB FAMILY", + "group": "007" + }, + "tcu": { + "code": "AIVCT", + "label": "WITH AIVC CONNECTION UNIT", + "group": "E70" + }, + "battery": { + "code": "BTBAE", + "label": "BTBAE BATTERY", + "group": "968" + }, + "radioType": { + "code": "NA448", + "label": "IVI2 FULL PREM DAB", + "group": "425" + }, + "registrationCountry": { + "code": "FR" + }, + "brand": { + "label": "RENAULT" + }, + "model": { + "code": "XCB1VE", + "label": "MEGANE E-TECH", + "group": "971" + }, + "gearbox": { + "code": "1EVGB", + "label": "REDUCER FOR ELECTRIC MOTOR", + "group": "427" + }, + "version": { + "code": "ICO2M J1 L" + }, + "energy": { + "code": "ELECX", + "label": "ELECTRICITY", + "group": "019" + }, + "bodyType": { + "code": "BCB", + "label": "BERLINE FOR XCB", + "group": "008" + }, + "steeringSide": { + "code": "LHDG", + "label": "LEFT-HAND DRIVE", + "group": "027" + }, + "additionalEngineType": { + "code": "NOATY", + "label": "WITHOUT ADDITIONAL ENGINE TYPE", + "group": "948" + }, + "hybridation": { + "code": "NOHYB", + "label": "NO HYBRIDISATION LEVEL", + "group": "956" + }, + "registrationNumber": "REG-MEG-0", + "vcd": "PAVEH/XCB/BCB/EA4/J1/ELECX/LHDG/TEMP/2WDRV/BEMBK/ACC02/00ABS/ACD03/STDRF/HTRWI/WFURP/CLK00/RVX07/1RVLG/FFGL2/SDLGT/RAL20/FSBAJ/SPADP/FAB02/NOCNV/LRSCO/LRS02/HAR04/RHR03/FSE06/RSE00/BIXPA/NTIBC/KMETR/TPRM2/SDSGL/NOSTK/SABG5/LEDCO/ESCHS/PALAW/SPBDA/M3CA3/PRROP/DB4C0/NOAGR/LRSW0/OSEWA/RVICM/TRSV0/NBRVX/FWL1T/RWL1T/NOOSW/REPKT/HTS02/00NLD/BRA03/AJSW2/HSTPL/SBR05/RMSB3/NA448/1EVGB/ASOC2/EVAU2/RIM09/TYSUM/ISOFI/EPER0/HR11M/SLCCA/NOATD/CPTC0/CHGS4/TL01A/BDPRO/NOADT/AIRBDE/PRUPTA/ELC1/NOETC/NOLSV/NOFEX/M2021/PHAS1/NOLTD/NOATY/NOHYB/60K0B/BTBAE/VEC151/XCB1VE/NB003/6AM/SFANT/ADR00/LKA05/PSFT0/BIHT0/NODUP/NOWAP/NOCCH/AMLT0/DRL02/RCALL/NOART/TBI00/MET05/BSD02/ECMD0/NRCAR/NOM2C/AIVCT/GSI00/TPNNP/TSGNE/2BCOL/ITP14/MDMOD/PXA00/NOPXB/PIG02/HTSW0/DAALT/WICH0/EV1GA1/SMOSP/NOWMC/FCOWA/C1AHS/NOPRA/VSPTA/1234Y/NOLIE/NOLII/NOWFI/AEB09/WOSRE/PRAHL/SPMIR/AVCAM/RAEB2/DTRNI", + "manufacturingDate": "2023-04-04", + "assets": [ + { + "assetType": "PICTURE", + "viewpoint": "mybrand_2", + "renditions": [ + { + "resolutionType": "ONE_MYRENAULT_SMALL", + "url": "https://3dv.renault.com/ImageFromBookmark?configuration=BCB%2FEA4%2FLHDG%2FACD03%2FSTDRF%2FWFURP%2FRVX07%2FRAL20%2FLRS02%2FFSE06%2FBIXPA%2FLEDCO%2FPALAW%2FSPBDA%2FLRSW0%2FRVICM%2FTRSV0%2FAJSW2%2FNA448%2FASOC2%2FRIM09%2FSLCCA%2FNOATD%2FCPTC0%2FBDPRO%2FAIRBDE%2FPRUPTA%2FNOETC%2FM2021%2FNB003%2FSFANT%2FPSFT0%2FNODUP%2FNOWAP%2FRCALL%2FBSD02%2F2BCOL%2FITP14%2FMDMOD%2FPXA00%2FNOPXB%2FPIG02%2FNOLII%2FAVCAM%2FDTRNI&databaseId=a7cc2a21-d3fe-43bf-8643-14d3b8f9b2fa&bookmarkSet=RSITE&bookmark=EXT_34_DESSUS&profile=HELIOS_OWNERSERVICES_SMALL_V2" + }, + { + "resolutionType": "ONE_MYRENAULT_LARGE", + "url": "https://3dv.renault.com/ImageFromBookmark?configuration=BCB%2FEA4%2FLHDG%2FACD03%2FSTDRF%2FWFURP%2FRVX07%2FRAL20%2FLRS02%2FFSE06%2FBIXPA%2FLEDCO%2FPALAW%2FSPBDA%2FLRSW0%2FRVICM%2FTRSV0%2FAJSW2%2FNA448%2FASOC2%2FRIM09%2FSLCCA%2FNOATD%2FCPTC0%2FBDPRO%2FAIRBDE%2FPRUPTA%2FNOETC%2FM2021%2FNB003%2FSFANT%2FPSFT0%2FNODUP%2FNOWAP%2FRCALL%2FBSD02%2F2BCOL%2FITP14%2FMDMOD%2FPXA00%2FNOPXB%2FPIG02%2FNOLII%2FAVCAM%2FDTRNI&databaseId=a7cc2a21-d3fe-43bf-8643-14d3b8f9b2fa&bookmarkSet=RSITE&bookmark=EXT_34_DESSUS&profile=HELIOS_OWNERSERVICES_LARGE" + } + ], + "viewPointInLowerCase": "mybrand_2" + }, + { + "assetType": "PICTURE", + "viewpoint": "mybrand_5", + "renditions": [ + { + "resolutionType": "ONE_MYRENAULT_SMALL", + "url": "https://3dv.renault.com/ImageFromBookmark?configuration=BCB%2FEA4%2FLHDG%2FACD03%2FSTDRF%2FWFURP%2FRVX07%2FRAL20%2FLRS02%2FFSE06%2FBIXPA%2FLEDCO%2FPALAW%2FSPBDA%2FLRSW0%2FRVICM%2FTRSV0%2FAJSW2%2FNA448%2FASOC2%2FRIM09%2FSLCCA%2FNOATD%2FCPTC0%2FBDPRO%2FAIRBDE%2FPRUPTA%2FNOETC%2FM2021%2FNB003%2FSFANT%2FPSFT0%2FNODUP%2FNOWAP%2FRCALL%2FBSD02%2F2BCOL%2FITP14%2FMDMOD%2FPXA00%2FNOPXB%2FPIG02%2FNOLII%2FAVCAM%2FDTRNI&databaseId=a7cc2a21-d3fe-43bf-8643-14d3b8f9b2fa&bookmarkSet=RSITE&bookmark=EXT_34_AV&profile=HELIOS_OWNERSERVICES_SMALL_V2" + }, + { + "resolutionType": "ONE_MYRENAULT_LARGE", + "url": "https://3dv.renault.com/ImageFromBookmark?configuration=BCB%2FEA4%2FLHDG%2FACD03%2FSTDRF%2FWFURP%2FRVX07%2FRAL20%2FLRS02%2FFSE06%2FBIXPA%2FLEDCO%2FPALAW%2FSPBDA%2FLRSW0%2FRVICM%2FTRSV0%2FAJSW2%2FNA448%2FASOC2%2FRIM09%2FSLCCA%2FNOATD%2FCPTC0%2FBDPRO%2FAIRBDE%2FPRUPTA%2FNOETC%2FM2021%2FNB003%2FSFANT%2FPSFT0%2FNODUP%2FNOWAP%2FRCALL%2FBSD02%2F2BCOL%2FITP14%2FMDMOD%2FPXA00%2FNOPXB%2FPIG02%2FNOLII%2FAVCAM%2FDTRNI&databaseId=a7cc2a21-d3fe-43bf-8643-14d3b8f9b2fa&bookmarkSet=RSITE&bookmark=EXT_34_AV&profile=HELIOS_OWNERSERVICES_LARGE" + } + ], + "viewPointInLowerCase": "mybrand_5" + }, + { + "assetType": "PICTURE", + "viewpoint": "myb_car_selector", + "renditions": [ + { + "resolutionType": "ONE_MYRENAULT_SMALL", + "url": "https://3dv.renault.com/ImageFromBookmark?configuration=BCB%2FEA4%2FLHDG%2FACD03%2FSTDRF%2FWFURP%2FRVX07%2FRAL20%2FLRS02%2FFSE06%2FBIXPA%2FLEDCO%2FPALAW%2FSPBDA%2FLRSW0%2FRVICM%2FTRSV0%2FAJSW2%2FNA448%2FASOC2%2FRIM09%2FSLCCA%2FNOATD%2FCPTC0%2FBDPRO%2FAIRBDE%2FPRUPTA%2FNOETC%2FM2021%2FNB003%2FSFANT%2FPSFT0%2FNODUP%2FNOWAP%2FRCALL%2FBSD02%2F2BCOL%2FITP14%2FMDMOD%2FPXA00%2FNOPXB%2FPIG02%2FNOLII%2FAVCAM%2FDTRNI&databaseId=a7cc2a21-d3fe-43bf-8643-14d3b8f9b2fa&bookmarkSet=RSITE&bookmark=EXT_34_AV&profile=HELIOS_OWNERSERVICES_SMALL_V2" + }, + { + "resolutionType": "ONE_MYRENAULT_LARGE", + "url": "https://3dv.renault.com/ImageFromBookmark?configuration=BCB%2FEA4%2FLHDG%2FACD03%2FSTDRF%2FWFURP%2FRVX07%2FRAL20%2FLRS02%2FFSE06%2FBIXPA%2FLEDCO%2FPALAW%2FSPBDA%2FLRSW0%2FRVICM%2FTRSV0%2FAJSW2%2FNA448%2FASOC2%2FRIM09%2FSLCCA%2FNOATD%2FCPTC0%2FBDPRO%2FAIRBDE%2FPRUPTA%2FNOETC%2FM2021%2FNB003%2FSFANT%2FPSFT0%2FNODUP%2FNOWAP%2FRCALL%2FBSD02%2F2BCOL%2FITP14%2FMDMOD%2FPXA00%2FNOPXB%2FPIG02%2FNOLII%2FAVCAM%2FDTRNI&databaseId=a7cc2a21-d3fe-43bf-8643-14d3b8f9b2fa&bookmarkSet=RSITE&bookmark=EXT_34_AV&profile=HELIOS_OWNERSERVICES_LARGE" + } + ], + "viewPointInLowerCase": "myb_car_selector" + }, + { + "assetType": "PICTURE", + "viewpoint": "myb_car_page_dashboard", + "renditions": [ + { + "resolutionType": "ONE_MYRENAULT_SMALL", + "url": "https://3dv.renault.com/ImageFromBookmark?configuration=BCB%2FEA4%2FLHDG%2FACD03%2FSTDRF%2FWFURP%2FRVX07%2FRAL20%2FLRS02%2FFSE06%2FBIXPA%2FLEDCO%2FPALAW%2FSPBDA%2FLRSW0%2FRVICM%2FTRSV0%2FAJSW2%2FNA448%2FASOC2%2FRIM09%2FSLCCA%2FNOATD%2FCPTC0%2FBDPRO%2FAIRBDE%2FPRUPTA%2FNOETC%2FM2021%2FNB003%2FSFANT%2FPSFT0%2FNODUP%2FNOWAP%2FRCALL%2FBSD02%2F2BCOL%2FITP14%2FMDMOD%2FPXA00%2FNOPXB%2FPIG02%2FNOLII%2FAVCAM%2FDTRNI&databaseId=a7cc2a21-d3fe-43bf-8643-14d3b8f9b2fa&bookmarkSet=CARPICKER&bookmark=EXT_LEFT_SIDE&profile=HELIOS_OWNERSERVICES_SMALL_V2" + }, + { + "resolutionType": "ONE_MYRENAULT_LARGE", + "url": "https://3dv.renault.com/ImageFromBookmark?configuration=BCB%2FEA4%2FLHDG%2FACD03%2FSTDRF%2FWFURP%2FRVX07%2FRAL20%2FLRS02%2FFSE06%2FBIXPA%2FLEDCO%2FPALAW%2FSPBDA%2FLRSW0%2FRVICM%2FTRSV0%2FAJSW2%2FNA448%2FASOC2%2FRIM09%2FSLCCA%2FNOATD%2FCPTC0%2FBDPRO%2FAIRBDE%2FPRUPTA%2FNOETC%2FM2021%2FNB003%2FSFANT%2FPSFT0%2FNODUP%2FNOWAP%2FRCALL%2FBSD02%2F2BCOL%2FITP14%2FMDMOD%2FPXA00%2FNOPXB%2FPIG02%2FNOLII%2FAVCAM%2FDTRNI&databaseId=a7cc2a21-d3fe-43bf-8643-14d3b8f9b2fa&bookmarkSet=CARPICKER&bookmark=EXT_LEFT_SIDE&profile=HELIOS_OWNERSERVICES_LARGE" + } + ], + "viewPointInLowerCase": "myb_car_page_dashboard" + }, + { + "assetType": "PICTURE", + "viewpoint": "myb_program_settings_page", + "renditions": [ + { + "resolutionType": "ONE_MYRENAULT_SMALL", + "url": "https://3dv.renault.com/ImageFromBookmark?configuration=BCB%2FEA4%2FLHDG%2FACD03%2FSTDRF%2FWFURP%2FRVX07%2FRAL20%2FLRS02%2FFSE06%2FBIXPA%2FLEDCO%2FPALAW%2FSPBDA%2FLRSW0%2FRVICM%2FTRSV0%2FAJSW2%2FNA448%2FASOC2%2FRIM09%2FSLCCA%2FNOATD%2FCPTC0%2FBDPRO%2FAIRBDE%2FPRUPTA%2FNOETC%2FM2021%2FNB003%2FSFANT%2FPSFT0%2FNODUP%2FNOWAP%2FRCALL%2FBSD02%2F2BCOL%2FITP14%2FMDMOD%2FPXA00%2FNOPXB%2FPIG02%2FNOLII%2FAVCAM%2FDTRNI&databaseId=a7cc2a21-d3fe-43bf-8643-14d3b8f9b2fa&bookmarkSet=CARPICKER&bookmark=EXT_LEFT_SIDE&profile=HELIOS_OWNERSERVICES_SMALL_V2" + }, + { + "resolutionType": "ONE_MYRENAULT_LARGE", + "url": "https://3dv.renault.com/ImageFromBookmark?configuration=BCB%2FEA4%2FLHDG%2FACD03%2FSTDRF%2FWFURP%2FRVX07%2FRAL20%2FLRS02%2FFSE06%2FBIXPA%2FLEDCO%2FPALAW%2FSPBDA%2FLRSW0%2FRVICM%2FTRSV0%2FAJSW2%2FNA448%2FASOC2%2FRIM09%2FSLCCA%2FNOATD%2FCPTC0%2FBDPRO%2FAIRBDE%2FPRUPTA%2FNOETC%2FM2021%2FNB003%2FSFANT%2FPSFT0%2FNODUP%2FNOWAP%2FRCALL%2FBSD02%2F2BCOL%2FITP14%2FMDMOD%2FPXA00%2FNOPXB%2FPIG02%2FNOLII%2FAVCAM%2FDTRNI&databaseId=a7cc2a21-d3fe-43bf-8643-14d3b8f9b2fa&bookmarkSet=CARPICKER&bookmark=EXT_LEFT_SIDE&profile=HELIOS_OWNERSERVICES_LARGE" + } + ], + "viewPointInLowerCase": "myb_program_settings_page" + }, + { + "assetType": "PICTURE", + "viewpoint": "myb_plug_and_charge_activation", + "renditions": [ + { + "resolutionType": "ONE_MYRENAULT_SMALL", + "url": "https://3dv.renault.com/ImageFromBookmark?configuration=BCB%2FEA4%2FLHDG%2FACD03%2FSTDRF%2FWFURP%2FRVX07%2FRAL20%2FLRS02%2FFSE06%2FBIXPA%2FLEDCO%2FPALAW%2FSPBDA%2FLRSW0%2FRVICM%2FTRSV0%2FAJSW2%2FNA448%2FASOC2%2FRIM09%2FSLCCA%2FNOATD%2FCPTC0%2FBDPRO%2FAIRBDE%2FPRUPTA%2FNOETC%2FM2021%2FNB003%2FSFANT%2FPSFT0%2FNODUP%2FNOWAP%2FRCALL%2FBSD02%2F2BCOL%2FITP14%2FMDMOD%2FPXA00%2FNOPXB%2FPIG02%2FNOLII%2FAVCAM%2FDTRNI&databaseId=a7cc2a21-d3fe-43bf-8643-14d3b8f9b2fa&bookmarkSet=CARPICKER&bookmark=EXT_RIGHT_SIDE&profile=HELIOS_OWNERSERVICES_SMALL_V2" + }, + { + "resolutionType": "ONE_MYRENAULT_LARGE", + "url": "https://3dv.renault.com/ImageFromBookmark?configuration=BCB%2FEA4%2FLHDG%2FACD03%2FSTDRF%2FWFURP%2FRVX07%2FRAL20%2FLRS02%2FFSE06%2FBIXPA%2FLEDCO%2FPALAW%2FSPBDA%2FLRSW0%2FRVICM%2FTRSV0%2FAJSW2%2FNA448%2FASOC2%2FRIM09%2FSLCCA%2FNOATD%2FCPTC0%2FBDPRO%2FAIRBDE%2FPRUPTA%2FNOETC%2FM2021%2FNB003%2FSFANT%2FPSFT0%2FNODUP%2FNOWAP%2FRCALL%2FBSD02%2F2BCOL%2FITP14%2FMDMOD%2FPXA00%2FNOPXB%2FPIG02%2FNOLII%2FAVCAM%2FDTRNI&databaseId=a7cc2a21-d3fe-43bf-8643-14d3b8f9b2fa&bookmarkSet=CARPICKER&bookmark=EXT_RIGHT_SIDE&profile=HELIOS_OWNERSERVICES_LARGE" + } + ], + "viewPointInLowerCase": "myb_plug_and_charge_activation" + }, + { + "assetType": "PICTURE", + "viewpoint": "myb_plug_and_charge_my_car", + "renditions": [ + { + "resolutionType": "ONE_MYRENAULT_SMALL", + "url": "https://3dv.renault.com/ImageFromBookmark?configuration=BCB%2FEA4%2FLHDG%2FACD03%2FSTDRF%2FWFURP%2FRVX07%2FRAL20%2FLRS02%2FFSE06%2FBIXPA%2FLEDCO%2FPALAW%2FSPBDA%2FLRSW0%2FRVICM%2FTRSV0%2FAJSW2%2FNA448%2FASOC2%2FRIM09%2FSLCCA%2FNOATD%2FCPTC0%2FBDPRO%2FAIRBDE%2FPRUPTA%2FNOETC%2FM2021%2FNB003%2FSFANT%2FPSFT0%2FNODUP%2FNOWAP%2FRCALL%2FBSD02%2F2BCOL%2FITP14%2FMDMOD%2FPXA00%2FNOPXB%2FPIG02%2FNOLII%2FAVCAM%2FDTRNI&databaseId=a7cc2a21-d3fe-43bf-8643-14d3b8f9b2fa&bookmarkSet=CARPICKER&bookmark=EXT_LEFT_SIDE&profile=HELIOS_OWNERSERVICES_SMALL_V2" + }, + { + "resolutionType": "ONE_MYRENAULT_LARGE", + "url": "https://3dv.renault.com/ImageFromBookmark?configuration=BCB%2FEA4%2FLHDG%2FACD03%2FSTDRF%2FWFURP%2FRVX07%2FRAL20%2FLRS02%2FFSE06%2FBIXPA%2FLEDCO%2FPALAW%2FSPBDA%2FLRSW0%2FRVICM%2FTRSV0%2FAJSW2%2FNA448%2FASOC2%2FRIM09%2FSLCCA%2FNOATD%2FCPTC0%2FBDPRO%2FAIRBDE%2FPRUPTA%2FNOETC%2FM2021%2FNB003%2FSFANT%2FPSFT0%2FNODUP%2FNOWAP%2FRCALL%2FBSD02%2F2BCOL%2FITP14%2FMDMOD%2FPXA00%2FNOPXB%2FPIG02%2FNOLII%2FAVCAM%2FDTRNI&databaseId=a7cc2a21-d3fe-43bf-8643-14d3b8f9b2fa&bookmarkSet=CARPICKER&bookmark=EXT_LEFT_SIDE&profile=HELIOS_OWNERSERVICES_LARGE" + } + ], + "viewPointInLowerCase": "myb_plug_and_charge_my_car" + } + ], + "yearsOfMaintenance": 12, + "connectivityTechnology": "OPENRLINK", + "easyConnectStore": true, + "electrical": true, + "deliveryDate": "2024-01-16", + "retrievedFromDhs": false, + "engineEnergyType": "ELEC", + "radioCode": "", + "premiumSubscribed": false, + "batteryType": "NMC" + } + } + ] +} diff --git a/tests/components/renault/snapshots/test_binary_sensor.ambr b/tests/components/renault/snapshots/test_binary_sensor.ambr index 13a158ce030c72..c7c1b87facb457 100644 --- a/tests/components/renault/snapshots/test_binary_sensor.ambr +++ b/tests/components/renault/snapshots/test_binary_sensor.ambr @@ -495,6 +495,155 @@ 'state': 'on', }) # --- +# name: test_binary_sensors[megane_e_tech][binary_sensor.reg_meg_0_charging-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': None, + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'binary_sensor', + 'entity_category': None, + 'entity_id': 'binary_sensor.reg_meg_0_charging', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Charging', + 'options': dict({ + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Charging', + 'platform': 'renault', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': None, + 'unique_id': 'vf1meganeetechvin_charging', + 'unit_of_measurement': None, + }) +# --- +# name: test_binary_sensors[megane_e_tech][binary_sensor.reg_meg_0_charging-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'battery_charging', + 'friendly_name': 'REG-MEG-0 Charging', + }), + 'context': , + 'entity_id': 'binary_sensor.reg_meg_0_charging', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': 'on', + }) +# --- +# name: test_binary_sensors[megane_e_tech][binary_sensor.reg_meg_0_hvac-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': None, + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'binary_sensor', + 'entity_category': None, + 'entity_id': 'binary_sensor.reg_meg_0_hvac', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'HVAC', + 'options': dict({ + }), + 'original_device_class': None, + 'original_icon': None, + 'original_name': 'HVAC', + 'platform': 'renault', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'hvac_status', + 'unique_id': 'vf1meganeetechvin_hvac_status', + 'unit_of_measurement': None, + }) +# --- +# name: test_binary_sensors[megane_e_tech][binary_sensor.reg_meg_0_hvac-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'friendly_name': 'REG-MEG-0 HVAC', + }), + 'context': , + 'entity_id': 'binary_sensor.reg_meg_0_hvac', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': 'off', + }) +# --- +# name: test_binary_sensors[megane_e_tech][binary_sensor.reg_meg_0_plug-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': None, + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'binary_sensor', + 'entity_category': None, + 'entity_id': 'binary_sensor.reg_meg_0_plug', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Plug', + 'options': dict({ + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Plug', + 'platform': 'renault', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': None, + 'unique_id': 'vf1meganeetechvin_plugged_in', + 'unit_of_measurement': None, + }) +# --- +# name: test_binary_sensors[megane_e_tech][binary_sensor.reg_meg_0_plug-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'plug', + 'friendly_name': 'REG-MEG-0 Plug', + }), + 'context': , + 'entity_id': 'binary_sensor.reg_meg_0_plug', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': 'on', + }) +# --- # name: test_binary_sensors[twingo_3_electric][binary_sensor.reg_twingo_iii_charging-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ diff --git a/tests/components/renault/snapshots/test_button.ambr b/tests/components/renault/snapshots/test_button.ambr index 4218c4339b574f..11e24a18214500 100644 --- a/tests/components/renault/snapshots/test_button.ambr +++ b/tests/components/renault/snapshots/test_button.ambr @@ -1371,6 +1371,202 @@ 'state': 'unknown', }) # --- +# name: test_buttons[megane_e_tech][button.reg_meg_0_flash_lights-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': None, + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'button', + 'entity_category': None, + 'entity_id': 'button.reg_meg_0_flash_lights', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Flash lights', + 'options': dict({ + }), + 'original_device_class': None, + 'original_icon': None, + 'original_name': 'Flash lights', + 'platform': 'renault', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'flash_lights', + 'unique_id': 'vf1meganeetechvin_flash_lights', + 'unit_of_measurement': None, + }) +# --- +# name: test_buttons[megane_e_tech][button.reg_meg_0_flash_lights-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'friendly_name': 'REG-MEG-0 Flash lights', + }), + 'context': , + 'entity_id': 'button.reg_meg_0_flash_lights', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': 'unknown', + }) +# --- +# name: test_buttons[megane_e_tech][button.reg_meg_0_sound_horn-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': None, + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'button', + 'entity_category': None, + 'entity_id': 'button.reg_meg_0_sound_horn', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Sound horn', + 'options': dict({ + }), + 'original_device_class': None, + 'original_icon': None, + 'original_name': 'Sound horn', + 'platform': 'renault', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'sound_horn', + 'unique_id': 'vf1meganeetechvin_sound_horn', + 'unit_of_measurement': None, + }) +# --- +# name: test_buttons[megane_e_tech][button.reg_meg_0_sound_horn-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'friendly_name': 'REG-MEG-0 Sound horn', + }), + 'context': , + 'entity_id': 'button.reg_meg_0_sound_horn', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': 'unknown', + }) +# --- +# name: test_buttons[megane_e_tech][button.reg_meg_0_start_air_conditioner-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': None, + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'button', + 'entity_category': None, + 'entity_id': 'button.reg_meg_0_start_air_conditioner', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Start air conditioner', + 'options': dict({ + }), + 'original_device_class': None, + 'original_icon': None, + 'original_name': 'Start air conditioner', + 'platform': 'renault', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'start_air_conditioner', + 'unique_id': 'vf1meganeetechvin_start_air_conditioner', + 'unit_of_measurement': None, + }) +# --- +# name: test_buttons[megane_e_tech][button.reg_meg_0_start_air_conditioner-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'friendly_name': 'REG-MEG-0 Start air conditioner', + }), + 'context': , + 'entity_id': 'button.reg_meg_0_start_air_conditioner', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': 'unknown', + }) +# --- +# name: test_buttons[megane_e_tech][button.reg_meg_0_start_charge-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': None, + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'button', + 'entity_category': None, + 'entity_id': 'button.reg_meg_0_start_charge', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Start charge', + 'options': dict({ + }), + 'original_device_class': None, + 'original_icon': None, + 'original_name': 'Start charge', + 'platform': 'renault', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'start_charge', + 'unique_id': 'vf1meganeetechvin_start_charge', + 'unit_of_measurement': None, + }) +# --- +# name: test_buttons[megane_e_tech][button.reg_meg_0_start_charge-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'friendly_name': 'REG-MEG-0 Start charge', + }), + 'context': , + 'entity_id': 'button.reg_meg_0_start_charge', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': 'unknown', + }) +# --- # name: test_buttons[twingo_3_electric][button.reg_twingo_iii_flash_lights-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ diff --git a/tests/components/renault/snapshots/test_device_tracker.ambr b/tests/components/renault/snapshots/test_device_tracker.ambr index 656c8c906f261f..02d03a75b0d7e1 100644 --- a/tests/components/renault/snapshots/test_device_tracker.ambr +++ b/tests/components/renault/snapshots/test_device_tracker.ambr @@ -204,6 +204,59 @@ 'state': 'not_home', }) # --- +# name: test_device_trackers[megane_e_tech][device_tracker.reg_meg_0_location-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': None, + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'device_tracker', + 'entity_category': , + 'entity_id': 'device_tracker.reg_meg_0_location', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Location', + 'options': dict({ + }), + 'original_device_class': None, + 'original_icon': None, + 'original_name': 'Location', + 'platform': 'renault', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'location', + 'unique_id': 'vf1meganeetechvin_location', + 'unit_of_measurement': None, + }) +# --- +# name: test_device_trackers[megane_e_tech][device_tracker.reg_meg_0_location-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'friendly_name': 'REG-MEG-0 Location', + 'gps_accuracy': 0, + 'latitude': 48.1234567, + 'longitude': 11.1234567, + 'source_type': , + }), + 'context': , + 'entity_id': 'device_tracker.reg_meg_0_location', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': 'not_home', + }) +# --- # name: test_device_trackers[twingo_3_electric][device_tracker.reg_twingo_iii_location-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ diff --git a/tests/components/renault/snapshots/test_init.ambr b/tests/components/renault/snapshots/test_init.ambr index 15b3c599711c42..7b898e593c3d50 100644 --- a/tests/components/renault/snapshots/test_init.ambr +++ b/tests/components/renault/snapshots/test_init.ambr @@ -65,6 +65,39 @@ }), ]) # --- +# name: test_device_registry[megane_e_tech] + list([ + DeviceRegistryEntrySnapshot({ + 'area_id': None, + 'config_entries': , + 'config_entries_subentries': , + 'configuration_url': None, + 'connections': set({ + }), + 'disabled_by': None, + 'entry_type': None, + 'hw_version': None, + 'id': , + 'identifiers': set({ + tuple( + 'renault', + 'VF1MEGANEETECHVIN', + ), + }), + 'labels': set({ + }), + 'manufacturer': 'Renault', + 'model': 'Megane e-tech', + 'model_id': 'XCB1VE', + 'name': 'REG-MEG-0', + 'name_by_user': None, + 'primary_config_entry': , + 'serial_number': None, + 'sw_version': None, + 'via_device_id': None, + }), + ]) +# --- # name: test_device_registry[twingo_3_electric] list([ DeviceRegistryEntrySnapshot({ diff --git a/tests/components/renault/snapshots/test_sensor.ambr b/tests/components/renault/snapshots/test_sensor.ambr index 3e0cc9b7a8f55f..19a5ef3f487fb2 100644 --- a/tests/components/renault/snapshots/test_sensor.ambr +++ b/tests/components/renault/snapshots/test_sensor.ambr @@ -2758,6 +2758,795 @@ 'state': 'plugged', }) # --- +# name: test_sensors[megane_e_tech][sensor.reg_meg_0_admissible_charging_power-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.reg_meg_0_admissible_charging_power', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Admissible charging power', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 2, + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Admissible charging power', + 'platform': 'renault', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'admissible_charging_power', + 'unique_id': 'vf1meganeetechvin_charging_power', + 'unit_of_measurement': , + }) +# --- +# name: test_sensors[megane_e_tech][sensor.reg_meg_0_admissible_charging_power-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'power', + 'friendly_name': 'REG-MEG-0 Admissible charging power', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.reg_meg_0_admissible_charging_power', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '27.0', + }) +# --- +# name: test_sensors[megane_e_tech][sensor.reg_meg_0_battery-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.reg_meg_0_battery', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Battery', + 'options': dict({ + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Battery', + 'platform': 'renault', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': None, + 'unique_id': 'vf1meganeetechvin_battery_level', + 'unit_of_measurement': '%', + }) +# --- +# name: test_sensors[megane_e_tech][sensor.reg_meg_0_battery-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'battery', + 'friendly_name': 'REG-MEG-0 Battery', + 'state_class': , + 'unit_of_measurement': '%', + }), + 'context': , + 'entity_id': 'sensor.reg_meg_0_battery', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '60', + }) +# --- +# name: test_sensors[megane_e_tech][sensor.reg_meg_0_battery_autonomy-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.reg_meg_0_battery_autonomy', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Battery autonomy', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 2, + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Battery autonomy', + 'platform': 'renault', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'battery_autonomy', + 'unique_id': 'vf1meganeetechvin_battery_autonomy', + 'unit_of_measurement': , + }) +# --- +# name: test_sensors[megane_e_tech][sensor.reg_meg_0_battery_autonomy-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'distance', + 'friendly_name': 'REG-MEG-0 Battery autonomy', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.reg_meg_0_battery_autonomy', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '141', + }) +# --- +# name: test_sensors[megane_e_tech][sensor.reg_meg_0_battery_available_energy-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.reg_meg_0_battery_available_energy', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Battery available energy', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 2, + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Battery available energy', + 'platform': 'renault', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'battery_available_energy', + 'unique_id': 'vf1meganeetechvin_battery_available_energy', + 'unit_of_measurement': , + }) +# --- +# name: test_sensors[megane_e_tech][sensor.reg_meg_0_battery_available_energy-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'energy', + 'friendly_name': 'REG-MEG-0 Battery available energy', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.reg_meg_0_battery_available_energy', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '31', + }) +# --- +# name: test_sensors[megane_e_tech][sensor.reg_meg_0_battery_temperature-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.reg_meg_0_battery_temperature', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Battery temperature', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 1, + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Battery temperature', + 'platform': 'renault', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'battery_temperature', + 'unique_id': 'vf1meganeetechvin_battery_temperature', + 'unit_of_measurement': , + }) +# --- +# name: test_sensors[megane_e_tech][sensor.reg_meg_0_battery_temperature-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'temperature', + 'friendly_name': 'REG-MEG-0 Battery temperature', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.reg_meg_0_battery_temperature', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '20', + }) +# --- +# name: test_sensors[megane_e_tech][sensor.reg_meg_0_charge_state-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'options': list([ + 'not_in_charge', + 'waiting_for_a_planned_charge', + 'charge_ended', + 'waiting_for_current_charge', + 'energy_flap_opened', + 'charge_in_progress', + 'charge_error', + 'unavailable', + ]), + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.reg_meg_0_charge_state', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Charge state', + 'options': dict({ + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Charge state', + 'platform': 'renault', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'charge_state', + 'unique_id': 'vf1meganeetechvin_charge_state', + 'unit_of_measurement': None, + }) +# --- +# name: test_sensors[megane_e_tech][sensor.reg_meg_0_charge_state-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'enum', + 'friendly_name': 'REG-MEG-0 Charge state', + 'options': list([ + 'not_in_charge', + 'waiting_for_a_planned_charge', + 'charge_ended', + 'waiting_for_current_charge', + 'energy_flap_opened', + 'charge_in_progress', + 'charge_error', + 'unavailable', + ]), + }), + 'context': , + 'entity_id': 'sensor.reg_meg_0_charge_state', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': 'charge_in_progress', + }) +# --- +# name: test_sensors[megane_e_tech][sensor.reg_meg_0_charging_remaining_time-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.reg_meg_0_charging_remaining_time', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Charging remaining time', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 2, + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Charging remaining time', + 'platform': 'renault', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'charging_remaining_time', + 'unique_id': 'vf1meganeetechvin_charging_remaining_time', + 'unit_of_measurement': , + }) +# --- +# name: test_sensors[megane_e_tech][sensor.reg_meg_0_charging_remaining_time-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'duration', + 'friendly_name': 'REG-MEG-0 Charging remaining time', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.reg_meg_0_charging_remaining_time', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '145', + }) +# --- +# name: test_sensors[megane_e_tech][sensor.reg_meg_0_hvac_soc_threshold-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': None, + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.reg_meg_0_hvac_soc_threshold', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'HVAC SoC threshold', + 'options': dict({ + }), + 'original_device_class': None, + 'original_icon': None, + 'original_name': 'HVAC SoC threshold', + 'platform': 'renault', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'hvac_soc_threshold', + 'unique_id': 'vf1meganeetechvin_hvac_soc_threshold', + 'unit_of_measurement': '%', + }) +# --- +# name: test_sensors[megane_e_tech][sensor.reg_meg_0_hvac_soc_threshold-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'friendly_name': 'REG-MEG-0 HVAC SoC threshold', + 'unit_of_measurement': '%', + }), + 'context': , + 'entity_id': 'sensor.reg_meg_0_hvac_soc_threshold', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': 'unknown', + }) +# --- +# name: test_sensors[megane_e_tech][sensor.reg_meg_0_last_battery_activity-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': None, + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.reg_meg_0_last_battery_activity', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Last battery activity', + 'options': dict({ + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Last battery activity', + 'platform': 'renault', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'battery_last_activity', + 'unique_id': 'vf1meganeetechvin_battery_last_activity', + 'unit_of_measurement': None, + }) +# --- +# name: test_sensors[megane_e_tech][sensor.reg_meg_0_last_battery_activity-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'timestamp', + 'friendly_name': 'REG-MEG-0 Last battery activity', + }), + 'context': , + 'entity_id': 'sensor.reg_meg_0_last_battery_activity', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '2020-01-12T21:40:16+00:00', + }) +# --- +# name: test_sensors[megane_e_tech][sensor.reg_meg_0_last_hvac_activity-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': None, + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.reg_meg_0_last_hvac_activity', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Last HVAC activity', + 'options': dict({ + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Last HVAC activity', + 'platform': 'renault', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'hvac_last_activity', + 'unique_id': 'vf1meganeetechvin_hvac_last_activity', + 'unit_of_measurement': None, + }) +# --- +# name: test_sensors[megane_e_tech][sensor.reg_meg_0_last_hvac_activity-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'timestamp', + 'friendly_name': 'REG-MEG-0 Last HVAC activity', + }), + 'context': , + 'entity_id': 'sensor.reg_meg_0_last_hvac_activity', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': 'unknown', + }) +# --- +# name: test_sensors[megane_e_tech][sensor.reg_meg_0_last_location_activity-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': None, + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.reg_meg_0_last_location_activity', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Last location activity', + 'options': dict({ + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Last location activity', + 'platform': 'renault', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'location_last_activity', + 'unique_id': 'vf1meganeetechvin_location_last_activity', + 'unit_of_measurement': None, + }) +# --- +# name: test_sensors[megane_e_tech][sensor.reg_meg_0_last_location_activity-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'timestamp', + 'friendly_name': 'REG-MEG-0 Last location activity', + }), + 'context': , + 'entity_id': 'sensor.reg_meg_0_last_location_activity', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '2020-02-18T16:58:38+00:00', + }) +# --- +# name: test_sensors[megane_e_tech][sensor.reg_meg_0_mileage-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.reg_meg_0_mileage', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Mileage', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 2, + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Mileage', + 'platform': 'renault', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'mileage', + 'unique_id': 'vf1meganeetechvin_mileage', + 'unit_of_measurement': , + }) +# --- +# name: test_sensors[megane_e_tech][sensor.reg_meg_0_mileage-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'distance', + 'friendly_name': 'REG-MEG-0 Mileage', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.reg_meg_0_mileage', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '49114', + }) +# --- +# name: test_sensors[megane_e_tech][sensor.reg_meg_0_outside_temperature-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.reg_meg_0_outside_temperature', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Outside temperature', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 1, + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Outside temperature', + 'platform': 'renault', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'outside_temperature', + 'unique_id': 'vf1meganeetechvin_outside_temperature', + 'unit_of_measurement': , + }) +# --- +# name: test_sensors[megane_e_tech][sensor.reg_meg_0_outside_temperature-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'temperature', + 'friendly_name': 'REG-MEG-0 Outside temperature', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.reg_meg_0_outside_temperature', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '8.0', + }) +# --- +# name: test_sensors[megane_e_tech][sensor.reg_meg_0_plug_state-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'options': list([ + 'unplugged', + 'plugged', + 'plugged_waiting_for_charge', + 'plug_error', + 'plug_unknown', + ]), + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.reg_meg_0_plug_state', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Plug state', + 'options': dict({ + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Plug state', + 'platform': 'renault', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'plug_state', + 'unique_id': 'vf1meganeetechvin_plug_state', + 'unit_of_measurement': None, + }) +# --- +# name: test_sensors[megane_e_tech][sensor.reg_meg_0_plug_state-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'enum', + 'friendly_name': 'REG-MEG-0 Plug state', + 'options': list([ + 'unplugged', + 'plugged', + 'plugged_waiting_for_charge', + 'plug_error', + 'plug_unknown', + ]), + }), + 'context': , + 'entity_id': 'sensor.reg_meg_0_plug_state', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': 'plugged', + }) +# --- # name: test_sensors[twingo_3_electric][sensor.reg_twingo_iii_admissible_charging_power-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ diff --git a/tests/components/roku/test_config_flow.py b/tests/components/roku/test_config_flow.py index 57ddf5d51a67d3..bda1fe7b790e0d 100644 --- a/tests/components/roku/test_config_flow.py +++ b/tests/components/roku/test_config_flow.py @@ -264,7 +264,9 @@ async def test_ssdp_discovery( async def test_options_flow( - hass: HomeAssistant, mock_config_entry: MockConfigEntry + hass: HomeAssistant, + mock_setup_entry: None, + mock_config_entry: MockConfigEntry, ) -> None: """Test options config flow.""" mock_config_entry.add_to_hass(hass) diff --git a/tests/components/samsungtv/test_init.py b/tests/components/samsungtv/test_init.py index 83e65d0de1262e..f10062669ed3a8 100644 --- a/tests/components/samsungtv/test_init.py +++ b/tests/components/samsungtv/test_init.py @@ -77,7 +77,7 @@ async def test_setup_h_j_model( assert "H and J series use an encrypted protocol" in caplog.text -@pytest.mark.usefixtures("remote_websocket") +@pytest.mark.usefixtures("remote_websocket", "rest_api") async def test_setup_updates_from_ssdp(hass: HomeAssistant) -> None: """Test setting up the entry fetches data from ssdp cache.""" entry = MockConfigEntry( diff --git a/tests/components/sharkiq/test_config_flow.py b/tests/components/sharkiq/test_config_flow.py index f96b2f31e0b161..c69aadc9d14e1a 100644 --- a/tests/components/sharkiq/test_config_flow.py +++ b/tests/components/sharkiq/test_config_flow.py @@ -31,7 +31,8 @@ async def test_setup_success_no_region(hass: HomeAssistant) -> None: ) mock_config.add_to_hass(hass) - result = await async_setup_component(hass=hass, domain=DOMAIN, config={}) + with patch("homeassistant.components.sharkiq.async_setup_entry", return_value=True): + result = await async_setup_component(hass=hass, domain=DOMAIN, config={}) assert result is True diff --git a/tests/components/sma/test_config_flow.py b/tests/components/sma/test_config_flow.py index f927f9979da23f..d11c50a1de1ce4 100644 --- a/tests/components/sma/test_config_flow.py +++ b/tests/components/sma/test_config_flow.py @@ -149,7 +149,9 @@ async def test_dhcp_discovery( async def test_dhcp_already_configured( - hass: HomeAssistant, mock_config_entry: MockConfigEntry + hass: HomeAssistant, + mock_config_entry: MockConfigEntry, + mock_setup_entry: AsyncMock, ) -> None: """Test starting a flow by dhcp when already configured.""" mock_config_entry.add_to_hass(hass) @@ -162,7 +164,9 @@ async def test_dhcp_already_configured( async def test_dhcp_already_configured_duplicate( - hass: HomeAssistant, mock_config_entry: MockConfigEntry + hass: HomeAssistant, + mock_config_entry: MockConfigEntry, + mock_sma_client: MagicMock, ) -> None: """Test starting a flow by DHCP when already configured and MAC is added.""" mock_config_entry.add_to_hass(hass) @@ -280,6 +284,7 @@ async def test_full_flow_reauth( async def test_reauth_flow_exceptions( hass: HomeAssistant, mock_config_entry: MockConfigEntry, + mock_setup_entry: AsyncMock, exception: Exception, error: str, ) -> None: diff --git a/tests/components/smartthings/fixtures/device_status/da_rvc_map_01011.json b/tests/components/smartthings/fixtures/device_status/da_rvc_map_01011.json index 686207f67d2b60..f464404078cd3d 100644 --- a/tests/components/smartthings/fixtures/device_status/da_rvc_map_01011.json +++ b/tests/components/smartthings/fixtures/device_status/da_rvc_map_01011.json @@ -18,7 +18,7 @@ "samsungce.connectionState", "samsungce.activationState" ], - "timestamp": "2025-06-20T14:12:57.135Z" + "timestamp": "2026-02-27T10:49:03.853Z" } }, "samsungce.drainFilter": { @@ -46,11 +46,11 @@ }, "hepaFilterStatus": { "value": "normal", - "timestamp": "2025-07-02T04:35:14.449Z" + "timestamp": "2026-02-27T10:49:04.301Z" }, "hepaFilterResetType": { "value": ["replaceable"], - "timestamp": "2025-07-02T04:35:14.449Z" + "timestamp": "2026-02-27T10:49:04.301Z" }, "hepaFilterUsageStep": { "value": null @@ -65,129 +65,135 @@ "samsungce.robotCleanerDustBag": { "supportedStatus": { "value": ["full", "normal"], - "timestamp": "2025-07-02T04:35:14.620Z" + "timestamp": "2026-02-27T10:49:04.301Z" }, "status": { "value": "normal", - "timestamp": "2025-07-02T04:35:14.620Z" + "timestamp": "2026-02-27T10:49:04.301Z" } } }, "main": { "mediaPlayback": { "supportedPlaybackCommands": { - "value": null + "value": ["play", "pause", "stop"], + "timestamp": "2026-02-27T10:49:04.301Z" }, "playbackStatus": { + "value": "stopped", + "timestamp": "2026-02-27T10:49:04.301Z" + } + }, + "samsungce.notification": { + "supportedActionSettings": { + "value": null + }, + "actionSetting": { + "value": null + }, + "supportedContexts": { + "value": null + }, + "supportCustomContent": { "value": null } }, "robotCleanerTurboMode": { "robotCleanerTurboMode": { - "value": "extraSilence", - "timestamp": "2025-07-10T11:00:38.909Z" + "value": "off", + "timestamp": "2026-02-27T10:49:04.309Z" } }, "ocf": { "st": { - "value": "2024-01-01T09:00:15Z", - "timestamp": "2025-06-20T14:12:57.924Z" + "value": "1970-01-01T00:00:27Z", + "timestamp": "2026-02-27T11:01:53.718Z" }, "mndt": { "value": "", - "timestamp": "2025-06-20T14:12:57.924Z" + "timestamp": "2026-02-27T11:01:53.718Z" }, "mnfv": { - "value": "20250123.105306", - "timestamp": "2025-06-20T14:12:57.924Z" + "value": "20260120.215157", + "timestamp": "2026-02-27T11:02:28.946Z" }, "mnhw": { "value": "", - "timestamp": "2025-06-20T14:12:57.924Z" + "timestamp": "2026-02-27T11:01:53.718Z" }, "di": { - "value": "05accb39-2017-c98b-a5ab-04a81f4d3d9a", - "timestamp": "2025-06-20T14:12:57.924Z" + "value": "01b28624-5907-c8bc-0325-8ad23f03a637", + "timestamp": "2026-02-27T11:01:53.718Z" }, "mnsl": { "value": "", - "timestamp": "2025-06-20T14:12:57.924Z" + "timestamp": "2026-02-27T11:01:53.718Z" }, "dmv": { - "value": "res.1.1.0,sh.1.1.0", - "timestamp": "2025-06-20T14:12:57.924Z" + "value": "1.2.1", + "timestamp": "2026-02-27T11:02:28.946Z" }, "n": { "value": "[robot vacuum] Samsung", - "timestamp": "2025-06-20T14:12:57.924Z" + "timestamp": "2026-02-27T11:01:53.718Z" }, "mnmo": { - "value": "JETBOT_COMBO_9X00_24K|50029141|80010b0002d8411f0100000000000000", - "timestamp": "2025-06-20T14:12:57.924Z" + "value": "JETBOT_COMBOT_9X00_24K|50029141|80010a0002d8411f0100000000000000", + "timestamp": "2026-02-27T11:01:53.718Z" }, "vid": { "value": "DA-RVC-MAP-01011", - "timestamp": "2025-06-20T14:12:57.924Z" + "timestamp": "2026-02-27T11:01:53.718Z" }, "mnmn": { "value": "Samsung Electronics", - "timestamp": "2025-06-20T14:12:57.924Z" + "timestamp": "2026-02-27T11:01:53.718Z" }, "mnml": { "value": "", - "timestamp": "2025-06-20T14:12:57.924Z" + "timestamp": "2026-02-27T11:01:53.718Z" }, "mnpv": { "value": "1.0", - "timestamp": "2025-06-20T14:12:57.924Z" + "timestamp": "2026-02-27T11:01:53.718Z" }, "mnos": { "value": "Tizen", - "timestamp": "2025-06-20T14:12:57.924Z" + "timestamp": "2026-02-27T11:01:53.718Z" }, "pi": { - "value": "05accb39-2017-c98b-a5ab-04a81f4d3d9a", - "timestamp": "2025-06-20T14:12:57.924Z" + "value": "01b28624-5907-c8bc-0325-8ad23f03a637", + "timestamp": "2026-02-27T11:01:53.718Z" }, "icv": { "value": "core.1.1.0", - "timestamp": "2025-06-20T14:12:57.924Z" + "timestamp": "2026-02-27T11:01:53.718Z" } }, "custom.disabledCapabilities": { "disabledCapabilities": { "value": [ - "samsungce.robotCleanerAudioClip", "custom.hepaFilter", "imageCapture", - "mediaPlaybackRepeat", - "mediaPlayback", - "mediaTrackControl", - "samsungce.robotCleanerPatrol", - "samsungce.musicPlaylist", - "audioVolume", - "audioMute", "videoCapture", "samsungce.robotCleanerWelcome", - "samsungce.microphoneSettings", "samsungce.robotCleanerGuidedPatrol", "samsungce.robotCleanerSafetyPatrol", - "soundDetection", - "samsungce.soundDetectionSensitivity", - "audioTrackAddressing", - "samsungce.robotCleanerMonitoringAutomation" + "samsungce.objectDetection", + "samsungce.notification", + "samsungce.sabbathMode" ], - "timestamp": "2025-06-20T14:12:58.125Z" + "timestamp": "2026-02-27T10:49:04.309Z" } }, "logTrigger": { "logState": { "value": "idle", - "timestamp": "2025-07-02T04:35:14.401Z" + "timestamp": "2026-02-27T10:49:04.301Z" }, "logRequestState": { "value": "idle", - "timestamp": "2025-07-02T04:35:14.401Z" + "timestamp": "2026-02-27T10:49:04.301Z" }, "logInfo": { "value": null @@ -195,45 +201,45 @@ }, "samsungce.driverVersion": { "versionNumber": { - "value": 25040102, - "timestamp": "2025-06-20T14:12:57.135Z" + "value": 25110101, + "timestamp": "2026-02-27T10:49:03.853Z" } }, "sec.diagnosticsInformation": { "logType": { "value": ["errCode", "dump"], - "timestamp": "2025-07-02T04:35:13.556Z" + "timestamp": "2026-02-27T10:49:04.309Z" }, "endpoint": { "value": "PIPER", - "timestamp": "2025-07-02T04:35:13.556Z" + "timestamp": "2026-02-27T10:49:04.309Z" }, "minVersion": { "value": "3.0", - "timestamp": "2025-07-02T04:35:13.556Z" + "timestamp": "2026-02-27T10:49:04.309Z" }, "signinPermission": { "value": null }, "setupId": { "value": "VR0", - "timestamp": "2025-07-02T04:35:13.556Z" + "timestamp": "2026-02-27T10:49:04.309Z" }, "protocolType": { "value": "ble_ocf", - "timestamp": "2025-07-02T04:35:13.556Z" + "timestamp": "2026-02-27T10:49:04.301Z" }, "tsId": { "value": "DA10", - "timestamp": "2025-07-02T04:35:13.556Z" + "timestamp": "2026-02-27T10:49:04.301Z" }, "mnId": { "value": "0AJT", - "timestamp": "2025-07-02T04:35:13.556Z" + "timestamp": "2026-02-27T10:49:04.309Z" }, "dumpType": { "value": "file", - "timestamp": "2025-07-02T04:35:13.556Z" + "timestamp": "2026-02-27T10:49:04.301Z" } }, "custom.hepaFilter": { @@ -259,41 +265,43 @@ "samsungce.robotCleanerMapCleaningInfo": { "area": { "value": "None", - "timestamp": "2025-07-10T09:37:08.648Z" + "timestamp": "2026-02-27T13:01:08.027Z" }, "cleanedExtent": { "value": -1, "unit": "m\u00b2", - "timestamp": "2025-07-10T09:37:08.648Z" + "timestamp": "2026-02-27T13:01:08.027Z" }, "nearObject": { "value": "None", - "timestamp": "2025-07-02T04:35:13.567Z" + "timestamp": "2026-02-27T13:54:10.218Z" }, "remainingTime": { "value": -1, "unit": "minute", - "timestamp": "2025-07-10T06:42:57.820Z" + "timestamp": "2026-02-27T13:01:08.027Z" } }, "audioVolume": { "volume": { - "value": null + "value": 20, + "unit": "%", + "timestamp": "2026-02-27T12:36:35.065Z" } }, "powerConsumptionReport": { "powerConsumption": { "value": { - "energy": 981, - "deltaEnergy": 21, + "energy": 335, + "deltaEnergy": 3, "power": 0, "powerEnergy": 0.0, "persistedEnergy": 0, "energySaved": 0, - "start": "2025-07-10T11:11:22Z", - "end": "2025-07-10T11:20:22Z" + "start": "2026-02-27T16:52:44Z", + "end": "2026-02-27T17:02:44Z" }, - "timestamp": "2025-07-10T11:20:22.600Z" + "timestamp": "2026-02-27T17:02:44.423Z" } }, "samsungce.robotCleanerMapList": { @@ -303,34 +311,44 @@ "id": "1", "name": "Map1", "userEdited": false, - "createdTime": "2025-07-01T08:23:29Z", - "updatedTime": "2025-07-01T08:23:29Z", + "createdTime": "2026-02-27T14:05:16Z", + "updatedTime": "2026-02-27T14:05:16Z", "areaInfo": [ { "id": "1", - "name": "Room", - "userEdited": false + "name": "Living", + "userEdited": true }, { "id": "2", - "name": "Room 2", + "name": "Master bedroom", "userEdited": false }, { "id": "3", - "name": "Room 3", + "name": "Kitchen", "userEdited": false }, { "id": "4", - "name": "Room 4", + "name": "Kids room", + "userEdited": false + }, + { + "id": "5", + "name": "Bathroom", + "userEdited": false + }, + { + "id": "6", + "name": "Hallway", "userEdited": false } ], "objectInfo": [] } ], - "timestamp": "2025-07-02T04:35:14.204Z" + "timestamp": "2026-02-27T14:15:22.888Z" } }, "samsungce.robotCleanerPatrol": { @@ -356,7 +374,8 @@ "value": null }, "blockingStatus": { - "value": null + "value": "unblocked", + "timestamp": "2026-02-27T10:49:04.301Z" }, "mapId": { "value": null @@ -371,20 +390,24 @@ "value": null }, "obsoleted": { - "value": null + "value": true, + "timestamp": "2026-02-27T10:49:04.301Z" } }, "samsungce.robotCleanerAudioClip": { "enabled": { - "value": null + "value": false, + "timestamp": "2026-02-27T10:49:08.277Z" } }, "samsungce.musicPlaylist": { "currentTrack": { - "value": null + "value": {}, + "timestamp": "2026-02-27T10:49:04.301Z" }, "playlist": { - "value": null + "value": {}, + "timestamp": "2026-02-27T10:49:04.301Z" } }, "audioNotification": {}, @@ -404,26 +427,18 @@ }, "plan": { "value": "none", - "timestamp": "2025-07-02T04:35:14.341Z" + "timestamp": "2026-02-27T10:49:04.301Z" } }, "samsungce.robotCleanerFeatureVisibility": { "invisibleFeatures": { - "value": [ - "Start", - "Dock", - "SelectRoom", - "DustEmit", - "SelectSpot", - "CleaningMethod", - "MopWash", - "MopDry" - ], - "timestamp": "2025-07-10T09:52:40.298Z" + "value": ["Stop", "Dock", "SelectObject"], + "timestamp": "2026-02-27T16:17:09.555Z" }, "visibleFeatures": { "value": [ - "Stop", + "Start", + "SelectRoom", "Suction", "Repeat", "MapMerge", @@ -434,38 +449,43 @@ "CleanHistory", "DND", "Sound", + "DustEmit", "NoEntryZone", "RenameRoom", "ResetMap", "Accessory", + "SelectSpot", "CleaningOption", "ObjectEdit", + "CleaningMethod", "WaterLevel", + "MopWash", + "MopDry", "ClimbZone" ], - "timestamp": "2025-07-10T09:52:40.298Z" + "timestamp": "2026-02-27T16:17:09.555Z" } }, "sec.wifiConfiguration": { "autoReconnection": { "value": true, - "timestamp": "2025-07-02T04:35:14.461Z" + "timestamp": "2026-02-27T10:49:04.301Z" }, "minVersion": { "value": "1.0", - "timestamp": "2025-07-02T04:35:14.461Z" + "timestamp": "2026-02-27T10:49:04.301Z" }, "supportedWiFiFreq": { "value": ["2.4G", "5G"], - "timestamp": "2025-07-02T04:35:14.461Z" + "timestamp": "2026-02-27T10:49:04.301Z" }, "supportedAuthType": { "value": ["OPEN", "WEP", "WPA-PSK", "WPA2-PSK", "SAE"], - "timestamp": "2025-07-02T04:35:14.461Z" + "timestamp": "2026-02-27T10:49:04.301Z" }, "protocolType": { "value": ["helper_hotspot", "ble_ocf"], - "timestamp": "2025-07-02T04:35:14.461Z" + "timestamp": "2026-02-27T10:49:04.301Z" } }, "samsungce.softwareVersion": { @@ -474,17 +494,17 @@ { "id": "0", "swType": "Software", - "versionNumber": "25012310" + "versionNumber": "26012021" }, { "id": "1", "swType": "Software", - "versionNumber": "25012310" + "versionNumber": "26012021" }, { "id": "2", "swType": "Firmware", - "versionNumber": "25012100" + "versionNumber": "25122900" }, { "id": "3", @@ -494,15 +514,15 @@ { "id": "4", "swType": "Bixby", - "versionNumber": "(null)" + "versionNumber": "7.3.14" }, { "id": "5", "swType": "Firmware", - "versionNumber": "25012200" + "versionNumber": "25103000" } ], - "timestamp": "2025-07-02T04:35:13.556Z" + "timestamp": "2026-02-27T11:21:42.334Z" } }, "samsungce.softwareUpdate": { @@ -512,46 +532,38 @@ "currentVersion": "00000000", "moduleType": "mainController" }, - "timestamp": "2025-07-09T23:00:32.385Z" + "timestamp": "2026-02-27T13:03:52.260Z" }, "otnDUID": { - "value": "JHCDM7UU7UJWQ", - "timestamp": "2025-07-02T04:35:13.556Z" + "value": "MTCCN6NYXU5OY", + "timestamp": "2026-02-27T10:49:04.309Z" }, "lastUpdatedDate": { - "value": null + "value": "2026-02-27", + "timestamp": "2026-02-27T11:02:30.343Z" }, "availableModules": { "value": [], - "timestamp": "2025-07-02T04:35:13.556Z" + "timestamp": "2026-02-27T10:49:04.309Z" }, "newVersionAvailable": { "value": false, - "timestamp": "2025-07-02T04:35:13.556Z" + "timestamp": "2026-02-27T10:49:04.309Z" }, "operatingState": { "value": "none", - "timestamp": "2025-07-02T04:35:19.823Z" + "timestamp": "2026-02-27T11:12:38.767Z" }, "progress": { "value": 0, "unit": "%", - "timestamp": "2025-07-02T04:35:19.823Z" + "timestamp": "2026-02-27T10:49:05.794Z" } }, "samsungce.robotCleanerReservation": { "reservations": { - "value": [ - { - "id": "2", - "enabled": true, - "dayOfWeek": ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], - "startTime": "02:32", - "repeatMode": "weekly", - "cleaningMode": "auto" - } - ], - "timestamp": "2025-07-02T04:35:13.844Z" + "value": [], + "timestamp": "2026-02-27T10:49:04.309Z" }, "maxNumberOfReservations": { "value": null @@ -559,7 +571,8 @@ }, "audioMute": { "mute": { - "value": null + "value": "unmuted", + "timestamp": "2026-02-27T10:49:04.301Z" } }, "mediaTrackControl": { @@ -570,32 +583,35 @@ "samsungce.robotCleanerMotorFilter": { "motorFilterResetType": { "value": ["washable"], - "timestamp": "2025-07-02T04:35:13.496Z" + "timestamp": "2026-02-27T10:49:04.301Z" }, "motorFilterStatus": { "value": "normal", - "timestamp": "2025-07-02T04:35:13.496Z" + "timestamp": "2026-02-27T10:49:04.301Z" } }, "samsungce.robotCleanerCleaningType": { "cleaningType": { - "value": "vacuumAndMopTogether", - "timestamp": "2025-07-09T12:44:06.437Z" + "value": "vacuum", + "timestamp": "2026-02-27T13:17:57.242Z" }, "supportedCleaningTypes": { "value": ["vacuum", "mop", "vacuumAndMopTogether", "mopAfterVacuum"], - "timestamp": "2025-07-02T04:35:13.646Z" + "timestamp": "2026-02-27T10:49:04.309Z" } }, "soundDetection": { "soundDetectionState": { - "value": null + "value": "disabled", + "timestamp": "2026-02-27T10:49:04.301Z" }, "supportedSoundTypes": { - "value": null + "value": ["noSound", "dogBarking"], + "timestamp": "2026-02-27T10:49:04.301Z" }, "soundDetected": { - "value": null + "value": "noSound", + "timestamp": "2026-02-27T10:49:04.301Z" } }, "samsungce.robotCleanerWelcome": { @@ -626,7 +642,8 @@ "value": null }, "blockingStatus": { - "value": null + "value": "unblocked", + "timestamp": "2026-02-27T10:49:04.301Z" }, "mapId": { "value": null @@ -641,7 +658,8 @@ "value": null }, "obsoleted": { - "value": null + "value": true, + "timestamp": "2026-02-27T10:49:04.301Z" } }, "battery": { @@ -649,9 +667,9 @@ "value": null }, "battery": { - "value": 59, + "value": 99, "unit": "%", - "timestamp": "2025-07-10T11:24:13.441Z" + "timestamp": "2026-02-27T16:38:01.719Z" }, "type": { "value": null @@ -660,7 +678,7 @@ "samsungce.deviceIdentification": { "micomAssayCode": { "value": "50029141", - "timestamp": "2025-07-02T04:35:13.556Z" + "timestamp": "2026-02-27T10:49:04.309Z" }, "modelName": { "value": null @@ -671,36 +689,40 @@ "serialNumberExtra": { "value": null }, + "releaseCountry": { + "value": null + }, "modelClassificationCode": { - "value": "80010b0002d8411f0100000000000000", - "timestamp": "2025-07-02T04:35:13.556Z" + "value": "80010a0002d8411f0100000000000000", + "timestamp": "2026-02-27T10:49:04.309Z" }, "description": { "value": "Jet Bot V/C", - "timestamp": "2025-07-02T04:35:13.556Z" + "timestamp": "2026-02-27T11:12:30.599Z" }, "releaseYear": { - "value": null + "value": 24, + "timestamp": "2026-02-27T10:49:03.853Z" }, "binaryId": { - "value": "JETBOT_COMBO_9X00_24K", - "timestamp": "2025-07-09T23:00:26.764Z" + "value": "JETBOT_COMBOT_9X00_24K", + "timestamp": "2026-02-27T16:02:29.485Z" } }, "samsungce.robotCleanerSystemSoundMode": { "soundMode": { - "value": "mute", - "timestamp": "2025-07-05T18:17:55.940Z" + "value": "beep", + "timestamp": "2026-02-27T14:19:51.856Z" }, "supportedSoundModes": { "value": ["mute", "beep", "voice"], - "timestamp": "2025-07-02T04:35:13.646Z" + "timestamp": "2026-02-27T10:49:04.309Z" } }, "switch": { "switch": { "value": "on", - "timestamp": "2025-07-09T23:00:26.829Z" + "timestamp": "2026-02-27T16:02:29.485Z" } }, "samsungce.robotCleanerPetCleaningSchedule": { @@ -724,7 +746,7 @@ }, "obsoleted": { "value": true, - "timestamp": "2025-07-02T04:35:14.317Z" + "timestamp": "2026-02-27T10:49:04.309Z" }, "enabled": { "value": null @@ -733,12 +755,13 @@ "samsungce.quickControl": { "version": { "value": "1.0", - "timestamp": "2025-07-02T04:35:14.234Z" + "timestamp": "2026-02-27T11:12:32.208Z" } }, "samsungce.microphoneSettings": { "mute": { - "value": null + "value": "unmuted", + "timestamp": "2026-02-27T10:49:08.277Z" } }, "samsungce.robotCleanerMapAreaInfo": { @@ -746,28 +769,36 @@ "value": [ { "id": "1", - "name": "Room" + "name": "Living" }, { "id": "2", - "name": "Room 2" + "name": "Master bedroom" }, { "id": "3", - "name": "Room 3" + "name": "Kitchen" }, { "id": "4", - "name": "Room 4" + "name": "Kids room" + }, + { + "id": "5", + "name": "Bathroom" + }, + { + "id": "6", + "name": "Hallway" } ], - "timestamp": "2025-07-03T02:33:15.133Z" + "timestamp": "2026-02-27T14:15:22.654Z" } }, "samsungce.audioVolumeLevel": { "volumeLevel": { - "value": 0, - "timestamp": "2025-07-05T18:17:55.915Z" + "value": 1, + "timestamp": "2026-02-27T14:19:51.744Z" }, "volumeLevelRange": { "value": { @@ -775,13 +806,14 @@ "maximum": 3, "step": 1 }, - "timestamp": "2025-07-02T04:35:13.837Z" + "data": {}, + "timestamp": "2026-02-27T10:49:04.301Z" } }, "robotCleanerMovement": { "robotCleanerMovement": { - "value": "cleaning", - "timestamp": "2025-07-10T09:38:52.938Z" + "value": "charging", + "timestamp": "2026-02-27T16:17:09.597Z" } }, "samsungce.robotCleanerSafetyPatrol": { @@ -792,20 +824,20 @@ "sec.calmConnectionCare": { "role": { "value": ["things"], - "timestamp": "2025-07-02T04:35:14.461Z" + "timestamp": "2026-02-27T10:49:04.301Z" }, "protocols": { "value": null }, "version": { "value": "1.0", - "timestamp": "2025-07-02T04:35:14.461Z" + "timestamp": "2026-02-27T10:49:04.301Z" } }, "custom.disabledComponents": { "disabledComponents": { "value": ["refill-drainage-kit"], - "timestamp": "2025-06-20T14:12:57.135Z" + "timestamp": "2026-02-27T10:49:03.853Z" } }, "videoCapture": { @@ -816,27 +848,47 @@ "value": null } }, + "samsungce.sabbathMode": { + "supportedActions": { + "value": null + }, + "status": { + "value": null + } + }, "samsungce.robotCleanerWaterSprayLevel": { "availableWaterSprayLevels": { - "value": null + "value": ["high", "mediumHigh", "medium", "mediumLow", "low"], + "timestamp": "2026-02-27T10:49:04.309Z" }, "waterSprayLevel": { - "value": "mediumLow", - "timestamp": "2025-07-10T11:00:35.545Z" + "value": "medium", + "timestamp": "2026-02-27T10:49:04.309Z" }, "supportedWaterSprayLevels": { "value": ["high", "mediumHigh", "medium", "mediumLow", "low"], - "timestamp": "2025-07-02T04:35:13.646Z" + "timestamp": "2026-02-27T10:49:04.309Z" + } + }, + "samsungce.objectDetection": { + "detectedObject": { + "value": null + }, + "supportedObjectTypes": { + "value": null } }, "samsungce.robotCleanerMapMetadata": { "cellSize": { - "value": 20, + "value": 40, "unit": "mm", - "timestamp": "2025-06-20T14:12:57.135Z" + "timestamp": "2026-02-27T10:49:03.853Z" } }, "samsungce.robotCleanerGuidedPatrol": { + "patrolState": { + "value": null + }, "mapId": { "value": null }, @@ -862,8 +914,16 @@ "factoryReset", "relocal", "exploring", + "patrol", + "monitoring", + "manual", "processing", + "messaging", "emitDust", + "findingPet", + "calibrating", + "welcoming", + "monitoringAutomation", "washingMop", "sterilizingMop", "dryingMop", @@ -871,41 +931,45 @@ "preparingWater", "spinDrying", "flexCharged", + "mopWashingPaused", "descaling", "drainingWater", "waitingForDescaling" ], - "timestamp": "2025-06-20T14:12:58.012Z" + "timestamp": "2026-02-27T10:49:04.309Z" }, "operatingState": { "value": "charging", - "timestamp": "2025-07-10T09:52:40.510Z" + "timestamp": "2026-02-27T16:28:24.065Z" }, "cleaningStep": { "value": "none", - "timestamp": "2025-07-10T09:37:07.214Z" + "timestamp": "2026-02-27T13:01:00.587Z" }, "homingReason": { "value": "none", - "timestamp": "2025-07-10T09:37:45.152Z" + "timestamp": "2026-02-27T14:06:12.830Z" }, "isMapBasedOperationAvailable": { "value": false, - "timestamp": "2025-07-10T09:37:55.690Z" + "timestamp": "2026-02-27T13:01:56.432Z" } }, "samsungce.soundDetectionSensitivity": { "level": { - "value": null + "value": "medium", + "timestamp": "2026-02-27T10:49:04.301Z" }, "supportedLevels": { - "value": null + "value": ["low", "medium", "high"], + "timestamp": "2026-02-27T10:49:04.301Z" } }, "samsungce.robotCleanerMonitoringAutomation": {}, "mediaPlaybackRepeat": { "playbackRepeatMode": { - "value": null + "value": "all", + "timestamp": "2026-02-27T10:49:04.301Z" } }, "imageCapture": { @@ -924,69 +988,71 @@ "value": [ "auto", "area", + "object", "spot", - "stop", "uncleanedObject", + "stop", "patternMap" ], - "timestamp": "2025-06-20T14:12:58.012Z" + "timestamp": "2026-02-27T10:49:04.309Z" }, "repeatModeEnabled": { "value": true, - "timestamp": "2025-07-02T04:35:13.646Z" + "timestamp": "2026-02-27T10:49:04.309Z" }, "supportRepeatMode": { "value": true, - "timestamp": "2025-07-02T04:35:13.646Z" + "timestamp": "2026-02-27T10:49:04.309Z" }, "cleaningMode": { "value": "stop", - "timestamp": "2025-07-10T09:37:07.214Z" + "timestamp": "2026-02-27T13:49:28.382Z" } }, "samsungce.robotCleanerAvpRegistration": { "registrationStatus": { - "value": null + "value": "registered", + "timestamp": "2026-02-27T13:03:54.638Z" } }, "samsungce.robotCleanerDrivingMode": { "drivingMode": { "value": "areaThenWalls", - "timestamp": "2025-07-02T04:35:13.646Z" + "timestamp": "2026-02-27T13:15:28.735Z" }, "supportedDrivingModes": { "value": ["areaThenWalls", "wallFirst", "quickCleaningZigzagPattern"], - "timestamp": "2025-07-02T04:35:13.646Z" + "timestamp": "2026-02-27T10:49:04.309Z" } }, "robotCleanerCleaningMode": { "robotCleanerCleaningMode": { "value": "stop", - "timestamp": "2025-07-10T09:37:07.214Z" + "timestamp": "2026-02-27T13:49:28.382Z" } }, "custom.doNotDisturbMode": { "doNotDisturb": { - "value": "off", - "timestamp": "2025-07-02T04:35:13.622Z" + "value": "on", + "timestamp": "2026-02-27T14:19:17.909Z" }, "startTime": { - "value": "0000", - "timestamp": "2025-07-02T04:35:13.622Z" + "value": "2200", + "timestamp": "2026-02-27T14:19:17.909Z" }, "endTime": { - "value": "0000", - "timestamp": "2025-07-02T04:35:13.622Z" + "value": "0600", + "timestamp": "2026-02-27T14:19:17.909Z" } }, "samsungce.lamp": { "brightnessLevel": { "value": "on", - "timestamp": "2025-07-10T11:20:40.419Z" + "timestamp": "2026-02-27T11:12:30.250Z" }, "supportedBrightnessLevel": { "value": ["on", "off"], - "timestamp": "2025-06-20T14:12:57.383Z" + "timestamp": "2026-02-27T10:49:04.301Z" } } } diff --git a/tests/components/smartthings/fixtures/devices/da_rvc_map_01011.json b/tests/components/smartthings/fixtures/devices/da_rvc_map_01011.json index f25797f2dcfbbc..0a4b939829f728 100644 --- a/tests/components/smartthings/fixtures/devices/da_rvc_map_01011.json +++ b/tests/components/smartthings/fixtures/devices/da_rvc_map_01011.json @@ -1,15 +1,15 @@ { "items": [ { - "deviceId": "05accb39-2017-c98b-a5ab-04a81f4d3d9a", + "deviceId": "01b28624-5907-c8bc-0325-8ad23f03a637", "name": "[robot vacuum] Samsung", - "label": "Robot vacuum", + "label": "Robot Vacuum", "manufacturerName": "Samsung Electronics", "presentationId": "DA-RVC-MAP-01011", "deviceManufacturerCode": "Samsung Electronics", - "locationId": "d31d0982-9bf9-4f0c-afd4-ad3d78842541", - "ownerId": "85532262-6537-54d9-179a-333db98dbcc0", - "roomId": "572f5713-53a9-4fb8-85fd-60515e44f1ed", + "locationId": "4647a408-2d4f-44a8-8ee6-f64328a0e480", + "ownerId": "8157695b-6c2f-4de5-98cb-bacaf51b8b2d", + "roomId": "9b0f3cf5-56b5-45fa-9bb8-81014bd63715", "deviceTypeName": "Samsung OCF Robot Vacuum", "components": [ { @@ -132,10 +132,22 @@ "id": "samsungce.microphoneSettings", "version": 1 }, + { + "id": "samsungce.notification", + "version": 1 + }, + { + "id": "samsungce.objectDetection", + "version": 1 + }, { "id": "samsungce.softwareUpdate", "version": 1 }, + { + "id": "samsungce.sabbathMode", + "version": 1 + }, { "id": "samsungce.musicPlaylist", "version": 1 @@ -320,24 +332,24 @@ "optional": false } ], - "createTime": "2025-06-20T14:12:56.260Z", + "createTime": "2026-02-27T10:49:02.683Z", "profile": { - "id": "5d345d41-a497-3fc7-84fe-eaaee50f0509" + "id": "0b3bf610-5ec4-3eeb-9e50-1038099f6904" }, "ocf": { "ocfDeviceType": "oic.d.robotcleaner", "name": "[robot vacuum] Samsung", "specVersion": "core.1.1.0", - "verticalDomainSpecVersion": "res.1.1.0,sh.1.1.0", + "verticalDomainSpecVersion": "1.2.1", "manufacturerName": "Samsung Electronics", - "modelNumber": "JETBOT_COMBO_9X00_24K|50029141|80010b0002d8411f0100000000000000", + "modelNumber": "JETBOT_COMBOT_9X00_24K|50029141|80010a0002d8411f0100000000000000", "platformVersion": "1.0", "platformOS": "Tizen", "hwVersion": "", - "firmwareVersion": "20250123.105306", + "firmwareVersion": "20260120.215157", "vendorId": "DA-RVC-MAP-01011", - "vendorResourceClientServerVersion": "4.0.38", - "lastSignupTime": "2025-06-20T14:12:56.202953160Z", + "vendorResourceClientServerVersion": "4.0.40", + "lastSignupTime": "2026-02-27T12:08:52.022059763Z", "transferCandidate": false, "additionalAuthCodeRequired": false, "modelCode": "NONE" diff --git a/tests/components/smartthings/snapshots/test_init.ambr b/tests/components/smartthings/snapshots/test_init.ambr index 911ba8ec8301c5..3c01782e6abb6f 100644 --- a/tests/components/smartthings/snapshots/test_init.ambr +++ b/tests/components/smartthings/snapshots/test_init.ambr @@ -947,19 +947,19 @@ 'identifiers': set({ tuple( 'smartthings', - '05accb39-2017-c98b-a5ab-04a81f4d3d9a', + '01b28624-5907-c8bc-0325-8ad23f03a637', ), }), 'labels': set({ }), 'manufacturer': 'Samsung Electronics', - 'model': 'JETBOT_COMBO_9X00_24K', + 'model': 'JETBOT_COMBOT_9X00_24K', 'model_id': None, - 'name': 'Robot vacuum', + 'name': 'Robot Vacuum', 'name_by_user': None, 'primary_config_entry': , 'serial_number': None, - 'sw_version': '20250123.105306', + 'sw_version': '20260120.215157', 'via_device_id': None, }) # --- diff --git a/tests/components/smartthings/snapshots/test_media_player.ambr b/tests/components/smartthings/snapshots/test_media_player.ambr index 9e11b4e283c8e6..5c6f1e29e36295 100644 --- a/tests/components/smartthings/snapshots/test_media_player.ambr +++ b/tests/components/smartthings/snapshots/test_media_player.ambr @@ -1,4 +1,58 @@ # serializer version: 1 +# name: test_all_entities[da_rvc_map_01011][media_player.robot_vacuum-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'media_player', + 'entity_category': None, + 'entity_id': 'media_player.robot_vacuum', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': None, + 'options': dict({ + }), + 'original_device_class': None, + 'original_icon': None, + 'original_name': None, + 'platform': 'smartthings', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': , + 'translation_key': None, + 'unique_id': '01b28624-5907-c8bc-0325-8ad23f03a637_main', + 'unit_of_measurement': None, + }) +# --- +# name: test_all_entities[da_rvc_map_01011][media_player.robot_vacuum-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'friendly_name': 'Robot Vacuum', + 'is_volume_muted': False, + 'repeat': , + 'supported_features': , + 'volume_level': 0.2, + }), + 'context': , + 'entity_id': 'media_player.robot_vacuum', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': 'on', + }) +# --- # name: test_all_entities[hw_q80r_soundbar][media_player.soundbar-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ diff --git a/tests/components/smartthings/snapshots/test_select.ambr b/tests/components/smartthings/snapshots/test_select.ambr index da6b983af71bad..50a8586a8f6cf7 100644 --- a/tests/components/smartthings/snapshots/test_select.ambr +++ b/tests/components/smartthings/snapshots/test_select.ambr @@ -452,14 +452,14 @@ 'suggested_object_id': None, 'supported_features': 0, 'translation_key': 'lamp', - 'unique_id': '05accb39-2017-c98b-a5ab-04a81f4d3d9a_main_samsungce.lamp_brightnessLevel_brightnessLevel', + 'unique_id': '01b28624-5907-c8bc-0325-8ad23f03a637_main_samsungce.lamp_brightnessLevel_brightnessLevel', 'unit_of_measurement': None, }) # --- # name: test_all_entities[da_rvc_map_01011][select.robot_vacuum_lamp-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'friendly_name': 'Robot vacuum Lamp', + 'friendly_name': 'Robot Vacuum Lamp', 'options': list([ 'on', 'off', diff --git a/tests/components/smartthings/snapshots/test_sensor.ambr b/tests/components/smartthings/snapshots/test_sensor.ambr index 55daeb9beca439..c0fa89494d20ef 100644 --- a/tests/components/smartthings/snapshots/test_sensor.ambr +++ b/tests/components/smartthings/snapshots/test_sensor.ambr @@ -10506,7 +10506,7 @@ 'suggested_object_id': None, 'supported_features': 0, 'translation_key': None, - 'unique_id': '05accb39-2017-c98b-a5ab-04a81f4d3d9a_main_battery_battery_battery', + 'unique_id': '01b28624-5907-c8bc-0325-8ad23f03a637_main_battery_battery_battery', 'unit_of_measurement': '%', }) # --- @@ -10514,7 +10514,7 @@ StateSnapshot({ 'attributes': ReadOnlyDict({ 'device_class': 'battery', - 'friendly_name': 'Robot vacuum Battery', + 'friendly_name': 'Robot Vacuum Battery', 'unit_of_measurement': '%', }), 'context': , @@ -10522,7 +10522,7 @@ 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '59', + 'state': '99', }) # --- # name: test_all_entities[da_rvc_map_01011][sensor.robot_vacuum_cleaning_mode-entry] @@ -10566,7 +10566,7 @@ 'suggested_object_id': None, 'supported_features': 0, 'translation_key': 'robot_cleaner_cleaning_mode', - 'unique_id': '05accb39-2017-c98b-a5ab-04a81f4d3d9a_main_robotCleanerCleaningMode_robotCleanerCleaningMode_robotCleanerCleaningMode', + 'unique_id': '01b28624-5907-c8bc-0325-8ad23f03a637_main_robotCleanerCleaningMode_robotCleanerCleaningMode_robotCleanerCleaningMode', 'unit_of_measurement': None, }) # --- @@ -10574,7 +10574,7 @@ StateSnapshot({ 'attributes': ReadOnlyDict({ 'device_class': 'enum', - 'friendly_name': 'Robot vacuum Cleaning mode', + 'friendly_name': 'Robot Vacuum Cleaning mode', 'options': list([ 'auto', 'part', @@ -10629,7 +10629,7 @@ 'suggested_object_id': None, 'supported_features': 0, 'translation_key': None, - 'unique_id': '05accb39-2017-c98b-a5ab-04a81f4d3d9a_main_powerConsumptionReport_powerConsumption_energy_meter', + 'unique_id': '01b28624-5907-c8bc-0325-8ad23f03a637_main_powerConsumptionReport_powerConsumption_energy_meter', 'unit_of_measurement': , }) # --- @@ -10637,7 +10637,7 @@ StateSnapshot({ 'attributes': ReadOnlyDict({ 'device_class': 'energy', - 'friendly_name': 'Robot vacuum Energy', + 'friendly_name': 'Robot Vacuum Energy', 'state_class': , 'unit_of_measurement': , }), @@ -10646,7 +10646,7 @@ 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.981', + 'state': '0.335', }) # --- # name: test_all_entities[da_rvc_map_01011][sensor.robot_vacuum_energy_difference-entry] @@ -10686,7 +10686,7 @@ 'suggested_object_id': None, 'supported_features': 0, 'translation_key': 'energy_difference', - 'unique_id': '05accb39-2017-c98b-a5ab-04a81f4d3d9a_main_powerConsumptionReport_powerConsumption_deltaEnergy_meter', + 'unique_id': '01b28624-5907-c8bc-0325-8ad23f03a637_main_powerConsumptionReport_powerConsumption_deltaEnergy_meter', 'unit_of_measurement': , }) # --- @@ -10694,7 +10694,7 @@ StateSnapshot({ 'attributes': ReadOnlyDict({ 'device_class': 'energy', - 'friendly_name': 'Robot vacuum Energy difference', + 'friendly_name': 'Robot Vacuum Energy difference', 'state_class': , 'unit_of_measurement': , }), @@ -10703,7 +10703,7 @@ 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '0.021', + 'state': '0.003', }) # --- # name: test_all_entities[da_rvc_map_01011][sensor.robot_vacuum_energy_saved-entry] @@ -10743,7 +10743,7 @@ 'suggested_object_id': None, 'supported_features': 0, 'translation_key': 'energy_saved', - 'unique_id': '05accb39-2017-c98b-a5ab-04a81f4d3d9a_main_powerConsumptionReport_powerConsumption_energySaved_meter', + 'unique_id': '01b28624-5907-c8bc-0325-8ad23f03a637_main_powerConsumptionReport_powerConsumption_energySaved_meter', 'unit_of_measurement': , }) # --- @@ -10751,7 +10751,7 @@ StateSnapshot({ 'attributes': ReadOnlyDict({ 'device_class': 'energy', - 'friendly_name': 'Robot vacuum Energy saved', + 'friendly_name': 'Robot Vacuum Energy saved', 'state_class': , 'unit_of_measurement': , }), @@ -10780,6 +10780,7 @@ 'after', 'cleaning', 'pause', + 'washing_mop', ]), }), 'config_entry_id': , @@ -10808,7 +10809,7 @@ 'suggested_object_id': None, 'supported_features': 0, 'translation_key': 'robot_cleaner_movement', - 'unique_id': '05accb39-2017-c98b-a5ab-04a81f4d3d9a_main_robotCleanerMovement_robotCleanerMovement_robotCleanerMovement', + 'unique_id': '01b28624-5907-c8bc-0325-8ad23f03a637_main_robotCleanerMovement_robotCleanerMovement_robotCleanerMovement', 'unit_of_measurement': None, }) # --- @@ -10816,7 +10817,7 @@ StateSnapshot({ 'attributes': ReadOnlyDict({ 'device_class': 'enum', - 'friendly_name': 'Robot vacuum Movement', + 'friendly_name': 'Robot Vacuum Movement', 'options': list([ 'homing', 'idle', @@ -10828,6 +10829,7 @@ 'after', 'cleaning', 'pause', + 'washing_mop', ]), }), 'context': , @@ -10835,7 +10837,7 @@ 'last_changed': , 'last_reported': , 'last_updated': , - 'state': 'cleaning', + 'state': 'charging', }) # --- # name: test_all_entities[da_rvc_map_01011][sensor.robot_vacuum_power-entry] @@ -10875,7 +10877,7 @@ 'suggested_object_id': None, 'supported_features': 0, 'translation_key': None, - 'unique_id': '05accb39-2017-c98b-a5ab-04a81f4d3d9a_main_powerConsumptionReport_powerConsumption_power_meter', + 'unique_id': '01b28624-5907-c8bc-0325-8ad23f03a637_main_powerConsumptionReport_powerConsumption_power_meter', 'unit_of_measurement': , }) # --- @@ -10883,9 +10885,9 @@ StateSnapshot({ 'attributes': ReadOnlyDict({ 'device_class': 'power', - 'friendly_name': 'Robot vacuum Power', - 'power_consumption_end': '2025-07-10T11:20:22Z', - 'power_consumption_start': '2025-07-10T11:11:22Z', + 'friendly_name': 'Robot Vacuum Power', + 'power_consumption_end': '2026-02-27T17:02:44Z', + 'power_consumption_start': '2026-02-27T16:52:44Z', 'state_class': , 'unit_of_measurement': , }), @@ -10934,7 +10936,7 @@ 'suggested_object_id': None, 'supported_features': 0, 'translation_key': 'power_energy', - 'unique_id': '05accb39-2017-c98b-a5ab-04a81f4d3d9a_main_powerConsumptionReport_powerConsumption_powerEnergy_meter', + 'unique_id': '01b28624-5907-c8bc-0325-8ad23f03a637_main_powerConsumptionReport_powerConsumption_powerEnergy_meter', 'unit_of_measurement': , }) # --- @@ -10942,7 +10944,7 @@ StateSnapshot({ 'attributes': ReadOnlyDict({ 'device_class': 'energy', - 'friendly_name': 'Robot vacuum Power energy', + 'friendly_name': 'Robot Vacuum Power energy', 'state_class': , 'unit_of_measurement': , }), @@ -10993,7 +10995,7 @@ 'suggested_object_id': None, 'supported_features': 0, 'translation_key': 'robot_cleaner_turbo_mode', - 'unique_id': '05accb39-2017-c98b-a5ab-04a81f4d3d9a_main_robotCleanerTurboMode_robotCleanerTurboMode_robotCleanerTurboMode', + 'unique_id': '01b28624-5907-c8bc-0325-8ad23f03a637_main_robotCleanerTurboMode_robotCleanerTurboMode_robotCleanerTurboMode', 'unit_of_measurement': None, }) # --- @@ -11001,7 +11003,7 @@ StateSnapshot({ 'attributes': ReadOnlyDict({ 'device_class': 'enum', - 'friendly_name': 'Robot vacuum Turbo mode', + 'friendly_name': 'Robot Vacuum Turbo mode', 'options': list([ 'on', 'off', @@ -11014,7 +11016,7 @@ 'last_changed': , 'last_reported': , 'last_updated': , - 'state': 'extra_silence', + 'state': 'off', }) # --- # name: test_all_entities[da_rvc_normal_000001][sensor.robot_vacuum_battery-entry] @@ -11152,6 +11154,7 @@ 'after', 'cleaning', 'pause', + 'washing_mop', ]), }), 'config_entry_id': , @@ -11200,6 +11203,7 @@ 'after', 'cleaning', 'pause', + 'washing_mop', ]), }), 'context': , diff --git a/tests/components/smartthings/snapshots/test_switch.ambr b/tests/components/smartthings/snapshots/test_switch.ambr index bb451be10d9cac..5ca3a0505de452 100644 --- a/tests/components/smartthings/snapshots/test_switch.ambr +++ b/tests/components/smartthings/snapshots/test_switch.ambr @@ -244,6 +244,55 @@ 'state': 'on', }) # --- +# name: test_all_entities[da_ks_hood_01001][switch.range_hood_do_not_disturb-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': None, + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'switch', + 'entity_category': , + 'entity_id': 'switch.range_hood_do_not_disturb', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Do not disturb', + 'options': dict({ + }), + 'original_device_class': None, + 'original_icon': None, + 'original_name': 'Do not disturb', + 'platform': 'smartthings', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'do_not_disturb', + 'unique_id': 'fa5fca25-fa7a-1807-030a-2f72ee0f7bff_main_custom.doNotDisturbMode_doNotDisturb_doNotDisturb', + 'unit_of_measurement': None, + }) +# --- +# name: test_all_entities[da_ks_hood_01001][switch.range_hood_do_not_disturb-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'friendly_name': 'Range hood Do not disturb', + }), + 'context': , + 'entity_id': 'switch.range_hood_do_not_disturb', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': 'off', + }) +# --- # name: test_all_entities[da_ks_walloven_0107x][switch.four_sabbath_mode-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ @@ -930,7 +979,7 @@ 'state': 'off', }) # --- -# name: test_all_entities[da_rvc_map_01011][switch.robot_vacuum-entry] +# name: test_all_entities[da_rvc_map_01011][switch.robot_vacuum_do_not_disturb-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -942,8 +991,8 @@ 'device_id': , 'disabled_by': None, 'domain': 'switch', - 'entity_category': None, - 'entity_id': 'switch.robot_vacuum', + 'entity_category': , + 'entity_id': 'switch.robot_vacuum_do_not_disturb', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -951,28 +1000,28 @@ 'labels': set({ }), 'name': None, - 'object_id_base': None, + 'object_id_base': 'Do not disturb', 'options': dict({ }), 'original_device_class': None, 'original_icon': None, - 'original_name': None, + 'original_name': 'Do not disturb', 'platform': 'smartthings', 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': None, - 'unique_id': '05accb39-2017-c98b-a5ab-04a81f4d3d9a_main_switch_switch_switch', + 'translation_key': 'do_not_disturb', + 'unique_id': '01b28624-5907-c8bc-0325-8ad23f03a637_main_custom.doNotDisturbMode_doNotDisturb_doNotDisturb', 'unit_of_measurement': None, }) # --- -# name: test_all_entities[da_rvc_map_01011][switch.robot_vacuum-state] +# name: test_all_entities[da_rvc_map_01011][switch.robot_vacuum_do_not_disturb-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'friendly_name': 'Robot vacuum', + 'friendly_name': 'Robot Vacuum Do not disturb', }), 'context': , - 'entity_id': 'switch.robot_vacuum', + 'entity_id': 'switch.robot_vacuum_do_not_disturb', 'last_changed': , 'last_reported': , 'last_updated': , diff --git a/tests/components/smartthings/snapshots/test_vacuum.ambr b/tests/components/smartthings/snapshots/test_vacuum.ambr index ded658e2808388..fc4e61e6419fa0 100644 --- a/tests/components/smartthings/snapshots/test_vacuum.ambr +++ b/tests/components/smartthings/snapshots/test_vacuum.ambr @@ -31,14 +31,14 @@ 'suggested_object_id': None, 'supported_features': , 'translation_key': None, - 'unique_id': '05accb39-2017-c98b-a5ab-04a81f4d3d9a_main', + 'unique_id': '01b28624-5907-c8bc-0325-8ad23f03a637_main', 'unit_of_measurement': None, }) # --- # name: test_all_entities[da_rvc_map_01011][vacuum.robot_vacuum-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'friendly_name': 'Robot vacuum', + 'friendly_name': 'Robot Vacuum', 'supported_features': , }), 'context': , diff --git a/tests/components/smartthings/test_vacuum.py b/tests/components/smartthings/test_vacuum.py index 6e2406625eb40e..785534b200a236 100644 --- a/tests/components/smartthings/test_vacuum.py +++ b/tests/components/smartthings/test_vacuum.py @@ -68,7 +68,7 @@ async def test_vacuum_actions( blocking=True, ) devices.execute_device_command.assert_called_once_with( - "05accb39-2017-c98b-a5ab-04a81f4d3d9a", + "01b28624-5907-c8bc-0325-8ad23f03a637", Capability.SAMSUNG_CE_ROBOT_CLEANER_OPERATING_STATE, command, MAIN, @@ -89,7 +89,7 @@ async def test_state_update( await trigger_update( hass, devices, - "05accb39-2017-c98b-a5ab-04a81f4d3d9a", + "01b28624-5907-c8bc-0325-8ad23f03a637", Capability.SAMSUNG_CE_ROBOT_CLEANER_OPERATING_STATE, Attribute.OPERATING_STATE, "error", @@ -110,13 +110,13 @@ async def test_availability( assert hass.states.get("vacuum.robot_vacuum").state == VacuumActivity.DOCKED await trigger_health_update( - hass, devices, "05accb39-2017-c98b-a5ab-04a81f4d3d9a", HealthStatus.OFFLINE + hass, devices, "01b28624-5907-c8bc-0325-8ad23f03a637", HealthStatus.OFFLINE ) assert hass.states.get("vacuum.robot_vacuum").state == STATE_UNAVAILABLE await trigger_health_update( - hass, devices, "05accb39-2017-c98b-a5ab-04a81f4d3d9a", HealthStatus.ONLINE + hass, devices, "01b28624-5907-c8bc-0325-8ad23f03a637", HealthStatus.ONLINE ) assert hass.states.get("vacuum.robot_vacuum").state == VacuumActivity.DOCKED diff --git a/tests/components/speedtestdotnet/conftest.py b/tests/components/speedtestdotnet/conftest.py index a48e7a878ff721..fc30fe02ad8695 100644 --- a/tests/components/speedtestdotnet/conftest.py +++ b/tests/components/speedtestdotnet/conftest.py @@ -7,6 +7,16 @@ from . import MOCK_SERVERS +@pytest.fixture +def mock_setup_entry(): + """Mock setting up a config entry.""" + with patch( + "homeassistant.components.speedtestdotnet.async_setup_entry", + return_value=True, + ) as mock_setup: + yield mock_setup + + @pytest.fixture def mock_api(): """Mock entry setup.""" diff --git a/tests/components/speedtestdotnet/test_config_flow.py b/tests/components/speedtestdotnet/test_config_flow.py index 883f60aaf0a0ab..77c7a5de5e284e 100644 --- a/tests/components/speedtestdotnet/test_config_flow.py +++ b/tests/components/speedtestdotnet/test_config_flow.py @@ -14,7 +14,7 @@ from tests.common import MockConfigEntry -async def test_flow_works(hass: HomeAssistant) -> None: +async def test_flow_works(hass: HomeAssistant, mock_setup_entry: MagicMock) -> None: """Test user config.""" result = await hass.config_entries.flow.async_init( DOMAIN, context={"source": config_entries.SOURCE_USER} diff --git a/tests/components/tautulli/test_config_flow.py b/tests/components/tautulli/test_config_flow.py index 722fd0a7616406..1b9f4e8e06f9cd 100644 --- a/tests/components/tautulli/test_config_flow.py +++ b/tests/components/tautulli/test_config_flow.py @@ -25,12 +25,15 @@ async def test_flow_user(hass: HomeAssistant) -> None: assert result["step_id"] == "user" assert result["errors"] == {} - with patch_config_flow_tautulli(AsyncMock()): + with ( + patch_config_flow_tautulli(AsyncMock()), + patch("homeassistant.components.tautulli.async_setup_entry", return_value=True), + ): result2 = await hass.config_entries.flow.async_configure( result["flow_id"], user_input=CONF_DATA, ) - await hass.async_block_till_done() + await hass.async_block_till_done() assert result2["type"] is FlowResultType.CREATE_ENTRY assert result2["title"] == NAME @@ -48,12 +51,15 @@ async def test_flow_user_cannot_connect(hass: HomeAssistant) -> None: assert result["step_id"] == "user" assert result["errors"]["base"] == "cannot_connect" - with patch_config_flow_tautulli(AsyncMock()): + with ( + patch_config_flow_tautulli(AsyncMock()), + patch("homeassistant.components.tautulli.async_setup_entry", return_value=True), + ): result2 = await hass.config_entries.flow.async_configure( result["flow_id"], user_input=CONF_DATA, ) - await hass.async_block_till_done() + await hass.async_block_till_done() assert result2["type"] is FlowResultType.CREATE_ENTRY assert result2["title"] == NAME @@ -71,12 +77,15 @@ async def test_flow_user_invalid_auth(hass: HomeAssistant) -> None: assert result["step_id"] == "user" assert result["errors"]["base"] == "invalid_auth" - with patch_config_flow_tautulli(AsyncMock()): + with ( + patch_config_flow_tautulli(AsyncMock()), + patch("homeassistant.components.tautulli.async_setup_entry", return_value=True), + ): result2 = await hass.config_entries.flow.async_configure( result["flow_id"], user_input=CONF_DATA, ) - await hass.async_block_till_done() + await hass.async_block_till_done() assert result2["type"] is FlowResultType.CREATE_ENTRY assert result2["title"] == NAME @@ -94,12 +103,15 @@ async def test_flow_user_unknown_error(hass: HomeAssistant) -> None: assert result["step_id"] == "user" assert result["errors"]["base"] == "unknown" - with patch_config_flow_tautulli(AsyncMock()): + with ( + patch_config_flow_tautulli(AsyncMock()), + patch("homeassistant.components.tautulli.async_setup_entry", return_value=True), + ): result2 = await hass.config_entries.flow.async_configure( result["flow_id"], user_input=CONF_DATA, ) - await hass.async_block_till_done() + await hass.async_block_till_done() assert result2["type"] is FlowResultType.CREATE_ENTRY assert result2["title"] == NAME @@ -138,12 +150,15 @@ async def test_flow_user_multiple_entries_allowed(hass: HomeAssistant) -> None: CONF_API_KEY: "efgh", CONF_VERIFY_SSL: True, } - with patch_config_flow_tautulli(AsyncMock()): + with ( + patch_config_flow_tautulli(AsyncMock()), + patch("homeassistant.components.tautulli.async_setup_entry", return_value=True), + ): result2 = await hass.config_entries.flow.async_configure( result["flow_id"], user_input=user_input, ) - await hass.async_block_till_done() + await hass.async_block_till_done() assert result2["type"] is FlowResultType.CREATE_ENTRY assert result2["title"] == NAME diff --git a/tests/components/telegram_bot/test_telegram_bot.py b/tests/components/telegram_bot/test_telegram_bot.py index 610a4a5ae36162..87162bc25a7fa7 100644 --- a/tests/components/telegram_bot/test_telegram_bot.py +++ b/tests/components/telegram_bot/test_telegram_bot.py @@ -119,8 +119,10 @@ async def test_webhook_platform_init(hass: HomeAssistant, webhook_bot) -> None: assert hass.services.has_service(DOMAIN, SERVICE_SEND_MESSAGE) is True +@pytest.mark.usefixtures("mock_external_calls", "mock_polling_calls") async def test_polling_platform_init( - hass: HomeAssistant, mock_polling_config_entry: MockConfigEntry + hass: HomeAssistant, + mock_polling_config_entry: MockConfigEntry, ) -> None: """Test initialization of the polling platform.""" mock_polling_config_entry.add_to_hass(hass) diff --git a/tests/components/template/test_sensor.py b/tests/components/template/test_sensor.py index ffb802527bf5d1..4c320d916e65b1 100644 --- a/tests/components/template/test_sensor.py +++ b/tests/components/template/test_sensor.py @@ -684,7 +684,7 @@ async def test_sun_renders_once_per_sensor(hass: HomeAssistant) -> None: def _record_async_render(self, *args, **kwargs): """Catch async_render.""" async_render_calls.append(self.template) - return "75" + return 75 later = dt_util.utcnow() @@ -692,7 +692,7 @@ def _record_async_render(self, *args, **kwargs): hass.states.async_set("sun.sun", {"elevation": 50, "next_rising": later}) await hass.async_block_till_done() - assert hass.states.get("sensor.solar_angle").state == "75.0" + assert hass.states.get("sensor.solar_angle").state == "75" assert hass.states.get("sensor.sunrise").state == "75" assert len(async_render_calls) == 2 @@ -1524,7 +1524,7 @@ async def test_last_reset(hass: HomeAssistant, expected: str) -> None: state = hass.states.get(TEST_SENSOR.entity_id) assert state is not None - assert state.state == "0.0" + assert state.state == "0" assert state.attributes["state_class"] == "total" assert state.attributes["last_reset"] == expected @@ -1553,7 +1553,7 @@ async def test_invalid_last_reset( state = hass.states.get(TEST_SENSOR.entity_id) assert state is not None - assert state.state == "0.0" + assert state.state == "0" assert state.attributes.get("last_reset") is None err = "Received invalid sensor last_reset: not a datetime for entity" @@ -1993,3 +1993,47 @@ async def test_numeric_sensor_recovers_from_exception(hass: HomeAssistant) -> No ): await async_trigger(hass, TEST_STATE_SENSOR, set_state) assert hass.states.get(TEST_SENSOR.entity_id).state == expected_state + + +@pytest.mark.parametrize( + ("count", "config"), + [ + ( + 1, + { + "device_class": "temperature", + "state_class": "measurement", + "unit_of_measurement": "°C", + }, + ) + ], +) +@pytest.mark.parametrize( + "style", [ConfigurationStyle.MODERN, ConfigurationStyle.TRIGGER] +) +@pytest.mark.parametrize( + ("state_template", "expected_state"), + [ + ("{{ '1.0' }}", "1.0"), + ("{{ '1' }}", "1"), + ("{{ 1.0 }}", "1.0"), + ("{{ 1 }}", "1"), + ("{{ '0.0' }}", "0.0"), + ("{{ '0' }}", "0"), + ("{{ 0.0 }}", "0.0"), + ("{{ 0 }}", "0"), + ("{{ '10021452' }}", "10021452"), + ("{{ 10021452 }}", "10021452"), + ("{{ '1002.1452' }}", "1002.1452"), + ("{{ 1002.1452 }}", "1002.1452"), + ("{{ True }}", STATE_UNKNOWN), + ("{{ False }}", STATE_UNKNOWN), + ], +) +@pytest.mark.usefixtures("setup_state_sensor") +async def test_numeric_sensor_int_float( + hass: HomeAssistant, expected_state: str +) -> None: + """Test sensor properly stores int or float for state.""" + await async_trigger(hass, TEST_STATE_SENSOR, "anything") + assert hass.states.get(TEST_SENSOR.entity_id).state == expected_state diff --git a/tests/components/todoist/test_calendar.py b/tests/components/todoist/test_calendar.py index bb03286cf53e43..71f1c79e0217a7 100644 --- a/tests/components/todoist/test_calendar.py +++ b/tests/components/todoist/test_calendar.py @@ -183,18 +183,21 @@ async def test_failed_coordinator_update(hass: HomeAssistant, api: AsyncMock) -> """Test a failed data coordinator update is handled correctly.""" api.get_tasks.side_effect = Exception("API error") - assert await setup.async_setup_component( - hass, - "calendar", - { - "calendar": { - "platform": DOMAIN, - CONF_TOKEN: "token", - "custom_projects": [{"name": "All projects", "labels": ["Label1"]}], - } - }, - ) - await hass.async_block_till_done() + with patch( + "homeassistant.components.todoist.calendar.TodoistAPIAsync", return_value=api + ): + assert await setup.async_setup_component( + hass, + "calendar", + { + "calendar": { + "platform": DOMAIN, + CONF_TOKEN: "token", + "custom_projects": [{"name": "All projects", "labels": ["Label1"]}], + } + }, + ) + await hass.async_block_till_done() await async_update_entity(hass, "calendar.all_projects") state = hass.states.get("calendar.all_projects") diff --git a/tests/components/tplink_omada/test_services.py b/tests/components/tplink_omada/test_services.py index 7a2a943627e255..b86dca98c7fd37 100644 --- a/tests/components/tplink_omada/test_services.py +++ b/tests/components/tplink_omada/test_services.py @@ -57,6 +57,8 @@ async def test_service_reconnect_client( async def test_service_reconnect_failed_with_invalid_entry( hass: HomeAssistant, + mock_omada_site_client: MagicMock, + mock_omada_client: MagicMock, mock_config_entry: MockConfigEntry, ) -> None: """Test reconnect with invalid config entry raises ServiceValidationError.""" @@ -102,6 +104,8 @@ async def test_service_reconnect_without_config_entry_id( async def test_service_reconnect_entry_not_loaded( hass: HomeAssistant, + mock_omada_site_client: MagicMock, + mock_omada_client: MagicMock, mock_config_entry: MockConfigEntry, ) -> None: """Test reconnect service raises error when entry is not loaded.""" diff --git a/tests/components/transmission/test_init.py b/tests/components/transmission/test_init.py index 17ebadc587561d..653f77e28117f4 100644 --- a/tests/components/transmission/test_init.py +++ b/tests/components/transmission/test_init.py @@ -30,6 +30,7 @@ async def test_config_flow_entry_migrate_1_1_to_1_2( hass: HomeAssistant, + mock_transmission_client: AsyncMock, ) -> None: """Test that config flow entry is migrated correctly from v1.1 to v1.2.""" entry = MockConfigEntry( @@ -150,6 +151,7 @@ async def test_unload_entry( ) async def test_migrate_unique_id( hass: HomeAssistant, + mock_transmission_client: AsyncMock, entity_registry: er.EntityRegistry, domain: str, old_unique_id: str, diff --git a/tests/components/unifiprotect/test_config_flow.py b/tests/components/unifiprotect/test_config_flow.py index 9301839b69f3e6..27e382c6f936e2 100644 --- a/tests/components/unifiprotect/test_config_flow.py +++ b/tests/components/unifiprotect/test_config_flow.py @@ -523,6 +523,10 @@ async def test_form_reauth_auth( "homeassistant.components.unifiprotect.async_setup", return_value=True, ) as mock_setup, + patch( + "homeassistant.components.unifiprotect.async_setup_entry", + return_value=True, + ), patch( "homeassistant.components.unifiprotect.config_flow.ProtectApiClient.get_meta_info", return_value=None, @@ -1917,9 +1921,15 @@ async def test_reauth_empty_credentials_keeps_existing( nvr.mac = _async_unifi_mac_from_hass(MAC_ADDR) bootstrap.nvr = nvr - with patch( - "homeassistant.components.unifiprotect.async_setup", - return_value=True, + with ( + patch( + "homeassistant.components.unifiprotect.async_setup", + return_value=True, + ), + patch( + "homeassistant.components.unifiprotect.async_setup_entry", + return_value=True, + ), ): # Submit with empty credentials - should keep existing result = await hass.config_entries.flow.async_configure( @@ -2003,9 +2013,15 @@ async def test_reauth_credential_update( nvr.mac = _async_unifi_mac_from_hass(MAC_ADDR) bootstrap.nvr = nvr - with patch( - "homeassistant.components.unifiprotect.async_setup", - return_value=True, + with ( + patch( + "homeassistant.components.unifiprotect.async_setup", + return_value=True, + ), + patch( + "homeassistant.components.unifiprotect.async_setup_entry", + return_value=True, + ), ): result = await hass.config_entries.flow.async_configure( result["flow_id"], diff --git a/tests/components/velux/test_init.py b/tests/components/velux/test_init.py index 8f737375d4118f..89a28067a143bd 100644 --- a/tests/components/velux/test_init.py +++ b/tests/components/velux/test_init.py @@ -153,12 +153,9 @@ async def test_reboot_gateway_service_raises_on_exception( async def test_reboot_gateway_service_raises_validation_error( - hass: HomeAssistant, mock_config_entry: MockConfigEntry + hass: HomeAssistant, ) -> None: """Test that reboot_gateway service raises ServiceValidationError when no gateway is loaded.""" - # Add the config entry but don't set it up - mock_config_entry.add_to_hass(hass) - # Set up the velux integration's async_setup to register the service await async_setup_component(hass, DOMAIN, {}) await hass.async_block_till_done() diff --git a/tests/components/wilight/test_config_flow.py b/tests/components/wilight/test_config_flow.py index ba97f1f7d946f9..05fc98ee362f08 100644 --- a/tests/components/wilight/test_config_flow.py +++ b/tests/components/wilight/test_config_flow.py @@ -159,9 +159,10 @@ async def test_full_ssdp_flow_implementation(hass: HomeAssistant) -> None: "components": "light", } - result = await hass.config_entries.flow.async_configure( - result["flow_id"], user_input={} - ) + with patch("homeassistant.components.wilight.async_setup_entry", return_value=True): + result = await hass.config_entries.flow.async_configure( + result["flow_id"], user_input={} + ) assert result["type"] is FlowResultType.CREATE_ENTRY assert result["title"] == f"WL{WILIGHT_ID}" diff --git a/tests/components/youless/test_config_flows.py b/tests/components/youless/test_config_flows.py index 90f17e04efba57..8411b419c72594 100644 --- a/tests/components/youless/test_config_flows.py +++ b/tests/components/youless/test_config_flows.py @@ -33,10 +33,13 @@ async def test_full_flow(hass: HomeAssistant) -> None: mock_youless = _get_mock_youless_api( initialize={"homes": [{"id": 1, "name": "myhome"}]} ) - with patch( - "homeassistant.components.youless.config_flow.YoulessAPI", - return_value=mock_youless, - ) as mocked_youless: + with ( + patch( + "homeassistant.components.youless.config_flow.YoulessAPI", + return_value=mock_youless, + ) as mocked_youless, + patch("homeassistant.components.youless.async_setup_entry", return_value=True), + ): result2 = await hass.config_entries.flow.async_configure( result["flow_id"], {"host": "localhost"}, diff --git a/tests/components/zha/test_update.py b/tests/components/zha/test_update.py index 3d4ea96373c8b5..58d1c8d877984a 100644 --- a/tests/components/zha/test_update.py +++ b/tests/components/zha/test_update.py @@ -33,6 +33,7 @@ from homeassistant.components.zha.helpers import ( ZHADeviceProxy, ZHAGatewayProxy, + get_zha_data, get_zha_gateway, get_zha_gateway_proxy, ) @@ -55,6 +56,7 @@ from .common import find_entity_id, update_attribute_cache from .conftest import SIG_EP_INPUT, SIG_EP_OUTPUT, SIG_EP_PROFILE, SIG_EP_TYPE +from tests.common import MockConfigEntry from tests.typing import WebSocketGenerator @@ -267,6 +269,43 @@ async def _async_image_notify_side_effect(*args, **kwargs): ) +async def test_firmware_update_poll_after_reload( + hass: HomeAssistant, + setup_zha: Callable[..., Coroutine[None]], + config_entry: MockConfigEntry, + zigpy_device_mock: Callable[..., Device], +) -> None: + """Test polling a ZHA update entity still works after reloading ZHA.""" + await setup_zha() + await async_setup_component(hass, HA_DOMAIN, {}) + + zha_data = get_zha_data(hass) + coordinator_before = zha_data.update_coordinator + assert coordinator_before is not None + + assert await hass.config_entries.async_reload(config_entry.entry_id) + await hass.async_block_till_done() + + coordinator_after = get_zha_data(hass).update_coordinator + assert coordinator_after is not None + assert coordinator_after is not coordinator_before + + zha_device, _, _, _ = await setup_test_data(hass, zigpy_device_mock) + entity_id = find_entity_id(Platform.UPDATE, zha_device, hass) + assert entity_id is not None + + with patch("zigpy.ota.OTA.broadcast_notify") as mock_broadcast_notify: + await hass.services.async_call( + HA_DOMAIN, + SERVICE_UPDATE_ENTITY, + service_data={ATTR_ENTITY_ID: entity_id}, + blocking=True, + ) + + assert mock_broadcast_notify.await_count == 1 + assert mock_broadcast_notify.call_args_list[0] == call(jitter=100) + + def make_packet(zigpy_device, cluster, cmd_name: str, **kwargs): """Make a zigpy packet.""" req_hdr, req_cmd = cluster._create_request(