zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

[Experimental feature] Webbased frontend

Open Koenkk opened this issue 6 years ago • 261 comments

This experimental feature allows to run a frontend straight from Zigbee2MQTT (so no additional setup is required). This frontend is developed by @nurikk, the source code can be found here: https://github.com/nurikk/z2m-frontend

To enable this, switch to the dev branch and add the following to your configuration.yam.

frontend:
  port: 8080

In case you find any issues in the frontend, report them here: https://github.com/nurikk/z2m-frontend/issues

Koenkk avatar Sep 04 '20 16:09 Koenkk

Initial impressions using firefox on macOS

  • ~~the padding is a bit tight see the left side.~~
  • some of my devices are at half or less battery %, perhaps the battery icon could also reflect this.
  • device/info page could perhaps link to the online docs, as they usually have pairing notes or even configuration notes.
  • (not really a frontend thing but) perhaps we should update the product images so they have a transparent background
  • product images are hotlinked from the main site, if you proxy the interface over ssl, you get mixed content warnings at best or they don't load at all. ==> fetch these in the background and cache them locally?
  • perhaps the 'action' menu should just be 2 right aligned buttons
  • log tail with maybe some color highlighting would be nice to have eventually too
  • would be nice to have device_options editable via the settings tab
  • per-device options would also be nice to have editable somewhere
  • large networkmaps are... euhm useless netmap

The group view is absolutely amazing!

Very promising start!

sjorge avatar Sep 04 '20 18:09 sjorge

The bind tab also no longer show the devices friendly name, the network address is still in the URL though, but would be nice to also have that visible.

scrshot

sjorge avatar Sep 05 '20 14:09 sjorge

Does using port 8080 conflict with Domoticz, when it's on the same RPi as Z2M?

Westcott1 avatar Sep 05 '20 20:09 Westcott1

Does using port 8080 conflict with Domoticz, when it's on the same RPi as Z2M?

You can specify any port in configuration

nurikk avatar Sep 06 '20 02:09 nurikk

Sorting is working great, except for the power colomn.

sjorge avatar Sep 06 '20 18:09 sjorge

Guys, as I understand it, the map is saved only for the current session in the browser?

SAOPP avatar Sep 06 '20 19:09 SAOPP

Guys, as I understand it, the map is saved only for the current session in the browser?

Yes, refresh page and you lose your data

nurikk avatar Sep 07 '20 03:09 nurikk

Sorting is working great, except for the power colomn.

What wrong with it?

nurikk avatar Sep 07 '20 03:09 nurikk

How do you find this way of showing logs? (only data from bridge/logging is shown) Screenshot 2020-09-07 at 11 09 34

nurikk avatar Sep 07 '20 03:09 nurikk

It doesn’t do anything.

I would have expected the battery and mains powered one to be grouped together. (Or ideally sort the battery ones on battery level)

~ sjorge

On 7 Sep 2020, at 05:12, John Doe [email protected] wrote:

 Sorting is working great, except for the power colomn.

What wrong with it?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

sjorge avatar Sep 07 '20 05:09 sjorge

Interesting... I don't have a logs menu. It's optional menu? And it can be turn on from configuration?

SAOPP avatar Sep 07 '20 05:09 SAOPP

Interesting... I don't have a logs menu. It's optional menu? And it can be turn on from configuration?

it's sneak peek from my dev environment, stay tuned :)

nurikk avatar Sep 07 '20 05:09 nurikk

It doesn’t do anything. I would have expected the battery and mains powered one to be grouped together. (Or ideally sort the battery ones on battery level) ~ sjorge … On 7 Sep 2020, at 05:12, John Doe @.***> wrote:  Sorting is working great, except for the power colomn. What wrong with it? — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

You should update dependencies, yesterday I've released update. It adds sorting by battery level Screenshot 2020-09-07 at 13 45 11

nurikk avatar Sep 07 '20 05:09 nurikk

Also upcoming touchlink page Screenshot 2020-09-07 at 14 40 41

nurikk avatar Sep 07 '20 06:09 nurikk

Also upcoming touchlink page Screenshot 2020-09-07 at 14 40 41

Oh how do you get the devices it detected? I was not aware z2m exposed that information, well i guess if you open the network for joining before doing the request you could see which ones publish a deviceJoined event.

sjorge avatar Sep 07 '20 06:09 sjorge

Also upcoming touchlink page Screenshot 2020-09-07 at 14 40 41

Oh how do you get the devices it detected? I was not aware z2m exposed that information, well i guess if you open the network for joining before doing the request you could see which ones publish a deviceJoined event.

This feature yet to be implemented, but in general it's just splitting this code and exposing via z2m https://github.com/Koenkk/zigbee-herdsman/blob/33d13a2fba4cc306d11398bf608293c2a6c7aa63/src/controller/touchlink.ts#L16

nurikk avatar Sep 07 '20 07:09 nurikk

So after some changes it could be publish under the zigbee2mqtt/bridge/config/touchlink/+ topic, that be nice.

sjorge avatar Sep 07 '20 08:09 sjorge

@nurikk Given I have a large network map, would you be interested in the the output? real output to work off or create tests from is always useful IMHO.

sjorge avatar Sep 07 '20 12:09 sjorge

very nice work! Any chance of having a linkable/proxyable config page from within HomeAssistant to get to the new Z2M GUI? I have Z2M, letsencrypt(incl NGINX rev. proxy) in separate containers so maybe an HA ingress based solution is needed? I prefer not to open up another endpoint straight via the NGINX reverse proxy, as the page doesn't have authentication. So using the authentication of HA would be nice/enough.

netweaver1970 avatar Sep 07 '20 15:09 netweaver1970

I might have missed it but is there already an interface for binding/unbinding remotes to groups? That part of Z2M can also use some GUI love.

netweaver1970 avatar Sep 07 '20 15:09 netweaver1970