cytrinox
(cytrinox)
September 29, 2020, 7:55pm
1
I’ve a small test setup for openHAB 2.5.9 and want to configure the brightness for a Hue lightblub.
I can change the brightness with:
mosquitto_pub -t zigbee2mqtt/L_Desk/set -m '{"brightness":"100"}'
But what is the correct setup in Paper UI for this?
I assume I need to tell openHAB to send it as ‘{“brightness”:“100”}’, but how?
To make this easier, I would recommend to add:
experimental:
output: attribute
to your zigbee2mqtt configuration.yaml
.
This means you’d only need to send 100
(or any number) to zigbee2mqtt/L_Desk/set/brightness
(note the change in command topic; your state topic remains the same).
I’ve been using zigbee2mqtt for quite some time, for details look here:
and here:
Recently I discovered a new option of zigbee2mqtt: attribute output. This option, in company with the mqtt2 binding, provides a nice solution.
This option simply gets rid of the json-formatted output and transmits all attributes separately.
You enable it via configuration.yaml.
experimental:
output: attribute
The benefits are:
no more json-encoded output => no jsonpath-transformation
no more missing …
1 Like
cytrinox
(cytrinox)
September 29, 2020, 8:04pm
3
Wow, many thanks Works now.
I already use output: attribute
but was not aware of this topic. Is it possible to browse/discover the available topics?
A similar conversation happened not too long ago:
This is a long and useful topic! This may be more of a Zigbee2MQTT question but how do we find out all the available options that something like a Hue RGB bulb has?
I am used to my Xiaomi sensors and sockets which seem to broadcast their current status. Am I right in saying the HueBulbs don’t broadcast their current state and settings?
I don’t have any Hue devices though, so your experiences may vary!
1 Like