78#ifdef USE_BINARY_SENSOR
79 SUB_BINARY_SENSOR(moving_target)
80 SUB_BINARY_SENSOR(still_target)
81 SUB_BINARY_SENSOR(target)
84 SUB_SENSOR_WITH_DEDUP(moving_target_count, uint8_t)
85 SUB_SENSOR_WITH_DEDUP(still_target_count, uint8_t)
86 SUB_SENSOR_WITH_DEDUP(target_count, uint8_t)
90 SUB_TEXT_SENSOR(version)
93 SUB_NUMBER(presence_timeout)
100 SUB_SWITCH(bluetooth)
101 SUB_SWITCH(multi_target)
104 SUB_BUTTON(factory_reset)
109 void setup()
override;
110 void dump_config()
override;
111 void loop()
override;
112 void set_presence_timeout();
113 void read_all_info();
114 void query_zone_info();
115 void restart_and_read_all_info();
116 void set_bluetooth(
bool enable);
117 void set_multi_target(
bool enable);
118 void set_baud_rate(
const std::string &
state);
119 void set_zone_type(
const std::string &
state);
120 void publish_zone_type();
121 void factory_reset();
122#ifdef USE_TEXT_SENSOR
126 void set_zone_coordinate(uint8_t zone);
135 void set_move_resolution_sensor(uint8_t target,
sensor::Sensor *s);
136 void set_zone_target_count_sensor(uint8_t zone,
sensor::Sensor *s);
137 void set_zone_still_target_count_sensor(uint8_t zone,
sensor::Sensor *s);
138 void set_zone_moving_target_count_sensor(uint8_t zone,
sensor::Sensor *s);
140 void reset_radar_zone();
141 void set_radar_zone(int32_t zone_type, int32_t zone1_x1, int32_t zone1_y1, int32_t zone1_x2, int32_t zone1_y2,
142 int32_t zone2_x1, int32_t zone2_y1, int32_t zone2_x2, int32_t zone2_y2, int32_t zone3_x1,
143 int32_t zone3_y1, int32_t zone3_x2, int32_t zone3_y2);
146 void send_command_(uint8_t command_str,
const uint8_t *command_value, uint8_t command_value_len);
191#ifdef USE_TEXT_SENSOR