Shelly Pro 3EM: support switch add-on (#22905)
This commit is contained in:
parent
6d79224de2
commit
20250ac4a3
3 changed files with 137 additions and 34 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue