Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option for no GPIO? #1

Closed
niai opened this issue Jul 30, 2018 · 3 comments
Closed

Add option for no GPIO? #1

niai opened this issue Jul 30, 2018 · 3 comments

Comments

@niai
Copy link

niai commented Jul 30, 2018

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")

@mKeRix
Copy link
Owner

mKeRix commented Jul 30, 2018

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
Copy link
Author

niai commented Jul 30, 2018

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.

@niai niai closed this as completed Jul 30, 2018
@mKeRix
Copy link
Owner

mKeRix commented Sep 8, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants