Advertisement
Hoekeren75

Er bilen sat til opladning?

Aug 18th, 2023
1,123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.00 KB | None | 0 0
  1. alias: TTS - ER BILEN TIL OPLADNING
  2. description: ""
  3. trigger:
  4.   - platform: state
  5.     entity_id:
  6.      - binary_sensor.oneplus_cs_is_charging
  7.     to: "on"
  8. condition: []
  9. action:
  10.   - choose:
  11.       - conditions:
  12.           - condition: state
  13.             entity_id: sensor.tronity_q4_e_tron_plugged
  14.             state: "True"
  15.         sequence:
  16.           - service: notify.mobile_app_oneplus_cs
  17.             data:
  18.               message: TTS
  19.               data:
  20.                 tts_text: Bilen er sat til opladning. Sov godt.
  21.       - conditions:
  22.           - condition: state
  23.             entity_id: sensor.tronity_q4_e_tron_plugged
  24.             state: "False"
  25.         sequence:
  26.           - service: notify.mobile_app_oneplus_cs
  27.             data:
  28.               message: TTS
  29.               data:
  30.                 tts_text: >-
  31.                   Bilen er ikke sat til opladning. Der er {{
  32.                   states('sensor.tronity_q4_e_tron_level') }} procent tilbage på
  33.                   batteriet.
  34. mode: single
  35.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement