There is not such thing as a shelly dimmer (Yet…) They are on pre-order on the website
And I can’t find any information on their website about the MQTT topics to use for the dimming
But you could try a percentage channel or a number channel and then link it to a Dimmer item
You can’t just make syntax up. That would look at your output string as if was JSON, find a field called brightness and extract a value. You want the exact opposite - take a value and add JSON structure around it.
Before binding 2.5 that was usually done with rules, but now you could use a javascript transformation. Or maybe just add fixed text with formatBeforePublish
I tried to use Shelly bindind first.
Yes, true, is simple and the devices is discovered, but I found that when the device state is changed out of openhub, e.g. using the local button, the update of status in openhub is slow.
I suppose that Shelly Binding use REST API (the configuration required to set http user and password), and the “polling interval”.
Using MQTT instead the status is updated when the MQTT topic is received from the broker like as “event driven”.
My last info was that using the official shelly binding doesn’t support actions like “long push”.
Is it possible now? Thats the whole reason why I’m using MQTT.
I’m also still using MQTT instead of the Shelly binding.
There are advantages of it I think:
Less binding installed, less binding related problem
All of my switches using MQTT, so it is much more straightforward to use it here also.
And: you don’t have to wait for the maintainer to update the database/add new devices and fix bugs in the binding. As far as I know, right now even the latest openHAB release is not working with the latest Shelly fw because the CoIoT protocol changed…
Yes, I am also using MQTT partly for these reasons. Additionally with MQTT I defined all things via text files and after a fresh new install of OH I do not have to wait fot auto-discovery of things etc, it justs works immediately. I Have a couple of Shelly Dimmers and they work fine with MQTT.
That is true. However my complete setup for the Shelly devices at the moment is via MQTT and it is working perfectly flawless. Is there any advantage if I use the Shelly binding?
Can‘t really tell, it is some kind of personal flavour. One thing i would mention, you don‘t have to break your head about incoming or outgoing transformation.