311 lines
13 KiB
JSON
311 lines
13 KiB
JSON
[
|
|
{
|
|
"id": "'1732228580515'",
|
|
"automation": "- id: '1732228580515'\n alias: Установка температуры ночью\n description: ''\n triggers:\n - trigger: time_pattern\n hours: '23'\n conditions: []\n actions:\n - action: climate.set_temperature\n metadata: {}\n data:\n temperature: 47\n target:\n entity_id: climate.ebus_boiler\n - action: input_number.set_value\n metadata: {}\n data:\n value: 100\n target:\n entity_id: input_number.heater_modulation\n - action: climate.set_temperature\n metadata: {}\n data:\n temperature: 47\n target:\n entity_id: climate.ebus_boiler_emergency\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "ebus boiler",
|
|
"room": null,
|
|
"type": "climate",
|
|
"id": {
|
|
"entity_id": "climate.ebus_boiler",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "heater modulation",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.heater_modulation",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "ebus boiler emergency",
|
|
"room": null,
|
|
"type": "climate",
|
|
"id": {
|
|
"entity_id": "climate.ebus_boiler_emergency",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'1732229197403'",
|
|
"automation": "- id: '1732229197403'\n alias: Установка температуры днем\n description: ''\n triggers:\n - trigger: time_pattern\n hours: '7'\n conditions: []\n actions:\n - action: climate.set_temperature\n metadata: {}\n data:\n temperature: 20\n target:\n entity_id: climate.ebus_boiler\n - action: input_number.set_value\n metadata: {}\n data:\n value: 15\n target:\n entity_id: input_number.heater_modulation\n - action: climate.set_temperature\n metadata: {}\n data:\n temperature: 20\n target:\n entity_id: climate.ebus_boiler_emergency\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "ebus boiler",
|
|
"room": null,
|
|
"type": "climate",
|
|
"id": {
|
|
"entity_id": "climate.ebus_boiler",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "heater modulation",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.heater_modulation",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "ebus boiler emergency",
|
|
"room": null,
|
|
"type": "climate",
|
|
"id": {
|
|
"entity_id": "climate.ebus_boiler_emergency",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'1732913286613'",
|
|
"automation": "- id: '1732913286613'\n alias: Установка значений E-BUS адаптера при перезагрузке\n description: ''\n triggers:\n - trigger: numeric_state\n entity_id:\n - sensor.ebus_uptime\n for:\n hours: 0\n minutes: 0\n seconds: 30\n below: 600\n conditions: []\n actions:\n - action: climate.set_temperature\n metadata: {}\n data:\n temperature: '{{ states(''input_number.heater_last_temperature'') | int(default=0)\n }}'\n target:\n entity_id: climate.ebus_boiler\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "ebus boiler",
|
|
"room": null,
|
|
"type": "climate",
|
|
"id": {
|
|
"entity_id": "climate.ebus_boiler",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "ebus uptime",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.ebus_uptime",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "heater last temperature",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.heater_last_temperature",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "ebus_reboot_adapter",
|
|
"automation": "- id: ebus_reboot_adapter\n alias: ebus_reboot_adapter\n triggers:\n - trigger: state\n entity_id: input_button.ebus_reboot_adapter\n action:\n - service: modbus.write_register\n data_template:\n hub: waveshare\n slave: 14\n address: 128\n value:\n - 2",
|
|
"config": [
|
|
{
|
|
"name": "ebus reboot adapter",
|
|
"room": null,
|
|
"type": "input_button",
|
|
"id": {
|
|
"entity_id": "input_button.ebus_reboot_adapter",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "ebus_reset_boiler_error_code",
|
|
"automation": "- id: ebus_reset_boiler_error_code\n alias: ebus_reset_boiler_error_code\n triggers:\n - trigger: state\n entity_id: input_button.ebus_reset_boiler_error_code\n action:\n - service: modbus.write_register\n data_template:\n hub: waveshare\n slave: 14\n address: 128\n value:\n - 3",
|
|
"config": [
|
|
{
|
|
"name": "ebus reset boiler error code",
|
|
"room": null,
|
|
"type": "input_button",
|
|
"id": {
|
|
"entity_id": "input_button.ebus_reset_boiler_error_code",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "slider_set_heater_modulation",
|
|
"automation": "- id: slider_set_heater_modulation\n alias: slider_set_heater_modulation\n trigger:\n platform: state\n entity_id: input_number.heater_modulation\n actions:\n - action: modbus.write_register\n data_template:\n hub: waveshare\n slave: 14\n address: 56\n value: '{{[ states.input_number.heater_modulation.state | int ]}}'",
|
|
"config": [
|
|
{
|
|
"name": "heater modulation",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.heater_modulation",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "slider_get_heater_modulation",
|
|
"automation": "- id: slider_get_heater_modulation\n alias: slider_get_heater_modulation\n trigger:\n platform: time_pattern\n seconds: /50\n conditions: '{{ (now() - states.input_number.heater_modulation.last_changed).total_seconds()\n > 120 }}'\n action:\n - service: input_number.set_value\n data_template:\n entity_id: input_number.heater_modulation\n value: '{{ states.sensor.ebus_r_38.state | int }}'",
|
|
"config": [
|
|
{
|
|
"name": "heater modulation",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.heater_modulation",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "ebus r 38",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.ebus_r_38",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "slider_set_heater_lower_bound",
|
|
"automation": "- id: slider_set_heater_lower_bound\n alias: slider_set_heater_lower_bound\n trigger:\n platform: state\n entity_id: input_number.heater_lower_bound\n action:\n - service: modbus.write_register\n data_template:\n hub: waveshare\n slave: 14\n address: 51\n value: '{{[ states.input_number.heater_lower_bound.state | int ]}}'",
|
|
"config": [
|
|
{
|
|
"name": "heater lower bound",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.heater_lower_bound",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "slider_get_heater_lower_bound",
|
|
"automation": "- id: slider_get_heater_lower_bound\n alias: slider_get_heater_lower_bound\n trigger:\n platform: time_pattern\n seconds: /50\n action:\n - service: input_number.set_value\n data_template:\n entity_id: input_number.heater_lower_bound\n value: '{{ states.sensor.ebus_heater_lower_bound.state | int }}'",
|
|
"config": [
|
|
{
|
|
"name": "heater lower bound",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.heater_lower_bound",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "ebus heater lower bound",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.ebus_heater_lower_bound",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "slider_set_heater_upper_bound",
|
|
"automation": "- id: slider_set_heater_upper_bound\n alias: slider_set_heater_upper_bound\n trigger:\n platform: state\n entity_id: input_number.heater_upper_bound\n action:\n - service: modbus.write_register\n data_template:\n hub: waveshare\n slave: 14\n address: 52\n value: '{{[ states.input_number.heater_upper_bound.state | int ]}}'",
|
|
"config": [
|
|
{
|
|
"name": "heater upper bound",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.heater_upper_bound",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "slider_get_heater_upper_bound",
|
|
"automation": "- id: slider_get_heater_upper_bound\n alias: slider_get_heater_upper_bound\n trigger:\n platform: time_pattern\n seconds: /50\n action:\n - service: input_number.set_value\n data_template:\n entity_id: input_number.heater_upper_bound\n value: '{{ states.sensor.ebus_heater_upper_bound.state | int }}'",
|
|
"config": [
|
|
{
|
|
"name": "heater upper bound",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.heater_upper_bound",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "ebus heater upper bound",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.ebus_heater_upper_bound",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "ebus_get_type_external_connection",
|
|
"automation": "- id: ebus_get_type_external_connection\n alias: ebus_get_type_external_connection\n trigger:\n platform: time_pattern\n seconds: /50\n actions:\n - action: input_select.select_option\n target:\n entity_id: input_select.ebus_type_external_connection\n data:\n option: \"{% set v1 = states.sensor.ebus_r_30.state | int %} {% if v1 == 0 %}\\n\\\n \\ adapter-connected-to-boiler\\n{% elif v1 == 1 %}\\n boiler-connected-to-external-device\\n\\\n {% endif %}\"",
|
|
"config": [
|
|
{
|
|
"name": "ebus r 30",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.ebus_r_30",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "ebus type external connection",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.ebus_type_external_connection",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "ebus_set_type_external_connection",
|
|
"automation": "- id: ebus_set_type_external_connection\n alias: ebus_set_type_external_connection\n triggers:\n - trigger: state\n entity_id: input_select.ebus_type_external_connection\n actions:\n - action: modbus.write_register\n data_template:\n hub: waveshare\n slave: 14\n address: 48\n value: \"{% set v1 = states('input_select.ebus_type_external_connection') %}\\\n \\ {% if v1 == \\\"adapter-connected-to-boiler\\\" %}\\n {{[ 0 ]}}\\n{% elif v1\\\n \\ == \\\"boiler-connected-to-external-device\\\" %}\\n {{[ 1 ]}}\\n{% endif %}\"",
|
|
"config": [
|
|
{
|
|
"name": "ebus type external connection",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.ebus_type_external_connection",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'1732912965489'",
|
|
"automation": "- id: '1732912965489'\n alias: Сохранение последнего значения температуры котла\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - climate.ebus_boiler\n attribute: temperature\n actions:\n - action: input_number.set_value\n metadata: {}\n data:\n value: \"{% set t = state_attr('climate.ebus_boiler', 'temperature') %} {% if\\\n \\ t in ['unavailable', 'unknown'] or t <= 0 %}\\n {{ states('input_number.heater_last_temperature')\\\n \\ | int(default=0) }}\\n{% else %}\\n {{ t | int(default=0) }}\\n{% endif %}\\n\"\n target:\n entity_id: input_number.heater_last_temperature\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "ebus boiler",
|
|
"room": null,
|
|
"type": "climate",
|
|
"id": {
|
|
"entity_id": "climate.ebus_boiler",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "heater last temperature",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.heater_last_temperature",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
}
|
|
] |