Auto Actions: Difference between revisions
Jump to navigation
Jump to search
| Line 3,254: | Line 3,254: | ||
====V2 version of the code for Shelly ==== | ====V2 version of the code for Shelly ==== | ||
< | <div class="mw-collapsible mw-collapsed"> | ||
<div class=" | <div class="headline-collapse" > | ||
Here is the second version v2 of the PHP script to switch on a Shelly device via an autoaction. | Here is the second version v2 of the PHP script to switch on a Shelly device via an autoaction. | ||
| Line 3,261: | Line 3,261: | ||
Now you can also store the device IDs in the script instead of adding them to the body parameters. This makes it possible to switch a Shelly device with a single autoaction. The device ID is then determined via the template variable [INTERNALROOMNAME]. | Now you can also store the device IDs in the script instead of adding them to the body parameters. This makes it possible to switch a Shelly device with a single autoaction. The device ID is then determined via the template variable [INTERNALROOMNAME]. | ||
Code: Select all | Code: Select all | ||
</div> | |||
<div class="mw-collapsible-content"> | |||
<code> | <code> | ||
| Line 3,383: | Line 3,385: | ||
</div> | </div> | ||
</div> | </div> | ||
===Testing for Modified bookings=== | ===Testing for Modified bookings=== | ||