Read the statement by Michael Teeuw here.
Module status
-
I was trying to implement module controls using homebridge running on a pi and magic mirror. So far using the mmm-HomeKit module, I have been able to implement the magicmirror display controls. When I tried that with the modules I’m not able to get the status of the module if it is hidden or shown. Can anyone tell me if there’s any curl command to get the status.
-
@sdmydbr9 tell me more
-
{ "bridge": { "name": "Homebridge 7481", "username": "0E:4A:31:A4:44:11", "port": 51891, "pin": "740-38-278" }, "accessories": [], "platforms": [ { "name": "Config", "port": 8581, "platform": "config", "sudo": true, "log": { "method": "native", "path": "/var/lib/homebridge/homebridge.log" }, "sessionTimeout": 28800 }, { "platform": "cmdSwitch2", "name": "Raspberry Pi", "switches": [ { "name": "Mirror", "on_cmd": "vcgencmd display_power 1", "off_cmd": "vcgencmd display_power 0", "state_cmd": "tvservice -s", "manufacturer": "Raspberry Pi Foundation", "model": "Raspberry Pi 4 Model B" } ] } ] }
This is my home bridge configuration file. I use homebridge to connect the magicmirror to my iOS home app and control it using my phone. To implement this mainly 3 things is needed, the “on command” ; “the off command” and “the command to get the status”
When I tried this using a module I used the following config, using mmm-strava as an exampleOn_cmd = curl http://192.168.29.202:8080/remote?action=SHOW&force=true&module=MMM-Strava Off_cmd=http://192.168.29.202:8080/remote?action=HIDE&force=true&module=MMM-Strava
I am not able to get the state command because I couldn’t find any so my set up is incomplete.
-
-
-
@sdmydbr9 said in Module status:
I am not able to get the state command because I couldn’t find any so my set up is incomplete.
so, your statement is that the MMM-RemoteControl module does not provide a mechanism to determine if a module (by name) is hidden or not
sorry, don’t know about the internals of MMM-RemoteControl