79535366

Date: 2025-03-26 04:07:00
Score: 1.5
Natty:
Report link

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
Reasons:
  • Blacklisted phrase (1): appreciated
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Md islam