My goal is to trigger this automation when the radon reading is above 2.
The Log shows:
- Error in ‘Radon Fan Start above x (A.X.)’ trigger: In ‘numeric_state’ condition: no entity specified
sensor.crawlspace_radon_pciperliter is a helper which scales the value for a unit of measure different from the sensor’s default UOM. I see it as an entity in the Developer Tools > States list and the state is numeric as expected.
I think I’ve coded the trigger correctly, so why the error?
Thx!
- id: 69a933c2-6fa6-4b9d-873d-f5ff8d6764ef2
alias: Radon Fan Start above x (A.X.)
trigger:
- platform: numeric_state
entity_id: sensor.crawlspace_radon_pciperliter
above: 2 # triggers when crossing from below this value
condition:
- condition: state
entity_id: switch.radon_fan
state: "off"
action:
- service: switch.turn_on
target:
entity_id: switch.radon_fan
data: {}
- service: switch.turn_off
target:
entity_id: switch.crawl_dehumidifier
data: {}
- service: notify.mobile_app_bucks_iphone
data:
message: (A.X.) Crawl radon above threshold
title: "HA: Energized the radon fan, de-energized the dehumidifier"