I am trying to have my heating switched on based on two values: the temperature in the room (must be lower than 18 degrees) and my current energy yield (must be higher than 999 kWh).
I’ve tried several ways but can’t get it done, what am I doing wrong?
I’ve tried:
alias: Keuken - Verwarming aan (wanneer productie >1kWh)
description: "Set heater on when temperature below 18 degrees and production above 1kWh"
trigger:
- platform: numeric_state
entity_id: sensor.p1_net_electricity_point
id: actueel_verbruik
below: "-999"
- platform: numeric_state
entity_id: sensor.hue_keuken
id: keuken_temperatuur
below: 18
condition:
- and:
- condition: trigger
id: actueel_verbruik
- condition: trigger
id: keuken_temperatuur
action:
- device_id: 26a429cf3ab32619274f9ae6346c6ce7
domain: mobile_app
type: notify
message: Verwarming keuken aan (eigen verbruik)
title: Keuken
- type: turn_on
device_id: 1aa9dc4481ae36a74c2ee60b4e15d8e0
entity_id: light.verwarming
domain: light
mode: single
and also:
alias: Keuken aan
description: ""
trigger:
- type: power
platform: device
device_id: 7ee2a9bca886eb18eaa7d6030277daa5
entity_id: sensor.p1_net_electricity_point
domain: sensor
below: -999
condition:
- condition: numeric_state
entity_id: sensor.hue_keuken
below: 18
action:
- device_id: 26a429cf3ab32619274f9ae6346c6ce7
domain: mobile_app
type: notify
message: Verwarming keuken aan (eigen verbruik)
title: Keuken 2
- type: turn_on
device_id: 1aa9dc4481ae36a74c2ee60b4e15d8e0
entity_id: light.verwarming
domain: light
mode: single
neither activated automatically even though the conditions were indeed met (via test in the conditions of the automation).
What am I doing wrong here?