Temperature range

Hellp im i have a baseboard heater connected thru a ssr, i want it stay between a certain temperature, i tryed a few diffrent things but with no success ,

sensor:
  - platform: dallas
    address: 0xea3c01f096845628
    name: "Wellhouse Temperature"
    on_value_range:
    - below: 8.0
      then:
        - switch.turn_on: heater
    - above: 10.0
      then:
        - switch.turn_off: heater

the heater switch shows up in entities and does work, and the temperature is working but just not the automation part

You may want to use a thermostat:

im trying to keep it just on the espboard, so that if my wifi every fails or ha fails the heater will run still run, this is all in my wellhouse

Set up a climate entity.

climate:
  - platform: thermostat
    name: "Thermostat Climate Controller"
    sensor: my_temperature_sensor
    default_target_temperature_low: 20 °C
    min_heating_off_time: 300s
    min_heating_run_time: 300s
    min_idle_time: 30s
    heat_action:
      - switch.turn_on: heater
    idle_action:
      - switch.turn_off: heater
2 Likes

i tryed that one, didnt work

sensor:
  - platform: dallas
    address: 0xea3c01f096845628
    name: "Wellhouse Temperature"
    id: wellhouse_temperature
    on_value_range:
      - above: 8.0
        below: 6.0
        then:
          - switch.turn_on: heater
      - below: 6.0
        then:
          - switch.turn_off: heater
      - above: 8.0
        then:
          - switch.turn_off: heater

got that working

1 Like

ok apparently this isnt working eather, ill try the climate entry again

Soo that isnt working correctly eather, im just looking for something simple two turn off and turn on at two set values

This should work

sensor:
  - platform: dallas
    address: 0xea3c01f096845628
    name: "Wellhouse Temperature"
    id: wellhouse_temperature
    on_value_range:
      - below: 6.0
        then:
          - switch.turn_on: heater
      - above: 8.0
        then:
          - switch.turn_off: heater

What is the difference between this and the initial post? (other dan the values)

edit: oh, I see, some spacing :wink: