I’ve just installed a new Gen 4 Shelly dimmer as part of my bathroom upgrade. Howver I am having problems pairing the device with Zigbee2mqtt. It finds the device but loads an automatically generated profile.
I know the device is supported by z2m and the notes on the page here suggest pairing via Wi-Fi and the Shelly App and then upgrading the firmware.
I have done this and installed the latest firmware, however trying to pair with z2m results in failure. I can access the web interface on my Wi-Fi network and notice there is a configuration page for mqtt settings.
Should I enable these settings and what should I choose for the connection type and do I need to enter the HA mqtt server details with username and password.
I had assumed, perhaps incorrectly, the device would be added automatically on discovery by z2m like any other zigbee device?
Thank for responding @patrikg. I have now resolved this. for anyone with a similar problem who finds this post the following is how I fixed it.
Out of the box the Shelly dimmer Gen 4 defaults to Matter Firmware so in order to use it with ZHA or Z2M you have to switch firmware as follows:-
Install shelly dimmer Gen4 and ensure it has power
download and install the Shelly App on your phone
register the app and then scan wifi networks. It should find your device
Take a note of the IP address found under device information at the bottom of the Cog menu
enter the IP address in a web browser and navigate to the web interface
once in the web interface go to settings>device settings> firmware
Update to the latest available firmware
reboot the shelly
navigate to Settings>Device Settings>Switch to Alternative Firmware
Select the Zigbee firmware and click on switch to Zigbee.
Once the device has rebooted it should be in pairing mode and you should now be able to discover it in Z2m and add it as a device together with the latest profile that exposes all of the devices functions and states.
Are you using Z2M to turn a light on/off as well as dim it?
For the life of me - I can only get the on/off state to work. Dimmer is exposed in Z2M but does nothing. If I use the Shelly App on my iPhone, it calibrates and will dim the light so something weird going on (either my incompetence or the devices!)
Hi Sam @xxswilly
Yes the intention eventually is to dim the lights. However this is a bathroom refurb project and although the wiring is done I have no downlights attached until the fitter installs the bathroom and I can paint the ceiling. I’ll have a look back at my notes from chatGPT when I get a minute and post the automaton yaml if I can find it. Either way I’ll report back when lighting is installed.
John
@xxswilly for me changing the brightness via z2mqtt works.
Quick followup question for your or anyone who already has the Shelly Dimmer Gen4 installed. Does your home assistant update the state and brightess of the light when you change it on the Shelly directly, for example via a physical button or in the app.
In my case I can control everything in my home assistant via z2mqtt, but do net get an update when anything changes on the shelly side.