This is a SUPLA Cloud extension that enables basic events support. Installation includes changing some sources of SUPLA Cloud instance (yes, you need to have your own SUPLA Cloud, it cannot use it on a shared official platform at supla.org).
Event specification consist of a condition
(what should happen in order for the event to be perceived as occured) and a webhooks
, that is, URLs to call in such cases. The condition
is a Twig expression with a simple state
function provided. state(XX)
returns a state of a channel with ID XX
. The returned value depends on the channel function. You will find the example states for specific functions helpful. Take a look at example config.yml
for different possibilities.
Event specification might also contain a time_conditions
, that is cron expression (or array of them) specifying when the event should be active. If the time conditio