telegram light controler without coding

this is a very simple telegram controller without any coding just with plugins

[
    {
        "id": "d7ec6c9d.437f5",
        "type": "telegram command",
        "z": "dab3af18.12054",
        "name": "off",
        "command": "/offlight",
        "bot": "a12e7dee.72d1a",
        "x": 76,
        "y": 177,
        "wires": [
            [
                "9a626669.74b54",
                "2520b57a.996c8a",
                "9414214c.53ddf"
            ],
            []
        ]
    },
    {
        "id": "c03bc345.41c82",
        "type": "telegram command",
        "z": "dab3af18.12054",
        "name": "on",
        "command": "/onlight",
        "bot": "a12e7dee.72d1a",
        "x": 55,
        "y": 233,
        "wires": [
            [
                "fd13bb82.a914c8",
                "e6ab24ab.3a8678",
                "2b29b88a.20b8b8"
            ],
            []
        ]
    },
    {
        "id": "9a626669.74b54",
        "type": "trigger",
        "z": "dab3af18.12054",
        "op1": "1",
        "op2": "0",
        "op1type": "num",
        "op2type": "str",
        "duration": "0",
        "extend": false,
        "units": "s",
        "reset": "",
        "name": "",
        "x": 407,
        "y": 156,
        "wires": [
            [
                "f585eeef.2f49f",
                "76ecab7c.772c1c"
            ]
        ]
    },
    {
        "id": "fd13bb82.a914c8",
        "type": "trigger",
        "z": "dab3af18.12054",
        "op1": "0",
        "op2": "0",
        "op1type": "str",
        "op2type": "str",
        "duration": "0",
        "extend": false,
        "units": "ms",
        "reset": "",
        "name": "",
        "x": 476,
        "y": 251,
        "wires": [
            [
                "f585eeef.2f49f",
                "76ecab7c.772c1c"
            ]
        ]
    },
    {
        "id": "2520b57a.996c8a",
        "type": "template",
        "z": "dab3af18.12054",
        "name": "reset on command",
        "field": "reset",
        "fieldType": "msg",
        "format": "handlebars",
        "syntax": "mustache",
        "template": "This is the payload: {{payload}} !",
        "x": 255,
        "y": 203,
        "wires": [
            [
                "fd13bb82.a914c8"
            ]
        ]
    },
    {
        "id": "e6ab24ab.3a8678",
        "type": "template",
        "z": "dab3af18.12054",
        "name": "reset off command",
        "field": "reset",
        "fieldType": "msg",
        "format": "handlebars",
        "syntax": "mustache",
        "template": "This is the payload: {{payload}} !",
        "x": 229,
        "y": 338,
        "wires": [
            [
                "9a626669.74b54"
            ]
        ]
    },
    {
        "id": "f585eeef.2f49f",
        "type": "debug",
        "z": "dab3af18.12054",
        "name": "this is arduino on 13 pin",
        "active": true,
        "console": "false",
        "complete": "payload",
        "x": 705,
        "y": 161,
        "wires": []
    },
    {
        "id": "a89c5a3b.fe6d48",
        "type": "telegram sender",
        "z": "dab3af18.12054",
        "name": "",
        "bot": "a12e7dee.72d1a",
        "x": 705,
        "y": 119,
        "wires": [
            []
        ]
    },
    {
        "id": "2b29b88a.20b8b8",
        "type": "template",
        "z": "dab3af18.12054",
        "name": "on message",
        "field": "payload.content",
        "fieldType": "msg",
        "format": "text",
        "syntax": "mustache",
        "template": "Lights has been on!",
        "x": 390,
        "y": 303,
        "wires": [
            [
                "a89c5a3b.fe6d48"
            ]
        ]
    },
    {
        "id": "9414214c.53ddf",
        "type": "template",
        "z": "dab3af18.12054",
        "name": "off message",
        "field": "payload.content",
        "fieldType": "msg",
        "format": "text",
        "syntax": "mustache",
        "template": "Lights has been off!",
        "x": 233,
        "y": 115,
        "wires": [
            [
                "a89c5a3b.fe6d48"
            ]
        ]
    },
    {
        "id": "76ecab7c.772c1c",
        "type": "gpio out",
        "z": "dab3af18.12054",
        "name": "",
        "state": "OUTPUT",
        "pin": "3",
        "i2cDelay": "0",
        "i2cAddress": "",
        "i2cRegister": "",
        "outputs": 0,
        "board": "afe730f9.b748a",
        "x": 674,
        "y": 203,
        "wires": []
    },
    {
        "id": "a12e7dee.72d1a",
        "type": "telegram bot",
        "z": "",
        "botname": "iot test",
        "usernames": "",
        "chatids": "306389480"
    },
    {
        "id": "afe730f9.b748a",
        "type": "nodebot",
        "z": "",
        "name": "",
        "username": "",
        "password": "",
        "boardType": "raspi-io",
        "serialportName": "",
        "connectionType": "local",
        "mqttServer": "",
        "socketServer": "",
        "pubTopic": "",
        "subTopic": "",
        "tcpHost": "",
        "tcpPort": "",
        "sparkId": "",
        "sparkToken": "",
        "beanId": "",
        "impId": "",
        "meshbluServer": "https://meshblu.octoblu.com",
        "uuid": "",
        "token": "",
        "sendUuid": ""
    }
]
rynsm4rt

Flow Info

created 4 months, 3 weeks ago

Node Types

Core
  • debug (x1)
  • template (x4)
  • trigger (x2)
Other
  • gpio out (x1)
  • nodebot (x1)
  • telegram bot (x1)
  • telegram command (x2)
  • telegram sender (x1)

Tags

  • raspberry
  • telegram
  • johhny-five
  • simple
  • with-out-code
Copy this flow JSON to your clipboard and then import into Node-RED using the Import From > Clipboard (Ctrl-I) menu option