Dog Water Bowl Heater

Good day people. I am very new to Home Assistant and I can’t figure out something that should be simple. I am trying to make an automation that will grab temperature data from OpenWeatherMap, and if the temperature is freezing (Below 0 C) then it would turn on the switch that turns on my dog’s heated water bowl. Before someone asks, my dog is a husky and enjoys being outside when it’s freezing. I built an automation with the GUI in home assistant but it doesn’t look like it’s working.

Here is the YAML

alias: Dog Water ON
description: ''
trigger:
  - platform: numeric_state
    entity_id: sensor.openweathermap_feels_like_temperature
    below: '10'
    attribute: unit_of_measurement
condition: []
action:
  - type: turn_on
    device_id: b833e450a964822143cb7b99a3f203f5
    entity_id: switch.garden_light_socket_1
    domain: switch
    metadata:
      secondary: false
mode: single

remove this…

1 Like

Still will not work with the OpenWeatherMap. It’s like it doesn’t see the data. I did a test with a indoor sensor and it worked.

Is the temperature already below 10?

If so then you need to wait till the temp goes above 10 and then back below 10 again.

the numeric state trigger only fires when the value crosses the threshold.

Thank you that must be it

1 Like