68 lines
4.7 KiB
JSON
68 lines
4.7 KiB
JSON
[
|
|
{
|
|
"id": "Ventilation bypass and power control",
|
|
"automation": "- alias: Ventilation bypass and power control\n description: In summer, the bypass is activated and power increased for free cooling\n or deactived to preserve the cool air in house.\n mode: single\n triggers:\n - entity_id:\n - sensor.bypass_status\n from: null\n trigger: state\n - entity_id:\n - sensor.ntc1_temperature\n for:\n hours: 0\n minutes: 5\n seconds: 0\n above: 28\n trigger: numeric_state\n - entity_id:\n - sensor.ntc1_temperature\n for:\n hours: 0\n minutes: 5\n seconds: 0\n below: 28\n trigger: numeric_state\n - entity_id:\n - sensor.ntc1_temperature\n for:\n hours: 0\n minutes: 5\n seconds: 0\n above: 21\n trigger: numeric_state\n - entity_id:\n - sensor.ntc1_temperature\n for:\n hours: 0\n minutes: 5\n seconds: 0\n below: 21\n trigger: numeric_state\n conditions: []\n actions:\n - if:\n - condition: numeric_state\n entity_id: sensor.bypass_status\n above: 2\n below: 4\n - condition: numeric_state\n entity_id: sensor.bypass_mode\n below: 1\n - condition: numeric_state\n entity_id: sensor.ntc1_temperature\n below: 21\n - condition: numeric_state\n entity_id: sensor.ntc2_temperature\n above: 20\n then:\n - metadata: {}\n data:\n hub: brink_flair\n slave: 20\n value: 1\n address: 8000\n action: modbus.write_register\n - metadata: {}\n data:\n hub: brink_flair\n slave: 20\n address: 8001\n value: 2\n action: modbus.write_register\n else:\n - if:\n - condition: numeric_state\n entity_id: sensor.ntc1_temperature\n above: 28\n then:\n - metadata: {}\n data:\n hub: brink_flair\n slave: 20\n value: 1\n address: 8000\n action: modbus.write_register\n - metadata: {}\n data:\n hub: brink_flair\n slave: 20\n address: 8001\n value: 0\n action: modbus.write_register\n else:\n - metadata: {}\n data:\n hub: brink_flair\n slave: 20\n address: 8000\n value: 0\n action: modbus.write_register",
|
|
"config": [
|
|
{
|
|
"name": "bypass status sensor",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.bypass_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "ntc1 temperature sensor",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.ntc1_temperature",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bypass mode sensor",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.bypass_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "ntc2 temperature sensor",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.ntc2_temperature",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "brink flair ventilation system",
|
|
"room": null,
|
|
"type": "climate",
|
|
"id": {
|
|
"entity_id": null,
|
|
"device_id": "brink_flair"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "Ventilation time and date steering",
|
|
"automation": "- alias: Ventilation time and date steering\n description: Synchronize the time and date of the Brink Flair ventilation system\n with the Home Assistant system time.\n mode: single\n triggers:\n - at: 03:00:00\n trigger: time\n conditions: []\n actions:\n - metadata: {}\n data:\n hub: brink_flair\n address: 6904\n slave: 20\n value: '{{now().year | int(base=16) }}'\n action: modbus.write_register\n - metadata: {}\n data:\n hub: brink_flair\n address: 6903\n slave: 20\n value: '{% set month = now().month | int(base=16) %} {% set day = now().day\n | int(base=16) %} {% set msb = month %} {% set lsb = day * (2 ** 8) %}\n {{ msb + lsb }}\n\n '\n action: modbus.write_register\n - metadata: {}\n data:\n hub: brink_flair\n address: 6905\n slave: 20\n value: '{% set hours = now().hour | int(base=16) %} {% set minutes = now().minute\n | int(base=16) %} {% set msb = hours %} {% set lsb = minutes * (2 ** 8) %}\n {{ msb + lsb }}\n\n '\n action: modbus.write_register",
|
|
"config": [
|
|
{
|
|
"name": "brink flair ventilation system",
|
|
"room": null,
|
|
"type": "climate",
|
|
"id": {
|
|
"entity_id": null,
|
|
"device_id": "brink_flair"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
] |