Mycroft for PI

Alexa, Google Home and Siri

Moderator: leecollings

gigawebs
Posts: 1
Joined: Monday 13 July 2015 15:28
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Mycroft for PI

Post by gigawebs »

Ittiz wrote: Friday 26 October 2018 1:08 Yeah, my Domoticz skill seems to work even if my internet is out, so the processing must happened on the machine itself. Alexa and Google process on the cloud, which is one of the reasons I wanted to avoid using those systems, besides the fact they don't have Domoticz skills on them.
Hi Ittiz,

I've tried your domoticz mycroft skill, but I can't get it to work. My domoticz server is hosted on different machine so I filled in a username/password. But it's still saying "401 unauthorized". Any idea where I should look?

Code: Select all

23:37:46.252 - __main__:handle_utterance:62 - INFO - Utterance: ['turn on kitchen light']
~~~~47.958 - mycroft.skills.core:wrapper:1052 - ERROR - An error occurred while processing a request in Domoticz Skill
Traceback (most recent call last):
  File "/home/pi/mycroft-core/mycroft/skills/core.py", line 1043, in wrapper
    handler(message)
  File "/opt/mycroft/skills/domoticz_skill.ittiz/__init__.py", line 71, in handle_domoticz_switch_intent
    response = domoticz.switch(state, what, where, action)
  File "/opt/mycroft/skills/domoticz_skill.ittiz/Domoticz.py", line 107, in switch
    data = self.findid(what, where, state)
  File "/opt/mycroft/skills/domoticz_skill.ittiz/Domoticz.py", line 34, in findid
    f = urllib.request.urlopen(self.url + "/json.htm?type=devices&filter=all&used=true")
  File "/usr/lib/python3.5/urllib/request.py", line 163, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/lib/python3.5/urllib/request.py", line 472, in open
    response = meth(req, response)
  File "/usr/lib/python3.5/urllib/request.py", line 582, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python3.5/urllib/request.py", line 510, in error
    return self._call_chain(*args)
  File "/usr/lib/python3.5/urllib/request.py", line 444, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.5/urllib/request.py", line 590, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 401: Unauthorized
Ittiz
Posts: 47
Joined: Tuesday 03 January 2017 0:37
Target OS: Linux
Domoticz version: 13939
Location: USA
Contact:

Re: Mycroft for PI

Post by Ittiz »

Hmm I think you need to set your Mycroft sever on the no user name and password exception list in your Domoticz settings. Mine is on the same machine so it's not an issue.
User avatar
waltervl
Posts: 5148
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Mycroft for PI

Post by waltervl »

Any progress on using Mycroft for Domoticz?
Just started installing mycroft. Need to downloasd domoticz skill and install, see how it goes.... ;-)
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Ittiz
Posts: 47
Joined: Tuesday 03 January 2017 0:37
Target OS: Linux
Domoticz version: 13939
Location: USA
Contact:

Re: Mycroft for PI

Post by Ittiz »

waltervl wrote: Saturday 08 January 2022 15:36 Any progress on using Mycroft for Domoticz?
Just started installing mycroft. Need to downloasd domoticz skill and install, see how it goes.... ;-)
You get it working?
User avatar
waltervl
Posts: 5148
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Mycroft for PI

Post by waltervl »

I got it working more ore less. Played a little bit with it.
It seems you have to name your devices according the naming rules in English (or other supported language).
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Ittiz
Posts: 47
Joined: Tuesday 03 January 2017 0:37
Target OS: Linux
Domoticz version: 13939
Location: USA
Contact:

Re: Mycroft for PI

Post by Ittiz »

You can edit the VOC files usually found in your language folder in /opt/mycroft/skills/domoticz_skill.ittiz/vocab/ to add items and interactions. The skill folder will be labelled domoticz_skill.treussart if you got it from his repo.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest