Hi,
Thank you so much for that.
Firmware version: 0.6.10
Firmware build ID: 20210810-125223/0.6.10-g11bf9a3
Web build ID: 1.3.0-HEAD+g941e9d9
So far :
1. for Ethernet (Eth) it's similar: it doesn't work
curl -X POST -d '{"id":1, "src":"user_1", "method":"Eth.SetConfig", "params":{"config":{"sta":{"ipv4mode":"static","ip":"172.16.2.120","netmask":"255.255.252.0","gw":"172.16.0.1","nameserver":"172.16.0.1"}}}}' http://172.16.2.120/rpc
result:
{"id":1,"src":"shellypro4pm-xxxxxxxxxxxx","dst":"user_1","result":{"restart_required":false}}
But the setting is not updated
2. Authentication works well with
curl --digest -u admin:password 'http://172.16.2.120/rpc/Switch.Set?id=0&on=true'
for example, though it is a pity only 'admin' is allowd as name of a user.
Also, I do not get any response, and have to relay on the curl exit code:
Not a bug, just a remark
Took me some time to figure out the new curl syntax with authentication.
I have not found a way to use syntax in point 1 url yet, to send a valid command.
This is no issue, devices that have a password are merely child protected
Small remark is that since everything goes over http protocol, all is visible on the network with a sniffer.
Finally, it is SO cool the device supports http callbacks. The PRO didn't and so had to rely on other methods to get the status of the relays in sync with the server.
Further: Also cool is now timer in seconds in stead of minutes.
And what a cool API spec documentation! It looks fabulous!
I'll be testing the switch functionality a little bit later...
Thanks again for your valuable information and sharing of this. I really do appreciate it!