@shadgkiss wrote:
Hello - I am very new to HA, I am trying to have a Aeotec Multi 6 sensor to turn on and off a TP LInk light switch in my laundry room. I am using Node-Red and can’t figure it out. I have I have used a inject node to try to test, and it appears ok, but it still doesn’t work. The multi 6 sensor is on battery, I am using the burglar sensor.
Any ideas?
Thank you for your help!
Export is here:[ { "id": "e6872f22.e0424", "type": "tab", "label": "Flow 3", "disabled": false, "info": "" }, { "id": "13663af4.fedbe5", "type": "server-state-changed", "z": "e6872f22.e0424", "name": "Laundry Motion Detection", "server": "f677971a.d3eeb8", "version": 1, "exposeToHomeAssistant": false, "haConfig": [ { "property": "name", "value": "" }, { "property": "icon", "value": "" } ], "entityidfilter": "sensor.aeon_labs_zw100_multisensor_6_burglar", "entityidfiltertype": "substring", "outputinitially": false, "state_type": "str", "haltifstate": "8", "halt_if_type": "str", "halt_if_compare": "is", "outputs": 2, "output_only_on_state_change": false, "x": 170, "y": 200, "wires": [ [ "c6b5e1f0.071b1" ], [] ], "info": "binary_sensor.motion_sensor_158d00036d5a35_garage_workbox" }, { "id": "4e7cb8c8.39f768", "type": "stoptimer", "z": "e6872f22.e0424", "duration": "10", "units": "Minute", "payloadtype": "num", "payloadval": "0", "name": "10 minutes til off", "x": 640, "y": 240, "wires": [ [ "acc68be4.0b8808" ], [] ] }, { "id": "acc68be4.0b8808", "type": "api-call-service", "z": "e6872f22.e0424", "name": "Turn them off", "server": "f677971a.d3eeb8", "version": 1, "debugenabled": false, "service_domain": "light", "service": "turn_off", "entityId": "switch.laundry_room_switch", "data": "", "dataType": "json", "mergecontext": "", "output_location": "payload", "output_location_type": "msg", "mustacheAltTags": false, "x": 890, "y": 240, "wires": [ [ "6cd1e87e.c86808" ] ] }, { "id": "9d959afe.c21bb8", "type": "api-call-service", "z": "e6872f22.e0424", "name": "No? Turn them on", "server": "f677971a.d3eeb8", "version": 1, "debugenabled": true, "service_domain": "light", "service": "turn_on", "entityId": "switch.laundry_room_switch", "data": "", "dataType": "json", "mergecontext": "", "output_location": "payload", "output_location_type": "msg", "mustacheAltTags": false, "x": 970, "y": 180, "wires": [ [ "6cd1e87e.c86808" ] ] }, { "id": "c6b5e1f0.071b1", "type": "switch", "z": "e6872f22.e0424", "name": "", "property": "payload", "propertyType": "msg", "rules": [ { "t": "eq", "v": "on", "vt": "str" }, { "t": "eq", "v": "off", "vt": "str" } ], "checkall": "true", "repair": false, "outputs": 2, "x": 450, "y": 200, "wires": [ [ "4e7cb8c8.39f768", "7704f658.d23cd8" ], [ "4e7cb8c8.39f768" ] ] }, { "id": "7704f658.d23cd8", "type": "api-current-state", "z": "e6872f22.e0424", "name": "Are the lights already on?", "server": "f677971a.d3eeb8", "version": 1, "outputs": 2, "halt_if": "on", "halt_if_type": "str", "halt_if_compare": "is", "override_topic": false, "entity_id": "switch.laundry_room_switch", "state_type": "str", "state_location": "payload", "override_payload": "msg", "entity_location": "data", "override_data": "msg", "blockInputOverrides": false, "x": 670, "y": 180, "wires": [ [], [ "9d959afe.c21bb8" ] ] }, { "id": "7b4d0596.7d48bc", "type": "comment", "z": "e6872f22.e0424", "name": "Laundry Motion Detection", "info": "", "x": 170, "y": 160, "wires": [], "icon": "node-red/bluetooth.png" }, { "id": "6cd1e87e.c86808", "type": "debug", "z": "e6872f22.e0424", "name": "", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "true", "targetType": "full", "x": 840, "y": 500, "wires": [] }, { "id": "f677971a.d3eeb8", "type": "server", "z": "", "name": "Home Assistant", "legacy": false, "addon": true, "rejectUnauthorizedCerts": true, "ha_boolean": "y|yes|true|on|home|open", "connectionDelay": true, "cacheJson": true } ]
Posts: 1
Participants: 1