Hi there!
I’m really new in homeautomation! I found the combination of home assistant and ESP-Home and I was very excited.
So far so good. After some tests I would make my own room-temperature-controller with some special features but I’m struggeling with some basics…
I made a climate config with thermostat. The valus are shown in HA and I can change it too.
But how could I display the setpoint on my local display (ili9341)? It’s very important for me, that this ESP-Node could work in standalone-mode in the case of a server breakdown.
I hope, that you know what’s my plan…
Okay, now I’ve understood…
lambda calls
From lambdas, you can call several methods on all binary sensors to do some advanced stuff.
Attributes: All climate devices have read-only attributes to get the current state of the device.
// Current mode, type: ClimateMode (enum)
id(my_climate).mode
// Current temperature, type: float (degrees)
id(my_climate).current_temperature
// Target temperature, type: float (degrees)
id(my_climate).target_temperature
// Lower Target temperature, type: float (degrees)
id(my_climate).target_temperature_low
// High Target temperature, type: float (degrees)
id(my_climate).target_temperature_high
// Away mode, type: bool
id(my_climate).away
// Fan mode, type: FanMode (enum)
id(my_climate).fan_mode
// Swing mode, type: SwingMode (enum)
id(my_climate).swing_mode
// Current action (currentl on idle, cooling, heating, etc.), ClimateAction (enum)
id(my_climate).action
No, it was the lambda code that I’ve missed but I’ve found it.
And yes:
That’s my TFT including a XPT2046 touchscreen
1 Like