Since I didn't want to mess with my host system (and also had no empty raspi, I could use), I made a docker-container.
This works fine (I may PR it here, if someone is interested), but I had to set privileged and network_mode:host to get this working.
It seems to change routes on the host, since privileged and network_mode:host gives a lot of control to the container. After stopping the container I have some network-related issues (connection problems to other docker-containers on the same computer).
Only restart of host helps.
@kueblc - I've seen you're commenting about your branch create-ap to use in ubuntu/docker. What's the difference to this master? I've only seen it has 42 additional commits, but not quite sure what's the purpose of this branch, since this master also works for me on a ubuntu docker/ubuntu host combination besides this side effects.
create_ap is a third party script maintained by @oblique that makes it dead simple to launch an AP. In the create-ap branch I replaced the setup_ap script with a call to create_ap.
Older versions of tuya-convert were a little destructive when setting up an AP, and as I was having trouble getting it to work on my Ubuntu desktop I considered that outsourcing this task would make things easier.
Since #225 I've been able to correct most if not all of the issues, so I've ceased maintaining the create-ap branch. I would recommend trying the development branch if you haven't already.
Ok, I'll try the development branch this week, maybe I'll find the problem or perhaps it get's solved by this branch. I'll report then and close this issue.
Thanks for clarification.
Closing for now @Cyber1000 but feel free to reopen if you need to follow up
I've tried the newest branch and it seems to work, no destructive settings anymore! Just wanted to mention this, sorry for the late reply.
Great, thanks for following up!
Hello @Cyber1000,
do you mind sharing your approach using docker? I prefer the idea of docker over using a RPi every time I get some new devices :)
Thanks!
@moritzj29 No problem, it's a setup separated into Dockerfile (for building a docker-image locally) and docker-compose.yml (for running the container). You have to use it on linux-host (I used ubuntu, but shouldn't matter really if you take a well known linux distro).
Hope the readmes are clear (I've just written them, these repos were for personal use until now). Feel free to ask, if not.
Building docker-image: https://github.com/Cyber1000/Docker-Images-Tuya
Using the container with docker-compose: https://github.com/Cyber1000/Docker-Services-Tuya
Perhaps I'll make a PR somewhere in the future to include the Dockerfile in this project, but there are some minor (mostly cosmetic) points I would change.
@Cyber1000 thanks for your work. I little edited your work for rpi4
https://github.com/Daviteusz/Docker-Images-Tuya
And working very good.
@Daviteusz You're welcome :-)
Some points:
I assume the phusion/baseimage:0.11 part was the tricky part why it didn't work for rpi4?
Most helpful comment
@moritzj29 No problem, it's a setup separated into Dockerfile (for building a docker-image locally) and docker-compose.yml (for running the container). You have to use it on linux-host (I used ubuntu, but shouldn't matter really if you take a well known linux distro).
Hope the readmes are clear (I've just written them, these repos were for personal use until now). Feel free to ask, if not.
Building docker-image: https://github.com/Cyber1000/Docker-Images-Tuya
Using the container with docker-compose: https://github.com/Cyber1000/Docker-Services-Tuya
Perhaps I'll make a PR somewhere in the future to include the Dockerfile in this project, but there are some minor (mostly cosmetic) points I would change.