alexa-samples / alexa-smarthome

Resources for Alexa Smart Home developers.
https://alexa.design/smarthome
Other
680 stars 336 forks source link

How to Update Multiple LEDs Shadow In IoT core.? #138

Closed RajputAmit-17 closed 4 years ago

RajputAmit-17 commented 4 years ago

so I have one ongoing project based on esp32. I am controlling 4CH relay with esp32 and esp32 is connected with Aws IoT. problem is whenever I tell Alexa to switch on/off all 4 relay status change once I want to control individual each relay with Alexa. any method to do that or solution please let me know here is my discoveryconfig

const discoveryConfig = { 'smartThing-v1': { '1.00': { manufacturerName: 'SmartHome Products, Inc.', modelName: 'Model 001', friendlyName: 'Smart switch1', description: 'My SmartHome Product!', displayCategories: [ 'OTHER', 'SWITCH' ], capabilities: [ { // Basic capability that should be included for all // Alexa Smart Home API discovery responses: type: 'AlexaInterface', interface: 'Alexa', version: '3' }, { type: "AlexaInterface", interface: "Alexa.EndpointHealth", "version":"3", properties: { supported: [ { name: "connectivity" } ], retrievable: true } }, { type: 'AlexaInterface', interface: 'Alexa.PowerController', version: '3', properties: { supported: [ { "name": "powerState"

                        }
                    ],
                    retrievable: true

                },

            }
        ]
    }