This works when I manually trigger the notification. It will send the notification to my phone. The message looks correct. Is there a way to make it high, medium, or low priority?
The issue is with the trigger. Home Assistant doesn’t send the notification automatically when Aranet4 PRO reads a lower CO2 value.
Home Assistant 2023.8.1
Supervisor 2023.07.1
Operating System 10.4
Frontend 20230802.0 - latest
Simple script that doesn’t auto send phone notifications. Manually it works. I get the phone notification within a couple of seconds. Yes I want it to send me a note when the CO2 is below 760
. Just testing / trying it out…
alias: High CO2 levels
description: ""
trigger:
- type: carbon_dioxide
platform: device
device_id: 9a...............................10f
entity_id: 83..................................bba
domain: sensor
below: 760
condition: []
action:
- variables:
co2_ppm: "{{ states('sensor.60_c0_bf_48_4a_32_carbon_dioxide') }}"
temp: "{{ states('sensor.60_c0_bf_48_4a_32_temperature') }}"
battery: "{{ states('sensor.60_c0_bf_48_4a_32_battery') }}"
humidity: "{{ states('sensor.60_c0_bf_48_4a_32_humidity') }}"
pressure: "{{ states('sensor.60_c0_bf_48_4a_32_pressure') }}"
- device_id: 00a24b35012b184a4bd78390f7934509
domain: mobile_app
type: notify
message: "{{co2_ppm}}ppm / {{temp}}C / {{battery}}%"
title: "{{co2_ppm}}ppm "
mode: single
Value looks right as see in http://homeassistant.local:8123/developer-tools/state