WebSockets

Has anyone been successful with sending websocket strings to a local IP from SmartThings? I have a simple string I’d like to send to a device. I have read some threads on this here, but everything is rather old and dated. I’m hoping someone figured this out.:grin:

Thanks.

This could be useful

Thank you. I would need some advice on how to implement it, though. I was successful in getting websockets to work by using Todd Austin’s HTTP Edge Driver, sending that to a perl service running on a RHEL 9 box that converts HTTP to WebSocket and then sending that to the device. It works well. However a simpler solution would be nice. Could you explain the Shelly WebSocket driver some, and how I could use it?

Thanks

You can use this driver as model. Start exploring by looking at the init.lua

I am using it as a model, and I don’t understand everything about how WebSocket work. I have focused solely on implementing The Pill by Shelly integration using the WebSocket.

OK. Thanks you.