Ui-scheduler (DB2) is not working

I have a problem with the scheduler. I want to use it to control lamps over time. But it arrives unexpectedly and turns off the lamps when I activate it. In addition, the lamp always goes off when I call up the dashboard. Any tips ? This is my scheduler:

[
    {
        "id": "3b4927daa8f4ad13",
        "type": "ui-scheduler",
        "z": "6358dcd8731b6b68",
        "name": "Zeitplan oben",
        "group": "ba1f7f462b87076e",
        "order": 1,
        "label": "Zeitplan oben",
        "width": "6",
        "height": "5",
        "outputField": "payload",
        "locale": "de",
        "timeZone": "",
        "use24HourFormat": true,
        "storeName": "local_file_system",
        "commandResponseMsgOutput": "output2",
        "defaultLocation": "48.404435303233164 10.000372231006622",
        "defaultLocationType": "fixed",
        "sendStateInterval": 60,
        "sendActiveState": false,
        "sendInactiveState": false,
        "topics": [
            "scheduler oben"
        ],
        "customPayloads": [],
        "outputs": 2,
        "options": [],
        "uiOptionTime": true,
        "uiOptionSolar": true,
        "uiOptionCron": true,
        "uiOptionMinute": true,
        "uiOptionHour": true,
        "uiOptionDay": true,
        "uiOptionWeek": true,
        "uiOptionMonth": true,
        "uiOptionYear": true,
        "uiOptionTopic": true,
        "uiOptionTimespan": true,
        "uiOptionCustomOutput": true,
        "uiOptionNewTimePicker": false,
        "x": 180,
        "y": 1160,
        "wires": [
            [
                "9002dedada057acc",
                "46d67b25d2edc3c0",
                "91153947130db16f"
            ],
            []
        ]
    },
    {
        "id": "ba1f7f462b87076e",
        "type": "ui-group",
        "name": "Scheduler",
        "page": "8e53903ac41b05c6",
        "width": "3",
        "height": 1,
        "order": 2,
        "showTitle": true,
        "className": "",
        "visible": "true",
        "disabled": "false",
        "groupType": "default"
    },
    {
        "id": "8e53903ac41b05c6",
        "type": "ui-page",
        "name": "Microgreens Zelt",
        "ui": "29b53658faf575c1",
        "path": "/page1",
        "icon": "home",
        "layout": "grid",
        "theme": "622486944d7f9c5e",
        "breakpoints": [
            {
                "name": "Default",
                "px": "0",
                "cols": "3"
            },
            {
                "name": "Tablet",
                "px": "576",
                "cols": "6"
            },
            {
                "name": "Small Desktop",
                "px": "768",
                "cols": "9"
            },
            {
                "name": "Desktop",
                "px": "1024",
                "cols": "12"
            }
        ],
        "order": 3,
        "className": "",
        "visible": true,
        "disabled": false
    },
    {
        "id": "29b53658faf575c1",
        "type": "ui-base",
        "name": "My Dashboard",
        "path": "/dashboard",
        "appIcon": "",
        "includeClientData": true,
        "acceptsClientConfig": [
            "ui-notification",
            "ui-control",
            "ui-scheduler"
        ],
        "showPathInSidebar": false,
        "headerContent": "page",
        "navigationStyle": "default",
        "titleBarStyle": "default",
        "showReconnectNotification": true,
        "notificationDisplayTime": 1,
        "showDisconnectNotification": true
    },
    {
        "id": "622486944d7f9c5e",
        "type": "ui-theme",
        "name": "Default Theme",
        "colors": {
            "surface": "#ffffff",
            "primary": "#0094ce",
            "bgPage": "#eeeeee",
            "groupBg": "#ffffff",
            "groupOutline": "#cccccc"
        },
        "sizes": {
            "density": "default",
            "pagePadding": "12px",
            "groupGap": "12px",
            "groupBorderRadius": "4px",
            "widgetGap": "12px"
        }
    }
]

This is my old scheduler from DB1, this one is working.

[
    {
        "id": "9e8d266107f7d28a",
        "type": "ui_time_scheduler",
        "z": "8794e4ea1fc7d46d",
        "group": "bdf1b59fa38ffb73",
        "name": "Oben",
        "startDay": 0,
        "refresh": "5",
        "devices": [
            "Auto Beleuchtung Oben"
        ],
        "singleOff": true,
        "onlySendChange": false,
        "customPayload": false,
        "eventMode": false,
        "eventOptions": [],
        "sendTopic": false,
        "lat": "",
        "lon": "",
        "customContextStore": "",
        "outputs": 2,
        "order": 9,
        "width": 0,
        "height": 0,
        "x": 70,
        "y": 760,
        "wires": [
            [],
            [
                "bd7b9359becb4646",
                "1133655e78181e74"
            ]
        ]
    },
    {
        "id": "bdf1b59fa38ffb73",
        "type": "ui_group",
        "name": "Beleuchtung",
        "tab": "7d7df438f2fb4675",
        "order": 2,
        "disp": true,
        "width": "14",
        "collapse": false,
        "className": ""
    },
    {
        "id": "7d7df438f2fb4675",
        "type": "ui_tab",
        "name": "Microgreens Zelt",
        "icon": "dashboard",
        "order": 7,
        "disabled": false,
        "hidden": false
    }
]

Hi,
From the information in your flow I can only assume what the problem is not knowing how the node outputs are wired up. Make sure that the lamp is connected to second output like the photo and flow below. Connecting to the first would result in the odd behavior you described. Also be careful of sharing sensitive information like location in your flow.

[
    {
        "id": "3af8f58c62fbfa72",
        "type": "ui-scheduler",
        "z": "ff6d8f2c7ad83656",
        "name": "scheduler",
        "group": "ba1f7f462b87076e",
        "order": 0,
        "label": "Scheduler",
        "width": 6,
        "height": 1,
        "outputField": "payload",
        "locale": "de",
        "timeZone": "",
        "use24HourFormat": false,
        "storeName": "local_file_system",
        "commandResponseMsgOutput": "fanOut",
        "defaultLocation": "",
        "defaultLocationType": "env",
        "sendStateInterval": 60,
        "sendActiveState": true,
        "sendInactiveState": true,
        "topics": [
            "Topic 1"
        ],
        "customPayloads": [
            {
                "label": "Custom 1",
                "value": "1",
                "type": "str",
                "id": "912dd69723d09b7e"
            }
        ],
        "outputs": 2,
        "options": [],
        "uiOptionTime": true,
        "uiOptionSolar": true,
        "uiOptionCron": true,
        "uiOptionMinute": true,
        "uiOptionHour": true,
        "uiOptionDay": true,
        "uiOptionWeek": true,
        "uiOptionMonth": true,
        "uiOptionYear": true,
        "uiOptionTopic": true,
        "uiOptionTimespan": true,
        "uiOptionCustomOutput": true,
        "uiOptionNewTimePicker": false,
        "x": 200,
        "y": 240,
        "wires": [
            [],
            [
                "ab7c258a198b4076"
            ]
        ]
    },
    {
        "id": "ab7c258a198b4076",
        "type": "debug",
        "z": "ff6d8f2c7ad83656",
        "name": "debug 1",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "statusVal": "",
        "statusType": "auto",
        "x": 380,
        "y": 260,
        "wires": []
    },
    {
        "id": "ba1f7f462b87076e",
        "type": "ui-group",
        "name": "Scheduler",
        "page": "8e53903ac41b05c6",
        "width": "3",
        "height": 1,
        "order": 1,
        "showTitle": true,
        "className": "",
        "visible": "true",
        "disabled": "false",
        "groupType": "default"
    },
    {
        "id": "8e53903ac41b05c6",
        "type": "ui-page",
        "name": "Microgreens Zelt",
        "ui": "29b53658faf575c1",
        "path": "/page1",
        "icon": "home",
        "layout": "grid",
        "theme": "622486944d7f9c5e",
        "breakpoints": [
            {
                "name": "Default",
                "px": "0",
                "cols": "3"
            },
            {
                "name": "Tablet",
                "px": "576",
                "cols": "6"
            },
            {
                "name": "Small Desktop",
                "px": "768",
                "cols": "9"
            },
            {
                "name": "Desktop",
                "px": "1024",
                "cols": "12"
            }
        ],
        "order": 1,
        "className": "",
        "visible": true,
        "disabled": false
    },
    {
        "id": "29b53658faf575c1",
        "type": "ui-base",
        "name": "My Dashboard",
        "path": "/dashboard",
        "appIcon": "",
        "includeClientData": true,
        "acceptsClientConfig": [
            "ui-notification",
            "ui-control",
            "ui-scheduler"
        ],
        "showPathInSidebar": false,
        "headerContent": "page",
        "navigationStyle": "default",
        "titleBarStyle": "default",
        "showReconnectNotification": true,
        "notificationDisplayTime": 1,
        "showDisconnectNotification": true
    },
    {
        "id": "622486944d7f9c5e",
        "type": "ui-theme",
        "name": "Default Theme",
        "colors": {
            "surface": "#ffffff",
            "primary": "#0094ce",
            "bgPage": "#eeeeee",
            "groupBg": "#ffffff",
            "groupOutline": "#cccccc"
        },
        "sizes": {
            "density": "default",
            "pagePadding": "12px",
            "groupGap": "12px",
            "groupBorderRadius": "4px",
            "widgetGap": "12px"
        }
    }
]
1 Like

Is it possible to connect the scheduler directly with the http request ? Or is a converting function necessary ?

I'm not quite sure what you're referring to here. Can you please provide more context on what you're trying to achieve?

Thank you!

It's already working,but thanks anyway!