cancel
Showing results for 
Search instead for 
Did you mean: 

How to use sensor if data name contains dot?

surikaat
Community Member

Hi

I have a issue when defining my automation starter, data name contains dot - PM2.5. Validation fails with message:

  • [5] isn’t a valid state field for [SensorStateState]. The list of supported field paths: [currentSensorState, rawValue].

 

- type: device.state.SensorState 
  state: currentSensorStateData.PM2.5.rawValue

 


Is there some workaround for the issue?

 

10 REPLIES 10

ShawnWard
Community Member

Always wanted to find a reliable casino, and Adelaide Casino AU pleasantly surprised me! The atmosphere is like in a real casino, and bonuses make the game even more interesting. Withdrawal of funds without problems, the support is responsive. A great choice for fans of gambling!

GabrielaG
Community Specialist
Community Specialist

Hi 

 

Thanks for reaching out to the Google Nest community. I'm sorry you're having trouble starting an automation with your sensor, but there's no need to worry; I'm happy to help you right now.

  • Is the sensor you are trying to create the automation for a Nest Sensor? If so, what is the sensor's generation?
  • Are you trying to create automation in the Google Home app?
  • Is this the first time you are trying to create an Automation?

Any additional details you can provide will be helpful.

 

 Best regards,

Gabriela

 

Sensor data originates from Airgradient Air Quality Monitor and is synced to Google through Homeassistant. Yes I am first time writing Google Home automations. Probably I could somehow manipulate the data before it's synced to Google but I was at first hoping there is some syntax that would support such data field. 

GabrielaG
Community Specialist
Community Specialist

Hi @surikaat 

 

Thank you for your reply. I appreciate the information you provided me; it looks like the problem is with the Automation, but I need to confirm a couple of things:

  • Do you have your Air Quality Monitor Set up in the Google Home app?
  • Did you try to remove the Air Quality Monitor and add it again in the app?

Any additional details you can provide will be helpful.

 

Regards,

Gabriela

Yes I have it set it up. I can do automations with other sensors on same device successfully. The issue exist only with the sensor which name contains dot. There I can't figure out any syntax that works. 

GabrielaG
Community Specialist
Community Specialist

Hi @surikaat,

 

Thank you for your reply. I appreciate the information you provided me. I understand the issue exists only with the sensor whose name contains a dot.

I need to confirm a couple if you have done some troubleshooting steps with the Air Quality Monitor.

  • Did you try to reset or restart the Air Quality Monitor?
  • Did you contact Air Quality Monitor support?
  • Did you try to delete the Automation in the Google Home app and Create a new Automation?
  • Did you try to change the name of the sensor in the Google Home app?

Any additional details you can provide will be helpful.

 

Regards,

Gabriela

surikaat
Community Member

The initial post I made. There you can see exactly what is the issue. It doesn't help if I change the sensor name, as this is inner layer issue, the SensorStateData name is something which name can't be changed at Home app or somewhere else. Question is only about the automation code syntax, is there some way to wrap the name containg dot or not? 

GabrielaG
Community Specialist
Community Specialist

Hi @surikaat,

 

Thank you for keeping me updated. I'm sorry to hear your problem is still not resolved. I'm happy to continue assisting you.

To change the name of the Air Quality Monitor, I recommend doing a factory reset on the device and then setting it back in the Google Home app to create a new automation.

If you still have problems with your device, it's better you reach out with your Air Quality Monitor support.

Feel free to keep us posted if you have more questions.

 

Best regards,

Gabriela

surikaat
Community Member

Thanks for you, your answers sound AI generated. There is no issue with the device, issue is about Home Automation code syntax or how it's parsed. 

Jamiel1241
Community Member

My mate dropped by to show off his new fishing rod, and we had a yarn. Felt like finding a casino site to try out after he left. Checked out SkyCrown Casino, and it caught my eye with its simple vibe. It’s from Australia, loaded with slots and roulette, and they toss in bonuses – free spins or a bit more when you deposit, giving you extra chances to enjoy without rushing. Good fun after our chat.