arduino-home-assistant icon indicating copy to clipboard operation
arduino-home-assistant copied to clipboard

Request: Multi-mode switch

Open daniloc opened this issue 3 years ago • 1 comments

Hello! Thanks for a great project.

I am integrating a Mitsubishi Heat Pump into Home Assistant, via IR signaling, and this project has made for a great start.

I've had success by composing multiple device types so far (HAHVAC and HASensor). But one primitive does not seem to exist in this library:

A multi-mode switch.

In the case of the Heat Pump, this would support things like:

  • Fan Mode (1-5, auto, silent)
  • Horizontal and vertical vane mode (series of angles, sweep, breeze)

Can you recommend a good direction for toggling between a series of integers, which I'll interpret as enum values for the various modes?

daniloc avatar Aug 09 '22 02:08 daniloc

Digging deeper, it seems that there's built in support in both Home Assistant's Climate integration, and in MQTT's Climate implementation, for both fan mode and swing mode.

So perhaps these enhancements would better target this library's HVAC implementation instead? I am finding the serialization mechanics a bit hard to follow, but it seems that @dawidchyrzynski is hard at work on enhancements on exactly that sub-system.

As I see you have not yet committed anything related to HVAC in that branch, @dawidchyrzynski, might I request you consider these additional functions when you get a moment for the HVAC device implementation?

Thanks so much for your time on all of this, it's such a great project.

daniloc avatar Aug 09 '22 15:08 daniloc

Hi @daniloc,

I will research this feature and eventually implement it as part of the coming release - https://github.com/dawidchyrzynski/arduino-home-assistant/pull/81

dawidchyrzynski avatar Aug 20 '22 20:08 dawidchyrzynski

Hi @daniloc,

The new HAHVAC implementation is already available on the serializer-refactor branch. Feel free to give it a go.

dawidchyrzynski avatar Oct 07 '22 15:10 dawidchyrzynski