The question is about groups scenarios
-
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?
-
@Clone-Tv to call the group from external, you have to use API from MyController. We do not have direct options
-
@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? -
@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.
-
Thanks for your reply, this method will do. Is there no way to bind groups to mgtt topics?
-
@Clone-Tv No, we can not control with MQTT
-
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?
-
@Clone-Tv looks like there is bug. Group will not support for
Script
-
it's a shame, it's a pity that there is no such possibility ..