Skip to content

Commit

Permalink
Change panel off when above energy 0
Browse files Browse the repository at this point in the history
  • Loading branch information
x-real-ip committed Feb 8, 2024
1 parent 6378329 commit 7318911
Showing 1 changed file with 138 additions and 138 deletions.
276 changes: 138 additions & 138 deletions src/data/flows/automation_infrared_panel.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,18 @@
"87b3630fa6681255",
"b334886da3d39e67"
],
"x": 1234,
"y": 39,
"w": 472,
"x": 1254,
"y": 19,
"w": 452,
"h": 202
},
{
"id": "5959cdf78bae2b4a",
"type": "junction",
"z": "d7c35c04cc0c5b68",
"g": "36dc1da28ea112aa",
"x": 1260,
"y": 100,
"x": 1280,
"y": 60,
"wires": [
[
"51bb0a67f9282d5f",
Expand All @@ -45,6 +45,129 @@
]
]
},
{
"id": "b334886da3d39e67",
"type": "template",
"z": "d7c35c04cc0c5b68",
"g": "36dc1da28ea112aa",
"name": "message",
"field": "notify.message",
"fieldType": "msg",
"format": "handlebars",
"syntax": "mustache",
"template": "Het Infrarood paneel in de souterrain stond nog aan en is nu automatisch uitgeschakeld",
"output": "str",
"x": 1380,
"y": 180,
"wires": [
[
"98c964aa61c96938"
]
]
},
{
"id": "87b3630fa6681255",
"type": "template",
"z": "d7c35c04cc0c5b68",
"g": "36dc1da28ea112aa",
"name": "notification id",
"field": "notify.notification_id",
"fieldType": "msg",
"format": "handlebars",
"syntax": "mustache",
"template": "infrared_panel",
"output": "str",
"x": 1390,
"y": 140,
"wires": [
[
"98c964aa61c96938"
]
]
},
{
"id": "98c964aa61c96938",
"type": "join",
"z": "d7c35c04cc0c5b68",
"g": "36dc1da28ea112aa",
"name": "",
"mode": "custom",
"build": "merged",
"property": "notify",
"propertyType": "msg",
"key": "topic",
"joiner": "\\n",
"joinerType": "str",
"accumulate": false,
"timeout": "",
"count": "4",
"reduceRight": false,
"reduceExp": "",
"reduceInit": "",
"reduceInitType": "",
"reduceFixup": "",
"x": 1570,
"y": 120,
"wires": [
[
"dfe89d053727bf74"
]
]
},
{
"id": "dfe89d053727bf74",
"type": "link out",
"z": "d7c35c04cc0c5b68",
"g": "36dc1da28ea112aa",
"name": "link_out_notify_infrared_panel",
"mode": "link",
"links": [
"8ed3b0974336e55b"
],
"x": 1665,
"y": 120,
"wires": []
},
{
"id": "51bb0a67f9282d5f",
"type": "template",
"z": "d7c35c04cc0c5b68",
"g": "36dc1da28ea112aa",
"name": "title",
"field": "notify.title",
"fieldType": "msg",
"format": "handlebars",
"syntax": "mustache",
"template": "Infrarood paneel",
"output": "str",
"x": 1370,
"y": 60,
"wires": [
[
"98c964aa61c96938"
]
]
},
{
"id": "8f7ef08c7aea9511",
"type": "template",
"z": "d7c35c04cc0c5b68",
"g": "36dc1da28ea112aa",
"name": "icon",
"field": "notify.icon",
"fieldType": "msg",
"format": "handlebars",
"syntax": "mustache",
"template": "",
"output": "str",
"x": 1370,
"y": 100,
"wires": [
[
"98c964aa61c96938"
]
]
},
{
"id": "0eb4e43996470004",
"type": "cronplus",
Expand Down Expand Up @@ -93,15 +216,15 @@
"id": "4c51a48e529813e3",
"type": "api-current-state",
"z": "d7c35c04cc0c5b68",
"name": "shellyplug infrared panel is on",
"name": "shellyplug infrared panel energy is > 0",
"server": "4ba92433.2478cc",
"version": 3,
"outputs": 2,
"halt_if": "on",
"halt_if_type": "str",
"halt_if_compare": "is",
"entity_id": "switch.shellyplugplus_infraredpanel_switch_0",
"state_type": "str",
"halt_if": "0",
"halt_if_type": "num",
"halt_if_compare": "gt",
"entity_id": "sensor.shellyplugplus_infraredpanel_switch_0_power",
"state_type": "num",
"blockInputOverrides": false,
"outputProperties": [
{
Expand All @@ -125,7 +248,7 @@
"override_payload": "msg",
"entity_location": "data",
"override_data": "msg",
"x": 350,
"x": 370,
"y": 60,
"wires": [
[
Expand Down Expand Up @@ -155,7 +278,7 @@
"mustacheAltTags": false,
"outputProperties": [],
"queue": "none",
"x": 630,
"x": 670,
"y": 60,
"wires": [
[
Expand All @@ -180,7 +303,7 @@
"drop": false,
"allowrate": false,
"outputs": 1,
"x": 840,
"x": 880,
"y": 60,
"wires": [
[
Expand Down Expand Up @@ -209,137 +332,14 @@
"mustacheAltTags": false,
"outputProperties": [],
"queue": "none",
"x": 1050,
"x": 1090,
"y": 60,
"wires": [
[
"5959cdf78bae2b4a"
]
]
},
{
"id": "8f7ef08c7aea9511",
"type": "template",
"z": "d7c35c04cc0c5b68",
"g": "36dc1da28ea112aa",
"name": "icon",
"field": "notify.icon",
"fieldType": "msg",
"format": "handlebars",
"syntax": "mustache",
"template": "",
"output": "str",
"x": 1370,
"y": 120,
"wires": [
[
"98c964aa61c96938"
]
]
},
{
"id": "51bb0a67f9282d5f",
"type": "template",
"z": "d7c35c04cc0c5b68",
"g": "36dc1da28ea112aa",
"name": "title",
"field": "notify.title",
"fieldType": "msg",
"format": "handlebars",
"syntax": "mustache",
"template": "Infrarood paneel",
"output": "str",
"x": 1370,
"y": 80,
"wires": [
[
"98c964aa61c96938"
]
]
},
{
"id": "dfe89d053727bf74",
"type": "link out",
"z": "d7c35c04cc0c5b68",
"g": "36dc1da28ea112aa",
"name": "link_out_notify_infrared_panel",
"mode": "link",
"links": [
"8ed3b0974336e55b"
],
"x": 1665,
"y": 140,
"wires": []
},
{
"id": "98c964aa61c96938",
"type": "join",
"z": "d7c35c04cc0c5b68",
"g": "36dc1da28ea112aa",
"name": "",
"mode": "custom",
"build": "merged",
"property": "notify",
"propertyType": "msg",
"key": "topic",
"joiner": "\\n",
"joinerType": "str",
"accumulate": false,
"timeout": "",
"count": "4",
"reduceRight": false,
"reduceExp": "",
"reduceInit": "",
"reduceInitType": "",
"reduceFixup": "",
"x": 1570,
"y": 140,
"wires": [
[
"dfe89d053727bf74"
]
]
},
{
"id": "87b3630fa6681255",
"type": "template",
"z": "d7c35c04cc0c5b68",
"g": "36dc1da28ea112aa",
"name": "notification id",
"field": "notify.notification_id",
"fieldType": "msg",
"format": "handlebars",
"syntax": "mustache",
"template": "infrared_panel",
"output": "str",
"x": 1390,
"y": 160,
"wires": [
[
"98c964aa61c96938"
]
]
},
{
"id": "b334886da3d39e67",
"type": "template",
"z": "d7c35c04cc0c5b68",
"g": "36dc1da28ea112aa",
"name": "message",
"field": "notify.message",
"fieldType": "msg",
"format": "handlebars",
"syntax": "mustache",
"template": "Het Infrarood paneel in de souterrain stond nog aan en is nu automatisch uitgeschakeld",
"output": "str",
"x": 1380,
"y": 200,
"wires": [
[
"98c964aa61c96938"
]
]
},
{
"id": "4ba92433.2478cc",
"type": "server",
Expand Down

0 comments on commit 7318911

Please sign in to comment.