TP link smart strip issues

Hey everyone, just purchased a tp link HS300 smart strip, and it seems really cool. I love the energy monitoring function. However, having set up an automation to control a space heater with it, it seemed to be working great. Then last night, the strip became unavailable, defaulted to on, and disregarded my automation. Anyone have any experience with this?

- id: turn_on_veg_tent_heater
  alias: Turn on Veg Tent Heater
  trigger:
  - platform: numeric_state
    entity_id: sensor.veg_ecotemp
    below: 78
  action:
  - type: turn_on
    device_id: 3fc8e9e4f5213757c2b84a1648fe6b28
    entity_id: switch.plug_1vegheater
    domain: switch
- id: turn_off_veg_tent_heater
  alias: Turn off Veg Tent Heater
  trigger:
  - platform: numeric_state
    entity_id: sensor.veg_ecotemp
    above: 79
  action:
  - service: switch.turn_off
    data: {}
    target:
      entity_id: switch.plug_1vegheater

That space heater how many amps does it draw and do you have anything else connected?
The HS300 is only rated to 1875W in total and most devices do not handle longer periods at the limits well.

it draws 1350, max load on the strip would be <1500. Working great for a few hours until it became unavailable for some reason

I think ultimately I have to figure out why the automation didn’t continue after it lost connection. The room got to 130 degrees last night which is no bueno

Looking at your automation then I think the trigger only happens when you pass the value and not if you are just changing values above or under.

interesting, should I not be using a numeric state trigger?

I have not looked that much into your set up, but if you want it to always run when being below or above a value, then you need a numeric state condition.

Problem solved! This is the new automation


alias: Veg heater
description: ""
trigger:
  - platform: state
    entity_id:
      - sensor.veg_ecotemp
condition: []
action:
  - if:
      - condition: numeric_state
        entity_id: sensor.veg_ecotemp
        below: input_number.veg_temp
    then:
      - type: turn_on
        device_id: 3fc8e9e4f5213757c2b84a1648fe6b28
        entity_id: switch.plug_1vegheater
        domain: switch
    else:
      - type: turn_off
        device_id: 3fc8e9e4f5213757c2b84a1648fe6b28
        entity_id: switch.plug_1vegheater
        domain: switch
mode: single