Hi @ReneNulschDE , I haven’t update the integration yet, are the states for these sensors still 1 2 3 4 etc? Because the translation for custom cards are built according to these state.
Hi, yes - no changes…
Hi @ReneNulschDE, ChargingBreakClockTimerConfigureEntry stopped working. I now get this error:
Protocol message ChargingBreakClockTimerConfigureEntry has no “startTimeMinute” field.
Hi @willembuys - fixed in the master branch on github. Sorry - my mistake, tried to fix a typo… - will be part of the next bugfix release next week…
Hei
damn it - are you in contact with them somehow?? w.r.t the authentication - it is a key for us at the moment!
Hi Markus (@Sweti3), I spend the last days to dive deeper and after some learnings I have a high-level solution for this. I have it working for win-x64-desktop and linux-x64-ubuntu-desktop and will prepare the drop whenever we need it. (macOS is on my list…)
BR
Rene
Does that mean that the authentication will be an external programme?
Could be that we have to generate the intial access- and refresh_token pair outside of HA. We do not know… but there is a feature flag that suggest this…
BR
Rene
btw… my high-level-solution is working on macOS too. but lets wait until the feature flag is switching to true
I’m not a programmer, much less python (or docker), but is it possible to run as a Add-On on HA?
How should I answer this… I assume the answer is no, as we could need a browser window to enter the username and password (with ReCaptcha-protection) and the user has to do it… but let us wait and discuss whenever we see it…
Slider for Maximum Charge
This stumped me for a bit, so if that’s an old hat for some people, please excuse me.
First, I searched for making a slider that uses the slider as both an indicator, and a command (like controlling a motorized blind in HA - eg. IKEA Fyrtur).
Couldn’t find anything useful for a time (most were hints to fuzz around with automations to read and set - sounded combersome to me). Until I stumbled over the fact that I’m not looking for a slider, I want to have a number
(who would have thought).
So after the preamble is out of the way, here is the yaml code:
template:
number:
- name: "Maximum Charge"
unique_id: aa52703f-1f94-4a49-a867-d59fee70508f
state: "{{ states('sensor.XXX_max_state_of_charge')|int(0) }}"
icon: >
mdi:battery-{{ states('sensor.XXX_max_state_of_charge')|int(0) }}
unit_of_measurement: "%"
min: 50
max: 100
step: 10
set_value:
action: mbapi2020.battery_max_soc_configure
data:
max_soc: "{{ value | int(0) }}"
vin: "{{ state_attr('sensor.XXX_car', 'vin') }}"
charge_program: "{{ state_attr('sensor.XXX_max_state_of_charge', 'selectedChargeProgram') }}"
The syntax is documented by Home Assistant Template entry.
A quirk is that the slider’s range is the range of the max charge than can be set (from 50% to 100%), which results in a slight visual inaccuracy: Setting the max. chareg to 50% means the slider is all the way to the left. I haven’t found a way to change this yet, it’s not something that the stock HA template can offer.
NB: The code for the entities card that I used for the picture above:
- entity: number.maximum_charge
name: Maximum Charge
full_row: true
type: custom:secondaryinfo-entity-row
secondary_info: "[[ sensor.eqs_charge_programme ]]"
The secondary_info
is from the HACS plugins secondaryinfo-entity-row.
The sensor.eqs_charge_programme
is a template sensor extracting the charging programme attribute from sensor.XXX_max_state_of_charge
and naming it.
Thomas
Now I’m way out of my league:
For my PS5, I use the Add-On PS5-MQTT, which uses a combination of (internal? don’t know) website and external steps on websites to get the NPSSO token.
But as a non-programmer, feel free to ignore anything I say…
I will check it out. Thx!
On ps5 it works differently, data for sensors is sent by mqqt … Here we have websoket I think?
Hey,
Thank you for this integration.
It is possible to deactivate the services ? My use case is to be able to have the car status but without the ability to execute any service.
I want to reduce the security surface since I am using my home assistant over internet.
Hi, no but you could set a wrong or empty pin. All security relevant services have a pin. Check the options of the integration.
After the first year my free Fahrtenbuch-App from Mercedes will now become a paid app/paid service by Mercedes, so I thought it might be possible to write an automation that checks the device_tracker.eqa_device_tracker
and sensor.eqa_odometer
and log the values, depending on the result of the device_tracker.
For the tax, I only need the trips to my office, because the car is a company leasing car.
Has anyone yet created such an automation?
My approach so far is like this and I store the MQTT message data into a database. There might be better approaches
alias: EQA Fahrtenbuch
description: ""
triggers:
- device_id: e206a376938ab55ac4506442f14836b7
domain: device_tracker
entity_id: ab3863c9843fbbf73260639a52e2baa7
type: enters
trigger: device
zone: zone.arbeit
- device_id: e206a376938ab55ac4506442f14836b7
domain: device_tracker
entity_id: ab3863c9843fbbf73260639a52e2baa7
type: leaves
trigger: device
zone: zone.arbeit
- device_id: e206a376938ab55ac4506442f14836b7
domain: device_tracker
entity_id: ab3863c9843fbbf73260639a52e2baa7
type: enters
trigger: device
zone: zone.home
- device_id: e206a376938ab55ac4506442f14836b7
domain: device_tracker
entity_id: ab3863c9843fbbf73260639a52e2baa7
type: leaves
trigger: device
zone: zone.home
conditions: []
actions:
- action: mqtt.publish
metadata: {}
data:
qos: "1"
retain: false
payload: |-
{
"odometer": "{{ states("sensor.eqa_odometer") | default('nix')}}",
"zone": "{{ states("device_tracker.eqa_device_tracker") | default('nix') }}",
"time": "{{ now().isoformat() }}",
"latitude": "{{ state_attr('device_tracker.eqa_device_tracker','latitude') }}",
"longitude": "{{ state_attr('device_tracker.eqa_device_tracker','longitude') }}"
}
topic: eqa/eqa_odometer
- action: notify.mobile_app_iphone14
metadata: {}
data:
message: >-
{{ states("sensor.eqa_odometer") | default('0') }} km / {{
states('device_tracker.eqa_device_tracker') | default('kein Ort') }}
title: EQA Fahrtenbuch
mode: single
I think this an good approach as long as this is good enough for your local tax authority. (Looks like your are not living near to the “Finanzamt Leipzig I”)
other options:
Create geofencing zones in the MB-App. And record the results of the geofencing sensor with the same approach. This would give you the chance to show the download of the geofencing data out of the MB-Systems. (and in case they are not trusting the download, you can show some screenshots) - ping me in case you need more details…
I am new to HA and I already apologize for my possibly stupid question. So I managed to install HACS and the Mercedes ME component. Everything works fine and the card data is shown except the images. I was able to download the *.png from the Mercedes developer site and uploaded it to the “vehicle info card”. However, the images of my car are not displayed. Do you have any idea what went wrong?