Skip to content

Allow mycroft to send commands to a hubitat zigbee and zwave hub

License

Notifications You must be signed in to change notification settings

GonzRon/hubitat-integration-skill

 
 

Repository files navigation

Hubitat Integration

Use Mycroft for Home Automation with Hubitat Hub

About

This is a skill to teach Mycroft how to send commands to the Hubitat Zigbee/ZWave hub based on spoken commands. This skill can deal with any Hubitat device that is enabled in the Hubitat "Maker" app and which has commands "on", "off" or "setLevel". This includes essentially any switched outlets, lights, dimmers, and scene activators. It can also read some attributes, although allowed attributes must be specified in settings.

You can also ask it to scan for new devices that Hubitat has made available to it, and you can list the devices it knows (but that takes a while for Mycroft to speak).

The device name that you speak to Mycroft is the device label you have specified in Hubitat, but the skill uses "fuzzywuzzy" to allow some leeway in what you say.

There are five settings for this skill (which you set via your Mycroft account). You must specify the access token, which can be found by looking at the Hubitat "Maker" app. The Hubitat address defaults to hubitat.local, which should work unless you have multiple hubitats on the LAN or for some other reason .local names are not supported. You can also specify a 'score' between 0 and 100 for comparing the device name you speak to the Hubitat label. For example, if the label is 'bookcase lights' you can say 'the bookcase lights', 'bookcase light', 'lights on the bookcase', etc. A score of 65 seems to work well.

This skill can read attributes as well, but you must specify both the name of the attribute and the Hubitat label of the device in settings. In the "attr" setting, include a comma-separated list of attributes with quotes, for example "temperature","heatingSetPoint","level". In the device setting, enter a comma-separated list of default devices that match the attributes order. For example, "thermostat","thermostat","overhead lights". The your utterance can include the device, especially if more than one device has the same attribute. Notest that these are hard intents to define because it is common to speak differently depending on the attribute.

Examples

  • "Turn on the bookcase lights"
  • "Turn off bookcase light"
  • "Set the overhead light to 50%"
  • "Scan for new devices"
  • "Set overnight mode"
  • "Show me the inside temperature"
  • "tell me the level of the window lights"

Credits

Burns Fisher (@burnsfisher)

Category

IoT

Tags

#hubitat #zigbee #zwave

About

Allow mycroft to send commands to a hubitat zigbee and zwave hub

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 89.2%
  • Gherkin 10.8%