andrei-tatar / node-red-contrib-smartnora

Node Red Google Home integration
https://smart-nora.eu/
109 stars 24 forks source link

I have an issue while using NORA #306

Closed MHagreis closed 3 months ago

MHagreis commented 3 months ago

PM2.5 message is not processing correctly from of node red, example value is not processing into google home

message in is: {"PM2.5": 24} image

error image

what is my stupid mistake My user id is: EllxzomrJzQfibfyyuSavy9EjQz2

andrei-tatar commented 3 months ago

Hi @MHagreis Can you please provide an example flow?

MHagreis commented 3 months ago

image updated the problem see information

andrei-tatar commented 3 months ago

@MHagreis it needs to follow the google home trait schema (https://developers.home.google.com/cloud-to-cloud/traits/sensorstate#examples_1).

Try with the following payload:

{
  "currentSensorStateData": [{
    "name":"PM2.5",
    "rawValue":24
  }]
}
MHagreis commented 3 months ago

this works thanks i will adjust my code accordingly, sorry for the stupid question thank you for the quick and great support