How to configure descriptions?
You need to configure (f.e. in your network) server which will respond to app GET requests and will send back JSON file with description. This JSON file should look like this:
This example is valid for Shelly 2.5. For Shelly 1 or other single input devices JSON should have only description for first input. Shelly4pro should have 4 description because it has got 4 inputs. Input_1_en can have value 0 or 1. 0 is disabled, 1 is enabled. If input is disabled there is no possibility to toggle input state via Shelly MQTT app (but there is possibility to do this via webpage or via MQTT command directly). For example – if you have connected some equipment which should be always turned on – you can disable corresponding input and there will be no possibility to turn off that input via Shelly MQTT app.
Variable passed to server via GET is device mac address (f.e. http://your_server_ip/your_script.php?mac=AA:BB:CC:DD:EE:FF).
Since version 1.0.9 I added also possibility to receive from server list off all devices. Generally you need to send GET request to http://your_server/yourScript?getAllIP=true . And the server should respond as f.e.:
All is in attached example. Generally this should be usable for example in scenario when you want to get access via VPN to local network not via MQTT but via REST.
Here you can download working example in php and corresponding database is MySQL. This PHP file is more like proof of concept. It need to be secured.