Skip to content

Instantly share code, notes, and snippets.

@rnetis

rnetis/README.md Secret

Created July 3, 2017 20:40
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rnetis/2d62a94d36882a14aeeacc5d809910c6 to your computer and use it in GitHub Desktop.
Save rnetis/2d62a94d36882a14aeeacc5d809910c6 to your computer and use it in GitHub Desktop.
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": ""
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment