weltenwort / home-assistant-rct-power-integration

A Home Assistant custom component to integrate with RCT Power inverters.
MIT License
71 stars 14 forks source link

Add new value to entities.py #364

Open Termits13 opened 9 months ago

Termits13 commented 9 months ago

please add values to file entities.py.

    RctPowerSensorEntityDescription(
        get_device_info=get_inverter_device_info,
        key="prim_sm.state",
        name="Inverter Device State",
        update_priority=EntityUpdatePriority.STATIC,
    ),
    RctPowerSensorEntityDescription(
        get_device_info=get_inverter_device_info,
        key="g_sync.i_dr_eff[0]",
        name="Current phase L1",
        state_class=SensorStateClass.MEASUREMENT,
        update_priority=EntityUpdatePriority.FREQUENT,
        native_unit_of_measurement="A"
    ),
    RctPowerSensorEntityDescription(
        get_device_info=get_inverter_device_info,
        key="g_sync.i_dr_eff[1]",
        name="Current phase L2",
        state_class=SensorStateClass.MEASUREMENT,
        update_priority=EntityUpdatePriority.FREQUENT,
        native_unit_of_measurement="A"
    ),
    RctPowerSensorEntityDescription(
        get_device_info=get_inverter_device_info,
        key="g_sync.i_dr_eff[2]",
        name="Current phase L3",
        state_class=SensorStateClass.MEASUREMENT,
        update_priority=EntityUpdatePriority.FREQUENT,
        native_unit_of_measurement="A"
    ),
    RctPowerSensorEntityDescription(
        get_device_info=get_inverter_device_info,
        key="g_sync.u_l_rms[0]",
        name="Grid Voltage L1",
        state_class=SensorStateClass.MEASUREMENT,
    ),
    RctPowerSensorEntityDescription(
        get_device_info=get_inverter_device_info,
        key="g_sync.u_l_rms[1]",
        name="Grid Voltage L2",
        state_class=SensorStateClass.MEASUREMENT,
    ),
    RctPowerSensorEntityDescription(
        get_device_info=get_inverter_device_info,
        key="g_sync.u_l_rms[2]",
        name="Grid Voltage L3",
        state_class=SensorStateClass.MEASUREMENT,
    ),
    RctPowerSensorEntityDescription(
        get_device_info=get_battery_device_info,
        key="battery.voltage",
        name="Battery Voltage",
        update_priority=EntityUpdatePriority.FREQUENT,
        state_class=SensorStateClass.MEASUREMENT,
    ),