Revert temperature source change
This commit is contained in:
30
flows.json
30
flows.json
@ -1577,12 +1577,13 @@
|
||||
"label": true
|
||||
},
|
||||
"nodes": [
|
||||
"274be2385ae894ce",
|
||||
"dcc947fe66b6342b",
|
||||
"15f7382daddb4b3e"
|
||||
],
|
||||
"x": 34,
|
||||
"y": 999,
|
||||
"w": 452,
|
||||
"w": 632,
|
||||
"h": 82
|
||||
},
|
||||
{
|
||||
@ -33502,6 +33503,27 @@
|
||||
[]
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "274be2385ae894ce",
|
||||
"type": "api-render-template",
|
||||
"z": "3e4ba157b540d183",
|
||||
"g": "385f03591bc34bcc",
|
||||
"name": "",
|
||||
"server": "9e87348d.9c1c48",
|
||||
"version": 0,
|
||||
"template": "{% set temps = [\n states.sensor.kdfi_temperature,\n states.sensor.pirateweather_temperature,\n states.sensor.openweathermap_temperature,\n states.sensor.myradar_temperature\n] %}\n{% set sensor = temps | selectattr('state','ne','unavailable') | selectattr('state','ne','unknown') | map(attribute='entity_id') | list | first %}\n{{ states(sensor) | float }}\n",
|
||||
"resultsLocation": "temperature",
|
||||
"resultsLocationType": "msg",
|
||||
"templateLocation": "",
|
||||
"templateLocationType": "none",
|
||||
"x": 320,
|
||||
"y": 1040,
|
||||
"wires": [
|
||||
[
|
||||
"15f7382daddb4b3e"
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "dcc947fe66b6342b",
|
||||
"type": "inject",
|
||||
@ -33524,7 +33546,7 @@
|
||||
"y": 1040,
|
||||
"wires": [
|
||||
[
|
||||
"15f7382daddb4b3e"
|
||||
"274be2385ae894ce"
|
||||
]
|
||||
]
|
||||
},
|
||||
@ -33534,14 +33556,14 @@
|
||||
"z": "3e4ba157b540d183",
|
||||
"g": "385f03591bc34bcc",
|
||||
"name": "Set Global Variables",
|
||||
"func": "const states = global.get('homeassistant.homeAssistant.states')\nconst temp = states['weather.iron_nerd_weather_station'].attributes.temperature\n\nglobal.set('outdoorTemp.tempInt',parseInt(temp))\nglobal.set('outdoorTemp.tempFloat',parseFloat(temp))\nglobal.set('outdoorTemp.tempStr',temp)\n\nnode.status({fill:\"green\",shape:\"dot\",text:`Int: ${parseInt(temp)} | Float: ${parseFloat(temp)} | Str: ${temp}`})",
|
||||
"func": "const temp = msg.temperature\n\nglobal.set('outdoorTemp.tempInt',parseInt(temp))\nglobal.set('outdoorTemp.tempFloat',parseFloat(temp))\nglobal.set('outdoorTemp.tempStr',temp)\n\nnode.status({fill:\"green\",shape:\"dot\",text:temp})",
|
||||
"outputs": 0,
|
||||
"timeout": "",
|
||||
"noerr": 0,
|
||||
"initialize": "",
|
||||
"finalize": "",
|
||||
"libs": [],
|
||||
"x": 360,
|
||||
"x": 540,
|
||||
"y": 1040,
|
||||
"wires": []
|
||||
},
|
||||
|
Reference in New Issue
Block a user