I currently manage two room heaters via the generic_thermostat, one is on all the time (bedroom) and the lounge heater enabled / disabled manually via my phone or PC HA dashboards.
I would like to expand it two ways if possible (or this could be the tail wagging the dog etc).
To have a remote physical displ(ay/ies) of what generic_thermostat considers the target and actual temperatures are (maybe a LillyGo TFT / ESP32) and
some form of physical Up / Down temperature control buttons or a rotary encoder etc (could also be the same hardware as the display etc)?
My issue is Iām not a coder so donāt really have any idea what I would need to do with the existing code to be able to provide such things?
Iāve tried to test an Ikea ZigBee pushbutton to allow the Up / Down function to impact the target temperature but am not sure if that feature is available with the above code or what to look for if it is?
Would I need to add code to ārevealā externally things like the current temp, the target temp and if itās heating or idle or should they already be present please?
Thanks for reading etc. Iād love to diy these features and may be able to copy / paste some code from my CO2 monitor re the TTGO display etc.
So the temperatures (as seen by generic_thermostat) are not something I can can just find / select from the card editor as an entity etc?
I mean, for my additional TTGO TFT idea to display of the current temperature I can (someone should be able to ) read the lounge temperature sensor and display that value on said ESP32/TFT, like a repeater. It would be reading of the generic_thermostat target value would require said interfacing with this āsoftā entity (and that appears to be way outside my skillset). ;-(
Iāll see if my coding friend can make more sense of it for me.
Yes, I appreciate that (as thatās how Iām currently doing it), itās just how to also change that via another ādeviceā? Like an ESP32 with Up/Down buttons or for testing, an existing Ikea / Hue ZigBee remote?
I āgetā the ESPHome thing (conceptually, I donāt have the skills myself) but I tried creating an automation and was able to select the trigger (Ikea / Hue Up / down button presses as triggers) but then not what to select in the Action to make anything happen to the generic_thermostat?
So do I look for the state you suggested ( climate.lounge) or do I have to create some form of intermediate code?
FWIW Iāve just set a Ikea Up/Down where the Up press sets the target temp to 1 DegC (as confirmed on my generic_thermostat Card) and that works but not what I really need, and that is to increment it by say 1 DegC?
Wahey! It worked, first time, thanks! (Very much).
So I would create a second automation that would allow me to set the target temperature so that bit is covered. The next bit would be reading the lounge temperature sensor and reporting that on a repeater display and also somehow displaying the target temperature for a few seconds as I change it.
That will have to be for another day, got to go visit my Mum in hospital as she had a stroke before xmas ā¦ ;-(
You can put more than one trigger into a single automation.
Iām guessing that when you press the ādownā part of the button it produces a dim_down subtype instead of dim_up. If my guess is correct then the following version should work (otherwise not).
You may also consider using an existing automation blueprint designed for your particular model of IKEA button. The blueprint understands all of the buttonās events and makes it easier for you to compose the automation. I donāt know the model you have so hereās a list of blueprints containing the word āIkeaā. https://community.home-assistant.io/search?q=Ikea%20%23blueprints-exchange
Very sorry about your motherās health. I hope she will be able to recover from the stroke.
Please consider marking my post above with the Solution tag. It will automatically place a check-mark next to the topicās title which signals to other users that this topic has been resolved. This helps users find answers to similar questions.
I forgot to thanks you for your kind thoughts re my mum (93).
Whilst this stroke seems to have hit her quite hard, she has always been strong and Iāve noticed the improvement in her left leg, since we started helping with the physio.
Itās all just more things to have to deal with, my Mrs was diagnosed with dementia at the beginning of last year and me with prostate cancer soon after.
But at least we have all lived a reasonable and happy lives so far and are thankful we arenāt being bombed in our beds.
I now have the current lounge temperature value being displayed on the Switchbot Meter temperature and humidity sensor (with inbuilt LCD display), on HA on the generic_thermostat card and now (with some help), on a TTGO ESP32 with integrated TFT display.
What I would like to do now is to also display the target temperature as set on the generic_thermostat but donāt really know where / how to approach that one?
This is the code I used to get the current temp on the display:
This is the (your) automation I am currently using to adjust the generic_thermostat from an Ikea remote. I should be able to transfer that function to the same ESP32/display as mentioned above.
The last thing will be to see if I can change the colour of the thermostat text, depending on whatās going on. Like with the generic_thermostat turned off it could just display the current temperature in white. If itās on then the target temperature could be also there but in green if met and red when heating?
All just a pipe dream as far as my coding and understanding of it all is concerned ā¦
In answer to my own question and in case it helps anyone else, to āexposeā the target temperature of the thermostat I added some code to configuration.yaml