Documentation
¶
Overview ¶
Command shellysim serves simulated Shelly devices, so a Shelly client can be tried without devices. Each device is an HTTP server of its own on 127.0.0.1 (real devices each have port 80 on their own address):
shellyplus2pm-a8032ab10001 Plus 2PM, two switches with meters (Gen2) shellyplus2pm-a8032ab10002 Plus 2PM in cover mode (Gen2) shellyplusplugs-a8032ab10003 Plus Plug S (Gen2) shellyplusht-a8032ab10004 Plus H&T (Gen2, battery) 98CDAC1F0005 Shelly 1PM (Gen1) 98CDAC1F0006 Dimmer 2 (Gen1)
Gen2 devices answer GET /shelly, POST /rpc and ws://…/rpc; Gen1 devices the Gen1 HTTP API. With -coiot host:port the Gen1 devices send their CoIoT status message there every -interval, as real ones multicast it. With -all it also serves sim.NewFullDemo's Gen3, Gen4, metering, input, RGBW and timed cover devices; with -mqtt host:port every device connects to that MQTT broker in MQTT mode.