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

    The question is about groups scenarios

    Scheduled Pinned Locked Moved General Discussion
    9 Posts 2 Posters 581 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.
    • C Offline
      Clone Tv
      last edited by

      The question is about groups, in fact these are scenarios. The question is how to call (enable or disable) a group from external sources? For example, from a node, sensor or using voice control?

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

        @Clone-Tv to call the group from external, you have to use API from MyController. We do not have direct options

        C 1 Reply Last reply Reply Quote 0
        • C Offline
          Clone Tv @jkandasa
          last edited by

          @jkandasa
          Wouldn't it bother you to give a solution with an API? control through an arbitrary mgtt topic is desirable, although any other options are interesting. I looked at the page with the description of the API but did not see direct HTTP links to control .. or I looked wrong?

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

            @Clone-Tv Simple solution would be accessing the API directly.

            To turn ON

            • POST https://your-mc-host-or-ip:8443/mc/rest/resources/group/on
            • Payload:
              • [3] or [3,4]
              • group id or group ids

            To turn OFF

            • POST https://your-mc-host-or-ip:8443/mc/rest/resources/group/off
            • Payload:
              • [3] or [3,4]
              • group id or group ids

            IMPORTANT: For all the requests you should include authorization header as follows,

            • authorization: Basic YWRtaW46YWRtaW4K
            • To get base64 auth string:
            # Format: username:password
            $ echo "admin:admin" | base64 
            YWRtaW46YWRtaW4K
            

            You can get the group id by clicking the details of the group. on the address at the end you can see the group id.

            1 Reply Last reply Reply Quote 0
            • C Offline
              Clone Tv
              last edited by

              Thanks for your reply, this method will do. Is there no way to bind groups to mgtt topics?

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

                @Clone-Tv No, we can not control with MQTT

                1 Reply Last reply Reply Quote 0
                • C Offline
                  Clone Tv
                  last edited by

                  how to use scripts in groups? where to add the name of the script file? what value should I use to turn on and off?

                  Screenshot_2020-10-09-19-15-02-454~3.jpeg

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

                    @Clone-Tv looks like there is bug. Group will not support for Script

                    1 Reply Last reply Reply Quote 0
                    • C Offline
                      Clone Tv
                      last edited by

                      it's a shame, it's a pity that there is no such possibility ..

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

                      0

                      Online

                      594

                      Users

                      529

                      Topics

                      3.4k

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