@DaVinki said in Another PIR sensor:
MMM-ProfileSwitcher
Hi,
your configuration of MMM-ProfileSwitcher is wrong. In your case it will simply look like this:
{
module: 'MMM-ProfileSwitcher',
config: {
// See 'Configuration options' for more information.
}
}
But you need to add the classes part to your MMM-Wallpaper module:
{
module: 'MMM-Wallpaper',
config: {
...
}
classes: 'pageOneEveryone',
},
So your config will look like this:
{
module: 'MMM-ProfileSwitcher',
config: {
defaultClass: "pageOneEveryone",
ignoreModules: ["moduleVisiableOnEveryPageOne", "moduleVisibleOnEveryPageTwo"]
}
},
{
module: 'MMM-Wallpaper',
config: {
//Add your wallpaper config here
}
classes: 'pageOneEveryone',
},
{
module: 'MMM-ProfileControl',
position: 'bottom_bar',
config: {
profiles: [
['pageOneEveryone'],
['pageTwoEveryone'],
],
}
},
{
module: 'MMM-GPIO-Notifications',
config: {
'22': {
gpio_state: 1,
gpio_debounce: 10,
delay: 1000,
notifications: [
{
notification: 'PROFILE_DECREMENT_HORIZONTAL',
},
]
}
}
},
The result will be two pages “pageOneEveryone” and “pageTwoEveryone”.
Every time your PIR triggers an “1” the GPIO Module will send an Notification to switch to the next page (and start again with “pageOneEveryone” if the end is reached).
You then can add “classes: ‘pageOneEveryone’,” to every module you want to be displayed an “pageOneEveryone” and “classes: ‘pageTwoEveryone’,” to every module you want to be displayed on “pageTwoEveryone”.
If you want to have modules displayed on every page you can add them to the ignore list of MMM-ProfileSwitcher.