Closed aichingerk closed 10 months ago
The following should work:
automation:
- alias: "NRGKick disable on connect"
id: "nrgkick_disable_on_connect"
trigger:
- platform: state
entity_id: sensor.xxx_control_pilot_status
to: "NRG_CP_B_CONNECTED"
action:
- service: input_boolean.turn_off
target:
entity_id: switch.xxxx_charging_state
Hi, can you explain your xxx between sensor and control_pilot_status and switch charging_state ? I do not find any information about this xxx in the web. i know it's a placeholder, but i can't figure out for what. and without it the automation doesn't work. here i always get an error like: Referenced entities switch.charging_state are missing or not currently available
The sensor name contains the NRGKick name. So it depends... Check the sensor name in your HA setup..
It is without xxx and
what does the warning mean in the log ?
Actually it is not possible to stop loading, when i connect the nrg kick to the car.
Logger: homeassistant.components.automation Source: helpers/entity_platform.py:612 Integration: Automation (documentation, issues) First occurred: December 18, 2023 at 6:34:41 PM (4 occurrences) Last logged: December 18, 2023 at 10:04:12 PM
Platform automation does not generate unique IDs. ID nrgkick_disable_on_connect already exists - ignoring automation.car_plug_cable_disable_loading_2
Try creating the automation from the UI. This is some very basic HA automation really...
Yes, you are right. It is a very basic HA automation. For turn_off it is a switch service and not a input_boolean and for setting a charge_current_limit also a service call is needed with number.
This example is only for other user, when the want to do this and the example for change current_limit.
alias: CAR NRGKick disable loading on connect
trigger:
- platform: state
entity_id: sensor.control_pilot_status
from: NRG_CP_A_STANDBY
to: NRG_CP_B_CONNECTED
action:
- service: number.set_value
target:
entity_id: number.charge_current_limit
data:
value: "8"
enabled: false
- service: switch.turn_off
target:
entity_id: switch.charging_state
data: {}
mode: single
Hi, can anyone share their automation when the cable is plugged into the car that the charging is disabled. Maybe also your automation for normal loading, how you have solved this. Thx