Relay controlling pellet stove turns on randomly...?

hey!
so ive got HA setup on an RPi4 running hassos
the problem im having, if one of the relay boards im using to control my pellet stove, seems to randomly turn on the stove during the day, or night etc… and i cant find out what is triggering it!

i have noticed that the relay board considers itself a ‘light’ though.
(i am well aware of the limitations with changing device types - im not concerned about this - im just including it for reference if it matters somehow)

i setup an automation to “control” the temperature…
and im thinking it might be responsible for the random turn-ons of this relay…?

i use a zigbee 4 channel relay - ( using a nortek controls zigbee/zwave USB stick for everything)

pellet stoves dont work well with thermostats, since most of them have a ±1 degree set point

in short, i want it to turn off the stove when a specific temp sensor reaches 65f
and leave stove off, till the temp on that same sensor falls below 58f

i only want this functionality to happen between 10pm, and 9am

im fairly new to HA, and from the bit of browsing ive done on the forums, am a bit apprehensive to ask any questions on here at all.

people talk about YAML editing, and i dont know any basics of editing things…
i’d prefer if possible to use the UI to make changes

my automation works great during the night time hours, turning the pellet stove on/off as nedded via the automation

my main issue are the random turn ons of its control relay during the day!
(always before the automation condition time)
sometimes it happens before noon, sometimes at 8pm, but when it happens, its when the temp falls below 58f
it doesn’t always turn on randomly though… sometimes it’ll go a week or more without this issue (even when the temp is below 58f)

i thought automatons were supposed to run in order, and i setup a condition to only allow it to run while the pellet stove relay is already ON… so confused lol

any thoughts on how to track down this bug?

thanks!
Screenshot 2022-03-18 211440

alias: pellet stove cooldown
description: ''
trigger:
  - type: temperature
    platform: device
    device_id: 82d63f87809b08119c0a52a5eb16a142
    entity_id: sensor.lumi_lumi_weather_temperature
    domain: sensor
    above: 65
condition:
  - condition: device
    type: is_on
    device_id: 38b3da881334274b2be17eb39d79dd76
    entity_id: light.china_relay_on_off
    domain: light
  - condition: time
    before: '09:00:00'
    after: '22:00:00'
    weekday:
      - mon
      - tue
      - wed
      - thu
      - fri
      - sat
      - sun
action:
  - type: turn_off
    device_id: 38b3da881334274b2be17eb39d79dd76
    entity_id: light.china_relay_on_off
    domain: light
  - wait_for_trigger:
      - type: temperature
        platform: device
        device_id: 82d63f87809b08119c0a52a5eb16a142
        entity_id: sensor.lumi_lumi_weather_temperature
        domain: sensor
        below: 58
    continue_on_timeout: false
  - type: turn_on
    device_id: 38b3da881334274b2be17eb39d79dd76
    entity_id: light.china_relay_on_off
    domain: light
mode: single

There is an automation trace feature you can use to check.

1 Like

awesome!!! thanks for the tip!
(had no idea that trace function existed)
looks like i need to set a timeout based on what the trace showed!

when setting up a timeout, the text field doesn’t specify minutes. hours, etc… what is the unit of time measure in the UI for the ‘timeout’ setting?

thx!

timeout

It’s in seconds.

1 Like

thanks!
everything is all fixed up now :^)