Shelly Gen.2 devices works with rpc and an other authentification method.
Pls. read this ☕️
Authentication | Shelly Technical Documentation
Communication through HTTP and Websocket channels is secured by a digest authentication mechanism using the SHA256 hmac algorithm as defined in RFC7616.
shelly-api-docs.shelly.cloud