Several possibilities to do this. There are timers that you can call from homeassistant for example.
I settled on a manual solution. My NodeRed flow will turn off after the time set via inputnumber. However it will also update the input number to the remaining time every minute and it even works through a restart.
As i have no idea how to select multiple nodes with mobile browser, i just exported most of the complete flow. Check it out and let me know if there are some questions
[
{
"id": "f28a8271.df143",
"type": "tab",
"label": "Dyson",
"disabled": false,
"info": ""
},
{
"id": "e697e6f9.6193d8",
"type": "server-state-changed",
"z": "f28a8271.df143",
"name": "Bedroom Oscillate",
"server": "2fba4297.e4145e",
"version": 1,
"entityidfilter": "input_boolean.bedroomfanoscillate",
"entityidfiltertype": "exact",
"outputinitially": false,
"state_type": "str",
"haltifstate": "",
"halt_if_type": "str",
"halt_if_compare": "is",
"outputs": 1,
"output_only_on_state_change": true,
"x": 90,
"y": 100,
"wires": [
[
"d4753474.8894d8"
]
]
},
{
"id": "f59c9504.bda998",
"type": "server-state-changed",
"z": "f28a8271.df143",
"name": "Bedroom Power",
"server": "2fba4297.e4145e",
"version": "1",
"entityidfilter": "input_boolean.bedroomfanpower",
"entityidfiltertype": "exact",
"outputinitially": false,
"state_type": "str",
"haltifstate": "",
"halt_if_type": "str",
"halt_if_compare": "is",
"outputs": 1,
"output_only_on_state_change": true,
"x": 80,
"y": 160,
"wires": [
[
"9bd5aab1.e01718"
]
]
},
{
"id": "ba494f52.ca20d",
"type": "switch",
"z": "f28a8271.df143",
"name": "",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "on",
"vt": "str"
},
{
"t": "eq",
"v": "off",
"vt": "str"
}
],
"checkall": "true",
"repair": false,
"outputs": 2,
"x": 670,
"y": 100,
"wires": [
[
"3d65a6e6.23513a",
"6a017f24.1f667"
],
[
"a63854d7.d290f8"
]
]
},
{
"id": "3d65a6e6.23513a",
"type": "api-call-service",
"z": "f28a8271.df143",
"name": "Fan Power",
"server": "2fba4297.e4145e",
"version": 1,
"service_domain": "fan",
"service": "turn_on",
"entityId": "fan.schlafzimmer",
"data": "",
"dataType": "json",
"mergecontext": "",
"output_location": "",
"output_location_type": "none",
"mustacheAltTags": false,
"x": 870,
"y": 160,
"wires": [
[]
]
},
{
"id": "1355bb29.decc45",
"type": "switch",
"z": "f28a8271.df143",
"name": "",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "on",
"vt": "str"
},
{
"t": "eq",
"v": "off",
"vt": "str"
}
],
"checkall": "true",
"repair": false,
"outputs": 2,
"x": 670,
"y": 160,
"wires": [
[
"3d65a6e6.23513a"
],
[
"e4dcc395.f4b5c"
]
]
},
{
"id": "e4dcc395.f4b5c",
"type": "api-call-service",
"z": "f28a8271.df143",
"name": "Fan Power Off",
"server": "2fba4297.e4145e",
"version": "1",
"service_domain": "fan",
"service": "turn_off",
"entityId": "fan.schlafzimmer",
"data": "",
"dataType": "json",
"mergecontext": "",
"output_location": "",
"output_location_type": "none",
"mustacheAltTags": false,
"x": 880,
"y": 220,
"wires": [
[]
]
},
{
"id": "5c7ed358.93214c",
"type": "switch",
"z": "f28a8271.df143",
"name": "",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "on",
"vt": "str"
},
{
"t": "eq",
"v": "off",
"vt": "str"
}
],
"checkall": "true",
"repair": false,
"outputs": 2,
"x": 670,
"y": 280,
"wires": [
[
"21b38f0f.f5c79"
],
[
"865783d.6277d8",
"348359e5.e56466",
"cf1774fb.50e128"
]
]
},
{
"id": "21b38f0f.f5c79",
"type": "api-call-service",
"z": "f28a8271.df143",
"name": "Bedroom Power",
"server": "2fba4297.e4145e",
"version": "1",
"service_domain": "input_boolean",
"service": "turn_on",
"entityId": "input_boolean.bedroomfanpower",
"data": "",
"dataType": "json",
"mergecontext": "",
"output_location": "",
"output_location_type": "none",
"mustacheAltTags": false,
"x": 880,
"y": 280,
"wires": [
[]
]
},
{
"id": "865783d.6277d8",
"type": "api-call-service",
"z": "f28a8271.df143",
"name": "Bedroom Power Off",
"server": "2fba4297.e4145e",
"version": "1",
"service_domain": "input_boolean",
"service": "turn_off",
"entityId": "input_boolean.bedroomfanpower",
"data": "",
"dataType": "json",
"mergecontext": "",
"output_location": "",
"output_location_type": "none",
"mustacheAltTags": false,
"x": 890,
"y": 340,
"wires": [
[]
]
},
{
"id": "98e4e962.cb3088",
"type": "server-state-changed",
"z": "f28a8271.df143",
"name": "Fan Oscillate",
"server": "2fba4297.e4145e",
"version": 1,
"entityidfilter": "fan.schlafzimmer",
"entityidfiltertype": "exact",
"outputinitially": false,
"state_type": "str",
"haltifstate": "",
"halt_if_type": "str",
"halt_if_compare": "is",
"outputs": 1,
"output_only_on_state_change": false,
"x": 70,
"y": 640,
"wires": [
[
"deef47f1.1f84c8"
]
]
},
{
"id": "89752e34.6078e",
"type": "switch",
"z": "f28a8271.df143",
"name": "",
"property": "data.attributes.oscillating",
"propertyType": "msg",
"rules": [
{
"t": "true"
},
{
"t": "false"
}
],
"checkall": "true",
"repair": false,
"outputs": 2,
"x": 670,
"y": 640,
"wires": [
[
"9078b904.4274b8"
],
[
"c4b3e9bb.b83068"
]
]
},
{
"id": "9078b904.4274b8",
"type": "api-call-service",
"z": "f28a8271.df143",
"name": "Bedroom Oscillate",
"server": "2fba4297.e4145e",
"version": "1",
"service_domain": "input_boolean",
"service": "turn_on",
"entityId": "input_boolean.bedroomfanoscillate",
"data": "",
"dataType": "json",
"mergecontext": "",
"output_location": "",
"output_location_type": "none",
"mustacheAltTags": false,
"x": 890,
"y": 640,
"wires": [
[]
]
},
{
"id": "c4b3e9bb.b83068",
"type": "api-call-service",
"z": "f28a8271.df143",
"name": "Bedroom Oscillate Off",
"server": "2fba4297.e4145e",
"version": "1",
"service_domain": "input_boolean",
"service": "turn_off",
"entityId": "input_boolean.bedroomfanoscillate",
"data": "",
"dataType": "json",
"mergecontext": "",
"output_location": "",
"output_location_type": "none",
"mustacheAltTags": false,
"x": 900,
"y": 700,
"wires": [
[]
]
},
{
"id": "762b3846.4a5a18",
"type": "server-state-changed",
"z": "f28a8271.df143",
"name": "Timer",
"server": "2fba4297.e4145e",
"version": 1,
"entityidfilter": "input_number.bedroom_fantime",
"entityidfiltertype": "exact",
"outputinitially": false,
"state_type": "str",
"haltifstate": "0",
"halt_if_type": "num",
"halt_if_compare": "lte",
"outputs": 2,
"output_only_on_state_change": true,
"x": 50,
"y": 1000,
"wires": [
[],
[
"efed7a03.a97558"
]
]
},
{
"id": "cf1774fb.50e128",
"type": "api-call-service",
"z": "f28a8271.df143",
"name": "AbkĆ¼hlen Off",
"server": "2fba4297.e4145e",
"version": "1",
"service_domain": "input_boolean",
"service": "turn_off",
"entityId": "input_boolean.abkuhlenbr",
"data": "",
"dataType": "json",
"mergecontext": "",
"output_location": "",
"output_location_type": "none",
"mustacheAltTags": false,
"x": 870,
"y": 400,
"wires": [
[]
]
},
{
"id": "e39884b5.6590b8",
"type": "server-state-changed",
"z": "f28a8271.df143",
"name": "AbkĆ¼hlen",
"server": "2fba4297.e4145e",
"version": "1",
"entityidfilter": "input_boolean.abkuhlenbr",
"entityidfiltertype": "exact",
"outputinitially": true,
"state_type": "str",
"haltifstate": "",
"halt_if_type": "str",
"halt_if_compare": "is",
"outputs": 1,
"output_only_on_state_change": true,
"x": 60,
"y": 1060,
"wires": [
[
"f2777dde.3abb9"
]
]
},
{
"id": "2e1cd205.f84b8e",
"type": "api-call-service",
"z": "f28a8271.df143",
"name": "Fan oscillate",
"server": "2fba4297.e4145e",
"version": 1,
"service_domain": "fan",
"service": "oscillate",
"entityId": "fan.schlafzimmer",
"data": "{\"oscillating\":\"true\"}",
"dataType": "json",
"mergecontext": "",
"output_location": "",
"output_location_type": "none",
"mustacheAltTags": false,
"x": 990,
"y": 40,
"wires": [
[]
]
},
{
"id": "a63854d7.d290f8",
"type": "api-call-service",
"z": "f28a8271.df143",
"name": "Fan Oscillate Off",
"server": "2fba4297.e4145e",
"version": "1",
"service_domain": "fan",
"service": "oscillate",
"entityId": "fan.schlafzimmer",
"data": "{\"oscillating\":\"false\"}",
"dataType": "json",
"mergecontext": "",
"output_location": "",
"output_location_type": "none",
"mustacheAltTags": false,
"x": 890,
"y": 100,
"wires": [
[]
]
},
{
"id": "cac52285.f8fbb",
"type": "api-call-service",
"z": "f28a8271.df143",
"name": "Bedroom Night Mode",
"server": "2fba4297.e4145e",
"version": "1",
"service_domain": "input_boolean",
"service": "turn_on",
"entityId": "input_boolean.bedroomfannightmode",
"data": "",
"dataType": "json",
"mergecontext": "",
"output_location": "",
"output_location_type": "none",
"mustacheAltTags": false,
"x": 900,
"y": 760,
"wires": [
[]
]
},
{
"id": "ffc0e726.7b8d88",
"type": "api-call-service",
"z": "f28a8271.df143",
"name": "Bedroom Night Mode Off",
"server": "2fba4297.e4145e",
"version": "1",
"service_domain": "input_boolean",
"service": "turn_off",
"entityId": "input_boolean.bedroomfannightmode",
"data": "",
"dataType": "json",
"mergecontext": "",
"output_location": "",
"output_location_type": "none",
"mustacheAltTags": false,
"x": 910,
"y": 820,
"wires": [
[]
]
},
{
"id": "b6874307.4eb0f",
"type": "server-state-changed",
"z": "f28a8271.df143",
"name": "Fan Night Mode",
"server": "2fba4297.e4145e",
"version": "1",
"entityidfilter": "fan.schlafzimmer",
"entityidfiltertype": "exact",
"outputinitially": false,
"state_type": "str",
"haltifstate": "",
"halt_if_type": "str",
"halt_if_compare": "is",
"outputs": 1,
"output_only_on_state_change": false,
"x": 80,
"y": 760,
"wires": [
[
"997c493.3f651b8"
]
]
},
{
"id": "5dffb82a.127148",
"type": "switch",
"z": "f28a8271.df143",
"name": "",
"property": "data.attributes.night_mode",
"propertyType": "msg",
"rules": [
{
"t": "true"
},
{
"t": "false"
}
],
"checkall": "true",
"repair": false,
"outputs": 2,
"x": 670,
"y": 760,
"wires": [
[
"cac52285.f8fbb"
],
[
"ffc0e726.7b8d88"
]
]
},
{
"id": "cd133c4d.0a525",
"type": "server-state-changed",
"z": "f28a8271.df143",
"name": "Bedroom Night Mode",
"server": "2fba4297.e4145e",
"version": "1",
"entityidfilter": "input_boolean.bedroomfannightmode",
"entityidfiltertype": "exact",
"outputinitially": false,
"state_type": "str",
"haltifstate": "",
"halt_if_type": "str",
"halt_if_compare": "is",
"outputs": 1,
"output_only_on_state_change": false,
"x": 100,
"y": 880,
"wires": [
[
"5a42e31b.19d49c"
]
]
},
{
"id": "7320a9c8.25ab18",
"type": "switch",
"z": "f28a8271.df143",
"name": "",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "on",
"vt": "str"
},
{
"t": "eq",
"v": "off",
"vt": "str"
}
],
"checkall": "true",
"repair": false,
"outputs": 2,
"x": 670,
"y": 880,
"wires": [
[
"3e60ab01.686264"
],
[
"eb7e2f4c.90981"
]
]
},
{
"id": "3e60ab01.686264",
"type": "api-call-service",
"z": "f28a8271.df143",
"name": "Fan Night",
"server": "2fba4297.e4145e",
"version": "1",
"service_domain": "dyson",
"service": "set_night_mode",
"entityId": "fan.schlafzimmer",
"data": "{\"night_mode\":\"true\"}",
"dataType": "json",
"mergecontext": "",
"output_location": "",
"output_location_type": "none",
"mustacheAltTags": false,
"x": 860,
"y": 880,
"wires": [
[]
]
},
{
"id": "eb7e2f4c.90981",
"type": "api-call-service",
"z": "f28a8271.df143",
"name": "Fan Night",
"server": "2fba4297.e4145e",
"version": "1",
"service_domain": "dyson",
"service": "set_night_mode",
"entityId": "fan.schlafzimmer",
"data": "{\"night_mode\":\"false\"}",
"dataType": "json",
"mergecontext": "",
"output_location": "",
"output_location_type": "none",
"mustacheAltTags": false,
"x": 860,
"y": 940,
"wires": [
[]
]
},
{
"id": "26227fe7.52ffb",
"type": "api-call-service",
"z": "f28a8271.df143",
"name": "Bedroom Speed",
"server": "2fba4297.e4145e",
"version": "1",
"service_domain": "input_number",
"service": "set_value",
"entityId": "input_number.bedroom_fanspeed",
"data": "",
"dataType": "json",
"mergecontext": "",
"output_location": "",
"output_location_type": "none",
"mustacheAltTags": false,
"x": 880,
"y": 520,
"wires": [
[]
]
},
{
"id": "9ac4e0af.96e86",
"type": "function",
"z": "f28a8271.df143",
"name": "Speed",
"func": "newmsg = {}\n\nnewmsg.payload = { data: { \"value\":msg.data.new_state.attributes.speed} }\n\nreturn newmsg;\n",
"outputs": 1,
"noerr": 0,
"x": 670,
"y": 520,
"wires": [
[
"26227fe7.52ffb"
]
]
},
{
"id": "75a85d93.2790b4",
"type": "server-state-changed",
"z": "f28a8271.df143",
"name": "Bedroom Speed",
"server": "2fba4297.e4145e",
"version": "1",
"entityidfilter": "input_number.bedroom_fanspeed",
"entityidfiltertype": "exact",
"outputinitially": false,
"state_type": "str",
"haltifstate": "",
"halt_if_type": "str",
"halt_if_compare": "is",
"outputs": 1,
"output_only_on_state_change": true,
"x": 80,
"y": 580,
"wires": [
[
"9e5cdd7a.ed4e2"
]
]
},
{
"id": "bf3c6ea0.e20bf",
"type": "api-call-service",
"z": "f28a8271.df143",
"name": "Fan Speed",
"server": "2fba4297.e4145e",
"version": "1",
"service_domain": "fan",
"service": "set_speed",
"entityId": "fan.schlafzimmer",
"data": "",
"dataType": "json",
"mergecontext": "",
"output_location": "",
"output_location_type": "none",
"mustacheAltTags": false,
"x": 870,
"y": 580,
"wires": [
[]
]
},
{
"id": "ac7936ce.2e47f8",
"type": "function",
"z": "f28a8271.df143",
"name": "Speed",
"func": "newmsg = {}\n\nnewmsg.payload = { data: { \"speed\":(parseFloat(msg.payload).toFixed(0))} }\n\nreturn newmsg;\n",
"outputs": 1,
"noerr": 0,
"x": 670,
"y": 580,
"wires": [
[
"bf3c6ea0.e20bf"
]
]
},
{
"id": "42588aa2.f95df4",
"type": "api-call-service",
"z": "f28a8271.df143",
"name": "Fan Power Off",
"server": "2fba4297.e4145e",
"version": "1",
"service_domain": "fan",
"service": "turn_off",
"entityId": "fan.schlafzimmer",
"data": "",
"dataType": "json",
"mergecontext": "",
"output_location": "",
"output_location_type": "none",
"mustacheAltTags": false,
"x": 880,
"y": 1000,
"wires": [
[]
]
},
{
"id": "efed7a03.a97558",
"type": "function",
"z": "f28a8271.df143",
"name": "on/off?",
"func": "newmsg = {};\nif (msg.payload == \"1.0\")\n{\n newmsg.payload = \"True\";\n}else {\n newmsg.payload = \"STOP\";\n}\n\nreturn newmsg;",
"outputs": 1,
"noerr": 0,
"x": 270,
"y": 1000,
"wires": [
[
"29e2b309.8447dc"
]
]
},
{
"id": "29e2b309.8447dc",
"type": "stoptimer",
"z": "f28a8271.df143",
"duration": "1",
"units": "Minute",
"payloadtype": "num",
"payloadval": "1",
"name": "",
"x": 660,
"y": 1000,
"wires": [
[
"42588aa2.f95df4"
],
[]
]
},
{
"id": "348359e5.e56466",
"type": "api-call-service",
"z": "f28a8271.df143",
"name": "Bedroom Timer 0",
"server": "2fba4297.e4145e",
"version": "1",
"service_domain": "input_number",
"service": "set_value",
"entityId": "input_number.bedroom_fantime",
"data": "{\"value\":\"0\"}",
"dataType": "json",
"mergecontext": "",
"output_location": "",
"output_location_type": "none",
"mustacheAltTags": false,
"x": 890,
"y": 460,
"wires": [
[]
]
},
{
"id": "f2777dde.3abb9",
"type": "switch",
"z": "f28a8271.df143",
"name": "",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "on",
"vt": "str"
},
{
"t": "eq",
"v": "off",
"vt": "str"
}
],
"checkall": "true",
"repair": false,
"outputs": 2,
"x": 670,
"y": 1060,
"wires": [
[
"d12ee5bd.6501d8"
],
[
"14cbd58a.a36f5a"
]
]
},
{
"id": "2260ddca.06d482",
"type": "comment",
"z": "f28a8271.df143",
"name": "Dyson Bedroom",
"info": "",
"x": 80,
"y": 20,
"wires": []
},
{
"id": "14cbd58a.a36f5a",
"type": "api-call-service",
"z": "f28a8271.df143",
"name": "Fan Power Off",
"server": "2fba4297.e4145e",
"version": "1",
"service_domain": "fan",
"service": "turn_off",
"entityId": "fan.schlafzimmer",
"data": "",
"dataType": "json",
"mergecontext": "",
"output_location": "",
"output_location_type": "none",
"mustacheAltTags": false,
"x": 880,
"y": 1240,
"wires": [
[]
]
},
{
"id": "77da2a83.6a98f4",
"type": "api-call-service",
"z": "f28a8271.df143",
"name": "Fan oscillate",
"server": "2fba4297.e4145e",
"version": "1",
"service_domain": "fan",
"service": "oscillate",
"entityId": "fan.schlafzimmer",
"data": "{\"oscillating\":\"true\"}",
"dataType": "json",
"mergecontext": "",
"output_location": "",
"output_location_type": "none",
"mustacheAltTags": false,
"x": 870,
"y": 1120,
"wires": [
[]
]
},
{
"id": "4aef8854.b19e08",
"type": "delay",
"z": "f28a8271.df143",
"name": "2s",
"pauseType": "delay",
"timeout": "2",
"timeoutUnits": "seconds",
"rate": "1",
"nbRateUnits": "1",
"rateUnits": "second",
"randomFirst": "1",
"randomLast": "5",
"randomUnits": "seconds",
"drop": false,
"x": 410,
"y": 640,
"wires": [
[
"146e6453.a341ac"
]
]
},
{
"id": "146e6453.a341ac",
"type": "api-current-state",
"z": "f28a8271.df143",
"name": "Fan State",
"server": "2fba4297.e4145e",
"version": 1,
"outputs": 1,
"halt_if": "",
"halt_if_type": "str",
"halt_if_compare": "is",
"override_topic": true,
"entity_id": "fan.schlafzimmer",
"state_type": "str",
"state_location": "payload",
"override_payload": "msg",
"entity_location": "data",
"override_data": "msg",
"blockInputOverrides": false,
"x": 540,
"y": 640,
"wires": [
[
"89752e34.6078e"
]
]
},
{
"id": "4cef0025.9097c",
"type": "delay",
"z": "f28a8271.df143",
"name": "1s",
"pauseType": "delay",
"timeout": "1",
"timeoutUnits": "seconds",
"rate": "1",
"nbRateUnits": "1",
"rateUnits": "second",
"randomFirst": "1",
"randomLast": "5",
"randomUnits": "seconds",
"drop": false,
"x": 410,
"y": 760,
"wires": [
[
"435afa38.740924"
]
]
},
{
"id": "435afa38.740924",
"type": "api-current-state",
"z": "f28a8271.df143",
"name": "Fan State",
"server": "2fba4297.e4145e",
"version": "1",
"outputs": 1,
"halt_if": "",
"halt_if_type": "str",
"halt_if_compare": "is",
"override_topic": true,
"entity_id": "fan.schlafzimmer",
"state_type": "str",
"state_location": "payload",
"override_payload": "msg",
"entity_location": "data",
"override_data": "msg",
"blockInputOverrides": false,
"x": 540,
"y": 760,
"wires": [
[
"5dffb82a.127148"
]
]
},
{
"id": "d12ee5bd.6501d8",
"type": "api-call-service",
"z": "f28a8271.df143",
"name": "Set Speed to 3",
"server": "2fba4297.e4145e",
"version": "1",
"service_domain": "fan",
"service": "set_speed",
"entityId": "fan.schlafzimmer",
"data": "{\"speed\":\"3\"}",
"dataType": "json",
"mergecontext": "",
"output_location": "",
"output_location_type": "none",
"mustacheAltTags": false,
"x": 880,
"y": 1060,
"wires": [
[
"2cf9017d.edb6ee",
"2f57fda5.d17702"
]
]
},
{
"id": "2cf9017d.edb6ee",
"type": "delay",
"z": "f28a8271.df143",
"name": "2s",
"pauseType": "delay",
"timeout": "2",
"timeoutUnits": "seconds",
"rate": "1",
"nbRateUnits": "1",
"rateUnits": "second",
"randomFirst": "1",
"randomLast": "5",
"randomUnits": "seconds",
"drop": false,
"x": 1030,
"y": 1060,
"wires": [
[
"77da2a83.6a98f4"
]
]
},
{
"id": "2f57fda5.d17702",
"type": "api-call-service",
"z": "f28a8271.df143",
"name": "Fan Time to 45",
"server": "2fba4297.e4145e",
"version": "1",
"service_domain": "input_number",
"service": "set_value",
"entityId": "input_number.bedroom_fantime",
"data": "{\"value\":\"45\"}",
"dataType": "json",
"mergecontext": "",
"output_location": "",
"output_location_type": "none",
"mustacheAltTags": false,
"x": 880,
"y": 1180,
"wires": [
[]
]
},
{
"id": "f397f3e0.7e85d",
"type": "server-state-changed",
"z": "f28a8271.df143",
"name": "Fantime On?",
"server": "2fba4297.e4145e",
"version": 1,
"entityidfilter": "input_number.bedroom_fantime",
"entityidfiltertype": "exact",
"outputinitially": true,
"state_type": "str",
"haltifstate": "0",
"halt_if_type": "num",
"halt_if_compare": "lte",
"outputs": 2,
"output_only_on_state_change": false,
"x": 330,
"y": 1360,
"wires": [
[],
[
"9e15b410.66c768"
]
]
},
{
"id": "6a7eb16e.13243",
"type": "api-call-service",
"z": "f28a8271.df143",
"name": "Fan Time",
"server": "2fba4297.e4145e",
"version": "1",
"service_domain": "input_number",
"service": "set_value",
"entityId": "input_number.bedroom_fantime",
"data": "",
"dataType": "json",
"mergecontext": "",
"output_location": "",
"output_location_type": "none",
"mustacheAltTags": false,
"x": 860,
"y": 1320,
"wires": [
[]
]
},
{
"id": "145ddf1c.554511",
"type": "function",
"z": "f28a8271.df143",
"name": "Fantime - 1",
"func": "newmsg = {}\n\nnewmsg.payload = { data: { \"value\":(msg.payload - 1)} }\n\nreturn newmsg;\n",
"outputs": 1,
"noerr": 0,
"x": 670,
"y": 1320,
"wires": [
[
"6a7eb16e.13243"
]
]
},
{
"id": "2fba4297.e4145e",
"type": "server",
"z": "",
"name": "Home Assistant",
"legacy": false,
"addon": true,
"rejectUnauthorizedCerts": true,
"ha_boolean": "y|yes|true|on|home|open",
"connectionDelay": true
}
]