Noob: New devices

Hello all.
Apologies for posting here. I’m surprised there isn’t a newbies section on the forum!

Is it possible to add custom attributes to devices? I have a few Zigbee sensors that I am using with Zigbee2MQTT and I would like to add info such as last seen, link quality and more importantly battery level.

Hey there,
Look up your sensor in Developer Tools -> States.
Are the info you need reported there? in the Attributes column.

No. I don’t have MQTT discovery enabled in Zigbee2MQTT. I added a couple of the sensors manually but I could not see how I can add additional attributes in addition to those documented specifically under light/switch/sensor

Edit: Thank you @krash

It’s not obvious how this can be achieved, however, I have bene able to create additional “sensors” and set the state_topic to capture the value of the battery. I also did the same for the last_seen state of each sensor.

I don’t know if this is the way users are expected to add attributes but it doesn’t strike me as an efficient or logical way to add useful attributes. This is my view as a new user and I hope this is seen as constructive feedback.

I am currently using OpenHAB and wanted to explore HASS and set up a parallel system to decide which is the best solution for me.