# Skill Hue lighting \[Solved\]

**URL:** https://community.openconversational.ai/t/skill-hue-lighting-solved/1508
**Category:** Skills
**Created:** [April 3, 2017, 6:09am UTC](https://community.openconversational.ai/t/skill-hue-lighting-solved/1508 "2017-04-03T06:09:50Z")
**Posts on this page:** 15
**Page:** 1

<div class="post-metadata">

### Author: ![Urge4Vert](https://community.openconversational.ai/letter_avatar_proxy/v4/letter/u/6a8cbe/32.png) [@Urge4Vert](https://community.openconversational.ai/u/Urge4Vert)
#### Post date: [April 3, 2017, 6:09am UTC](https://community.openconversational.ai/t/skill-hue-lighting-solved/1508/1 "2017-04-03T06:09:50Z")

</div>

I’ve got Mycroft installed and running on a Raspberry Pi 3. I just flashed the image and logged in. What I’d really like to do is have mycroft turn the lights on and off. But the skills seems very confusing. I read that it should go in /opt/mycroft/skills or other places say /home/mycroft/.mycroft/skills

Under /home/mycroft/.mycroft/skills I have a bunch of folders (PhillipsHueSkill) but there’s nothing in any of these folders. Also I tried installing the phillips hue still my running  
msm install [https://github.com/ChristopherRogers1991/mycroft-hue.git](https://github.com/ChristopherRogers1991/mycroft-hue.git)

But that doesn’t seem to have any effect either as mycroft still doesn’t recognize any phrase with ‘lights’. Am I missing something obvious about skills? I even checked the logs in /var/log/mycroft-skills.log and don’t see anything obvious in there either. Its probably posted somewhere obvious and I’m just missing it…

Thanks

---

<div class="post-metadata">

### Author: ![Urge4Vert](https://community.openconversational.ai/letter_avatar_proxy/v4/letter/u/6a8cbe/32.png) [@Urge4Vert](https://community.openconversational.ai/u/Urge4Vert)
#### Post date: [April 3, 2017, 7:00am UTC](https://community.openconversational.ai/t/skill-hue-lighting-solved/1508/2 "2017-04-03T07:00:39Z")

</div>

Can’t seem to figure out how to delete my post.

In any case what I ended up having to do was the following.

Did the msm install again. Checked the files, rebooted. In the skills/mycroft-hue directory there was a readme. I’d tried it previously but I could not the the mycroft.conf file to work with its default values for mimic and the phillips hue section I needed to put in there. Decided to just rip out the mimic section and leave the mycroft.conf file with only the phillips hue section. Rebooted, asked mycroft to ‘lights on’ and he said to press the button on the hub and I was all set. Very cool

I think I have a slightly better handle on skills now. Pretty nifty.

---

<div class="post-metadata">

### Author: ![Karl](https://community.openconversational.ai/user_avatar/community.openconversational.ai/karl/32/558_2.png) [@Karl](https://community.openconversational.ai/u/Karl)
#### Post date: [April 5, 2017, 12:31am UTC](https://community.openconversational.ai/t/skill-hue-lighting-solved/1508/3 "2017-04-05T00:31:17Z")

</div>

I’m glad to hear you figured it out. Which mycroft.conf file did you end up editing? And was this on a Raspberry Pi?

---

<div class="post-metadata">

### Author: ![Urge4Vert](https://community.openconversational.ai/letter_avatar_proxy/v4/letter/u/6a8cbe/32.png) [@Urge4Vert](https://community.openconversational.ai/u/Urge4Vert)
#### Post date: [April 6, 2017, 5:59pm UTC](https://community.openconversational.ai/t/skill-hue-lighting-solved/1508/4 "2017-04-06T17:59:28Z")

</div>

This was on a Raspberry Pi 3

I ended up editing /home/mycroft/.mycroft/mycroft.conf

It had the default lines of

{  
“tts”: {  
“module”: “mimic”,  
“mimic”: {  
“voice”: “ap”,  
“path”:"/usr/local/bin/mimic"  
}  
}  
}

I had to remove all those lines and put in  
{  
“PhillipsHueSkill”: {  
“ip”: “”,  
“username”: “”,  
“verbose”: false,  
“brightness\_step”: 50,  
“color\_temperature\_step”: 1000,  
“default\_group”: 0  
}  
}

I was using the yaml checker and couldn’t find any way to combine the two. But it appears to work

---

<div class="post-metadata">

### Author: ![baconator](https://community.openconversational.ai/letter_avatar_proxy/v4/letter/b/d07c76/32.png) [@baconator](https://community.openconversational.ai/u/baconator)
#### Post date: [October 1, 2017, 5:03am UTC](https://community.openconversational.ai/t/skill-hue-lighting-solved/1508/5 "2017-10-01T05:03:59Z")

</div>

There’s also a newer hue skill now, [https://github.com/Geeked-Out-Solutions/mycroft-hue](https://github.com/Geeked-Out-Solutions/mycroft-hue) (slightly less config needed)

---

<div class="post-metadata">

### Author: ![adamc1999](https://community.openconversational.ai/letter_avatar_proxy/v4/letter/a/bbe5ce/32.png) [@adamc1999](https://community.openconversational.ai/u/adamc1999)
#### Post date: [May 18, 2018, 5:26pm UTC](https://community.openconversational.ai/t/skill-hue-lighting-solved/1508/6 "2018-05-18T17:26:21Z")

</div>

This skill appears to have broken with the python 3.4 upgrade  
Any thoughts on how to fix it?

---

<div class="post-metadata">

### Author: ![KathyReid](https://community.openconversational.ai/user_avatar/community.openconversational.ai/kathyreid/32/1949_2.png) [@KathyReid](https://community.openconversational.ai/u/KathyReid)
#### Post date: [May 18, 2018, 5:31pm UTC](https://community.openconversational.ai/t/skill-hue-lighting-solved/1508/7 "2018-05-18T17:31:06Z")

</div>

Hi @adamc1999 what specifically isn’t working with it? Do you have any `mycroft-skill.log` entries that might help us troubleshoot?

---

<div class="post-metadata">

### Author: ![adamc1999](https://community.openconversational.ai/letter_avatar_proxy/v4/letter/a/bbe5ce/32.png) [@adamc1999](https://community.openconversational.ai/u/adamc1999)
#### Post date: [May 18, 2018, 6:14pm UTC](https://community.openconversational.ai/t/skill-hue-lighting-solved/1508/8 "2018-05-18T18:14:04Z")

</div>

Yes. Upon config load, the skill fails because it cannot find the module “phue”

* * *

## return load\_source(name, filename, file) File “/opt/venvs/mycroft-core/lib/python3.4/imp.py”, line 171, in load\_source module = methods.load() File “”, line 1220, in load File “”, line 1200, in \_load\_unlocked File “”, line 1129, in \_exec File “”, line 1471, in exec\_module File “”, line 321, in \_call\_with\_frames\_removed File “/opt/mycroft/skills/mycroft-hue/ **init**.py”, line 24, in from phue import Bridge ImportError: No module named ‘phue’

Yet I checked and phue is definitely installed  
pi@mark\_1:~/skills/mycroft-hue $ pip list  
chardet (2.3.0)  
colorama (0.3.2)  
configparser (3.5.0)  
fuzzywuzzy (0.16.0)  
html5lib (0.999)  
phue (1.0)  
pip (1.5.6)  
python-apt (0.9.3.12)  
python-debian (0.1.27)  
python-Levenshtein (0.12.0)  
requests (2.4.3)  
setuptools (5.5.1)  
six (1.8.0)  
ufw (0.33-2)  
urllib3 (1.9.1)  
wheel (0.24.0)

---

<div class="post-metadata">

### Author: ![adamc1999](https://community.openconversational.ai/letter_avatar_proxy/v4/letter/a/bbe5ce/32.png) [@adamc1999](https://community.openconversational.ai/u/adamc1999)
#### Post date: [May 18, 2018, 7:12pm UTC](https://community.openconversational.ai/t/skill-hue-lighting-solved/1508/9 "2018-05-18T19:12:58Z")

</div>

Maybe there is a problem with my python install?  
modules not in the expected directory?

---

<div class="post-metadata">

### Author: ![baconator](https://community.openconversational.ai/letter_avatar_proxy/v4/letter/b/d07c76/32.png) [@baconator](https://community.openconversational.ai/u/baconator)
#### Post date: [May 19, 2018, 3:28am UTC](https://community.openconversational.ai/t/skill-hue-lighting-solved/1508/10 "2018-05-19T03:28:55Z")

</div>

you’ll have to add the phue module to the python3 env. Try “pip3 list”. Or “pip3 install phue”. (phue is compatible per github: phue works with Python 2.6.x, 2.7.x and 3.x)

---

<div class="post-metadata">

### Author: ![adamc1999](https://community.openconversational.ai/letter_avatar_proxy/v4/letter/a/bbe5ce/32.png) [@adamc1999](https://community.openconversational.ai/u/adamc1999)
#### Post date: [May 19, 2018, 3:31am UTC](https://community.openconversational.ai/t/skill-hue-lighting-solved/1508/11 "2018-05-19T03:31:56Z")

</div>

In the log I posted above is output of pip3 list and phue is listed  
I’m very inexperienced with python and coding in general. But it looks like there is an issue finding the module based on os.path possibly?

---

<div class="post-metadata">

### Author: ![baconator](https://community.openconversational.ai/letter_avatar_proxy/v4/letter/b/d07c76/32.png) [@baconator](https://community.openconversational.ai/u/baconator)
#### Post date: [May 19, 2018, 3:47am UTC](https://community.openconversational.ai/t/skill-hue-lighting-solved/1508/12 "2018-05-19T03:47:34Z")

</div>

You have pip list, not pip3 list. They’re distinct in all the distros I’ve seen.

---

<div class="post-metadata">

### Author: ![adamc1999](https://community.openconversational.ai/letter_avatar_proxy/v4/letter/a/bbe5ce/32.png) [@adamc1999](https://community.openconversational.ai/u/adamc1999)
#### Post date: [May 19, 2018, 4:03am UTC](https://community.openconversational.ai/t/skill-hue-lighting-solved/1508/13 "2018-05-19T04:03:00Z")

</div>

pi@mark\_1:~/skills $ sudo pip3 list  
chardet (2.3.0)  
colorama (0.3.2)  
configparser (3.5.0)  
fuzzywuzzy (0.16.0)  
html5lib (0.999)  
phue (1.0)  
pip (1.5.6)  
python-apt (0.9.3.12)  
python-debian (0.1.27)  
python-Levenshtein (0.12.0)  
requests (2.4.3)  
setuptools (5.5.1)  
six (1.8.0)  
ufw (0.33-2)  
urllib3 (1.9.1)  
wheel (0.24.0)

---

<div class="post-metadata">

### Author: ![baconator](https://community.openconversational.ai/letter_avatar_proxy/v4/letter/b/d07c76/32.png) [@baconator](https://community.openconversational.ai/u/baconator)
#### Post date: [May 19, 2018, 4:07am UTC](https://community.openconversational.ai/t/skill-hue-lighting-solved/1508/14 "2018-05-19T04:07:49Z")

</div>

if you’re not in the venv for mycroft, this is reporting the system packages. Try “workon mycroft” and then “pip3 list”.

---

<div class="post-metadata">

### Author: ![adamc1999](https://community.openconversational.ai/letter_avatar_proxy/v4/letter/a/bbe5ce/32.png) [@adamc1999](https://community.openconversational.ai/u/adamc1999)
#### Post date: [May 19, 2018, 6:34pm UTC](https://community.openconversational.ai/t/skill-hue-lighting-solved/1508/15 "2018-05-19T18:34:55Z")

</div>

You were correct. The new architecture requires installing in the venv  
I worked with the dev on getting my system back up and running which requires a modification to the \_\_init.py file as well.  
He’ll probably have it ready and approved for msm install within the week (approval from mycroft ai could vary this timeline)

Thanks for your help!

AC
