Request update "Heating Energy" sensors D2CND
eduardkirkosa opened this issue · 32 comments
Hi, @tadasdanielius
Could you please update the "Heating Energy" sensors for D2CND ( via DRGATEWAYAA ) the device_class/state_class, so' I can add it to Energy Dashboard ( Gas Consumption ).
Thanks,
Edy
Fixed in v1.3.7
12kWh electricity consumption. You must be paying a fortune for electricity 😄
You must be heating football stadium if it takes 75% of the 12kWh. If I see 20kWh/day (only for heatpump) I am already freaking out. Overall my total consumption looks a bit higher (~800kWh) for Nov.
Combo combination : Poor(I think) isolation from windows + doors + attic , radiators (not underfloor) , pets (1 door sometimes open for long time) , I bet in January the external part of the HP will take off like a helicopter :))))))))))
How about electricity consumption? I only have electric heating, thus currently it's only picking electricity usage.
And what the official app showing for electricity consumption (not gas)?
Yes, Gas has separate values but at the moment they are not being used as I don't have gas device therefore I don't see them.
can I / it's possible - to get out some logs/events that you can use ?
if you can drop a profiles of your devices then I might be able to implement, but can't promise anything 😄
/config/daikin_altherma_0.json
{"SyncStatus": "reboot", "UnitStatus": ["ErrorState"], "DateTime": {"DateTimeAdjustable": false}}
/config/daikin_altherma_1.json
{"SyncStatus": "update", "Sensor": ["IndoorTemperature", "OutdoorTemperature", "LeavingWaterTemperatureCurrent"], "UnitStatus": ["ErrorState", "InstallerState", "WarningState", "EmergencyState", "TargetTemperatureOverruledState"], "Operation": {"Power": ["on", "standby"], "OperationMode": ["heating"], "TargetTemperature": {"heating": {"maxValue": 30.0, "minValue": 12.0, "stepValue": 0.5}}, "RoomTemperatureHeating": {"maxValue": 30.0, "minValue": 12.0, "stepValue": 0.5, "settable": true}, "LeavingWaterTemperatureOffsetHeating": {"maxValue": 10, "minValue": -10, "stepValue": 1, "settable": true}}, "Schedule": {"Base": "action", "defaultScheduleAvailable": "true", "NameAdjustable": "false", "List": {"heating": [{"StartTime": {"stepValue": 10.0, "unit": "minutes"}, "TargetTemperature": {"heating": {"maxValue": 30.0, "minValue": 12.0, "stepValue": 1}}, "Actions": ["StartTime", "TargetTemperature"], "maxActionsAllowed": 6}, ["monday", "tuesday", "wednesday", "thursday", "friday", "saturday", "sunday"], ["monday", "tuesday", "wednesday", "thursday", "friday", "saturday", "sunday"], ["monday", "tuesday", "wednesday", "thursday", "friday", "saturday", "sunday"], []]}}, "Consumption": {"Electrical": {"unit": "kWh", "Heating": {"Daily": {"contentCount": 24, "resolution": 2}, "Weekly": {"contentCount": 14, "resolution": 1}, "Monthly": {"contentCount": 24, "resolution": 1}}}}}
/config/daikin_altherma_2.json
{"SyncStatus": "update", "Sensor": ["TankTemperature"], "UnitStatus": ["ErrorState", "InstallerState", "WeatherDependentState", "WarningState", "EmergencyState"], "Operation": {"Power": ["on", "standby"], "OperationMode": ["heating"], "TargetTemperature": {"heating": {"maxValue": 60.0, "minValue": 30.0, "stepValue": 0.5}}, "DomesticHotWaterTemperatureHeating": {"maxValue": 60.0, "minValue": 30.0, "stepValue": 1.0, "settable": true}, "powerful": ["0", "1"]}, "Schedule": {}, "Consumption": {"Electrical": {"unit": "kWh", "Heating": {"Daily": {"contentCount": 24, "resolution": 2}, "Weekly": {"contentCount": 14, "resolution": 1}, "Monthly": {"contentCount": 24, "resolution": 1}}}}}
The - error state it's due to stupid 60gr tank water clean/cycle blabla - that i stopped.
Nothing related to gas usage to pick it up. Do you have two separate devices?
I see. Can you temporary disable Daikin Altherma and leave only GazBoiler restart HA, copy files and then you can enable it again. The reason is that they both write to the same files and apparently Daikin Altherma overrides the GazBoiler
daikin_altherma_0.json
{"SyncStatus": "registration", "UnitStatus": ["ErrorState"], "DateTime": {"DateTimeAdjustable": true}}
daikin_altherma_1.json
{"SyncStatus": "update", "Sensor": ["IndoorTemperature"], "UnitStatus": ["ErrorState", "WarningState", "TargetTemperatureOverruledState"], "Operation": {"Power": ["on", "standby"], "OperationMode": ["heating_day", "heating_night"], "SensorTemperature": {"stepValue": 0.5}, "TargetTemperatureDay": {"maxValue": 30.0, "minValue": 10.0, "stepValue": 0.5}, "TargetTemperatureNight": {"maxValue": 30.0, "minValue": 10.0, "stepValue": 0.5}, "TargetTemperature": {"heating_day": {"maxValue": 30.0, "minValue": 10.0, "stepValue": 0.5}, "heating_night": {"maxValue": 30.0, "minValue": 10.0, "stepValue": 0.5}}, "EcoMode": ["0", "1"]}, "Schedule": {"Base": "TimeSegment", "defaultScheduleAvailable": "false", "NameAdjustable": "false", "List": {"Heating": [{"StartTime": {"stepValue": 15, "unit": "minute"}, "EndTime": {"stepValue": 15, "unit": "minute"}, "OperationMode": ["heating_day", "heating_night"], "TargetTemperature": {"heating_day": {"maxValue": 21.0, "minValue": 21.0, "stepValue": 0.0}, "heating_night": {"maxValue": 21.0, "minValue": 21.0, "stepValue": 0.0}}, "TimeSegment": ["StartTime", "EndTime"], "MaxSegmentsAllowed": 3}, [], ["weekday", "weekend"], ["monday", "tuesday", "wednesday", "thursday", "friday", "saturday", "sunday"]]}}, "Consumption": {"Electrical": {"unit": "kWh", "Heating": {"Daily": {"contentCount": 24, "resolution": 2}, "Weekly": {"contentCount": 14, "resolution": 1}, "Monthly": {"contentCount": 24, "resolution": 1}}}, "Gas": {"unit": "kWh", "Heating": {"Daily": {"contentCount": 24, "resolution": 2}, "Weekly": {"contentCount": 14, "resolution": 1}, "Monthly": {"contentCount": 24, "resolution": 1}}}}}
daikin_altherma_2.json
{"SyncStatus": "update", "Sensor": ["TankTemperature"], "UnitStatus": ["ErrorState", "WarningState"], "Operation": {"Power": ["on", "standby"], "OperationMode": ["heating", "standby"], "SensorTemperature": {"stepValue": 1.0}, "TargetTemperature": {"heating": {"maxValue": 60.0, "minValue": 35.0, "stepValue": 1.0}, "standby": {"maxValue": 60.0, "minValue": 35.0, "stepValue": 1.0}}, "DomesticHotWaterTemperatureHeating": {"maxValue": 60.0, "minValue": 35.0, "stepValue": 1.0, "settable": true}}, "Schedule": {"Base": "TimeSegment", "defaultScheduleAvailable": "false", "NameAdjustable": "false", "List": {"Heating": [{"StartTime": {"unit": "minute"}, "EndTime": {"unit": "minute"}, "OperationMode": ["heating"], "TimeSegment": ["StartTime", "EndTime"], "MaxSegmentsAllowed": 3}, [], ["weekday", "weekend"], ["monday", "tuesday", "wednesday", "thursday", "friday", "saturday", "sunday"], ["weekday", "weekend"], ["monday", "tuesday", "wednesday", "thursday", "friday", "saturday", "sunday"]]}}, "Consumption": {"Electrical": {"unit": "kWh", "Heating": {"Daily": {"contentCount": 24, "resolution": 2}, "Weekly": {"contentCount": 14, "resolution": 1}, "Monthly": {"contentCount": 24, "resolution": 1}}}, "Gas": {"unit": "kWh", "Heating": {"Daily": {"contentCount": 24, "resolution": 2}, "Weekly": {"contentCount": 14, "resolution": 1}, "Monthly": {"contentCount": 24, "resolution": 1}}}}}
Can you try to replace sensor.py
file, located in your config
folder custom_components/daiking_altherma
with this one.
And of course after you replace restart HA
That's not bad. Now try to replace with this
Ok that was a stupid mistake. Let's try again with this
I see what is happening here. Normally, on my device, the data arrives with values and then is set to null for the rest of the day. This means I can simply pick the last non-null value and set it as the sensor value. However, in your case, the values are being set to 0, which is causing confusion with the integration. It might be best for you to create a template sensor that checks the time of day and picks the correct value from the attribute values. I will think about it.