# Ui-scheduler (DB2) is not working

**URL:** https://discourse.nodered.org/t/ui-scheduler-db2-is-not-working/96348
**Category:** Dashboard
**Created:** [31 March 2025 08:44 UTC](https://discourse.nodered.org/t/ui-scheduler-db2-is-not-working/96348 "2025-03-31T08:44:13Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![GBROKO](https://avatars.discourse-cdn.com/v4/letter/g/c77e96/32.png) [@GBROKO](https://discourse.nodered.org/u/GBROKO)
#### Post date: [31 March 2025 08:44 UTC](https://discourse.nodered.org/t/ui-scheduler-db2-is-not-working/96348/1 "2025-03-31T08:44:13Z")

</div>

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:

```auto
[
    {
        "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.

```auto
[
    {
        "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
    }
]

```

---

<div class="post-metadata">

### Author: ![cgjgh](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cgjgh/32/99867_2.png) [@cgjgh](https://discourse.nodered.org/u/cgjgh)
#### Post date: [31 March 2025 14:41 UTC](https://discourse.nodered.org/t/ui-scheduler-db2-is-not-working/96348/2 "2025-03-31T14:41:38Z")

</div>

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._

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/d/1d272a25b1975e7e0a36cfd52ee24ae4628d2648.png)

```auto
[
    {
        "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"
        }
    }
]

```

---

<div class="post-metadata">

### Author: ![GBROKO](https://avatars.discourse-cdn.com/v4/letter/g/c77e96/32.png) [@GBROKO](https://discourse.nodered.org/u/GBROKO)
#### Post date: [4 April 2025 09:41 UTC](https://discourse.nodered.org/t/ui-scheduler-db2-is-not-working/96348/3 "2025-04-04T09:41:22Z")

</div>

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

---

<div class="post-metadata">

### Author: ![cgjgh](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cgjgh/32/99867_2.png) [@cgjgh](https://discourse.nodered.org/u/cgjgh)
#### Post date: [4 April 2025 20:49 UTC](https://discourse.nodered.org/t/ui-scheduler-db2-is-not-working/96348/4 "2025-04-04T20:49:25Z")

</div>

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!

---

<div class="post-metadata">

### Author: ![GBROKO](https://avatars.discourse-cdn.com/v4/letter/g/c77e96/32.png) [@GBROKO](https://discourse.nodered.org/u/GBROKO)
#### Post date: [7 April 2025 06:47 UTC](https://discourse.nodered.org/t/ui-scheduler-db2-is-not-working/96348/5 "2025-04-07T06:47:39Z")

</div>

It's already working,but thanks anyway!

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [21 April 2025 06:47 UTC](https://discourse.nodered.org/t/ui-scheduler-db2-is-not-working/96348/6 "2025-04-21T06:47:48Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
