Ehm… for me it also “works”, but the question goes a little deeper… I have 4 services available as far as I can see in developer tools:
And when I use sound horn in conjuction with my chassis number is sounds the horn.
But how do I get them in to a “tile” in lovelace?
And besides that, I get errors… (despite it works):
2020-02-11 08:52:20 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved Traceback (most recent call last): File “/usr/src/homeassistant/homeassistant/helpers/entity_platform.py”, line 424, in _async_add_entity await entity.async_update_ha_state() File “/usr/src/homeassistant/homeassistant/helpers/entity.py”, line 284, in async_update_ha_state self._async_write_ha_state() File “/usr/src/homeassistant/homeassistant/helpers/entity.py”, line 328, in _async_write_ha_state attr.update(self.device_state_attributes or {}) File “/usr/src/homeassistant/homeassistant/components/bmw_connected_drive/lock.py”, line 64, in device_state_attributes “door_lock_state”: vehicle_state.door_lock_state.value, AttributeError: ‘NoneType’ object has no attribute ‘value’ 2020-02-11 08:57:19 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved Traceback (most recent call last): File “/usr/src/homeassistant/homeassistant/helpers/entity.py”, line 284, in async_update_ha_state self._async_write_ha_state() File “/usr/src/homeassistant/homeassistant/helpers/entity.py”, line 328, in _async_write_ha_state attr.update(self.device_state_attributes or {}) File “/usr/src/homeassistant/homeassistant/components/bmw_connected_drive/lock.py”, line 64, in device_state_attributes “door_lock_state”: vehicle_state.door_lock_state.value, AttributeError: ‘NoneType’ object has no attribute ‘value’ 2020-02-11 09:02:19 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved Traceback (most recent call last): File “/usr/src/homeassistant/homeassistant/helpers/entity.py”, line 284, in async_update_ha_state self._async_write_ha_state() File “/usr/src/homeassistant/homeassistant/helpers/entity.py”, line 328, in _async_write_ha_state attr.update(self.device_state_attributes or {}) File “/usr/src/homeassistant/homeassistant/components/bmw_connected_drive/lock.py”, line 64, in device_state_attributes “door_lock_state”: vehicle_state.door_lock_state.value, AttributeError: ‘NoneType’ object has no attribute ‘value’ 2020-02-11 09:07:19 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved Traceback (most recent call last): File “/usr/src/homeassistant/homeassistant/helpers/entity.py”, line 284, in async_update_ha_state self._async_write_ha_state() File “/usr/src/homeassistant/homeassistant/helpers/entity.py”, line 328, in _async_write_ha_state attr.update(self.device_state_attributes or {}) File “/usr/src/homeassistant/homeassistant/components/bmw_connected_drive/lock.py”, line 64, in device_state_attributes “door_lock_state”: vehicle_state.door_lock_state.value, AttributeError: ‘NoneType’ object has no attribute ‘value’
EDIT:
I created 1 tile now… an entity button and that horns the car…
Pfew steap learning curve.
entity: lock.520d_lock
hold_action:
action: none
icon: 'mdi:car-connected'
icon_height: 50px
name: BMW horn
show_icon: true
show_name: true
tap_action:
action: call-service
service: bmw_connected_drive.sound_horn
service_data:
vin: WBAxxxxx12345
type: entity-button