pblxptr / ecoNET-300-Home-Assistant-Integration

ecoNET300 Home Assistant is a custom integration for ecoNET300 devices.
16 stars 6 forks source link

EcoNET SOL integration #21

Open GoganGogan opened 10 months ago

GoganGogan commented 10 months ago

Hello

Any plans for a EcoNET SOL integration? I have a working one and can assist within my limitations

jontofront commented 10 months ago

I think first need to finish do all integration things :)

arni077r commented 10 months ago

@GoganGogan in file Sensor.py find "EconetSensorEntityDescription" and before this line add EconetSensorEntityDescription( key="T1", name="Solar temperature", icon="mdi:thermometer", native_unit_of_measurement=TEMP_CELSIUS, state_class=SensorStateClass.MEASUREMENT, device_class=SensorDeviceClass.TEMPERATURE, process_val=lambda x: round(x, 2) ), EconetSensorEntityDescription( key="T2", name="Bottom tank temperature", icon="mdi:thermometer", native_unit_of_measurement=TEMP_CELSIUS, state_class=SensorStateClass.MEASUREMENT, device_class=SensorDeviceClass.TEMPERATURE, process_val=lambda x: round(x, 2) ), EconetSensorEntityDescription( key="T3", name="Top tank temperature", icon="mdi:thermometer", native_unit_of_measurement=TEMP_CELSIUS, state_class=SensorStateClass.MEASUREMENT, device_class=SensorDeviceClass.TEMPERATURE, process_val=lambda x: round(x, 2) ), EconetSensorEntityDescription( key="T4", name="Fireplace temperature", icon="mdi:thermometer", native_unit_of_measurement=TEMP_CELSIUS, state_class=SensorStateClass.MEASUREMENT, device_class=SensorDeviceClass.TEMPERATURE, process_val=lambda x: round(x, 2) ),

or send me output of http://*IPECONET*/econet/editParams and what you need (temperature or something)

GoganGogan commented 10 months ago

@arni077r Thank you very much for your guidance!

I'm now able to get data from T1 (solar temp.), T2 (Tank temp) and P1 (pump power).

For anyone following this should be added after "EconetSensorEntityDescription", like the ones already present

EconetSensorEntityDescription( key="T1", name="Solar temperature", icon="mdi:thermometer", native_unit_of_measurement=TEMP_CELSIUS, state_class=SensorStateClass.MEASUREMENT, device_class=SensorDeviceClass.TEMPERATURE, process_val=lambda x: round(x, 2) ), EconetSensorEntityDescription( key="T2", name="Bottom tank temperature", icon="mdi:thermometer", native_unit_of_measurement=TEMP_CELSIUS, state_class=SensorStateClass.MEASUREMENT, device_class=SensorDeviceClass.TEMPERATURE, process_val=lambda x: round(x, 2) ), EconetSensorEntityDescription( key="P1", name="Pump", icon="mdi:gauge", native_unit_of_measurement=PERCENTAGE, state_class=SensorStateClass.MEASUREMENT, process_val=lambda x: round(x, 2) ),

jontofront commented 9 months ago

We can do it together if you provide more information.

pblxptr commented 9 months ago

Hey guys sorry that I am not responsive however I am totally overwhelmed at work and can't work on this right now. I don't even have a time to test your changes.