• Categories
    • Recent
    • Tags
    • Popular
    • Register
    • Login

    Manipulation and Various Returns

    Scheduled Pinned Locked Moved General Discussion
    6 Posts 2 Posters 410 Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J Offline
      JeeLet
      last edited by

      a return on manipulations, improvements can be ?

      hello
      in Field Details
      metric values - Duration / Interval / Function - are not kept
      they come back to their base value 😞
      it's a bit boring, how to preserve them ?

      other questions : Add a Schedule

      I'm going to test the schedule part of the programmed commands,
      to test with a relay on an Arduino Node.

      how to fill in the fields of Add to Schedule

      thank you very much

      yes I am back 🙂

      jkandasaJ 1 Reply Last reply Reply Quote 0
      • jkandasaJ Offline
        jkandasa @JeeLet
        last edited by

        @jeelet field details metric base values are preserve in your browser cache. if you open it on the different browser, it will be default values again. and the values will not preserve for each field.

        what type schedule do you want? Give some information about your use case, I try create a schedule for that

        1 Reply Last reply Reply Quote 0
        • J Offline
          JeeLet
          last edited by JeeLet

          hello jkandasa

          ah right, it's the browser caching for the settings.
          as I regularly empty my cache (history and cookies) it's normal.

          for the schedules, as an example.
          Relay to ON in the morning 8am and OFF at 10am
          then ON 2pm and OFF 4pm.
          from Monday to Thursday, for an Arduino with MySensors

          jkandasaJ 1 Reply Last reply Reply Quote 0
          • jkandasaJ Offline
            jkandasa @JeeLet
            last edited by

            @jeelet

            steps

            • create resource handler in handlers
            • setup schedule

            Setup resource handler

            • Operations >> Handlers >> Add
            • 83615679-9faf-498d-991c-f6ad38ba6164-image.png

            Equivalent yaml data

            id: resource_handler
            description: Sends payload to resurces
            enabled: true
            labels:
              location: server
            type: resource
            

            Setup schedule

            • you can create schedule for your requirement two ways
            1. two schedules, one is to turn on the relay and the second is to turn off the relay

            Method #1, two schedules

            • schedule to turn ON the relay
              5af9f245-2475-469f-9a64-2bd766963509-image.png
            customVariableType: none
            id: relay_on
            description: relay ON schedule
            enabled: true
            type: cron
            spec:
              cronExpression: 0 0 8,14 * * MON,TUE,WED,THU
            handlerParameters:
              relay_01: >-
                {"type":"resource_by_quick_id","disabled":"false","data":"cmVzb3VyY2VUeXBlOiBmaWVsZApxdWlja0lkOiBteXNlbnNvci4xMy4xLlZfU1RBVFVTCnBheWxvYWQ6ICdvbicKcHJlRGVsYXk6IDBzCg=="}
            handlers:
              - resource_handler
            
            • parameters to handler
              147834c7-572c-4b0d-9c84-1e5eb1b81b1a-image.png

            • schedule to turn OFF the relay, duplicate the above schedule with different name and update cron expression as 0 0 10,16 * * MON,TUE,WED,THU, update the payload as off in the parameters to handler.

            Method #2, single schedule

            We can manage single schedule to on and off with pre delay parameter
            c464eb5b-f07c-4560-9253-676cefb54252-image.png

            customVariableType: none
            id: relay_schedule
            description: handles on and off schedules
            enabled: true
            type: cron
            spec:
              cronExpression: 0 0 8,14 * * MON,TUE,WED,THU
            handlerParameters:
              relay_on: >-
                {"type":"resource_by_quick_id","disabled":"false","data":"cmVzb3VyY2VUeXBlOiBmaWVsZApxdWlja0lkOiBteXNlbnNvci4xMy4xLlZfU1RBVFVTCnBheWxvYWQ6ICdvbicKcHJlRGVsYXk6IDBzCg=="}
              relay_off: >-
                {"type":"resource_by_quick_id","disabled":"false","data":"cmVzb3VyY2VUeXBlOiBmaWVsZApxdWlja0lkOiBteXNlbnNvci4xMy4xLlZfU1RBVFVTCnBheWxvYWQ6ICdvZmYnCnByZURlbGF5OiAyaAo="}
            handlers:
              - resource_handler
            

            Parameters to Handler data:
            80ae484a-14b7-43cf-b8ca-66636656b3af-image.png

            turned on by schedule, as per pre delay, payload off will be executed after 2 hours (2h)

            We have some documents for schedule: https://v2.mycontroller.org/docs/user-interface/operations/schedules/

            let me know if something unclear

            1 Reply Last reply Reply Quote 0
            • J Offline
              JeeLet
              last edited by

              Thank you

              bravo for the explanation, you are a school teacher? 🙂

              not yet tested but cella must be impeccable, I finish a part of my CAN bus for the Gateway
              ( yes still part in all the directions)

              bybye

              jkandasaJ 1 Reply Last reply Reply Quote 0
              • jkandasaJ Offline
                jkandasa @JeeLet
                last edited by

                @jeelet no problem, take your time and let me know
                No I am not a school teacher 🙂

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post

                0

                Online

                587

                Users

                529

                Topics

                3.4k

                Posts
                Copyright © 2015-2025 MyController.org | Contributors | Localization