
COMPONENTNAME_NOT_FOUND
Patrick Michael Vogt
I am getting the COMPONENTNAME_NOT_FOUND wemoSwitch error with the following code
const WeMoLightSwitch = neeoapi.buildDevice('WeMo LightSwitch') .setManufacturer('Belkin') .addAdditionalSearchToken('wemo') .setType('LIGHT') .enableDiscovery({headerText: 'Belkin WeMo Discovery', description: 'Press NEXT to discover Belkin WeMo LightSwitches'}, controller.discoverWeMoLightSwitch) .registerInitialiseFunction(controller.initialise) .registerSubscriptionFunction(controller.registerStateUpdateCallback) .addButton({ name: 'POWER ON', label: 'Power On' }) .addButton({ name: 'POWER OFF', label: 'Power Off' }) .addButtonHandler(controller.onButtonPressed) .addSwitch({ name: 'wemoSwitch', label: 'Power' }, { setter: controller.switchSet, getter: controller.switchGet } ) ; const WeMoInsight = neeoapi.buildDevice('WeMo Insight') .setManufacturer('Belkin') .addAdditionalSearchToken('wemo') .setType('LIGHT') .enableDiscovery({headerText: 'Belkin WeMo Discovery', description: 'Press NEXT to discover Belkin WeMo Insight Switches'}, controller.discoverWeMoInsight) .registerInitialiseFunction(controller.initialise) .registerSubscriptionFunction(controller.registerStateUpdateCallback) .addButton({ name: 'POWER ON', label: 'Power On' }) .addButton({ name: 'POWER OFF', label: 'Power Off' }) .addButtonHandler(controller.onButtonPressed) .addSwitch({ name: 'wemoISwitch', label: 'Power' }, { setter: controller.switchSet, getter: controller.switchGet } ) ; sendComponentUpdate({uniqueDeviceId: deviceid, component: 'wemoSwitch', value: bool})
When I remove the second device, it works as expected. Note that the component name for the switch is different for the second device.
Reply
Like
Follow
4replies
-
Patrick Michael Vogt
If I return one device profile, either one, the code works as expected. If I return both device profiles, I can install both device types, but I get the COMPONENTNAME_NOT_FOUND error when executing the status callback function. It always errors on the first component, the ‘wemoSwitch’ component.
At this point, I am stuck. Any help is appreciated.