-
Notifications
You must be signed in to change notification settings - Fork 158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Device Integration into Alexa (MEGH-5166) #294
Comments
Device Declaration: Callback Function: Update: |
@FloBer431 , please refer the rainmaker standard device types and param types and create your device accordingly so that it can show up in Alexa. Let us know if that does not work. |
I tried to do that, but i didn't manage to do it. In the Arduino Library aren't all standard devices, like in the links you wrote. Can somebody help me adjust my code or has an example for integrating a contact sensor? |
@shahpiyushv I tried to work with your linked types, but I'm working with the Arduino IDE library, and the whole syntax is very different, there a also not all functions, devices and params configured yet. |
While creating a device, just add the device type as second argument. For a standard contact sensor, it is "esp.device.contact-sensor", so your code will be
This will create contact sensor and add. name parameter to it.
Note that the PRO_FLAG_WRITE has been removed, since this would not be a writable parameter. Please try these changes in your code and let us know if it works. |
I am right now not in my home, I will send my updates after a month |
Hello, how should I do for a thermostat, what are the parameters that must be set for Alexa to recognize |
Please check out the supported standard types for this information. To summarise device: esp.device.thermostat |
Node my_node; THERMOSTAT = new Device("Thermostat", "esp.device.thermostat", &gpio_dimmer); THERMOSTAT->addNameParam(); Param setPointParam("Target temperature", "esp.param.setpoint-temperature", value(TEMPERATURA_AMBIENTE), PROP_FLAG_READ | PROP_FLAG_WRITE); THERMOSTAT->addCb(write_callback); What I don't understand is how to define the other parameters, for example the temperature, and the power doesn't appear in Alexa and in Google Home it doesn't display anything. I don't know if I make myself understood. thank you |
Have you tried adding esp.param.temperature as float and esp.paran.ac-mode as string parameter since these are also mentioned to be mandatory as per our starndard types' docs? |
Answers checklist.
General issue report
I‘m working on a system for integrating firefighters pager into smart Home Systems.
My plan is, to use the device type contact sensor, as this is able to trigger routines, like switching on lights etc.
I was able to create a contact sensor as custom Device, wich is available over the esp Rainmaker App. But Even After connecting Alexa, the Device does Not Show in the Alexa App.
Has somebody already done something like this and had similar Problems?
I dont know any further, i have tried many times, but it Never worked out.
I‘m going to share some code snips After this Text.
PS: I'm working with ESP-Rainmaker in Arduino IDE
The text was updated successfully, but these errors were encountered: