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

The question is about groups scenarios

Scheduled Pinned Locked Moved General Discussion
9 Posts 2 Posters 771 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 26 Sept 2020, 12:52

    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?

    J 1 Reply Last reply 27 Sept 2020, 17:15 Reply Quote 0
    • J Offline
      jkandasa @Clone Tv
      last edited by 27 Sept 2020, 17:15

      @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 29 Sept 2020, 01:30 Reply Quote 0
      • C Offline
        Clone Tv @jkandasa
        last edited by 29 Sept 2020, 01:30

        @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?

        J 1 Reply Last reply 29 Sept 2020, 11:32 Reply Quote 0
        • J Offline
          jkandasa @Clone Tv
          last edited by 29 Sept 2020, 11:32

          @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 30 Sept 2020, 04:58

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

            J 1 Reply Last reply 30 Sept 2020, 09:35 Reply Quote 0
            • J Offline
              jkandasa @Clone Tv
              last edited by 30 Sept 2020, 09:35

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

              1 Reply Last reply Reply Quote 0
              • C Offline
                Clone Tv
                last edited by 9 Oct 2020, 16:25

                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

                J 1 Reply Last reply 12 Oct 2020, 11:20 Reply Quote 0
                • J Offline
                  jkandasa @Clone Tv
                  last edited by 12 Oct 2020, 11:20

                  @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 12 Oct 2020, 15:59

                    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

                    628

                    Users

                    532

                    Topics

                    3.4k

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