3rd Party Integration(Alexa) Not working Corretly
Posted: Sun Mar 20, 2022 3:28 am
I'm trying to integrate Alexa to my project however it doesnt work as it should do. For example if I make a custom device for a co2 or humidity sensor it show me such sensor on alexa however it doesnt display the reading value at it does in esp rainmaker. Below it what I have. I am using arduino ide.
Sample:
static Device my_hum("Humidity","esp.device.humidity", NULL);
Node my_node;
my_node = RMaker.initNode("Air Quality");
Param humParam("Humidity", "esp.param.temperature", value(dht_humidity), PROP_FLAG_READ );
my_hum.addNameParam();
my_hum.addParam(humParam);
my_hum.assignPrimaryParam(my_hum.getParamByName("Humidity"));
my_node.addDevice(my_hum);
my_hum.updateAndReportParam("Humidity", dht_humidity);
Like I said it works perfectly on esp rainmaker but in the alexa app the humidity sensor show up empty without any value.
I am using the esp.param.temperature as it the only one I see for sensors. I have try others but still the same.
Also, this doesnt happen when using the Temperature_Sensor Api from esp rainmaker as it shows the temp sensor with the actual reading in alexa. I have thought about using it but alexa reads it as a temp sensor and the value that it would show says temperature.
Anyone can help me with this please, on how to make a custom sensor device like humidity and let alexa know the param reading and display it in the alexa app.
Thanks.
Sample:
static Device my_hum("Humidity","esp.device.humidity", NULL);
Node my_node;
my_node = RMaker.initNode("Air Quality");
Param humParam("Humidity", "esp.param.temperature", value(dht_humidity), PROP_FLAG_READ );
my_hum.addNameParam();
my_hum.addParam(humParam);
my_hum.assignPrimaryParam(my_hum.getParamByName("Humidity"));
my_node.addDevice(my_hum);
my_hum.updateAndReportParam("Humidity", dht_humidity);
Like I said it works perfectly on esp rainmaker but in the alexa app the humidity sensor show up empty without any value.
I am using the esp.param.temperature as it the only one I see for sensors. I have try others but still the same.
Also, this doesnt happen when using the Temperature_Sensor Api from esp rainmaker as it shows the temp sensor with the actual reading in alexa. I have thought about using it but alexa reads it as a temp sensor and the value that it would show says temperature.
Anyone can help me with this please, on how to make a custom sensor device like humidity and let alexa know the param reading and display it in the alexa app.
Thanks.