geoffdavis / esphome-mitsubishiheatpump

ESPHome Climate Component for Mitsubishi Heatpumps using direct serial connection
BSD 2-Clause "Simplified" License
560 stars 153 forks source link

MQTT topics to set config #43

Closed barcar closed 3 years ago

barcar commented 3 years ago

Does anybody have a sample config showing how to use MQTT to set config (target temp, mode, etc)? I’m assuming esphome climate does the heavy lifting and I can subscribe to topics with no issues but I just cannot figure out the topics needed to set values.

any pointers gratefully received.

Marc-- commented 2 years ago

@barcar Hello, i have exactly the same question and feel stupid , did you find a solution ?

barcar commented 2 years ago

Hi @Marc--

Yes, I did. It seems like you need to replace “state” with “command” at the end of the MQTT topic.

For example, get mode with “aircon/yourheatpump/mode/state" and set with “aircon/yourheatpump/mode/command”. Obviously your prefix will differ and the property you are getting can be anything supported.

This seems to work for most stuff I’ve tried. Took a bit of trial and error.

good luck.

Marc-- commented 2 years ago

Thanks for your very quick reply !

I'm a real noob, but i manage to make it work ! The last thing to not forget is... MQTT !!

Thank you for your help with "set" command and thanks to the developpers of this project !