vilppuvuorinen / hass-melcloud

MIT License
13 stars 1 forks source link

Extra options #1

Open AlbertHakvoort opened 4 years ago

AlbertHakvoort commented 4 years ago

Hello,

Your plugin is working great! But can you add some more options like

-SetHeatFlowTemperatureZone1 (25-60) -SetCoolFlowTemperatureZone1 (5-25) -ForcedHotWaterMode (true/false) -OperationModeZone1
0 = Heating-Thermostat 1 = Heating-FlowTemp 2 = Heating-WDC 3 = Cooling-Thermostat 4 = Cooling-FlowTemp

And the status off :

EcoHotWater (true/false)

melcloud ecodan output.txt

vilppuvuorinen commented 4 years ago

First of all it looks like you have a cooling Ecodan and that means I really want a request capture of the SetAtw post request to determine the EffectiveFlags used for setting the heat/cool mode.

I'm pretty sure the you can set forced hot water on using the operation mode of the water heater.

Zone control modes (temperature, flow, wdc??) are a little out of scope in my opinion. That's more configuration than something you would set in this context and I'm not keen on going beyond control features. Could you describe your use case?

Flow temperature control is interesting tho. I would keep the zone mode select as heat/cool and the operation mode would be heat/cool corresponding to the currently selected control mode. Would this work for you? To make this work I would need SetAtw captures to determine the EffectiveFlags for setting the flow temperatures.

Lastly, what's the EcoHotWater status and could I just add it to the status state attribute if it already isn't there?

AlbertHakvoort commented 4 years ago

First of all it looks like you have a cooling Ecodan and that means I really want a request capture of the SetAtw post request to determine the EffectiveFlags used for setting the heat/cool mode.

_I always use the "EffectiveFlags":281483566710825 that include all, the single actions are Cooling = 281474976710696 Heating = 8 Setting Flow temp = 281474976710688

(see my old script for Domoticz here _

I'm pretty sure the you can set forced hot water on using the operation mode of the water heater. I'll try that today,but I thought it was a separate function (ForcedHotWaterMode)

Zone control modes (temperature, flow, wdc??) are a little out of scope in my opinion. That's more configuration than something you would set in this context and I'm not keen on going beyond control features. Could you describe your use case?

WDC = Weather compensation, I see that they changed the item now to Curve in the menu.

Those control features are the same level as the Water Tank temperature or Flow Temperature :

Screenshot of Unit Settings : BaFnymt

Most of the times I use Flow mode, so I can control the water temperature, when using the "default" Room mode the unit "always" goes to the max, so with flow I can better control the unit.

__

Flow temperature control is interesting tho. I would keep the zone mode select as heat/cool and the operation mode would be heat/cool corresponding to the currently selected control mode. Would this work for you? To make this work I would need SetAtw captures to determine the EffectiveFlags for setting the flow temperatures.

Lastly, what's the EcoHotWater status and could I just add it to the status state attribute if it already isn't there?

It only give a status of the unit is in Eco mode, not using max power for heating water.

The Power On/Off isn't working (or not displayed correctly?)

Flags 1 Power: false/true

vilppuvuorinen commented 4 years ago

I've added flow temperature sensors to this custom components. The operation mode should also now tell whether the unit is cooling or heating. There are no control capabilities in place yet because I'm still trying to come up with a consistent control scheme using home-assistant entities. Could you give this a go so that I can confidently PR this to upstream home-assistant?

Could you check also check if the EcoHotWater mode matches the auto operation mode in this integration and in MELCloud user interface? It looks like it should be automatically on when the ForceHotWater is disabled.

AlbertHakvoort commented 4 years ago

I gonna test it tomorrow!

AlbertHakvoort commented 4 years ago

The flow temp isn't correctly showed :

image

image

AlbertHakvoort commented 4 years ago

The operation mode should also now tell whether the unit is cooling or heating.

That part is indeed working :

image

The minimal hot water temp is also to high : ( between 40 <-> 60 )

image

vilppuvuorinen commented 4 years ago

The flow temperature is the measured temperature, not the set temperature. Assuming the value I used was indeed a measured value. Check the device list response.

AlbertHakvoort commented 4 years ago

Melcloud doesn't show the current flow temp (this can only be seen on the FTC display)

AlbertHakvoort commented 4 years ago

force_hot_water mode is also working :

image

vilppuvuorinen commented 4 years ago

Please check this value https://github.com/vilppuvuorinen/pymelcloud/blob/master/tests/samples/atw_2zone_cancool_listdevice.json#L60

It looks like it could be the measured value. You could compare it to the FTC value.

Edit: The update interval is slow and that's at least partially my fault.

vilppuvuorinen commented 4 years ago

@AlbertHakvoort Have you had the time to check whether the flow and return temperatures match the FTC values? They are refreshed every 5 minutes unless the device offers a slower update.

I should be able to take a look into the incorrect minimum temp this weekend.

AlbertHakvoort commented 4 years ago

@vilppuvuorinen

I've installed the plugin on a second location which also got a Melcloud heatpump, but the Flow Temperature and the Flow Return Temperature stays on both on 25 degrees.

unfortunately I can't recheck it now, the melcloud portal has issues :

image

I will try it tonight again.

vilppuvuorinen commented 4 years ago

Tank temperature minimum should be fixed via https://github.com/vilppuvuorinen/hass-melcloud/commit/e7f872540141b97165e2f1cf08715a8b64853fb5

Have you had any luck checking the flow sensors? I think the best bet for geting any info out would be to do something like a 2-4°C bump to the flow temperature set point and graph the sensors for 2 hours or until a change can be seen, which ever happens first.

Unfortunately some of the temperature sensors on the ATW units are pretty awful. For example the outside temperature sensor reading is updated hourly. I'm hoping these values can be used tho. They would make the flow temperature thermostat look a lot better.

AlbertHakvoort commented 4 years ago

@vilppuvuorinen the flow sensors are working, the data is only showed in the melcloud under the report section.. It's updated every hour...

But the outside temp is updated every 5 minutes :

image

vilppuvuorinen commented 4 years ago

@AlbertHakvoort I've added climate entities for both the heat and cool flow temperatures. The initial plan was to add a single climate that would switch roles based on the operation mode, but it would have been a awful to automate. It would be awesome if you could try these out.

And before you ask. Current temperature reported by the climates is the slow, measured temperature and operation mode control is next on the TODO list.

Edit: I just pushed the hvac_mode control draft. It should now list the corresponding operation mode for each climate entity. Switching the climates on will toggle the zone operation mode.

For example, thermostat backed climate will be in heat mode when the zone is in thermostat based heat mode and other climates will be off. When flow heating is enabled, the heat flow climate will be in heat mode and thermostat and cool flow climates will be `off.

AlbertHakvoort commented 4 years ago

@vilppuvuorinen 'll try to test it tonight

AlbertHakvoort commented 4 years ago

@vilppuvuorinen

image

The cooling status is working, it's only grouped under the water_heater

AlbertHakvoort commented 4 years ago

The flow temp are not updating :

image

image

Anthrow commented 1 year ago

Just wondering if there is any progress regarding the option to control the FlowHeat Temperature using SetHeatFlowTemperatureZone1? I am really interested in this control options for my air/water heat pump.