-
Notifications
You must be signed in to change notification settings - Fork 303
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 port for zigbee2mqtt frontend #167
Comments
Can you provide details? A link to the information would help. I don't think zigbee2mqtt exposes any ports. Or, if it does, I can't see how. As an example, I asked the Mosquitto image two questions:
Now ask the zigbee2mqtt image the same questions:
So, the latest zigbee2mqtt image created three days does not expose any ports. Are you sure you are not talking about something else (eg "node-red-contrib-zigbee2mqtt")? |
I think this is the one mpuff is meaning: https://www.zigbee2mqtt.io/information/frontend.html
|
Thanks @mats-nk - that makes sense. I don't have CC2531 adapter so I can't test this directly, but I think this is what needs to be done. I'd appreciate it if someone else could test this and see if it works. Step 0Everything here assumes you are working in
Step 1If you have not already installed zigbee2mqtt, run the menu:
Do NOT run Step 2Attach your CC2531 adapter to your Raspberry Pi.
Make sure the adapter appears:
If the device does not show up, you will need to work out why and fix it. Step 3Use your favourite text editor to open Find the
Edit the
Step 4Bring up the zigbee2mqtt container:
Follow the log:
If zigbee2mqtt does not start normally, the container will probably restart and that terminates the However, if zigbee2mqtt starts normally and finds the CC2531 adapter, you will get a few log messages and things will appear to hang. Press Control+C to stop following the log, then take down the zigbee2mqtt container like this:
Step 5The first run of zigbee2mqtt creates this file:
Use
Save the file. Now, use your favourite text editor to open
The two changes are:
Save the file. For safety, you should also edit the following file to make it look the same:
If you don't make the same changes to Step 6Bring up the zigbee2mqtt container:
As before, follow the log to look for signs of problems:
If everything looks OK then try connecting to your Raspberry Pi on port 8080. DiscussionttyACM0 vs ttyAMA0It isn't clear why the IOTstack template for zigbee2mqtt references If anyone knows of a situation where "ttyAMA0" would be appropriate, please explain and give an example. Absent an example, it seems to me it would be appropriate to change the template to look like:
Host modeThe template defines:
The sole reason for this seems to be the chicken-and-egg created by:
Host mode is never a great idea. It causes confusion for users (who wonder why they can't see the port in All things considered, it would be better if zigbee2mqtt was massaged into some semblance of consistency with other IOTstack containers. The changes here are an attempt to make it consistent but, before we can consider propagating any of this into the template, we need to know if it works, or if there is another reason why the container needs to run in host mode. Over to someone else... |
Everything is working whe i set it up with your description 👍 |
But when we install openhab, port 8080 is used, maybe we can map this port to another one that is free if we install also other containers ;) |
Assuming that it is set up as above, just edit
To apply the change, you just If you make the same changes in |
Hello,
the latest zigbee2mqtt has a frontend now, please add this port to the config.
The text was updated successfully, but these errors were encountered: