mercenaruss / uzg-firmware

Firmware for ZigStar UZG-01
GNU General Public License v3.0
73 stars 11 forks source link

Config MQTT (auto discovery) #14

Closed Razzer90 closed 6 months ago

Razzer90 commented 10 months ago

hi, thanks for the great update. i'm just a bit at a loss as to how i can display the mqtt as sensors in home assistant? or restart the gateway via mqtt? i can see the individual mqtt states from the uzg in the mqtt explorer. but unfortunately there is no auto discovery in home assistant. thanks again!

xyzroe commented 10 months ago

Did you enable toggle that called "Discovery" ?

Razzer90 commented 10 months ago

yes the switch is on, i also see everything in mqtt explorer, but mqtt has no entries from the uzg

xyzroe commented 10 months ago

Just checked myself

Screenshot 2024-01-13 at 11 51 16 PM Screenshot 2024-01-13 at 11 51 05 PM Screenshot 2024-01-13 at 11 50 53 PM
Razzer90 commented 10 months ago

thanks for your help! i tried everything, home assistant reboot, uzg reflashed etc. the solution for me, i renamed the mqtt topic and it came up! perfect!

xyzroe commented 10 months ago

What name topic had before rename and after?

Razzer90 commented 10 months ago

it was previously called Zigstar UZG-01, which did not work. now simply UZG-01 and it worked immediately

xyzroe commented 10 months ago

So it was a space in the topic name?

Razzer90 commented 10 months ago

yes, there was a space in between

xyzroe commented 10 months ago

Add check input mqtt topic

dilighiani commented 10 months ago

Can I run 2 instances of HomeAssistant (on 2 separate machines), one connects via ZHA and the other connects to the MQTT broker available on the UZG?

I tried first with ZHA, but then I am not able to make it to connect to the MQTT broker (enabled on the UZG).

xyzroe commented 10 months ago

connecting to the ZHA brings up Zigbee functionality but MQTT brings only internal states of your ZigStar. so the main purpose is different. what do you try to make?

dilighiani commented 10 months ago

I am trying to have 2 * Home-Assistant servers, integrating the same zigbee network via UZG controller; (1) the main-server over ZHA and (2) the test-server over Z2M.

But it looks that both integrations are trying to coordinate the zigbee network and I receive error when Z2M is connecting and overwriting the ZHA.

Your Zigbee radio's network settings are inconsistent with the most recent network backup. This usually happens if another Zigbee integration (e.g. Zigbee2MQTT or deCONZ) has overwritten them.

ZHA-Z2M

Anyway ... forget it ... as actually this is not related to UZG-firmware.

dilighiani commented 10 months ago

connecting to the ZHA brings up Zigbee functionality but MQTT brings only internal states of your ZigStar. so the main purpose is different. what do you try to make?

Yes, now I re-read your words and I understand that the MQTT page brings ONLY the internal states of the device.