yurghie

retaining charge cable state model y 2025

Jul 13th, 2025
435
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.44 KB | None | 0 0
  1. input_boolean:
  2.   wattson_charge_cable_state:
  3.     name: Wattson Charge Cable State
  4.  
  5. automation:
  6.   - alias: Wattson - Charge Cable state
  7.     trigger:
  8.       platform: state
  9.       entity_id: sensor.wattson_charging
  10.       to: ['No power', 'Disconnected']
  11.     action:
  12.       - action: "input_boolean.turn_{{ 'on' if trigger.to_state.state == 'No power' else 'off' }}"
  13.         target:
  14.           entity_id: input_boolean.wattson_charge_cable_state
  15.  
Advertisement
Add Comment
Please, Sign In to add comment