Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more TeslaFi commands [part of #28] #35

Merged
merged 7 commits into from
Apr 14, 2024
Merged

Conversation

jhansche
Copy link
Owner

@jhansche jhansche commented Apr 13, 2024

This adds:

  • cover.charge_port_door - Unavailable when the car state is driving
  • switch.steering_wheel_heater - Unavailable when climate is off, not supported by all vehicles
  • number.set_charge_limit - Set the battery SOC limit, can be set at any time
  • number.request_charger_current: Set the requested charger current (amps), up to the available max current. Unavailable when the charger cable is unplugged.
  • switch.charging
    This switch can take the place of the binary_sensor.charging entity, where the switch can be toggled off/on in order to stop/start charging. The entity is unavailable when the charging cable is not plugged in. The way the entity appears in Home Assistant might be less desirable for some - that is why the entity is disabled by default.
    Screenshot 2024-04-13 at 1 14 20 PM
    If you want to keep the binary_sensor, but also still have the ability to stop/start charging, you can set the switch entity to hidden, and use some other means to toggle the switch, like with a Button or automation calling switch.* services.

The command(s) must be enabled in TeslaFi for these to work.

@jhansche jhansche linked an issue Apr 13, 2024 that may be closed by this pull request
@jhansche jhansche mentioned this pull request Apr 13, 2024
These were added in 2024.2, so they need to be recreated.

This adds to the fix for #30, which implemented the callbacks, but
did not add the supported feature.
Adds charger SOC setting, and charger current
NumberEntity does not support .unit_of_measurement, requires using
.native_unit_of_measurement (%).
@jhansche jhansche force-pushed the fix-28/add-commands branch from 424b0d3 to 698aa5e Compare April 13, 2024 23:04
* Add start/stop charge switch

This switch can take the place of the binary_sensor.charging entity,
where the switch can be toggled off/on in order to stop/start charging.

The command(s) must be enabled in TeslaFi for this to work, and the
way the entity appears in Home Assistant might be less desirable
for some - that is why the entity is disabled by default.

If you want to keep the binary_sensor, but also still have the
ability to stop/start charging, you can set the switch entity to
hidden, and use some other means to toggle the switch, like with
a Button or automation calling switch.* services.

* Set charging state optimistically
@jhansche jhansche marked this pull request as ready for review April 14, 2024 21:37
@jhansche jhansche merged commit 5c4f87d into main Apr 14, 2024
4 checks passed
@jhansche jhansche deleted the fix-28/add-commands branch April 14, 2024 21:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Missing commands
1 participant