Ecowitt / ambient weather gateway not triggering action

so i have a gw1000 temperature sensor that appears to be properly hooked up to my home assistant as it is correctly displaying the temperature, however when using the ecowitt gateway as a device and the attribute being “indoor temperature” which sees to be the correct entity based on looking at the entity, when the device changes and is below the temperature set, it does not trigger the action. i do not know why. i cant figure it out. the temperature is clearly changing as i can see it changing temperature and every time it changes temperature it is below the temperature i set. it still does not trigger the action.can someone please explain what could possibly be wrong?

home assisant supervised installed on docker on raspberry pi running raspbian (raspberry pi os)

alias: kitchen/ashley temp control off
description: ''
trigger:
  - type: temperature
    platform: device
    device_id: 32c7f7594be032ec7323be12874eee48
    entity_id: sensor.indoor_temperature
    domain: sensor
    above: 0
    below: 68
  - type: temperature
    platform: device
    device_id: c576138fbfe832610518e5ecb52037a3
    entity_id: sensor.ashley_h_t_temperature
    domain: sensor
    below: 70
condition: []
action:
  - type: turn_off
    device_id: 1bcdd611bd3e15f1fdf3c3fe0369592e
    entity_id: switch.main_room_dehumidifier
    domain: switch
  - type: turn_off
    device_id: 7b42f7c56de0b17227502e28fe71cdce
    entity_id: switch.kitchen_ac_2
    domain: switch
mode: parallel
max: 10

In theory, this should turn off the kitchen ac 2 and dehumidifier if the temperature goes below 68 right? Or am I doing something wrong…

Try using a numeric state trigger. And remember, the state has to go from above 68 to below 68 to trigger. Changing from 64 to 63 for example will not trigger it.

Ohhhh. Can I make it so if it changes and is under what I specified it turns off? Maybe use a condition? I’m just worried that if the home assistant restarts or something happens it might stay on permanently

You can. This will trigger on all changes of the sensor and its attributes:

trigger:
  - type: temperature
    platform: state
    entity_id: sensor.indoor_temperature

You then filter this with a condition so that the actions are only performed if:

condition:
  - condition: numeric_state
    entity_id: sensor.indoor_temperature
    below: 68

It works like a charm, thanks duderooni :slight_smile: