kamaradclimber / heishamon-homeassistant

An integration for heatpumps handled by heishamon
Apache License 2.0
50 stars 25 forks source link

change Main_Target_Temp value #57

Closed revin34 closed 1 year ago

revin34 commented 1 year ago

Hi,

I'm working on direct mode and I'm trying to change the temperature outlet (TOP7) from 27 to 28. If I try to change via the climate component generated by the integration an error is shown on home assistant log:

WARNING (MainThread) [custom_components.aquarea.definitions] Impossible to know if we are using 'shift' mode or 'direct' mode, ignoring

probably this mean that there is a config issue on the Aquarea. Any ideas?

Attached you'll find full json from heishamon

aquarea.json.txt

thanks

kamaradclimber commented 1 year ago

From memory, this log happens when we receive a message from heishamon which does not fall into the likely ranges (-5..5 for compensation curb, or https://github.com/kamaradclimber/heishamon-homeassistant/blob/main/custom_components/aquarea/definitions.py#L333 for direct mode ).

Something weird though is that the range for heating are 20..30 :thinking:

kamaradclimber commented 1 year ago

Could you try with release 0.9.5 and give me the error message you get when doing the same operation?

revin34 commented 1 year ago

Hi @kamaradclimber

I've updated to 0.9.5 and activated the debug option. First, I see these messages:

2022-12-06 20:11:23.595 DEBUG (MainThread) [custom_components.aquarea.number] Received message for Aquarea Zone 1 Heat Requested shift: ReceiveMessage(topic='aquarea/main/Z1_Heat_Request_Temp', payload='0', qos=0, retain=0, subscribed_topic='aquarea/main/Z1_Heat_Request_Temp', timestamp=datetime.datetime(2022, 12, 6, 20, 11, 23, 585730, tzinfo=datetime.timezone.utc)) 2022-12-06 20:11:23.595 DEBUG (MainThread) [custom_components.aquarea.climate] Received target temperature for 1: 0.0 2022-12-06 20:11:23.642 DEBUG (MainThread) [custom_components.aquarea.number] Received message for Aquarea Zone 2 Heat Requested shift: ReceiveMessage(topic='aquarea/main/Z2_Heat_Request_Temp', payload='35', qos=0, retain=0, subscribed_topic='aquarea/main/Z2_Heat_Request_Temp', timestamp=datetime.datetime(2022, 12, 6, 20, 11, 23, 636657, tzinfo=datetime.timezone.utc)) 2022-12-06 20:11:23.642 WARNING (MainThread) [custom_components.aquarea.definitions] Received value 35 for Aquarea Zone 2 Heat Requested shift. Impossible to know if we are using 'shift' mode or 'direct' mode, ignoring 2022-12-06 20:11:23.643 DEBUG (MainThread) [custom_components.aquarea.climate] Received target temperature for 2: 35.0

After that, I tried to change the climate component to 25 and these are the messages:

2022-12-06 20:12:51.181 INFO (MainThread) [custom_components.aquarea.climate] Changing Aquarea Zone 1 climate target temperature to 25.0 for zone 1 2022-12-06 21:12:51.181 DEBUG (MainThread) [custom_components.aquarea.climate] sending 25.0 as temperature command for zone 1 2022-12-06 20:12:53.524 DEBUG (MainThread) [custom_components.aquarea.number] Received message for Aquarea Zone 1 Heat Requested shift: ReceiveMessage(topic='aquarea/main/Z1_Heat_Request_Temp', payload='25', qos=0, retain=0, subscribed_topic='aquarea/main/Z1_Heat_Request_Temp', timestamp=datetime.datetime(2022, 12, 6, 20, 12, 53, 524469, tzinfo=datetime.timezone.utc)) 2022-12-06 20:12:53.525 DEBUG (MainThread) [custom_components.aquarea.climate] Received target temperature for 1: 25.0 2022-12-06 20:12:58.513 DEBUG (MainThread) [custom_components.aquarea.number] Received message for Aquarea Zone 1 Heat Requested shift: ReceiveMessage(topic='aquarea/main/Z1_Heat_Request_Temp', payload='0', qos=0, retain=0, subscribed_topic='aquarea/main/Z1_Heat_Request_Temp', timestamp=datetime.datetime(2022, 12, 6, 20, 12, 58, 513215, tzinfo=datetime.timezone.utc)) 2022-12-06 20:12:58.514 DEBUG (MainThread) [custom_components.aquarea.climate] Received target temperature for 1: 0.0

After reading carefully the logs, I see that the component is trying to change the room target temperatura in zone 1 ( I only have 1) but what I want to do is change the temperature of water going to the circuit (TOP7).

Am I doing correctly?

Thanks

kamaradclimber commented 1 year ago

Thanks for the detailed log. I may have misunderstood how "direct mode" is working. I assumed it allowed to control the target air temperature of zone and you seem to use to control water temperature of zone. I'm not using this setup at home so I'm not sure which is correct. What's your opinion on this?

geduxas commented 1 year ago

Thanks for the detailed log. I may have misunderstood how "direct mode" is working. I assumed it allowed to control the target air temperature of zone and you seem to use to control water temperature of zone. I'm not using this setup at home so I'm not sure which is correct. What's your opinion on this?

In any way you control zone temperature.. just in heat pump logic you can change which temperature is target.. you can control water temperature by compensation curve, and change zone by shift. You can use direct mode, but actually chose which temperature device to fallow.. if i remember correctly it could be room temperature, or water temperature.. but you still change zone setpoint.

PGnl commented 1 year ago

I believe that when going for “direct”, this could indeed be water or room temperature. my original climate entity uses 7 (for anti freeze) to 30 degrees. I have a thermostat in use, so use room temperature. But I believe for direct water temp, you sometimes want to go higher. The “direct” water temp users might know what is relevant, but believe that max is 45. Then maybe better to use 7 to 45. I would never use 45 for my room (nor would I be able to reach that with ma. 32 degrees water) and direct water temp users will never go below 20 (I think) unless for cooling.

kamaradclimber commented 1 year ago

Let' see if 0.9.6 fixes the situation for you. Thanks @PGnl and @geduxas for your inputs :)

geduxas commented 1 year ago

Let' see if 0.9.6 fixes the situation for you. Thanks @PGnl and @geduxas for your inputs :)

No, it's thank you for your good job! Truely panasonic have byte for that heating sensor.. it is possible to bring that byte to topic and implement better UX :)

Screenshot_2022-12-07-19-57-23-24_40deb401b9ffe8e1df2f1cc5ba480b12

PGnl commented 1 year ago

Agree. Thank you kamaradclimber. Geduxas proposal would indeed be the cleanest.

PGnl commented 1 year ago

B40C708F-3B84-4C18-B7B4-D9611FECAAC5

I get a -5 to +6 shift possibility. Even though I use thermostat (so setting is maxxed out, any setting will be refused as system can not go that low (value not accepted)

revin34 commented 1 year ago

Hi @kamaradclimber ,

I'm sorry but still don't work changing temp via the climate component.

I've moved from direct mode to curve and now I can shift the temperatures via Heishamon + curl + json but still cannot do via your hass component.

I think something is misconfigured in my Panasonic config because climate component also cannot read current temperature.

image

Let me check the config with the Panasonic installer and I will come back to you.

Thanks everyone!

kamaradclimber commented 1 year ago

https://github.com/kamaradclimber/heishamon-homeassistant/releases/tag/0.9.9 should help

geduxas commented 1 year ago

My changes for zone sensor source are in 3.1-beta, soon it could be released. It will allow determinate correct heating sensor sources and temperature ranges for it