Read the statement by Michael Teeuw here.
MMM-Loxone
-
Hello everyone,
I also have some trouble configuring the Loxone module. The MM itself and the calender, traffic, weather an News modules are running without any problem.
BUT: The Loxone modules does not want to run at all. Attached you’ll find the required parts of my config.
Maybe some of you can find the wrong passage.
Thanks in advance
-
@DO86 I think “position” is wrong.
See my config:{ module: "MMM-Loxone", position: "bottom_left", config: { host: "Loxone IP", user: "Username", pwd: "Password", presence: "true", //if you want to use the light controller V2 to toggle the display roomUuid: "0ea3ebd1-00eb-04ef-ffff390cde3b9b45", //Room ID where MM is located showInfoNotifications: "true", showErrorNotifications: "true", showSystemNotifications: "true", observingUuids:[ "103d9aaf-0037-597e-ffff390cde3b9b45",//Variable you want to observe ] } },
-
@idoodler : Today i updated my RPI and i add 2 Modules “MMM-RPI-LED” and “MMM-Moon-Phase” (Just a side info, maybe this is the reason for my issue).
“MMM-Loxone” was working perfect for a long time. Now i am having issues with the Monitor coming alive again.
Test-Scenario:
Light in the Room is ON; in the config I changed Presence: “false” -->MM Starts and works
now i am switching presence: “true”; light is still on -->MM Starts and works
now i am switching off the light --> MM gets dark
now I am switching on the light -->MM stays darkin the PM2 LOG i can see the status of the light controller changing.
I think there was something changed in the OS. Does anyone experience a similar behaviour?
Thank you.
-
@bobbythemoh Hi, may you please post the MagicMirrors log via
pm2 log mm
. Did you update your Raspberry pi? -
Hi,
I did sudo apt-get update, then sudo apt-get upgrade.
Please find the log file. As you can see, changing the light status works.0|MagicMir | Starting MagicMirror: v2.5.0 0|MagicMir | Loading config ... 0|MagicMir | Loading module helpers ... 0|MagicMir | No helper found for module: alert. 0|MagicMir | No helper found for module: clock. 0|MagicMir | Initializing new module helper ... 0|MagicMir | Module helper loaded: MMM-ImagesPhotos 0|MagicMir | Initializing new module helper ... 0|MagicMir | Check MagicMirror version for node helper 'MMM-Loxone' - Minimum ve rsion: 2.1.1 - Current version: 2.5.0 0|MagicMir | Version is ok! 0|MagicMir | Module helper loaded: MMM-Loxone 0|MagicMir | Initializing new module helper ... 0|MagicMir | Module helper loaded: calendar 0|MagicMir | No helper found for module: currentweather. 0|MagicMir | Initializing new module helper ... 0|MagicMir | Module helper loaded: MMM-MoonPhase 0|MagicMir | Initializing new module helper ... 0|MagicMir | Module helper loaded: newsfeed 0|MagicMir | All module helpers loaded. 0|MagicMir | Starting server on port 8080 ... 0|MagicMir | Server started ... 0|MagicMir | Connecting socket for: MMM-ImagesPhotos 0|MagicMir | Starting node helper for: MMM-ImagesPhotos 0|MagicMir | Connecting socket for: MMM-Loxone 0|MagicMir | Connecting socket for: calendar 0|MagicMir | Starting node helper for: calendar 0|MagicMir | Connecting socket for: MMM-MoonPhase 0|MagicMir | Starting module helper: MMM-MoonPhase 0|MagicMir | Connecting socket for: newsfeed 0|MagicMir | Starting module: newsfeed 0|MagicMir | Sockets connected & modules started ... 0|MagicMir | Launching application. 0|MagicMir | Create new calendar fetcher for url: http://localhost:8080/modules/ calendars/E4AD5817-F7E8-4334-AA45-34CBF51B7682.ics - Interval: 300000 0|MagicMir | Create new news fetcher for url: http://derStandard.at/?page=rss&re ssort=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.4 0|MagicMir | MMM-Loxone Got lightMood change to: All off(778) 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)
-
@bobbythemoh I am currently unable to test it on a Raspberry Pi running Raspbian, because I am working on another project. Please try to execute
/opt/vc/bin/tvservice -o
, this will turn off the HTMI port, if this won’t work there may be an issue with the last update of Rasbian.I am currently anyway working on another method to toggle the HDMI port on different operating systems, so I may resolve this anyway.
-
@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: