Open gvdhoven opened 5 years ago
By name of a component we mean something like BRIGHTNESS_SLIDER
or BRIGHTNESS_SENSOR
, that's what is used to identify that component if it has an update on a given device.
The name of the device isn't used during the component update process. It is used before that to identify the devices which have an update.
Here's a rough outline of the process:
@pfiaux thanx, but how do i set the 'component' name in my own driver?
When you add the component, for example if you add a switch: https://neeoinc.github.io/neeo-sdk/#src-lib-models-devicebuilder.ts-addswitch
example-switch, and an example-switch_SENSOR might be automatically created under the hood as well.
Most components should have a name property.
And further:
This should read "The name of a device", e.g. the
.buildDevice('...')
part?