Page 2 of 2

Re: Mycroft for PI

Posted: Monday 01 April 2019 1:46
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

Re: Mycroft for PI

Posted: Saturday 02 November 2019 23:00
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.

Re: Mycroft for PI

Posted: Saturday 08 January 2022 15:36
by waltervl
Any progress on using Mycroft for Domoticz?
Just started installing mycroft. Need to downloasd domoticz skill and install, see how it goes.... ;-)

Re: Mycroft for PI

Posted: Sunday 29 May 2022 17:53
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?

Re: Mycroft for PI

Posted: Monday 30 May 2022 9:00
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).

Re: Mycroft for PI

Posted: Monday 30 May 2022 17:43
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.