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

S0 Sensor is missing #371

Open Besserso opened 8 months ago

Besserso commented 8 months ago

Is your feature request related to a problem? Please describe. I have connected an external S0 counter with to my rct device. Each update i am still missing this entity and i need to add them by hand. it would be helpfull if you add these entitie into the project

Describe the solution you'd like If you add these device: RctPowerSensorEntityDescription( get_device_info=get_inverter_device_info, key="io_board.s0_external_power", name="Ext Power", state_class=SensorStateClass.MEASUREMENT, native_unit_of_measurement="W", ), An additional Sensor will created and show the Actual reading of the S0 reader in W

Describe alternatives you've considered no idear, i have to add them in future as well

Additional context Great Work.

peterge1998 commented 2 months ago

How can you add them by hand? Do you mean adding an entity in home assistant? How can I do this?

Because I am facing the same problem while setting up TeslaSolarCharger. After looking into the devices, I figured out that I need to add up those values to get my total inverter power:

Input A = sensor.rct_power_storage_generator_a_power Input B = sensor.rct_power_storage_generator_b_power But I am missing the power for G, where we connected an external Solis with 9 PV modules facing east and 9 PV modules facing west. I guess I need the power of the S0 to get this value. image

peterge1998 commented 2 months ago

It must be this one in https://rctclient.readthedocs.io/en/latest/inverter_registry.html#battery: image

So how exactly do you add entities by hand @Besserso ?

sgtdonny commented 1 week ago

Also would like this sensor. I tried to add this by myself and the sensor code from @Besserso works fine. Only add this to the entities.py @peterge1998 and restart HA. @weltenwort Im not working with github, so would be fine you add this few lines, or someone else. 2024-10-25 11_56_36-Einstellungen – Home Assistant – Mozilla Firefox 2024-10-25 11_50_51-lib – Datei-Explorer

1977michael commented 3 days ago

Hello @sgtdonny your hint solved exactly my problem. You on this #399

I would also need the values ​​grid Current P1 to P3 to export to evcc. Have you implemented that too? Or are you putting together the passage for yaml?

Thank you!

update: I tried to create the sensor. But it doesn't provide any values...

    ),
    RctPowerSensorEntityDescription(
        get_device_info=get_inverter_device_info,
        key="g_sync.i_dr_eff[0]",
        name="Grid Current phase 1",
        update_priority=EntityUpdatePriority.FREQUENT,
        state_class=SensorStateClass.MEASUREMENT,
        native_unit_of_measurement="A",
    ),
sgtdonny commented 1 day ago

Hello @1977michael ,

the sensor for the s0 is there after inserting the code to the entities.py. Go to the file on your rct addon with editor or smb addon oder visualcodestudio. You don't have to create the sensor or any template after inserting. P1 to P3 are already implemented.

I use this entity alone on my dashboard and with a helper for the summary of the production (3 sources).

dashboard p1-p3 s0

Cheers

1977michael commented 1 day ago

Hello @sgtdonny ,

thank you very much for your message. I was able to create the external energy sensor thanks to the information above.

Regarding the three phases, I don't mean power and voltage; I have that too. I wanted to retrieve the Current values ​​in the Grid area.

In the meantime, I have solved it differently: I use EVCC to retrieve the values ​​from the inverter and export them to Home Assistant. I solved the rest with helpers.