kerimcelik
(Kerimcelik)
February 24, 2023, 7:01pm
1
I need codes that I can change the input box and the variable from the front interface related to water heating automation, can you help me?
I have a temperature sensor and a switch. When I enter the set value, the switch I will use for the heater will turn on or off accordingly.
kerimcelik
(Kerimcelik)
February 24, 2023, 7:43pm
3
I’ve seen generic Thermostat, but it doesn’t allow me to define input auxiliary input in the application.
I’m not sure I know where to write this code, it says configuration.yml in the source. I’m just starting out, sorry I’m a beginner.
Example;
generic_water_heater:
bath_water:
heater_switch: switch.test_prizi_socket_1
temperature_sensor: sensor.internal_temperature
target_temperature: input_number.set_test
delta_temperature: input_number.delta
Troon
(Troon)
February 25, 2023, 5:16pm
4
The code you’ve pasted comes from this custom component . Follow the installation instructions there if you really want to use that one.
The generic thermostat does allow for temperature adjustments with the climate.set_temperature
service, which you can call from an automation triggered by changes to your input number.
I have this line at the top of my configuration.yaml
file:
climate: !include climate.yaml
and then climate.yaml
looks like this:
- platform: generic_thermostat
unique_id: 44cb51f9-0ce8-4bd4-8de1-89509c0f6a51
name: Central heating
heater: switch.chc_central_heating_relay
target_sensor: sensor.hall_temperature
min_temp: 15.0
max_temp: 22.0
target_temp: 19.0
sleep_temp: 17.0
comfort_temp: 19.0
away_temp: 16.0
cold_tolerance: 0.1
hot_tolerance: 0.1
precision: 0.1
min_cycle_duration:
minutes: 10
I use the preset modes comfort
, sleep
and away
for the three temperatures I need, and select those via time- and occupancy-based automations — but you could just as easily set the temperature directly.
1 Like
kerimcelik
(Kerimcelik)
February 25, 2023, 5:54pm
5
Thank you, I will work on it and post the result.
kerimcelik
(Kerimcelik)
February 26, 2023, 11:37am
6
Hello, when I added the following codes to configration.yyaml, I solved the problem, thank you for your attention.
climate:
- platform: generic_thermostat
name: Combi
heater: switch.test_prizi_socket_1
target_sensor: sensor.internal_temperature
min_temp: 15
max_temp: 30
hot_tolerance: 0.5
cold_tolerance: 0.5
1 Like