Homey Self-Hosted Server on Linux | Megathread

In this thread we can discuss running Homey Self-Hosted Server on Linux.

Installation

Learn how to Install Homey Self-Hosted Server on Linux.

Known Limitations

None at this moment.

1 Like

Ehhh Winnux? Lidows? :wink:

2 Likes

Hello,

I followed the instructions on how to start the docker image on my Ubuntu server. Then I opened my phone and serched for the server - it was there so I clicked it. After a few minutes the connection timed out with a message that I should check if the server is properly plugged in and has an active network connection (it has, because I have active SSH connection and remote desktop). I tried to open it in “My Homeys” tab but it shows this message:

What should I do to fix this? I have checked the Firewall log for any blockages but nothing should be blocking it.

Turns out it was blocking some ports. I have allowed the 4859 port and it works without any problems! :smiley:

I installed Homey SHS in Docker on my Raspberry Pi 5. Now I am trying to connect Bluetooth devices, specifically a BLE water leak sensor from Switchbot. I get a message saying that I need the Homey Bridge for this. Shouldn’t it be possible to connect this type of device via the Pi’s built in bluetooth module? If so how can I achieve this? From my research on the web I understand that I need to make bluetooth available in Docker, but I honestly don’t understand how to achieve this (I am a total newbie when it comes to Pi OS and Docker).

As it might be technically possible,
at the moment you’ll just need a Homey bridge, an other Pro, or something like an SMlight/-hub.

Hi, successfully installed self hosted server on a mini pc, bought the homey Bridge, and started to add mostly Zigbee devices.

The first 5 working perfectly… but as the number of devices gets bigger , towards 20, the lag, is really getting so long. Or sometimes a device simply not available. Only after trying 5-10 times to switch on or off, the device will do…

Is this something due to something i do wrong? Please advise.

Sincerely,

Did you take interference into account?
(You can skip the hints for a Homey Pro, like power adapters)

Zigbee-over-wifi is not something I’d want.
Now your wifi connection add it’s own layer of possible issues when it comes to reliable data transmission.

Hello, I have bought the Sonoff Dongle Max to support Thread on my SHS, but I can’t seem to get it working. I want to use the OpenTjread Border Router on my Ubuntu server with Homey, but it always fails. Did somebody het it to work? If so, could you please tell me how?

Edit: The dongle is connected through WiFi and connected to the server via USB.

Here is part of the log:

s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service otbr-agent: starting
Configuring OpenThread firewall...
Configuring OpenThread NAT64...
Starting otbr-agent...
[NOTE]-AGENT---: Running 0.3.0-afd7593
[NOTE]-AGENT---: Thread version: 1.4.0
[NOTE]-AGENT---: Thread interface: wpan0
[NOTE]-AGENT---: Radio URL: /dev/ttyUSB0
[NOTE]-AGENT---: Radio URL: trel://enp1s0f0
[NOTE]-ILS-----: Infra link selected: enp1s0f0
[INFO]-RCP_HOS-: OpenThread log level changed to 5
50d.07:34:44.573 [C] Platform------: Init() at radio_url.cpp:153: Failure
otbr-agent exited with code 1 (by signal 0).
Chain OT_FORWARD_INGRESS (0 references)
target     prot opt source               destination
DROP       all  --  anywhere             anywhere             PKTTYPE = unicast
DROP       all  --  anywhere             anywhere             match-set otbr-ingress-deny-src src
ACCEPT     all  --  anywhere             anywhere             match-set otbr-ingress-allow-dst dst
DROP       all  --  anywhere             anywhere             PKTTYPE = unicast
ACCEPT     all  --  anywhere             anywhere
otbr-ingress-deny-src
otbr-ingress-deny-src-swap
otbr-ingress-allow-dst
otbr-ingress-allow-dst-swap
OpenThread firewall rules removed.
s6-svlisten1: fatal: /run/s6-rc/servicedirs/otbr-agent failed permanently or its supervisor died
s6-rc: warning: unable to start service otbr-agent: command exited 1
s6-rc: info: service legacy-cont-init: stopping
s6-rc: info: service legacy-cont-init successfully stopped
s6-rc: info: service fix-attrs: stopping
s6-rc: info: service fix-attrs successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped

I feel that asking generic Linux questions like this is off-topic for this forum (even though your goal is to eventually get it working with Homey SHS, you’re basically asking how to set up OTBR on Ubuntu, and there are probably better forums to ask this on).

1 Like

I thought that there might be some better solutions or something specific to do for Homey. Home assistant has its own extension, so I thought that it needs something custom as well.

If you have something specific for Homey to present, that would be great, but like I said, I feel that asking questions about setting up OTBR are off-topic for this forum. Otherwise, people might get the idea that asking general Linux questions (“How do I install Linux so I can run Homey SHS?”) would be okay here too.

Like I said, I thought that there are some better solutions or tweaks that have to be done so that I wouldn’t have to do it the standard Docker way. I asked if someone did get it to work on SHS, so I think that it’s appropriate question.

You literally asked “I want to use the OpenTjread Border Router on my Ubuntu server with Homey”, and then show that you cannot get the OTBR to work and need help with that :man_shrugging:t3: Getting OTBR to work with your specific hardware is off-topic here.

I literally asked how to make it work with Homey. To prevent questions like “send me the log or send us more info” I sent a log because I thought that somebody may say that I do it the wrong way and that I should use some sort of a plugin or other app to make it work with Homey. I asked on a Linux thread about using something with Homey, so I think that is appropriate. I just wanted to know if somebody did it as well, so they could tell me what is wrong. Please don’t always cite my previous sentences, you just repeat everything. This could have ended by you responding to my first answer something like “Oh, okay” :man_shrugging:

Ah okay, if you’re asking how to make it work with Homey, my answer would be: get OTBR to start properly first. How to do that is off-topic for this forum.

1 Like

I followed the instructions on how to update Self-Hosted-Service on Linux and now my old “Self-Hosted-Homey” is delete an make as a new SHS?! No Backup, nothing, the description is not correct. I have e new system without any devices, apps etc. this not an update.
Anyone know what is going wrong?

Greetings

I did not do the remove, just docker pull (as mentioned in the instruction) and docker compose down and then up. Seems to be running fine on the new version

ok thank you maybe Athom Homey should change that in her description. but for me its to late :man_shrugging:

It may be slightly different when using docker compose, I see the update instructions are different there.