Read the statement by Michael Teeuw here.
MMM-Domiticz
-
I have Domoticz running and I can see the lights that are “on” on the Magic Mirror screen.
But I also have several Somfy blinds; they work fine with Domoticz, but how can I see them on the MM screen?
Can anybody give me a help?
Peter -
@Peter I have just updated the module. Now blinds are included.
Just update your config.js with a ‘blindsTitle’ and add ‘blinds’ to showItems
-
@Charley can you give me some more help?
I have 4 screens, id: 1,2,3,4 and 5 for all the screens together.
I would like to see when the screens are open or closed.
And if possible: with coloured symbols.
Can you tell me what to put in config.js?
Peter -
@peter
Look at the GitHub page there is an updated config.js example that should help. -
It works!
Thanks!
The only thing I would like to change is the color of the icons.
Peter -
@Peter What colours would you like and for what state (On, Off, Open Close)
-
Maybe lights off, outlets off and screens open in white.
Lights on, outlets on and screens down in yellow.
Peter -
I have added colour yellow to closed Blinds/shutters.
There is no added colour to lights, outlets because the are not visible when they are inactive.
However if you like to add a colour you can change the code in line 72
make sure you have a space between small and yellow just before the i-element for the icons -
@Charley thanks, it works!
Maybe you can answer another question: when I close or open the screens with domotics, the icons changes ( and the text open- close) in my Magic Mirror screen but when I close or open the screens with the original remote the icon does not change on the MM screen, only on the domoticz screen.
I hope my question is clear enough.Peter
-
Hello Peter,
There are two different things. One is Domoticz and the other is MagicMirror.
The module requests data from Domoticz. It is a reply in json.
This comes from my shutter.{ "AddjMulti" : 1.0, "AddjMulti2" : 1.0, "AddjValue" : 0.0, "AddjValue2" : 0.0, "BatteryLevel" : 255, "CustomImage" : 0, "Data" : "Open", "Description" : "", "DimmerType" : "abs", "Favorite" : 0, "HardwareID" : 7, "HardwareName" : "ZwaveUSB", "HardwareType" : "OpenZWave USB", "HardwareTypeVal" : 21, "HaveDimmer" : true, "HaveGroupCmd" : true, "HaveTimeout" : false, "ID" : "00000501", "Image" : "Light", "IsSubDevice" : false, "LastUpdate" : "2018-04-16 08:37:09", "Level" : 255, "LevelInt" : 255, "MaxDimLevel" : 100, "Name" : "Rolluik", "Notifications" : "false", "PlanID" : "7", "PlanIDs" : [ 7 ], "Protected" : false, "ShowNotifications" : true, "SignalLevel" : "-", "Status" : "Open", "StrParam1" : "", "StrParam2" : "", "SubType" : "Switch", "SwitchType" : "Blinds Inverted", "SwitchTypeVal" : 6, "Timers" : "true", "Type" : "Light/Switch", "TypeImg" : "blinds", "Unit" : 1, "Used" : 1, "UsedByCamera" : false, "XOffset" : "698", "YOffset" : "1168", "idx" : "31" },
The Image in this record is not the image in the MagicMirror. The MagicMirror Icons are from Fontawesome version 4.7 there is now a version 5 available but doesn’t like to work along 4.7 in MagicMirror.
The icons you see in my module are based on the type of device retrieved with the json file from Domoticz. See the lines in my code from 55 to line 71
There are no icons for shutters/shades or similar in fontawesome. That is why I use the status text from Domoticz. (In the Netherlands the webinterface is in Dutch but you will see that the status of the blinds are in English)
Hope this clarifies the icon issue.