I’m working on a custom integration for HomeAssistant to control a local HRV system (Buva Ecostream). You can find the code written here: Github.
So far, I can get data from sensors into HASS. However, I also want to control the speed of the fans from home assistant. To do that, a json body must be sent over the websockets connection in the following stye:
How can I have a service in homeassistant exposed from the code, to add a slider to HASS which sets the value for man_override_set (between 60 and 150)?
Sorry if this is a stupid question! I’m pretty new to HASS and trying to figure things out!
Create a number entity with its mode set to auto, which will display as a slider ans use the set_native_value method to pass your json to your websocket when it is changed.
Thank you for your response. I completely forgot about the ‘add integration’ part after moving the install files into Home Assistant. All is working now, thanks!