-
Notifications
You must be signed in to change notification settings - Fork 7
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
setMode callback and instance #30
Comments
Thanks will fix this ASAP. There’s instanceId when you have multiple instances of RangeController/ ModeController which is available when you create custom devices. If you are in a hurry you can use the Python SDK |
Great, I still have issues with the modes feature, it looks like Alexa does not recognize them always. Is it supported in other languages or only english? For example I want to set [mode name] window blind to [mode value] open on device blinds The example on the template mode creation does not explain really well how to use the values with alexa |
Here's what I did, created a new template and created a new device called blinds based on that template.
You can import the above template from the "Device Template" set the blinds [device name] to open [mode value]. above worked. |
it looks like a device with more than one mode is not being added to Alexa, is there any limitation on this? |
Hi @smoi I have released 2.6.1 with custom device support. You can find the example code here: |
it looks like on the nodejs lib there's no way to get the instance of the sent mode. I've tried debugging the response and there's no instance in the response. Is there maybe a param I can pass to the connection to have it? Like sdk version etc
ESP
bool onSetMode(const String& deviceId, const String& instance, String &mode) { Serial.printf("[Device: %s]: Modesetting for \"%s\" set to mode %s\r\n", deviceId.c_str(), instance.c_str(), mode.c_str()); globalModes[instance] = mode; return true; }
Node
function setMode(deviceid, data) { console.log(deviceid, data); return true; }
data only contains the mode value
The text was updated successfully, but these errors were encountered: