Advertisement
Arkadiusz1986r

Skuter automatyzacja

Mar 5th, 2025
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 4.05 KB | None | 0 0
  1. alias: Skuter nowe
  2. description: ""
  3. triggers:
  4.   - trigger: numeric_state
  5.     entity_id:
  6.      - sensor.jk_bms_temperature_sensor_1
  7.       - sensor.jk_bms_temperature_sensor_5
  8.     below: 2
  9.     id: Temperatura poniżej 2°C
  10.     alias: Temperatura w pomieszczeniu technicznym jest poniżej 2°C
  11.   - alias: Koniec ładowania
  12.     trigger: state
  13.     entity_id:
  14.      - binary_sensor.jk_bms_charging
  15.     to: "off"
  16.     id: Koniec ładowania
  17.   - trigger: numeric_state
  18.     entity_id:
  19.      - sensor.bilansowanie_godzinowe
  20.     below: 0.1
  21.     above: -0.2
  22.     id: Bilansowanie godzinowe <-0.2
  23.   - trigger: numeric_state
  24.     entity_id:
  25.      - sensor.jk_bms_total_voltage
  26.     below: 67
  27.     alias: Napięcie poniżej 67V
  28.     id: Napięcie poniżej 67V
  29.   - alias: Napięcie poniżej 64,1V
  30.     trigger: numeric_state
  31.     entity_id:
  32.      - sensor.jk_bms_total_voltage
  33.     below: 64.1
  34.     id: Napięcie poniżej 64,1V
  35.   - alias: Napięcie poniżej 66,9V
  36.     trigger: numeric_state
  37.     entity_id:
  38.      - sensor.jk_bms_total_voltage
  39.     below: 66.9
  40.     id: Napięcie poniżej 66,9V
  41. conditions: []
  42. actions:
  43.   - choose:
  44.       - conditions:
  45.           - condition: and
  46.             conditions:
  47.               - condition: trigger
  48.                 id:
  49.                  - Temperatura poniżej 2°C
  50.                   - Koniec ładowania
  51.               - condition: device
  52.                 type: is_on
  53.                 device_id: 9ad4b03286fd8b5872eb62d6b605db52
  54.                 entity_id: 0e879bacede44cf5477953a45e64e2e3
  55.                 domain: switch
  56.         sequence:
  57.           - type: turn_off
  58.             device_id: 9ad4b03286fd8b5872eb62d6b605db52
  59.             entity_id: 0e879bacede44cf5477953a45e64e2e3
  60.             domain: switch
  61.           - action: notify.mobile_app_sm_a536b
  62.             metadata: {}
  63.             data: {}
  64.         alias: Wyłącz ładowarkę
  65.       - conditions:
  66.           - condition: and
  67.             conditions:
  68.               - condition: trigger
  69.                 id:
  70.                  - Bilansowanie godzinowe <-0.2
  71.               - condition: template
  72.                 value_template: >-
  73.                   {{ state_attr('switch.gniazdko_skuter', 'context').user_id is
  74.                   none }}
  75.         sequence:
  76.           - type: turn_off
  77.             device_id: 9ad4b03286fd8b5872eb62d6b605db52
  78.             entity_id: 0e879bacede44cf5477953a45e64e2e3
  79.             domain: switch
  80.           - action: notify.mobile_app_sm_a536b
  81.             metadata: {}
  82.             data: {}
  83.       - conditions:
  84.           - condition: and
  85.             conditions:
  86.               - condition: trigger
  87.                 id:
  88.                  - Napięcie poniżej 67V
  89.                   - Napięcie poniżej 66,9V
  90.               - condition: state
  91.                 entity_id: binary_sensor.jk_bms_charging
  92.                 state: "off"
  93.               - condition: state
  94.                 entity_id: select.zuzycie_pradu_w_taryfie_g12w_energy_daily
  95.                 state: Poza szczytem
  96.                 enabled: false
  97.               - condition: numeric_state
  98.                 entity_id: sensor.bilansowanie_godzinowe
  99.                 above: 0.2
  100.               - condition: numeric_state
  101.                 entity_id: sensor.jk_bms_temperature_sensor_1
  102.                 above: 1
  103.               - condition: numeric_state
  104.                 entity_id: sensor.jk_bms_temperature_sensor_5
  105.                 above: 1
  106.               - condition: numeric_state
  107.                 entity_id: sensor.jk_bms_power_tube_temperature
  108.                 below: 60
  109.               - condition: device
  110.                 type: is_off
  111.                 device_id: 9ad4b03286fd8b5872eb62d6b605db52
  112.                 entity_id: 0e879bacede44cf5477953a45e64e2e3
  113.                 domain: switch
  114.         sequence:
  115.           - type: turn_on
  116.             device_id: 9ad4b03286fd8b5872eb62d6b605db52
  117.             entity_id: 0e879bacede44cf5477953a45e64e2e3
  118.             domain: switch
  119.           - action: notify.mobile_app_sm_a536b
  120.             metadata: {}
  121.             data: {}
  122.         alias: Włącz ładowanie
  123. mode: single
  124.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement