OptionalaudiencesRelay identities a command may name; replaces the defaults (the emulator's own addresses) when given.
OptionalcorsExact origins (https://host[:port], no path, no wildcard) that browser pages may call the emulator from.
OptionaldigestName of the environment variable that holds the Shelly digest password; when set, Switch.Set needs digest auth too.
OptionalhostAddress to listen on, 127.0.0.1 unless told otherwise.
OptionallogReceives one line for each command and each refused request.
The clock, in seconds.
TCP port to listen on; 0 lets the operating system pick a free one, which RelayEmulator.url then reports.
OptionalrequireWhether Switch.Set needs a valid X-Umis-Command. True unless told otherwise.
Public keys whose relay commands the emulator obeys.
What
startShellyEmulatorneeds: where to listen, which keys to obey, the clock, and the optional protections.