shellysim

command
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 11, 2026 License: Apache-2.0 Imports: 11 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL