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

Manipulation and Various Returns

Scheduled Pinned Locked Moved General Discussion
6 Posts 2 Posters 412 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 19 Apr 2022, 11:20

    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 🙂

    J 1 Reply Last reply 20 Apr 2022, 12:09 Reply Quote 0
    • J Offline
      jkandasa @JeeLet
      last edited by 20 Apr 2022, 12:09

      @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 20 Apr 2022, 15:36

        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

        J 1 Reply Last reply 21 Apr 2022, 05:19 Reply Quote 0
        • J Offline
          jkandasa @JeeLet
          last edited by 21 Apr 2022, 05:19

          @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 22 Apr 2022, 11:46

            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

            J 1 Reply Last reply 23 Apr 2022, 07:39 Reply Quote 0
            • J Offline
              jkandasa @JeeLet
              last edited by 23 Apr 2022, 07:39

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

              1 Reply Last reply Reply Quote 0
              6 out of 6
              • First post
                6/6
                Last post

              0

              Online

              587

              Users

              529

              Topics

              3.4k

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