Mycroft Skill For Hubitat Ready To Try Out

For people looking for integration between Hubitat and Mycroft, I have made a start. In github/burnsfisher/hubitat-integration-skill you will find the code for a Mycroft skill that works with Hubitat's maker app. It works only locally (which was one of my main goals--avoid the cloud!) and at the moment can only work with devices that are controlled by turning them on and off. To make it work, you have to add the devices you want to control to the maker app in Hubitat. In the Mycroft skill, you will need to access "setting" in your on-line Mycroft account to add the Hubitat access token and either the dotted quad address of Hubitat or change it to 'hubitat.local', although the latter seems to be slower.

When you have the skill setup (git clone the repo into /opt/mycroft/skills for Picroft (Mycroft on a Raspberry pi) you can say "hey mycroft, scan for new devices" (or it will do it when it starts up). And the "hey mycroft, turn off/on xxxx" or some variant of that. xxx is the device label you want to control.

WARNING: This is closer to stable now than a few months ago, but I may change anything. In addition, I know there are other Mycroft skills for other devices like Home Automation. I may try to combine this with one of them to take advantage of a lot of other code. I think there are ways to add properties like the access token and address in a better way, but I have not yet tried.

BUT if you want something to start playing around with, you are welcome to grab this code, and if you want to improve it, I'm happy to look at pull requests.

6 Likes

One person was watching my github repository. To them, my apologies. I've deleted that repository and created a new one called hubitat-integration-skill. I was using the first one to test out various methods, and now that I have managed to get a reasonable methodology, I decided to take the "test" part out of it before anyone else started watching or forking.

1 Like

I'm not going to keep updating changes here (as I did the last couple). If you want to see what the current state is, look at the github repository change comments. Feel free to add issues etc.

1 Like

Well, I will update it a bit. It is probably at the point of actually being usable for on/off and set levels. It does work with scene activators too and can do setLevel for dimmers. I'm thinking of a couple other things I'd like it to do like tell me the temp reading on my Stelpro thermostat, but that will require learning more stuff with Mycroft :slight_smile:

2 Likes

Nice feature, I am in the early stage of Hubitat currently.
I am setting up some basic rules, but soon I will start with voice assistant (mycroft). Definitely I will check out your repo and try to support you as much as I can (at least with testing).
Keep going, great to see someone implements an interface between mycroft and hubitat!

1 Like

Ok, reading the thermostat works. "Hey Mycroft! What is the inside temperature". "The temperature is 65.0"

1 Like

Sorry I did not see this earlier. Thanks...any testing you can do is helpful! I've been using it regularly for 3 months now and it works reasonably well!

1 Like

This integration is very interesting to me, so I just forked your repository. When supply chain issues end, I'm planning to setup a PiCroft.

1 Like

Great! Let me know if you have suggestions or bug reports.

1 Like

I will be looking at this as well, probably in another month or so.
Thanks very much for the opportunity to look at your code.

2 Likes

I've changed the title to make it a bit less alpha-y and the text to remove some of the no-longer-relevant comments. I've been using this for 3 months now, and it does what I need. I've also used it with the Mycroft "routines" skill, although you may need some of my changes that the owner of routines has decided not to pull.

2 Likes

Download the Hubitat app