Help with temperature notification

Hey,
i have a honeywell system.
goal: notify when the hotwater falls below “28”

my entity for the water (see below) shows a state of “off/on”, however there is an attribute which is the temperate itself. (current_temperature).

so i created the following 2 template values to be able to use this in the automation:

      hotwater_temperature_tracker:
        friendly_name: "Hot Water Temperature Tracker"
        unit_of_measurement: "°C"
        value_template: "{{ state_attr('water_heater.dhw_controller', 'current_temperature') }}"
      hotwater_temperature_tracker_numeric:
        friendly_name: "Hot Water Temperature Tracker Numeric"
        value_template: '{{ float(states.water_heater.dhw_controller.attributes["current_temperature"]) }}'

my automation however, doesnt work, when i try either template values?

- alias: hot water temp below 28
  trigger:
    platform: numeric_state
    entity_id: sensor.hotwater_temperature_tracker_numeric
    above: 0
    below: 28
    #for:
      #minutes: 15
  action:
  - service: persistent_notification.create
    data_template:
      message: 'Hot water temperature is low, its now at: {{ sensor.hotwater_temperature_tracker_numeric
        }}'
      title: Hot Water below 28
  - service: notify.notify
    data_template:
      message: 'Hot water temperature is low, its now at: {{ sensor.hotwater_temperature_tracker_numeric
        }}'
      title: hot Water below 28
  id: hotwateralert

got it working…sorry

- alias: warn on low hot water temp
  id: low_hot_water_temp
  trigger:
  - platform: numeric_state
    entity_id: sensor.hotwater_temperature_tracker
    below: 25
    for:
      minutes: 10
  action:
  - service: persistent_notification.create
    data_template:
      message: Hot Water is below 25 degrees
      title: Hot Water <25oc
  - service: notify.notify
    data_template:
      message: Hot Water is below 25 degrees
      title: Hot Water <25oc
  - service: notify.alexa_media
    data_template:
      message: <amazon:effect name='whispered'>Hot Water is below 25 degrees</amazon:effect>
      data:
        type: announce
        method: speak
      target: media_player.jamie_s_echo_spot
1 Like