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-StravaI am not able to get the state command because I couldn’t find any so my set up is incomplete.
-
S sdmydbr9 deleted this topic on
-
S sdmydbr9 restored this topic on
-
@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
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login