I have added a REST sensor to read if at the moment an NL alert is active
- platform: rest
resource: https://api.public-warning.app/api/v1/providers/nl-alert/alerts?filter=last-24h
scan_interval: 300
unique_id: "nlAlert"
name: "nlAlert"
value_template: "{{ value_json.data | selectattr('stop_at','eq',null)| list | count}}"
If the value is above 0 My ventilation should be turned off.
This should work, tested this without the filter but not in real live.
But I actually only need this sensor to be activated if my lat/lan it within the specified area.
url without filter: https://api.public-warning.app/api/v1/providers/nl-alert/alerts
Would this be easy to do or should I just accept that sometimes my ventilation is off if there is an issue somewhere else. This last scenario isn’t fatal.