esphome / feature-requests

ESPHome Feature Request Tracker
https://esphome.io/
415 stars 26 forks source link

Template climate platform #2783

Open nagyrobi opened 3 months ago

nagyrobi commented 3 months ago

Describe the problem you have/What new integration you would like There are many cases where directly unsupported HVAC devices could be added to ESPHome if a Template climate platform would exist.

Please describe your use case for this integration and alternatives you've tried: Here somebody implements a custom climate to control an unsupported gree model by calling in directly IRremoteESP8266: https://github.com/Hagakurje/ESPHome_Gree_AC (it is known that custom platforms are to be deprecated/removed)

Here someone is sending captured IR commands in RAW or other likesome protocols using remote_transmitter platform, and integrates the climate functionality as template fan: https://github.com/esphome/feature-requests/issues/2240 (there are many cases when this would be enough).

Here some people have HVAC devices accessible via ModBUS and would like to implement it as a climate: https://github.com/esphome/feature-requests/issues/2752, https://github.com/esphome/feature-requests/issues/2582, https://github.com/esphome/feature-requests/issues/2687

Also applicable: https://github.com/esphome/feature-requests/issues/2323, https://github.com/esphome/feature-requests/issues/2265, https://github.com/esphome/feature-requests/issues/2149, https://github.com/esphome/feature-requests/issues/2105, https://github.com/esphome/feature-requests/issues/2070, https://github.com/esphome/feature-requests/issues/1909, https://github.com/esphome/feature-requests/issues/1855, https://github.com/esphome/feature-requests/issues/1797 (again, with custom), https://github.com/esphome/feature-requests/issues/1743, https://github.com/esphome/feature-requests/issues/1521, https://github.com/esphome/feature-requests/issues/1223, https://github.com/esphome/feature-requests/issues/689, https://github.com/esphome/feature-requests/issues/478 and so on...

Additional context The concept behind Tasmota's IRHVAC is nice: https://tasmota.github.io/docs/Tasmota-IR/#sending-irhvac-commands It's basically a wrapper around IRremoteESP8266 where you just select a protocol and the commands you'd like to send.

A kind of template climate component would be very flexible in ESPHome, where anyone could mix and match the features supported by IRremoteESP8266 and his device. Eg. some devices only have vertical swing, then let the component not expose the horizontal swing. Advanced functions could be called with template switches.

nagyrobi commented 3 months ago

@rob-deutsch

rob-deutsch commented 3 months ago

I don't have any opinion on this. I am just the codeowner for the heatpumpir integration.

If you're wanting to do something novel then I'd recommend reading the PR discussion for the heatpumpir integration where the pros/cons were discussed.

https://github.com/esphome/esphome/pull/1343

CiniBN commented 1 week ago

Hello! Will there be something from this platform? I am surprised that it does not exist yet. There are countless devices that communicate on Modbus and this platform would be very useful for that. I currently have a heat pump that I integrated with ESP32 on Modbus with select and switch components, but it's not the real thing. Robi! Te tudsz erről valami biztatót?