Simple SmartThings Edge driver for a WLED Led Lamp Intellect UA.
Hub should be subscribed on a channel where a driver is gonna be published.
smartthings edge:drivers:package intellect-lamp
- compiles the driver.
smartthings edge:channels:assign
- assigns to a channel
smartthings edge:drivers:install
- installs on a hub.
smartthings capabilities:presentation:update -i ./capabilities/lightMode.presentation.yaml
- updates the presentation of a capability.
smartthings presentation:device-config:create -i presentation/intellect-lamp.presentation.yaml
- creates device config.
Steps to get the driver working:
- Create a new capability.
- Create a new capability presentation.
- Create a new device-config.
- Change capability name and vid in driver profile.
- Change capability name on calls in driver code (and also do a build_cap_from_json).
- Install the driver.
- Reinstall the affected device.
- Sometimes I also need to reboot the Hub and reinstall the device again.