Closed MarcovBarneveld closed 1 year ago
The command /relay/0?turn=toggle
is a gen1 command and does not work on Plus / Gen2 devices when used in the custom command card. The correct command for toggling a Gen2 device would be: /rpc/Switch.Toggle?id=0
. Not sure why you would want to use the custom commands for this though as it's supported by flow cards as well.
Hi,
The idea behind this is that I want to prevent that this device is (accidentally) powered on/off by hand, in the app. So I set it to 'always on' in Homey. The catch is that I cannot control it with Homey flows on/off anymore either.
/rpc/Switch.Toggle?id=0 does not work --> mg_rpc.c:291 No handler for /rpc/Switch.Toggle
This is all new to me, so I have been playing with te command a bit and got it working. The right command should be: Switch.Toggle?id=0 (OR Switch.Set?id=0&on=false/true.)
I don't know what causes this difference between what you thought the command should be and what actually works.
In any way I got it working!!! Thanks for the help!!!!
Kind regards, Marco
I have A Shelly plus 1PM (with temperature add-on). When I enter "http://192.168.1.45/relay/0?turn=toggle" (or on/off) in Chrome, the shelly executes the correct command. When I use "relay/0?turn=toggle" as a command in the homey app, the shelly does not respond. In the logging is this message: " shos_rpc_inst.c:207 No handler for relay/0 ". I tested wothc 1.0.0-beta1 and 0.14.1. Both have the same 'issue'. Other shelly devices I own (Plug S, 1 PM (withe Temperature add-on) ) do work woth the same homey command.
What is the problem here?
Kind REgards, Marco van Barneveld, Homey Pro early 2019