mKeRix/hassio-repo

Add option for no GPIO?

niai opened this issue · 3 comments

niai commented

Hi could you add an option to disable GPIO for people not running on a RPI?

I got this error when trying to run on an Ubuntu box

18-07-30 01:09:52 ERROR (SyncWorker_1) [hassio.docker] Can't start addon_6e66619d_room-assistant: 500 Server Error: Internal Server Error ("error while creating mount source path '/sys/devices/platform/soc': mkdir /sys/devices/platform/soc: operation not permitted")

Hey there,

this is unfortunately an Hass.io bug that I can’t really work around without inconveniencing some people. I’ve listed a fix on the ticket over on their repo: home-assistant/supervisor#432

I could also add another version of the addon to this repo without GPIO until that is fixed actually, if that would be easier for you?

niai commented

That would be nice, if its not to much hassle to maintain for you. It would be a lot easier for my self and others like me, even though I am not sure meany people use HASSIO the x86 architecture.

Thanks for the quick reply.

edit
I want to add i could probably fix it my self no problem, just not much time atm to look in to it.

edit2
OK i have built it locally without GPIO and its working, so no need to add a separate addon just for me, but thanks for the offer.

for any one that wants to do the same just go to your "local" folder in the HASSIO addon folder and make a file called "config.json" and put this code in to that file

{
  "name": "room-assistant",
  "version": "1.0.1",
  "slug": "room-assistant",
  "description": "room-assistant tracks presence and more on a room level",
  "url": "https://github.com/mKeRix/room-assistant",
  "startup": "application",
  "arch": [
    "aarch64",
    "amd64",
    "armhf",
    "i386"
  ],
  "image": "mkerix/room-assistant-{arch}",
  "boot": "auto",
  "host_network": true,
  "gpio": false,
  "ports": {
    "3000/tcp": 3000
  },
  "options": {
    "services": [],
    "room": "default-room",
    "mqtt": {
      "url": "mqtt://localhost",
      "username": "",
      "password": "",
      "rejectUnauthorized": true
    },
    "ble": {
      "channel": "room_presence",
      "useAddress": false,
      "whitelist": [],
      "maxDistance": 0,
      "updateFrequency": 0,
      "processIBeacon": true,
      "onlyIBeacon": false,
      "majorMask": "0xFFFF",
      "minorMask": "0xFFFF"
    },
    "gpio": [],
    "shell": []
  },
  "schema": false
}

after this you will see a local repo in the HASSIO store and install it from there.

Just to let you know, if you haven't seen it yet: this issue has apparently been fixed in the current version of Hass.io, see home-assistant/supervisor#432.