[SOLVED] OpenHAB Skill not working after upgrade


#1

Hi,
I have logged in today via SSH to mycroft and it upgraded itself automatically.
After reboot, openHAB skill that I had installed and used is no longer working.
Should I disable auto update? Are those kind of issues common?
Skill looks installed, the folder in skills is still there, it refuses to install it as it’s already installed…
Also, openhab server and port settings are still there in mycroft.conf
mycroft is running on picroft.
mycroft-core version 19 oh 8, release 0 - you are on the latest version.

Is this development branch? Should I switch to stable?

What are the recommended steps, force-reinstall the skill? how? delete it from skills?
Grep does not find any mention of openhab in skills.log

thanks,
regards,
Vanja


#2

A post was split to a new topic: CmdSkill not working on 19.08


#3

Hi Vanja,

The 19.08.0 version is our latest stable version. The major releases are the only time when we introduce breaking changes, so this does mean that older Skills may not by functional, but I haven’t looked at OpenHAB specifically.

Strange that there’s no result from grepping openhab. Is the Skill in your /opt/mycroft/skills directory?
If not then reinstall it using:
mycroft-msm install https://github.com/openhab/openhab-mycroft

If it is already there, from the CLI type :skills to see a list of the loaded skills. Any listed in red have not loaded correctly.


#4

Hi Gez,
skill is in /opt/mycroft/skills/openhab-skill.openhab

command :skills lists skins and openhab skill is red. all other are yellow except for mycroft-playback-control that I had blacklisted as I have read it takes “play” keywords so kodi-skill is not working properly

so, openhab does not load properly on the new version…


#5

Yeah I just tried to install it myself and see that they’re using a deprecated method. I’ve sent them a PR which you can see at:

If you are confident to do so you can make two small changes to __init.py__ and it should load from there.


#6

great, I have replaced the whole init.py file with the one you recommended, and the skill is loaded now

thanks for the great support!


#7

I also had my OpenHAB broken by the update. Your changes and a quick reboot cleared that up. Thanks.

Now to find out what else is broken…


#8

Hi I am very new to Mycroft, and trying it out with the main purpose to use the OpenHAB skill. I ran into the same issue as reported by the OP and tried to apply the suggested fix, unfortunately without success. I am running Mycroft 19.8.0 master.

First I installed the OpenHAB skill with the following command:

> mycroft-msm install https://github.com/openhab/openhab-mycroft

After that I replaced the __init.py__ file in

> /opt/mycroft/skills/openhab-mycroft.openhab/

with the suggested changed file from GitHub. I rebooted and tried several things, however the OpenHAB skill remains listed in RED.

Looking forward to suggestions on how to proceed.