Archived
fix: align parking_beacon template with config.yaml (parking_floor)
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
b9f8396347
commit
0fe6f00782
1 file changed
+8
-7
+8
-7
@@ -49,20 +49,21 @@ templates:
|
|||||||
sensors:
|
sensors:
|
||||||
- key: parking_time
|
- key: parking_time
|
||||||
device_class: timestamp
|
device_class: timestamp
|
||||||
|
icon: mdi:clock-time-four-outline
|
||||||
source_field: manufacturer_data
|
source_field: manufacturer_data
|
||||||
min_length: 14
|
length: 14
|
||||||
decode: { offset: 7, length: 4, type: timestamp }
|
decode: { offset: 7, length: 4, type: timestamp }
|
||||||
- key: parking_battery
|
- key: parking_floor
|
||||||
device_class: battery
|
icon: mdi:layers-outline
|
||||||
unit: "%"
|
|
||||||
state_class: measurement
|
|
||||||
source_field: manufacturer_data
|
source_field: manufacturer_data
|
||||||
min_length: 14
|
length: 14
|
||||||
|
accuracy_decimals: 0
|
||||||
decode: { offset: 11, length: 1, type: uint8, scale: -1, offset_value: 256 }
|
decode: { offset: 11, length: 1, type: uint8, scale: -1, offset_value: 256 }
|
||||||
- key: parking_location
|
- key: parking_location
|
||||||
platform: text_sensor
|
platform: text_sensor
|
||||||
|
icon: mdi:map-marker-outline
|
||||||
source_field: manufacturer_data
|
source_field: manufacturer_data
|
||||||
min_length: 14
|
length: 14
|
||||||
decode: { offset: 12, length: 2, type: string }
|
decode: { offset: 12, length: 2, type: string }
|
||||||
|
|
||||||
- id: obd_standard
|
- id: obd_standard
|
||||||
|
|||||||
Reference in new issue
Block a user