HomeAssistant / Custom API for thermostats
HomeAssistant is a platform for all integrations. Offering a Home Assistant integration or custom API ability would allow Partners to use unsupported thermostats to be controlled via the Platform.
(the thermostat I use is a Bosch EasyAir).
Log in to comment and vote
Comments6
Harlequin Star
Nov 5
I run Home Assistant at my short-term rental and use Hospitable reservation data to drive the heating. My thermostat is a Hive, which Home Assistant supports natively.
This is how I do it. A small script polls the Hospitable API for the current and next reservation and publishes the result to Home Assistant over MQTT. Home Assistant then switches the Hive between two modes. While a guest is booked, or within 24 hours of check-in, it runs the normal comfort schedule. When the property is empty, it drops to a fixed lower setpoint. Guests can still adjust the temperature, and any change they make expires after a few hours so the house returns to the plan.
It works well, but polling is a workaround. I’d much rather Hospitable told Home Assistant when to act. The most useful thing would be a generic outbound event or webhook for “guest arriving soon” and “guest has checked out”, as Amethyst Bagel suggested above. That would cover almost any thermostat through Home Assistant without Hospitable having to support each brand, which seems more practical than a custom thermostat API.
Sapphire Shuttle
May 8
I do a lot of this through automations in my HA system by triggering them off of the calendar events that I’m capturing with Rental Control (note, I’m the developer of it). I just moved over to Hospitable a couple of weeks ago, I can state that there’s a lot we can already do just from the data we have without going through the API. My biggest peeve right now is that I can’t publish my door lock codes back into the smartlock_code variable because it’s been locked behind a vendor authorized OAuth API and not the regular API token 😠
Amethyst Bagel
Apr 27
It just dawned on me today that if Hospitable were to integrate with Nabu Casa’s Home Assistant (HA)… it would by extension solve for integration with Mysa, Smart Life, TCL, and probably a whole lot more. I’m in the process of building my own integration with a Home Assistant Green device, and I’m having to take webhooks from reservation CRUD operations and use them to manage my own queue of future thermostat actions. If Hospitable could instead be the one to say “it’s time to set the temp to xyz”, then the plumbing inside of HA would be greatly simplified. And this might not even require any special integration with HA… Just publishing a generic webhook for real-time thermostat actions would let HA receive the trigger that lets it know a guest is on the way or has just departed.
Harlequin Star
Nov 5
I’ve now built a Home Assistant custom integration for Hospitable that you can install through HACS. It provides reservation calendars, booked-occupancy and upcoming-arrival sensors, plus an occupancy-based heating blueprint for any compatible HA climate entity. It supports optional Nabu Casa webhooks, with polling as a fallback. I’m using it with my property and would welcome feedback if you’d like to try it:
https://github.com/flinty1970/hospitable-home-assistant
Blush Frog
Mar 16, 2025
Extent the API to thermostat would be great for me. I use as well Home Assistant in each of my properties.
Harlequin Star
Nov 5
I’ve built a Hospitable integration for Home Assistant, installable through HACS, with support for multiple properties and a heating blueprint that works with your chosen HA climate entity. It uses reservation data to provide booked-occupancy and pre-arrival information. You’re welcome to try it—I’d appreciate feedback:
https://github.com/flinty1970/hospitable-home-assistant