Shelly Pro 3EM: support switch add-on (#22905)

This commit is contained in:
Markus Thierolf 2025-08-13 09:31:34 +02:00 • committed by GitHub
parent 6d79224de2
commit 20250ac4a3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 137 additions and 34 deletions

View file

@ -100,7 +100,7 @@ const shellyMiddleware = (
res.end(JSON.stringify({ gen: 2 }));
} else if (req.originalUrl === "/rpc/Shelly.ListMethods") {
res.end(JSON.stringify({ methods: ["Switch.GetStatus"] }));
} else if (req.originalUrl === "/rpc/Switch.GetStatus?id=0") {
} else if (req.originalUrl === "/rpc/Switch.GetStatus") {
res.end(
JSON.stringify({
apower: state.site.pv.power,