Integration : GWM - ORA

Hi All,

We have 2 EVs in the house. One is a Tesla which I already have integrated in HA and the ORA for which I’m looking for an integration. Someone did some work around it ?
Before it wouldn’t be possible to have multiple users accessing the controls but with the new app you can have up to 10 users for 1 car.

2 Likes

I’m using this:

Unfortunately it stopped working a few days ago. A docker image is also available.

@daemonenstall Are you still using this ? If so, you spinned up a seperate docker image and connected it to your MQTT server ?
I went to his documentation but not sure how to start here (ideally on docker). Any suggestions ?

Yes, I’m still using it and it’s working flawless again.
Give me some time to provide some guidance.

1 Like

The first things you should do is setting up a separate GWM account for ora2mqtt (otherwise you will be logged out when you use the app) and install portainer (I will share screenshots from my portainer setup) from this repo: GitHub - alexbelgium/hassio-addons: My homeassistant addons
Download the latest ora2mqtt release from here Releases · zivillian/ora2mqtt · GitHub and create the configuration on your desktop. You can’t do that from inside the docker image. Just run “ora2mqtt.exe configure” and follow the instructions (or follow the instructions for the Linux version). After that you are ready to test if it’s working. Just run ora2mqtt.exe and check if you can see the GWM topic in your mqtt broker.
Portainer instructions will take some time. The weather is nice and I have a lot of work to do in the garden :wink:

So I installed the windows version, and got the yml file. I executed the following command

docker run -d --restart=unless-stopped -v /home/ORA2MQTT/ora2mqtt.yml:/config/ora2mqtt.yml zivillian/ora2mqtt:latest

I can’t see anything in the logs however when looking in EQMX, i see an entry. What’s next ?

You can see the GWM topic in your broker? If yes, the victory is near.
Next step is setting up the sensors in HASS. I will share my config file in the evening.

Yes. Looked in MQTTExplorer and see all the entries. Effectively what is missing is sensors in HASS. Thanks for sharing.

Here we go. You have to change the ADJUST_THIS part with your specific ID. The sensor names are in German, but I’m sure you can handle this.
Sometimes it can happen that you get logged out (happened 3 times in my case in about 4 month). Just run ora2mqtt.exe configure again and create new tokens.

- sensor:
      # ora funky cat
    - name: "Reichweite Ora"
      unique_id: e8e94aa9-60a7-4533-834a-a5fd754d37d9
      state_topic: "GWM/ADJUST_THIS/status/items/2011501/value"
      value_template: "{{ value | round(0) }}"
      unit_of_measurement: "km"
      device_class: distance

    - name: "Ladestand Akku Ora"
      unique_id: 305ab2d0-291d-4b70-8752-ba773ec1731c
      state_topic: "GWM/ADJUST_THIS/status/items/2013021/value"
      value_template: "{{ value | round(0) }}"
      unit_of_measurement: "%"
      device_class: battery

    - name: "Reifendruck vorne links Ora"
      unique_id: fece9721-7752-47f7-a02e-aae38d0ff3ce
      state_topic: "GWM/ADJUST_THIS/status/items/2101001/value"
      value_template: "{{ value | round(2) }}"
      unit_of_measurement: "kPa"
      device_class: pressure

    - name: "Reifendruck vorne rechts Ora"
      unique_id: 96ce34e4-20da-41a6-9edd-42ef6e50ea53
      state_topic: "GWM/ADJUST_THIS/status/items/2101002/value"
      value_template: "{{ value | round(2) }}"
      unit_of_measurement: "kPa"
      device_class: pressure

    - name: "Reifendruck hinten links Ora"
      unique_id: 7d1542cf-2479-4099-bbc1-de77e6b3926c
      state_topic: "GWM/ADJUST_THIS/status/items/2101003/value"
      value_template: "{{ value | round(2) }}"
      unit_of_measurement: "kPa"
      device_class: pressure

    - name: "Reifendruck hinten rechts Ora"
      unique_id: a46a8943-ba6e-4a73-816f-1581cb8af69d
      state_topic: "GWM/ADJUST_THIS/status/items/2101004/value"
      value_template: "{{ value | round(2) }}"
      unit_of_measurement: "kPa"
      device_class: pressure

    - name: "Reifentemperatur vorne links Ora"
      unique_id: be0206d8-54ec-451a-bf60-9a75c6b389fa
      state_topic: "GWM/ADJUST_THIS/status/items/2101005/value"
      value_template: "{{ value | round(2) }}"
      unit_of_measurement: "°C"
      device_class: temperature

    - name: "Reifentemperatur vorne rechts Ora"
      unique_id: 6ee942b4-3a24-42ac-8c50-d8e30b76f080
      state_topic: "GWM/ADJUST_THIS/status/items/2101006/value"
      value_template: "{{ value | round(2) }}"
      unit_of_measurement: "°C"
      device_class: temperature

    - name: "Reifentemperatur hinten links Ora"
      unique_id: fa42344a-1a63-4910-9808-02277eeb046e
      state_topic: "GWM/ADJUST_THIS/status/items/2101007/value"
      value_template: "{{ value | round(2) }}"
      unit_of_measurement: "°C"
      device_class: temperature

    - name: "Reifentemperatur hinten rechts Ora"
      unique_id: fbf1b181-9fac-49d0-9a14-e2e50722844d
      state_topic: "GWM/ADJUST_THIS/status/items/2101008/value"
      value_template: "{{ value | round(2) }}"
      unit_of_measurement: "°C"
      device_class: temperature

    - name: "Kilometerstand Ora"
      unique_id: 621af3a5-c2a2-41b4-828c-91c7c0071a8a
      state_topic: "GWM/ADJUST_THIS/status/items/2103010/value"
      value_template: "{{ value | round(0) }}"
      unit_of_measurement: "km"
      device_class: distance

    - name: "Temperatur Innenraum Ora"
      unique_id: b4da9f0a-369e-4cd0-8301-9d6985f5b35d
      state_topic: "GWM/ADJUST_THIS/status/items/2201001/value"
      value_template: "{{ value | float / 10 | round(2) }}"
      unit_of_measurement: "°C"
      device_class: temperature

    - name: "Longitude Ora"
      unique_id: 9aa2173c-c3b4-4c0e-b7f8-4b404af089be
      state_topic: "GWM/ADJUST_THIS/status/Longitude"
      value_template: "{{ value | float }}"

    - name: "Latitude Ora"
      unique_id: 8e4018ae-a741-4d09-9a0f-ea3654414572
      state_topic: "GWM/ADJUST_THIS/status/Latitude"
      value_template: "{{ value | float }}"

    - name: "Letztes Datenupdate Ora"
      unique_id: 5a7a0314-5274-4deb-9677-b850953d259a
      state_topic: "GWM/ADJUST_THIS/status/UpdateTime"
      value_template: "{{ as_local(as_datetime(value | float / 1000 | round(0) )) }}"
      #device_class: timestamp

    - name: "Letzte Datenaufzeichnung Ora"
      unique_id: 091d858c-6de7-4ad6-afac-1c2915ce5271
      state_topic: "GWM/ADJUST_THIS/status/AcquisitionTime"
      value_template: "{{ as_local(as_datetime(value | float / 1000 | round(0) )) }}"
      #device_class: timestamp

- binary_sensor:
    - name: "Ladevorgang Ora"
      unique_id: a5c45fa3-91f9-45c4-b578-6ae59dcf610c
      state_topic: "GWM/ADJUST_THIS/status/items/2041142/value"
      payload_off: "0"
      payload_on: "1"
      value_template: "{{ value }}"
      device_class: battery_charging

    - name: "Schloss Ora"
      unique_id: 7c8b49b4-519a-4d65-8175-a4684bcf7f4b
      state_topic: "GWM/ADJUST_THIS/status/items/2208001/value"
      payload_off: "0"
      payload_on: "1"
      value_template: "{{ value }}"
      device_class: lock

    - name: "Fenster vorne links Ora"
      unique_id: 5fd52eaa-3d74-420c-9dcd-b937ab8bf300
      state_topic: "GWM/ADJUST_THIS/status/items/2210001/value"
      payload_off: "1"
      payload_on: "0"
      value_template: "{{ value }}"
      device_class: window

    - name: "Fenster vorne rechts Ora"
      unique_id: 287d55e1-b44c-4c2d-8be2-b508ada96ea7
      state_topic: "GWM/ADJUST_THIS/status/items/2210001/value"
      payload_off: "1"
      payload_on: "0"
      value_template: "{{ value }}"
      device_class: window

    - name: "Fenster hinten links Ora"
      unique_id: 788047b4-c91a-45d6-b07b-62d01749712b
      state_topic: "GWM/ADJUST_THIS/status/items/2210001/value"
      payload_off: "1"
      payload_on: "0"
      value_template: "{{ value }}"
      device_class: window

    - name: "Fenster hinten rechts Ora"
      unique_id: 9060bb00-e2df-4544-be85-bbdec31e203f
      state_topic: "GWM/ADJUST_THIS/status/items/2210001/value"
      payload_off: "1"
      payload_on: "0"
      value_template: "{{ value }}"
      device_class: window

    - name: "Klimaanlage Ora"
      unique_id: 4f6f4870-25b6-41fa-8f71-f8b5e49a21f7
      state_topic: "GWM/ADJUST_THIS/status/items/2202001/value"
      payload_off: "0"
      payload_on: "1"
      value_template: "{{ value }}"
      device_class: running

And here is an automation to track the Ora with Hass.

alias: GPS Ora
description: ""
trigger:
  - platform: state
    entity_id:
      - sensor.longitude_ora
      - sensor.latitude_ora
  - platform: time_pattern
    seconds: "30"
condition: []
action:
  - data:
      dev_id: ora
      gps:
        - "{{ states('sensor.latitude_ora') | float}}"
        - "{{ states('sensor.longitude_ora') | float }}"
      gps_accuracy: 10
    action: device_tracker.see
mode: single

What is the purpose of the automation ?

I assume you need to start as follows ?

mqtt:
  sensor:
    - name: "Ora Batteriestand"

It creates and updates a device tracker for the car. I use it with another automation to open the garage door.

Yes, that’s correct.

Thank you for the hint and help getting it into home assistant !

You’re welcome.

I’m curious: Is it still working? No problems here.

Hi,

Thanks for checking in. Yes it is working like a charm. See the following view

image

1 Like

Nice. Today I’m enjoying charging the car completely by the sun, just by excess.

Superb. Just wondering, we can’t actually control anything related to the Ora. Right ?