First time skill writer looking for feedback on this skill that allows voice command from Mycroft to control devices on the Hubitat hub
- Install Hubitat Integration by …
-Use msm to install from my repo: msm install GitHub - burnsfisher/hubitat-integration-skill: Allow mycroft to send commands to a hubitat zigbee and zwave hub
It uses these Python libraries all of which are specified in the manifest
- requests (network)
- SKILL NAME connects to…
the Hubitat “maker” app in your own Hubitat. The URL and access token must be specified in a setting. The URL defaults to ‘hubitat.local’ which will work in most cases, but you must get the access token from the hubitat app.
In your Hubitat hub, add one or more devices that can be turned on or off to the Maker app. Devices that can do “setLevel” like dimmers are also helpful. Note the URL and access token which must be specified in the Mycroft Skill Settings.
Configure the Skill Settings in home.mycroft.ai. Aside from the access info mentioned above, you can also put a “fuzzy” minimum score. A lower number will accept more (and possibly wrong) variants of devices names. Higher makes it more specific. The score 65 seems to work well for me.
Intent phrase‘Turn on’ followed by a device
Forms that work include
Mycroft should send an “on” command to the device and respond with “Ok” or “Done”. if the device does not accept an on command Mycroft should respond saying that the device does not accept an on command.
Similarly, replacing “on” with “off” should send an off command. An intent similar to “set to 50%” should change the brightness if the device accepts a “setLevel” command. Otherwise, Mycroft should respond that the setLevel command is not supported on that device.
An intent similar to “scan for devices” should pick up any new devices that have been added to the Hubitat app.
If the Hubitat is not accessible, a reasonable error message should be spoken.
If the default error (i.e. an uncaught error) ever happens that is a bug.
Feel free to leave feedback here or as an issue on the github repo (GitHub - burnsfisher/hubitat-integration-skill: Allow mycroft to send commands to a hubitat zigbee and zwave hub