Nie wiem czy o to właśnie pytałeś:
- platform: mqtt
name: "PM2.5"
state_topic: "node-red/Airly/PM25/value"
unit_of_measurement: 'µg/m³'
payload_available: "online"
payload_not_available: "offline"
icon: mdi:thermometer-lines