Within Time

Guys.

I am just playing around with a simple setup. Its not the final setup i m working on but this is just to understand the process.

I have a motion sensor and assuming my input boolean is set to off the light will turn on. If i add a within time element to the mix the light never turns on even through the is within its time. any ideas?

This works.

When i add a within time node the light on never fires.

It’s just a fork that directs traffic one way or the other. You can use an inject set to a specific time to turn the bulb off.

Hi. Yes i know its just a fork but i am looking to find out why it does not work?

We probably need to see your configuration of the nodes, so export your nodes and set them in here.

I think it has to do with the current state having an additional timestamp as well as your local. In the current state delete all output properties by clicking the x.

image

Thanks. That didn’t make any difference.

Below is my export

[
    {
        "id": "581662353c6053e4",
        "type": "tab",
        "label": "Lights",
        "disabled": false,
        "info": "",
        "env": []
    },
    {
        "id": "70122c2cf341f615",
        "type": "api-call-service",
        "z": "581662353c6053e4",
        "name": "Light ON Full",
        "server": "7e20b797.b28178",
        "version": 5,
        "debugenabled": false,
        "domain": "light",
        "service": "turn_on",
        "areaId": [],
        "deviceId": [],
        "entityId": [
            "light.mqtt_light_hue_chinese_laundry_main"
        ],
        "data": "{\"brightness\":255,\"rgb_color\":[255,255,255]}",
        "dataType": "json",
        "mergeContext": "",
        "mustacheAltTags": false,
        "outputProperties": [],
        "queue": "none",
        "x": 850,
        "y": 40,
        "wires": [
            []
        ]
    },
    {
        "id": "ce3d74b52199e2f8",
        "type": "api-call-service",
        "z": "581662353c6053e4",
        "name": "Light ON - Dimm",
        "server": "7e20b797.b28178",
        "version": 5,
        "debugenabled": false,
        "domain": "light",
        "service": "turn_off",
        "areaId": [],
        "deviceId": [],
        "entityId": [
            "light.mqtt_light_hue_chinese_laundry_main"
        ],
        "data": "{\"brightness\":200,\"rgb_color\":[255, 179, 0]}",
        "dataType": "json",
        "mergeContext": "",
        "mustacheAltTags": false,
        "outputProperties": [],
        "queue": "none",
        "x": 870,
        "y": 120,
        "wires": [
            []
        ]
    },
    {
        "id": "87642dd501cd8fe6",
        "type": "within-time-switch",
        "z": "581662353c6053e4",
        "name": "",
        "nameInt": "",
        "positionConfig": "b954ab15.fd5738",
        "startTime": "07:00",
        "startTimeType": "entered",
        "startOffset": 0,
        "startOffsetType": "none",
        "startOffsetMultiplier": 60000,
        "endTime": "19:00",
        "endTimeType": "entered",
        "endOffset": 0,
        "endOffsetType": "none",
        "endOffsetMultiplier": 60000,
        "timeRestrictions": 0,
        "timeRestrictionsType": "none",
        "timeDays": "*",
        "timeOnlyOddDays": false,
        "timeOnlyEvenDays": false,
        "timeOnlyOddWeeks": false,
        "timeOnlyEvenWeeks": false,
        "timeMonths": "*",
        "timedatestart": "",
        "timedateend": "",
        "propertyStart": "",
        "propertyStartType": "none",
        "propertyStartCompare": "true",
        "propertyStartThreshold": "",
        "propertyStartThresholdType": "num",
        "startTimeAlt": "",
        "startTimeAltType": "entered",
        "startOffsetAlt": 0,
        "startOffsetAltType": "none",
        "startOffsetAltMultiplier": 60000,
        "propertyEnd": "",
        "propertyEndType": "none",
        "propertyEndCompare": "true",
        "propertyEndThreshold": "",
        "propertyEndThresholdType": "num",
        "endTimeAlt": "",
        "endTimeAltType": "entered",
        "endOffsetAlt": 0,
        "endOffsetAltType": "none",
        "endOffsetAltMultiplier": 60000,
        "withinTimeValue": "true",
        "withinTimeValueType": "msgInput",
        "outOfTimeValue": "false",
        "outOfTimeValueType": "msgInput",
        "tsCompare": "0",
        "x": 650,
        "y": 60,
        "wires": [
            [
                "70122c2cf341f615"
            ],
            [
                "ce3d74b52199e2f8"
            ]
        ]
    },
    {
        "id": "c2bdfd26bd0e907e",
        "type": "server-state-changed",
        "z": "581662353c6053e4",
        "name": "Chinese Laundry Motion Sensor",
        "server": "7e20b797.b28178",
        "version": 4,
        "exposeToHomeAssistant": false,
        "haConfig": [
            {
                "property": "name",
                "value": ""
            },
            {
                "property": "icon",
                "value": ""
            }
        ],
        "entityidfilter": "binary_sensor.mqtt_sensor_hue_chinese_laundry_occupancy",
        "entityidfiltertype": "exact",
        "outputinitially": false,
        "state_type": "str",
        "haltifstate": "on",
        "halt_if_type": "str",
        "halt_if_compare": "is",
        "outputs": 2,
        "output_only_on_state_change": true,
        "for": "0",
        "forType": "num",
        "forUnits": "minutes",
        "ignorePrevStateNull": false,
        "ignorePrevStateUnknown": false,
        "ignorePrevStateUnavailable": false,
        "ignoreCurrentStateUnknown": false,
        "ignoreCurrentStateUnavailable": false,
        "outputProperties": [
            {
                "property": "payload",
                "propertyType": "msg",
                "value": "",
                "valueType": "entityState"
            },
            {
                "property": "data",
                "propertyType": "msg",
                "value": "",
                "valueType": "eventData"
            },
            {
                "property": "topic",
                "propertyType": "msg",
                "value": "",
                "valueType": "triggerId"
            }
        ],
        "x": 150,
        "y": 40,
        "wires": [
            [
                "0701585584402550"
            ],
            []
        ]
    },
    {
        "id": "0701585584402550",
        "type": "api-current-state",
        "z": "581662353c6053e4",
        "name": "Good-Bye-Good-Night",
        "server": "7e20b797.b28178",
        "version": 3,
        "outputs": 2,
        "halt_if": "on",
        "halt_if_type": "str",
        "halt_if_compare": "is",
        "entity_id": "input_button.button_good_night_good_bye",
        "state_type": "str",
        "blockInputOverrides": false,
        "outputProperties": [],
        "for": "0",
        "forType": "num",
        "forUnits": "minutes",
        "override_topic": false,
        "state_location": "payload",
        "override_payload": "msg",
        "entity_location": "data",
        "override_data": "msg",
        "x": 370,
        "y": 140,
        "wires": [
            [],
            [
                "87642dd501cd8fe6"
            ]
        ]
    },
    {
        "id": "7e20b797.b28178",
        "type": "server",
        "name": "Home Assistant",
        "version": 2,
        "addon": true,
        "rejectUnauthorizedCerts": true,
        "ha_boolean": "y|yes|true|on|home|open",
        "connectionDelay": true,
        "cacheJson": true,
        "heartbeat": false,
        "heartbeatInterval": 30
    },
    {
        "id": "b954ab15.fd5738",
        "type": "position-config",
        "name": "",
        "isValide": "true",
        "longitude": "0",
        "latitude": "0",
        "angleType": "deg",
        "timeZoneOffset": 99,
        "timeZoneDST": 0,
        "stateTimeFormat": "3",
        "stateDateFormat": "12"
    }
]

Got it. It seems i needed to set my Latitude and Longitude in the within time node settings

I can not find the node called Within-time-switch.
Could it not be replaced with a time range node that is a standard node.