andrewleech / ha_magiqtouch

Home Assistant (HACS) integration to control Seeley MagiQtouch heating and cooling units.
MIT License
24 stars 6 forks source link

Can see both zones, but control / temp is duplicated across both #16

Open mainLink0435 opened 1 year ago

mainLink0435 commented 1 year ago

First of all, @andrewleech thank you so much for your amazing work on this! I have a bug and happy to provide any data and/or do any testing to help get it sorted out.

I have 2 zones, "Downstairs" and "Upstairs". Downstairs is the primary zone (ie Upstairs won't work without Downstairs being on). The integration loads the two zones correctly with the correct names, however the temperature always shows the Downstairs temperature. Similarly, if Upstairs is not on heat, but Downstairs is, it will say "Heat" for Upstairs as well. It's like all readings and controls only ever relate to the Downstairs zone.

Let me know what else I can provide (or try).

EDIT: as alluded to by @Rumbaar, I neglected to mention that I do have 2 zones, but I also have 2 physical controllers. One is downstairs, and one is upstairs. I'll let you work out which controller controls which zone ;)

andrewleech commented 1 year ago

Hi, the zone support was added by @epetousis in https://github.com/andrewleech/ha_magiqtouch/pull/5, perhaps they can comment on this? I don't have any zones so don't have much knowledge on how they're handled by the magiqtouch.

Rumbaar commented 1 year ago

Ditto, I have 4 zones and all zones appear to draw from the 'primary' controller and is repeated on all zone entities. It shows the main in 'standby' but off and the rest on by idle. None of the zones update each of the zones via their entity cards.

epetousis commented 1 year ago

The temperature thing seems to be a new one, but I think the control issue is a duplicate of #15. Haven't had the time to look at the zone issues yet, been super busy.

mainLink0435 commented 1 year ago

I think the control issue is a duplicate of #15

I did try the fix(es) in this issue, but it didn't do anything to change my issue, unfortunately. In my case, the "common zone" (which I guess would be "downstairs") it actually the first one (index 0), so I think this is a different issue.

Is there something I can try to help debug?

Rumbaar commented 1 year ago

To add, I have 4 zones and each zone has its own controller. There is a master controller and the 3 others talk back to that one. As in if it's off, they are all off and cannot operate the zone they control.

So in my operation the master is on, but not active on. The satellite controllers can be off or on and not active. But they cannot turn on, if the master is off.

How do I get a log output, to see the current configuration and/or assist in anyway?

andrewleech commented 1 year ago

@Rumbaar in home assistant Settings / Integrations there should be a Configure button on the MagiQtouch tile. image

It's got a checkbox to enable extra logging. If you enable that and restart home assistant, the Settings / System / Logs will include extra entries for MagiQtouch.

mainLink0435 commented 1 year ago

here are my logs, hope it's ok that i stripped out anything non "magiqtouch", and that I X'd out the MAC address.

The first time (T00-42): I started HA, turned upstairs to "heat", it then indicated it was in heat mode for both zones. Then I turned upstairs to "off", and both downstairs and upstairs indicated they were "off".

The second time (T00-47): I started HA, turned Downstairs to "Heat", it then indicated it was in heat mode for both zones. Then I turned Downstairs to "off", and Downstairs indicated it was off, but upstairs continued to be in "heat" mode. However my actual upstairs controller never turned on (nor is the temperature correct).

home-assistant_2023-05-23T00-42-32.787Z.log home-assistant_2023-05-23T00-47-56.387Z.log

Rumbaar commented 1 year ago

Okay, enabled extra debug logging and had to also enable "Log the sent and received json data when anything is changed."

But got the following logs. My zone doesn't appear to have any "master zone" and lists the 4 zones and controllers I have. Hopefully that'll help and/or mean something to someone, as I'm not sure what to do with it and how to fix it within my system or if possible.

home-assistant_2023-05-23T06-07-20.254Z.log

More than happy to help, share or troubleshoot anything.

mainLink0435 commented 1 year ago

Well, I think I've found a clue. I can see the following comment in async_set_temperature:

# Heating temperature can only be changed across the entire system.

And I note that in the magiqtouch.py file in the set_temperature method it only ever changes Zone1:

self.current_state.SetTempZone1 = new_temp

epetousis commented 1 year ago

Temperature seems straightforward to fix. Not really sure what to suggest using for mode control though, as I don't have a "proper" multi-zone system so can't really test anything. Perhaps messing with ProgramModeOverriddenZoneX will work?