35 lines
2.0 KiB
JSON
35 lines
2.0 KiB
JSON
[
|
|
{
|
|
"id": "Network Rack Fan Control",
|
|
"automation": "- alias: Network Rack Fan Control\n description: Turns network rack fans on/off based on temperature thresholds\n triggers:\n - entity_id: sensor.esphrack_inside_temperature\n trigger: state\n conditions: []\n actions:\n - choose:\n - conditions:\n - condition: numeric_state\n entity_id: sensor.esphrack_inside_temperature\n above: 34.9\n sequence:\n - target:\n entity_id: switch.srvfan2\n action: switch.turn_on\n data: {}\n - conditions:\n - condition: numeric_state\n entity_id: sensor.esphrack_inside_temperature\n below: 35\n sequence:\n - target:\n entity_id: switch.srvfan2\n action: switch.turn_off\n data: {}\n - choose:\n - conditions:\n - condition: numeric_state\n entity_id: sensor.esphrack_inside_temperature\n above: 29.9\n sequence:\n - target:\n entity_id: switch.srvfan1\n action: switch.turn_on\n data: {}\n - conditions:\n - condition: numeric_state\n entity_id: sensor.esphrack_inside_temperature\n below: 29\n sequence:\n - target:\n entity_id: switch.srvfan1\n action: switch.turn_off\n data: {}\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "network rack inside temperature sensor",
|
|
"room": "network_rack",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.esphrack_inside_temperature",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "server fan 2",
|
|
"room": "network_rack",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.srvfan2",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "server fan 1",
|
|
"room": "network_rack",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.srvfan1",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
}
|
|
] |