andrewleech / ha_magiqtouch

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

Fan Speed Control Mode for Evap A/C #8

Open FlyAndy123 opened 1 year ago

FlyAndy123 commented 1 year ago

I am using the addon in HA to control my evaporative air conditioner. When I set it to 'Cool' operation mode, the fan mode defaults to 'Auto' and I cant manually control the fan speed.

There are 2 operation modes on the wall console 'Temperature' = This results in automatic control of the fan speed (i.e. Fan Mode = Auto) 'Speed' = This is a cooling mode, but allows you to control the fan speed (i.e. Fan Mode = 1 to 10)

If I set the console to 'Speed' mode, the addon in HA shows no entry in the Operation mode, but I can control the fan speed.

Is it possible to add the additional operational mode 'Cool (Speed)' to allow cooling plus manual fan speed control?

andrewleech commented 1 year ago

Hi, I just ran into this issue myself when switching to cool mode, I've only had it on fan mode recently.

The modes available are somewhat restricted by the HA types/widgets, but my intention with the settings is for a "fan speed" of "auto" to be when it's running to temerature, then switch to a fan number to switch from temp to speed. I think it used to work this way for me so it should be possible.

I'll have to grab some more logs of the data coming and going to the unit to get this working again.

andrewleech commented 1 year ago

I think I've got all the modes working now, and also have a new custom card to make it easier to use: https://github.com/andrewleech/lovelace-magiqtouch-thermostat image

FlyAndy123 commented 1 year ago

I've added the custom card, but the problem still remains that I cant easily switch between 'fan speed' and 'temperature' mode. The system still seems to stay on 'temperature' mode regardless of what I do. Was there some updates to the integration that needed to be pushed to the repo? I cant see any changes there in the last few weeks.

andrewleech commented 1 year ago

Ah yes sorry I just realised my recent updates are "hidden" in my develop branch, I'll have to check if it needs cleaning up at all and merge it to main!

andrewleech commented 1 year ago

Should be better now that I've merged https://github.com/andrewleech/ha_magiqtouch/pull/10

FlyAndy123 commented 1 year ago

Seems to be working now, but I get an error every time I make a change. See the screenshot attached. IMG_20221221_080437

andrewleech commented 1 year ago

Ah whoops, that was a late change / addition last night that I've broken

andrewleech commented 1 year ago

Should be fixed now if you update again!

FlyAndy123 commented 1 year ago

The error has gone now and I can switch between modes without an issue. However, the fan speed does not seem to update when I adjust it on the slider. Any ideas?

andrewleech commented 1 year ago

Oh, yeah mines doing that too. That was working.... That last change I made was to remove a dependency on an external module and use a built-in type instead, seems it introduced some sneaky bugs though.

andrewleech commented 1 year ago

Ok I believe I've got that issue fixed now too!

AlexPotterOnGit commented 1 year ago

Andrew, thank you very much for the job you've done! Was looking for integration for a while and finally found it =) I installed the card, it works perfectly, but by some reason I only can control the temperature, not the fan speed from the card itself. On the screenshot above 3 probably stands for the speed, and I can't find how to make it on the card Screenshot_86

andrewleech commented 1 year ago

@AlexPotterOnGit that's a strange bug to be sure. If you switch to cooling mode, does it show the switch to select between temperature and fan speed?

AlexPotterOnGit commented 1 year ago

Fixed. I initially did not follow your recommendation to install the card via yaml (did via UI) and while the card was successfully created based on entity, it was type: thermostat. I changed it to type: custom:magiqtouch-thermostat and its all good. One more time thank you! Screenshot_87