I have an issue when defining my automation starter, data name contains dot - PM2.5. Validation fails with message: I am essentially trying to have the automation task turn on my air purifier when the PM 2.5 level is greater then or equal to 35 ug/m3. I currently have the Govee Home air quality monitor. Any assistance would be appreciated.
- type: device.state.SensorState
state: currentSensorStateData.PM2.5.rawValue
//full metadata
metadata:
name: high PM 2.5 LEVELS
description: high PM 2.5
automations:
- starters:
- type: device.state.SensorState
device: Bedroom Sensor - Bedroom
state: currentSensorStateData.PM2.5.rawValue
is: 35ug/m3
actions:
- type: device.command.OnOff
devices:
- Bedroom Fan - Bedroom
on: true