Pull in some house parameters from MQTT

This commit is contained in:
2024-03-03 22:37:01 -05:00
parent 60d03594ec
commit 1b313c036c
2 changed files with 226 additions and 2 deletions

View File

@ -1 +1,225 @@
[]
[
{
"id": "91324b2dbbd2a883",
"type": "tab",
"label": "Settings",
"disabled": false,
"info": "",
"env": []
},
{
"id": "200f284a1171f0a8",
"type": "mqtt-broker",
"name": "",
"broker": "192.168.1.251",
"port": "1883",
"clientid": "",
"autoConnect": true,
"usetls": false,
"protocolVersion": "5",
"keepalive": "60",
"cleansession": true,
"autoUnsubscribe": true,
"birthTopic": "",
"birthQos": "0",
"birthRetain": "false",
"birthPayload": "",
"birthMsg": {},
"closeTopic": "",
"closeQos": "0",
"closeRetain": "false",
"closePayload": "",
"closeMsg": {},
"willTopic": "",
"willQos": "0",
"willRetain": "false",
"willPayload": "",
"willMsg": {},
"userProps": "",
"sessionExpiry": ""
},
{
"id": "a1c109993f7dd396",
"type": "mqtt in",
"z": "91324b2dbbd2a883",
"name": "",
"topic": "house/time/night_mode",
"qos": "2",
"datatype": "auto-detect",
"broker": "200f284a1171f0a8",
"nl": false,
"rap": true,
"rh": 0,
"inputs": 0,
"x": 140,
"y": 60,
"wires": [
[
"0ea09d79d6de5c53"
]
]
},
{
"id": "0ea09d79d6de5c53",
"type": "change",
"z": "91324b2dbbd2a883",
"name": "",
"rules": [
{
"t": "set",
"p": "night_mode",
"pt": "global",
"to": "payload",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 380,
"y": 60,
"wires": [
[]
]
},
{
"id": "395e101ae9c12369",
"type": "mqtt in",
"z": "91324b2dbbd2a883",
"name": "",
"topic": "house/time/give_me_darkness",
"qos": "2",
"datatype": "auto-detect",
"broker": "200f284a1171f0a8",
"nl": false,
"rap": true,
"rh": 0,
"inputs": 0,
"x": 160,
"y": 120,
"wires": [
[
"7e79da9ecd800892"
]
]
},
{
"id": "7e79da9ecd800892",
"type": "change",
"z": "91324b2dbbd2a883",
"name": "",
"rules": [
{
"t": "set",
"p": "give_me_darkness",
"pt": "global",
"to": "payload",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 440,
"y": 120,
"wires": [
[]
]
},
{
"id": "a67eb32acf21917c",
"type": "mqtt in",
"z": "91324b2dbbd2a883",
"name": "",
"topic": "house/time/early_night_mode",
"qos": "2",
"datatype": "auto-detect",
"broker": "200f284a1171f0a8",
"nl": false,
"rap": true,
"rh": 0,
"inputs": 0,
"x": 160,
"y": 180,
"wires": [
[
"e183038952420a88"
]
]
},
{
"id": "e183038952420a88",
"type": "change",
"z": "91324b2dbbd2a883",
"name": "",
"rules": [
{
"t": "set",
"p": "early_night_mode",
"pt": "global",
"to": "payload",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 440,
"y": 180,
"wires": [
[]
]
},
{
"id": "da24109fa6585678",
"type": "mqtt in",
"z": "91324b2dbbd2a883",
"name": "",
"topic": "house/studio/live",
"qos": "2",
"datatype": "auto-detect",
"broker": "200f284a1171f0a8",
"nl": false,
"rap": true,
"rh": 0,
"inputs": 0,
"x": 120,
"y": 240,
"wires": [
[
"f7219402165cd674"
]
]
},
{
"id": "f7219402165cd674",
"type": "change",
"z": "91324b2dbbd2a883",
"name": "",
"rules": [
{
"t": "set",
"p": "studio_live",
"pt": "global",
"to": "payload",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 340,
"y": 240,
"wires": [
[]
]
}
]

View File

@ -1,3 +1,3 @@
{
"$": "c0f69fe36a0360bf7c11a66c20421d089Zw="
"$": "dedc4844b17024634c37414e77a00c0cZVRqzrSY/m9SjTWpb+gdDmsN2uHh2bUF7El66/XU+1/IxDhOf/AFxxdhOVnOENd3VuPJfWBzcQLNOcC+A706lls="
}