Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Monitoring for Shelly Door Windows state changes in MQTT topic and send a Telegram notifications when there is change using Home Assistant integration
[
{
"id": "15497425.87c8f4",
"type": "tab",
"label": "Shelly Door",
"disabled": false,
"info": ""
},
{
"id": "57915752.82daf8",
"type": "mqtt in",
"z": "15497425.87c8f4",
"name": "Shelly Sensor State",
"topic": "shellies/shellydw-F03134/sensor/state",
"qos": "2",
"datatype": "auto",
"broker": "fcc2e7ec.510d6",
"x": 210,
"y": 220,
"wires": [
[
"c6782d8f.2d16e"
]
]
},
{
"id": "c6782d8f.2d16e",
"type": "rbe",
"z": "15497425.87c8f4",
"name": "",
"func": "rbe",
"gap": "",
"start": "",
"inout": "out",
"property": "payload",
"x": 440,
"y": 260,
"wires": [
[
"d154a19f.be2488",
"4f8f41bf.7ec4b"
]
]
},
{
"id": "d154a19f.be2488",
"type": "debug",
"z": "15497425.87c8f4",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": true,
"complete": "payload",
"targetType": "msg",
"x": 670,
"y": 360,
"wires": []
},
{
"id": "4f8f41bf.7ec4b",
"type": "api-call-service",
"z": "15497425.87c8f4",
"name": "",
"server": "9fd334f6.700fa8",
"version": 1,
"debugenabled": true,
"service_domain": "notify",
"service": "telegram",
"entityId": "",
"data": "{\"message\":\"test\"}",
"dataType": "json",
"mergecontext": "",
"output_location": "",
"output_location_type": "none",
"mustacheAltTags": false,
"x": 690,
"y": 220,
"wires": [
[]
]
},
{
"id": "8c686e08.9518c",
"type": "inject",
"z": "15497425.87c8f4",
"name": "",
"topic": "",
"payload": "close",
"payloadType": "str",
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"x": 210,
"y": 360,
"wires": [
[
"c6782d8f.2d16e"
]
]
},
{
"id": "fcc2e7ec.510d6",
"type": "mqtt-broker",
"z": "",
"name": "",
"broker": "10.0.0.2",
"port": "1883",
"clientid": "",
"usetls": false,
"compatmode": false,
"keepalive": "60",
"cleansession": true,
"birthTopic": "",
"birthQos": "0",
"birthRetain": "false",
"birthPayload": "",
"closeTopic": "",
"closeQos": "0",
"closeRetain": "false",
"closePayload": "",
"willTopic": "",
"willQos": "0",
"willRetain": "false",
"willPayload": ""
},
{
"id": "9fd334f6.700fa8",
"type": "server",
"z": "",
"name": "Home Assistant",
"addon": true
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.