Archived
Change min_length to length in config.yaml
This commit is contained in:
1 parent
b71ad124e9
commit
2dfb54ee0d
1 file changed
+3
-3
+3
-3
@@ -62,19 +62,19 @@ devices:
|
|||||||
device_class: timestamp
|
device_class: timestamp
|
||||||
icon: mdi:clock-time-four-outline
|
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_floor
|
- key: parking_floor
|
||||||
icon: mdi:layers-outline
|
icon: mdi:layers-outline
|
||||||
source_field: manufacturer_data
|
source_field: manufacturer_data
|
||||||
min_length: 14
|
length: 14
|
||||||
accuracy_decimals: 0
|
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
|
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 }
|
||||||
|
|
||||||
# ──────────────────────────────────────────────────────────────
|
# ──────────────────────────────────────────────────────────────
|
||||||
|
|||||||
Reference in new issue
Block a user