Does anyone know what this driver log error message means? I’m getting it within an event handler for a simple switch when I perform this command:
device:emit_component_event(command.component, capabilities.switch.switch(command.command))
The switch none-the-less seems to be operating as expected.
I’ve never seen this before…
Shouldn’t the first argument should be a table though?
device.profile.components[ command.component ]
Maybe it is getting confused by that further down the line.
Yikes, I’m rusty. I’ve coded this a hundred times….
Thank-you for quick reply!
Yes, but the way you did it still looks more reasonable however many times you’ve done it. Why doesn’t the method access device.profiles.components itself?