Read the statement by Michael Teeuw here.
MMM-Loxone
-
@idoodler Hey, i tried the following things:
in config.js I set presence “false”; restart but after the MM is loaded, screen is getting dark. The only was to get a monitor signal is to restart with light in the room switched on although presence is “false”.If the display was dark it does not come back any more:
I tried tvservice -o: It switches off HDMI, i can see the monitor going to sleep (flashing Power LED)
I tried tvservice -p: i can see the monitor coming alive but only with a black screen (constant Power LED).If HDMI is on (-p) by connecting to the MM via VNC i can press STRG+Q to close MM; i can see the deskop on VNC but no change on the real Monitor.
So to summarize: if tvservice -o was set, the monitor signal does not come back any more (besides restart with light in the room)
-
@bobbythemoh I just double checked the code, if you disable the
presence
property there is no way to toggle the display by the Loxone Module. Do you see the log messageGot lightMood change to: All off(778)
after you disable thepresence
property.The Monitor is directly toggled after the log command.
-
@idoodler Hey,
In the config.js it says:
{ module: "MMM-Loxone", position: "bottom_left", config: { host: "IP", user: "User", pwd: "PW", presence: "false", roomUuid: "0ea3ebd1-00eb-04ef-ffff390cde3b9b45", showInfoNotifications: "true", showErrorNotifications: "true", showSystemNotifications: "true", observingUuids:[ "103d9aaf-0037-597e-ffff390cde3b9b45",//Bad Luftfeuchte "104c401f-03a0-9afc-ffff390cde3b9b45",//WarmwasserTemp ] } },
I switched on the monitor with light on, picture was there, i toggled the light to off, MM image is gone and does not come back. To your question, here is the log file, i can see the “got ligtmode”.
/home/pi/.pm2/logs/MagicMirror-out-0.log last 15 lines: 0|MagicMir | Create new news fetcher for url: http://derStandard.at/?page=rss&ressort=Seite1 - Interval: 300000 0|MagicMir | Create new news fetcher for url: https://rss.orf.at/news.xml - Interval: 300000 0|MagicMir | Opening Socket to your Miniserver 0|MagicMir | MMM-Loxone Download LoxApp3.json 0|MagicMir | MMM-Loxone Search room with uuid: 0ea3ebd1-00eb-04ef-ffff390cde3b9b45 0|MagicMir | MMM-Loxone Found room: OG Bad 0|MagicMir | MMM-Loxone Search IRC for room temperature 0|MagicMir | MMM-Loxone Found IRC (Intelligente Raumregelung) in room OG Bad 0|MagicMir | MMM-Loxone Search LightControls and LightV2Controls in room 0|MagicMir | MMM-Loxone Found LightControl (Badezimmerlicht) in room OG Bad 0|MagicMir | MMM-Loxone NotificationUuid: 0ea3ebd1-008d-029d-ffff390cde3b9b45 0|MagicMir | MMM-Loxone Enabling statusupdates 0|MagicMir | MMM-Loxone Successfully executed 'dev/sps/enablebinstatusupdate' with code 200 and value 1 0|MagicMir | MMM-Loxone Got room temperature: 22.9 0|MagicMir | MMM-Loxone Got lightMood change to: Custom mode(1) 0|MagicMir | MMM-Loxone Got lightMood change to: All on(777) 0|MagicMir | MMM-Loxone Got lightMood change to: All off(778) 0|MagicMir | MMM-Loxone Got lightMood change to: Custom mode(1)
-
@bobbythemoh Oh, now everything makes sense. You have errors in your
config.js
.Boolean values must not be strings. Replace
"true"
and"false"
withtrue
andfalse
. in Javascript"false"
is equal totrue
, so you basically have presence enabled :winking_face: -
Hey, uncommenting the Room UUID gives with presence “false”:
0|MagicMir | Opening Socket to your Miniserver 0|MagicMir | MMM-Loxone Download LoxApp3.json 0|MagicMir | MMM-Loxone Search room with uuid: null 0|MagicMir | MMM-Loxone Couldn't find Room! 0|MagicMir | MMM-Loxone NotificationUuid: 0ea3ebd1-008d-029d-ffff390cde3b9b45 0|MagicMir | MMM-Loxone Enabling statusupdates 0|MagicMir | MMM-Loxone Successfully executed 'dev/sps/enablebinstatusupdate' with code 200 and value 1
Now i can do whatever i want with the light, the video is ok.
-
@bobbythemoh Yes, it looks like there is an issue with
tvservice
with one of the last Raspbian updates. I am looking into fixing this and also support more operating systems. -
@idoodler OMG. thats what happens when an mechanical engineer works with code… sorry… :D i guess that was the reason why it takes long to start the MM, at least now its faster.
OK the presence problem is fixed, but the Display problem remains…
-
@idoodler thanks for the help als always, looking forward for the module working again, my wife already complained that she is missing it now that it is not there (first she complained that it is there) :D
-
@bobbythemoh Thanks for informing me about that issue. I am currently working on something else, so I had to ditch my current installation.
Schönen Abend noch;)
-
@bobbythemoh Hi, I have good news for you, I just pushed a fix. Please update
MMM-Loxone
for it to work again. I also made it a bit faster, I hope your wife will be happy again:smiling_face_with_open_mouth_smiling_eyes:Btw. This issue semes to be related to one of the latest Raspbian updates, I assume its because the new Raspberry Pi has two HDMI outputs, so there may be some changes to the HDMI related code…