Hey,
Wondering how could I achieve ignition detection event trigger on ignition state from false to true value, once and hook it to a webhook once this state occurs only.
i.e. calling a third-party webservice, every time the ignition telemetry value changes from false to true.
Is is related to calculators and webhooks or other approach ? how can I configure it ?

Thanks

    • Edited

    Abdozy You may preprocess message with plugin and add field "ignition.state.changed" with value true when its state has been changed. See the sample here.

    And in webhook validate only messages with true value in that field, e.g. "ignition.state.changed == true"

    shal Thanks for your reply, is ignition.state.changed a fixed directive, as I have in the payload json message a different parameter which is : config.engine.ignition.status with true/false values

      Abdozy you may use any parameter name

        shal So, it should be configured like this

        • shal replied to this.

          What about webhook, in the webhook section under Utils tab, the trigger requires topics !, how webhook is triggered through the plugin state detector !
          I think I am not understanding this linking part.

          • shal replied to this.

            Abdozy Nope. With that configuration plugin will always set config.engine.ignition.status.changed parameter to true.

            In order to detect the change in the expression field enter "config.engine.ignition.status != previous('config.engine.ignition.status')"

            Also be aware that live communication with flespi support team is available via integrated chat located in top right corner of your flespi.io account. I suggest you to address any questions using chat which is usually much quicker.

              Write a Reply...