YES
Read the post from francisp
effectively, i have deconz in my integrations(supervisor) ā¦
so i have to uninstall it but how can i do that ? thanks
ok i have seen itā¦
if i understood correctly, it is not possible to use zha and zigbee2mqtt together ā¦
if you uninstall deconz, the zigbee devices in zha no longer work
so how to use zigbee2mqtt? thanks
sorry but i am a beginner in ha
confronted with the identical issue I added the 'serial" entry in configuration.yaml, which leads to the following error:
2021-09-14 12:41:25 ERROR (MainThread) [homeassistant.setup] Setup failed for serial: No setup or config entry setup function defined.
ā¦ how to proceed please? only connected the Deconz stick, no other add-on configured
would I need a port forward maybe (since I am not on the default ports with my HA instance )?
The part of configuration.yaml containing serial should at least contain the port the adapter is attached to.
serial:
port: /dev/ttyACM0
adapter: deconz
And we are talking about the configuation.yaml of zigbee2mqtt, not about the configuration.yaml of home assistant.
thank you! I completely missed that, (probably because there is no configuration.yaml for the zigbee2mqtt add-on, but a configuration panel). Duh. But there isā¦ in the zigbee2mqtt folder. no wonder it is all so confusing. Never use an identical name for different files ;-(
it was immediately successful, how cool is that!
now how to get it to not show under āhomeassistantā in mqtt explorer, but under its own login name?
by default it uses mqtt discovery (which imo is also enabled by default in HA). So the entity should appear immediately (check developer HA page).
If you donāt have discovery enabled or donāt want to use it, you can add entities on your own. usually you can find needed yaml code on zigbee2mqtt portal on page dedicated to particular device.
I suggest however to change the name of device to something more friendly first (use blue edit icon shown on your screenshot)
thanks, and yes, ive changed the friendly name.
Also I set homeassistant: false
( have 3 HA instances, which makes the moniker somewhat useless )
it now is found under:
with as you can see all relevant values in the 1 payload. Before with the homeassisant: true
it shows like this:
why I dont get that now is still bit unclear to me. shouldnāt I see that, but under the zigbee2mqtt base topic?
I have 3 HA instances too, but still homeassistant: true
This is the actual payload, independent if homeassistant true or false
These are the mqtt auto-discovery messages, only when homeassistant: true :
yeah, figured as much so we cant rename the homeassistant
there?
maybe more importantly: we dont need those discovery messages for eg creating an mqtt switch? seems a bit of a hassle, where I would have hoped the sensors and switches on the device to be available in the HA entitiesā¦
off-topic:
maybe I should explore the ZHA integration too, and see if that does create the entities. Wonder if we can configure that to use the Conbee on another HA instance, just like we can do with the zwaveJS server and integration.
No. That is the topic HA listens on for auto-discovery messages
If not using discovery, you have to enter everything manual in .yaml (and you wonāt have devices, since devices are only created through discovery)
if using discovery everything appears in entities.
thanks. I checked once more, but I dont see any Frient entity, even having clicked the āchange homeassistant friendly_nameā checkbox.
not a single sensor or switch from the Z2M server is created, only mqtt topics? maybe I need an extra setting somewhere?
Set homeassistant: true and restart zigbee2mqtt
yes, thats what I have doneā¦ few times, and still no entities in sight.
Did manage to set the discovery topic though:
advanced:
homeassistant_discovery_topic: zigbee2mqtt
nicely adds all under the 1 key in mqtt explorer:
and the user: and password: options allow to separate the logins on the broker easily, I feel that is a much underestimated option.
for now I remain in quest for the entitiesā¦
Does not change the fact that homeassistant itself still listens on homeassistant to discover devices.
Homeassistant configuration.yaml :
mqtt:
broker: x.x.x.x
port: 1883
discovery: true
discovery_prefix: homeassistant
yeah well, I dont use discovery , because way too many topics this simply cleans the mqtt explorer window for me.
which now makes it all clear: thats why there are no entitiesā¦? duh.
indeed. Entities are created through mqtt auto-discovery.
ok, this has been a while, please help me outā¦ creating individual mqtt sensor on my HA instances, I test with:
- platform: mqtt
state_topic: 'zigbee2mqtt/Frient test switch'
unique_id: frient_test_switch
name: Frient test switch
which subscribes to
and {{states('sensor.frient_test_switch')}}
nicely returns:
{
"current": 0.04,
"energy": 0,
"linkquality": 135,
"power": 6,
"state": "ON",
"voltage": 222.59
}
now how do I add the template to get to the individual attributes there:
- platform: mqtt
state_topic: 'zigbee2mqtt/Frient test switch'
unique_id: frient_switch_power
name: Frient switch power
value_template: >
{{value.power|float}}
<<: *power
must be easy but my head is spinning right nowā¦ hope you can have a look thanks!
EDIT:
nevermind, it was easy
- platform: mqtt
state_topic : 'zigbee2mqtt/Frient test switch'
name: Frient switch power
unique_id: 0x0015bc002f00e485_power_zigbee2mqtt
value_template: >
{{ value_json.power|float }} # <-- needed to add _jason
sorry for bothering and the (though related) off topic.
tip: the āconfigā topics which Zigbee2mqtt creates for all entities hold all necessary info (and more) ready to use, so we donāt even have to find out ourselves. really very cool.