Archived
Use decimal manufacturer_id to avoid YAML hex literal parsing issues
kaml (Kotlin YAML) hex literal (0x...) parsing is unreliable — convert to decimal to ensure correct type parsing by the Android app: Jaalee JHT: 0x004C → 76 (Apple Inc.) Parking beacon: 0x035D → 861 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
e6fea126b8
commit
8fbd951a78
1 file changed
+2
-2
+2
-2
@@ -25,7 +25,7 @@ devices:
|
||||
instance_mode: mac
|
||||
match:
|
||||
service_data_uuid: "F51C"
|
||||
manufacturer_id: 0x004C
|
||||
manufacturer_id: 76 # Apple Inc. (0x004C) — kaml은 hex 리터럴 불안정, decimal 사용
|
||||
manufacturer_min_length: 24
|
||||
sensors:
|
||||
- key: temperature
|
||||
@@ -56,7 +56,7 @@ devices:
|
||||
source: advertisement
|
||||
instance_mode: shared
|
||||
match:
|
||||
manufacturer_id: 0x035D
|
||||
manufacturer_id: 861 # 0x035D
|
||||
sensors:
|
||||
- key: parking_time
|
||||
device_class: timestamp
|
||||
|
||||
Reference in new issue
Block a user