Commit 72aea03
committed
fix(switch): drive RPiEasy outputs pin-free via taskvaluesetandrun
RPiEasy's /json does not expose a GPIO pin (unlike ESPEasy), so without a
manually configured pin the only command tried was '<taskname>,<state>',
which RPiEasy rejects with body 'False' — leaving RPiEasy switches dead
unless the user hand-set a pin in options.
Add 'taskvaluesetandrun,<taskname>,<valuename>,<state>' as a candidate. It is
a RPiEasy built-in that sets the task value (driving the physical GPIO for
output plugins) and runs the task, publishing the new state back over C013.
Matched by exact task/value name via getTaskValueIndex and returns 'True' on
success, which our existing success heuristic accepts. Tried after an
explicit pin/template so ESPEasy (which learns its pin from /json) is
unaffected.1 parent 051557f commit 72aea03
1 file changed
Lines changed: 17 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
211 | 211 | | |
212 | 212 | | |
213 | 213 | | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
214 | 221 | | |
215 | 222 | | |
216 | 223 | | |
| |||
223 | 230 | | |
224 | 231 | | |
225 | 232 | | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
226 | 239 | | |
227 | 240 | | |
228 | 241 | | |
| |||
231 | 244 | | |
232 | 245 | | |
233 | 246 | | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
234 | 251 | | |
235 | 252 | | |
236 | 253 | | |
| |||
0 commit comments