Skip to content

Actions

Varitras edited this page Oct 22, 2026 · 2 revisions

Actions

Action Fields
wattpilot.set_next_trip device_id, trigger_time
wattpilot.set_goe_cloud device_id, cloud_api
wattpilot.disconnect_charger device_id
wattpilot.reconnect_charger device_id
  • wattpilot.set_next_trip: Sets the departure time for Next Trip charging mode. trigger_time is a time of day, for example "06:30:00".
  • wattpilot.set_goe_cloud: Turns the charger's go-e cloud HTTP API on (true) or off (false).
  • wattpilot.disconnect_charger: Closes the connection; entities stay unavailable until wattpilot.reconnect_charger, a reload of the entry or a restart of Home Assistant.
  • wattpilot.reconnect_charger: Re-establishes the connection.

All fields are required. device_id is the charger's device in Home Assistant. A device that is not a loaded Wattpilot charger fails with Device … is not a loaded Wattpilot charger. The four keep the names and fields of the earlier integration's services, so existing automations keep working.

The departure time can also be set with the Next trip departure time entity.

Example

PV surplus charging while the sun is up, and tomorrow's departure set every evening, with the entity IDs of a new installation. The list goes into automations.yaml:

- id: wattpilot_surplus_on
  alias: Wattpilot solar surplus on at sunrise
  triggers:
    - trigger: sun
      event: sunrise
  actions:
    - action: switch.turn_on
      target:
        entity_id: switch.wattpilot_pv_surplus_charging

- id: wattpilot_surplus_off
  alias: Wattpilot solar surplus off at sunset
  triggers:
    - trigger: sun
      event: sunset
  actions:
    - action: switch.turn_off
      target:
        entity_id: switch.wattpilot_pv_surplus_charging

- id: wattpilot_next_trip
  alias: Wattpilot next trip at 07:30
  triggers:
    - trigger: time
      at: "21:00:00"
  actions:
    - action: wattpilot.set_next_trip
      data:
        device_id: "{{ device_id('sensor.wattpilot_car_state') }}"
        trigger_time: "07:30:00"

Clone this wiki locally