Tesla disable charging mode

Hello,
I just changed my contract for electricity.
Now, before a coold period I will receive a mail (24h and one hour before).
During 24 hours, the kw/h is at a very very high price.

I would like to disable the charger or bette, to disable the charger after a limit ot charge to save electricity during the cold period.

I will have a max of 100 cold periode by year.
Now, I am able to disable the heater watter, and will lock to change the setting point to the smart thermostat.
It will be grat if it will possible to contol the charging mode !

Best regards

Thierry

You can do this. I turn charging on and off at certain times when I’m generating solar. It could probably be done in a cleaner way, but I also turn off charging when I get home and plug it in if it’s not during the right hours. Here’s what those automations look like:

- id: turn_off_car_charging
  alias: Turn off car charging
  description: Turn off car charging in the evening
  trigger:
  - at: '16:30:00'
    platform: time
  condition:
  - condition: state
    entity_id: switch.tesla_charger_switch
    state: 'on'
  action:
  - entity_id: switch.tesla_charger_switch
    service: switch.turn_off
- id: turn_on_car_charging
  alias: Turn on car charging
  description: Turn on car charging in the morning
  trigger:
  - at: 09:00:00
    platform: time
  condition:
  - condition: state
    entity_id: binary_sensor.tesla_charger_sensor
    state: 'on'
  action:
  - entity_id: switch.tesla_charger_switch
    service: switch.turn_on
- id: tesla_plugged_in
  alias: Tesla plugged in
  description: When the tesla is plugged in at night, turn off charging
  trigger:
  - entity_id: binary_sensor.tesla_charger_sensor
    from: 'off'
    platform: state
    to: 'on'
  condition:
  - after: '16:28'
    condition: time
  action:
  - delay: 00:01:00
  - entity_id: switch.tesla_charger_switch
    service: switch.turn_off

many thanks !
Regards

About the charger switch…
I have a Tesla model 3.
The name of the switch is switch.tesla_model_3_charger_switch
I never touch this switch in the past and It was all the time at the off state.
I did many reboot of the h.a host and many update on the tesla.
The off state of the charger switch never disable the charge of the battery.

If I try to manually switch the charger_switch to on, after few second it will go back to off.

But, the values displayed on h.a about the car is correct.
I also observe some strange behaviour for the sentry switch, and fiew other.

I reduce the pooling time from 660 to 60, but nothing better…

I something is going in the wrong way.

Thanks for your help.

I see the exact same behavior with my model 3 in regards to the charger switch. My understanding is this switch should turn on when the vehicle is charging and off when it’s not, but it never goes on for me. Does this work for anyone with a model 3?

I just found this bugfix on github which I think may be related to the charger_switch issue you’re describing. Let’s hope at least.

Hello,
I just install the version 117 and it seams to work as expected.

Many thanks !

Regards

Yes, I seeing the same. Good timing on the fix. :slight_smile: