After a bit of playing with the MQTT API, I'm struggling to understand why the new API is forcing everything through the rpc channel? But I think I got it working:
Note I have a custom MQTT prefix so in this case shelly/ug/light.
This turns the light on:
Code
mosquitto_pub -h mosquitto.server.lan -t 'shelly/ug/light/rpc' -m '{"id":1, "src":"user_1", "method":"Switch.Set", "params":{"id":0, "on":true}}'
and I get the return on the topic 'user_1'.
So far things aren't so bad. But how are people hooking this into homeassistant? Previously with the topics exposed it was really easy to do so but now it will require quite some extra parsing. I figure it's not that tough but if someone has it already....