• header.categories
    • header.recent
    • header.tags
    • header.popular
    • register
    • login

    The question is about groups scenarios

    scheduled pinned locked moved General Discussion
    9 posts 2 posters 1.4k views 1 watching
    loading-more-posts
    • oldest-to-newest
    • newest-to-oldest
    • most-votes
    reply
    • reply-as-topic
    guest-login-reply
    deleted-message
    • C offline
      Clone Tv
      global: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 one-reply-to-this-post last-reply-time reply quote 0
      • jkandasaJ offline
        jkandasa @Clone Tv
        global: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 one-reply-to-this-post last-reply-time reply quote 0
        • C offline
          Clone Tv @jkandasa
          global: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 one-reply-to-this-post last-reply-time reply quote 0
          • jkandasaJ offline
            jkandasa @Clone Tv
            global: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.

            one-reply-to-this-post last-reply-time reply quote 0
            • C offline
              Clone Tv
              global:last-edited-by,

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

              jkandasaJ one-reply-to-this-post last-reply-time reply quote 0
              • jkandasaJ offline
                jkandasa @Clone Tv
                global:last-edited-by,

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

                one-reply-to-this-post last-reply-time reply quote 0
                • C offline
                  Clone Tv
                  global: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 one-reply-to-this-post last-reply-time reply quote 0
                  • jkandasaJ offline
                    jkandasa @Clone Tv
                    global:last-edited-by,

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

                    one-reply-to-this-post last-reply-time reply quote 0
                    • C offline
                      Clone Tv
                      global:last-edited-by,

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

                      one-reply-to-this-post last-reply-time reply quote 0
                      • first-post
                        last-post

                      0

                      online

                      644

                      users

                      532

                      topics

                      3.4k

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