I started to use HA a month ago and I am trying to create a “home made” RPi thermostat to replace the old one. I can do a fixed set point to trigger cooling start/stop, like this:
But every time I want to change the set point (say 24C may be too cold, adjust it to 26), I have to modify the configuration file. And I think the input slider could be a good interface for this use case. Will HA allows to use slider value as a variable to be compared with sensor readings? ideally, it will look like this:
I’m also looking to use input_slider in an automation. but for setting brightness on scenes for lights. But I’m not having much luck finding a working code example. Much like you guys.
As soon as I do though, I will be updating the component page and submitting a PR for it to save others the headache.
Currently it’s not possible to enter a template as value to the above key for the numeric_state platform. A workaround is to use a template sensor as middleman or just use the template trigger in the automation.
Hi,
I have a similar scenario and I have tryied to use the code above, but unfortunately it goes in error. I want to start heating when the temperature is between the two input.slider stepoints and humidity is > 49. Here is my code:
the whole point of it is to increase automation possibilities, and program in python. there are a bunch of people on here using it as well, and they all seem keen to help everyone else.
Daniel, I just found that I can adjust the target temperature by clicking on the group item and it is available to me in the pop-up. I had assumed it would display as a group item.
I was hoping to use sliders for this reason as well. I can’t use the generic thermostat because I don’t have the necessary toggle switch (I’ve got a RPi zero hard wired into my central heating controller, so it basically shorts out the ‘advance’ button using a script for the GPIO, which simulates the physical button being pressed).
Has there been any progress with this, or is it still not possible to set the above / below values with the input_slider setting?
I’m building a Raspberry Pi-based thermostat for my heat pump right now. Here’s an overview of the direction I’m taking with it.
The Pi will essentially act as a smart brain for the heat pump. It has the relays to connect with the heat pump controller, and it has the logic for determining when to turn on and off, switch from heat to cool and back, deal with auxiliary and emergency heat, etc. But it will not have sensors; what it will have is communication with HA via MQTT. I’m hacking together some HA controls that will include a master enable switch, slider for set point, manual fan, and emergency heat. Along with the states of those controls, HA will also be sending the outside and inside temps. I’ll also have it send appropriate values when HA goes to and from away mode.
Right now, I’m developing the logic on a Pi 3, but I hope to send it over to a Pi Zero W for final installation at the heat pump. The only UI will be the HA dashboard, so I don’t need a lot of grunt attached to the heat pump.
I’ve just gotten started with HA within the last couple of days, so this is still very alpha, but I’ve made some decent progress so far.
That is actually a very good tip, but I was wondering if there is a way of turning it on/off. If I had it, I could create an automation to also only make it work during certain times of the day.
That seems like an overly aggressive way to handle your heating. Running an automation like that could bog down your system. Why not just trigger off the temperature changes?