Is it possible to send custom commands with zigbee2mqtt? I have found that I can send commands with Mosquitto, but they don't seem to be transferred directly. I am trying to send the commands to a Nordtronic dimmer.

If I send {"brightness":100} from Mosquitto, zigbee2mqtt sends
{"brightness":100,"linkquality":191,"state":"ON"} to the device. I would like to know if the device can accept {"brightness":100,"linkquality":191,"state":"OFF"}, so I can change the set brightness without turning the light on.

A question that is somewhat related:
How to automatically dim the bathroom light at night with Home Assistant

  • 1
    What happens if you send {"brightness":100, "state":"OFF"} ? Or perhaps if you send two separate commands one after the other, to set brightness to 20 and then state to off ? Commented Jan 24, 2022 at 17:43
  • Oh. I noticed that you were able to achieve what you wanted via another method. Perhaps you can add what you learnt here as comments or just close this question if the other one serves the purpose. Commented Jan 24, 2022 at 17:45
  • if I send send {"brightness":100, "state":"OFF"}, zigbee2mqtt won't accept it and throws in error instead of forwarding the message. Maybe devices can easily get damaged if they receive strange requests, that could be a reason why it is not possible.
    – Orbit
    Commented Jan 25, 2022 at 12:32
  • I have added a link to the other question, it is quite different, but maybe someone will find it useful. I am considering deleting this question because it does not seem that useful.
    – Orbit
    Commented Jan 25, 2022 at 12:35


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.