Update screek-humen-sensor-2a.yaml

Thanks to JurnD for pointing out that we miscalculated a byte count on the distance resolution of p3.
This commit is contained in:
Screek Worshop 2023-07-29 10:44:15 +08:00 committed by GitHub
parent 82ad16d842
commit 3b1445fccb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -329,7 +329,7 @@ uart:
}else{ }else{
p3_speed = 0 - p3_speed; p3_speed = 0 - p3_speed;
} }
int16_t p3_distance_resolution = (uint16_t((bytes[19] << 8) | bytes[18] )); int16_t p3_distance_resolution = (uint16_t((bytes[27] << 8) | bytes[26] ));
id(target1_x).publish_state(p1_x); id(target1_x).publish_state(p1_x);
id(target1_y).publish_state(p1_y); id(target1_y).publish_state(p1_y);
@ -353,4 +353,4 @@ button:
- platform: factory_reset - platform: factory_reset
disabled_by_default: True disabled_by_default: True
name: Factory Reset name: Factory Reset
id: factory_reset_all id: factory_reset_all