File tree 3 files changed +54
-54
lines changed
3 files changed +54
-54
lines changed Original file line number Diff line number Diff line change 10
10
#include " ha/esp_zigbee_ha_standard.h"
11
11
12
12
// clang-format off
13
- #define ZIGBEE_DEFAULT_CARBON_DIOXIDE_SENSOR_CONFIG () \
14
- { \
15
- .basic_cfg = \
16
- { \
17
- .zcl_version = ESP_ZB_ZCL_BASIC_ZCL_VERSION_DEFAULT_VALUE, \
18
- .power_source = ESP_ZB_ZCL_BASIC_POWER_SOURCE_DEFAULT_VALUE, \
19
- }, \
20
- .identify_cfg = \
21
- { \
22
- .identify_time = ESP_ZB_ZCL_IDENTIFY_IDENTIFY_TIME_DEFAULT_VALUE, \
23
- }, \
24
- .carbon_dioxide_meas_cfg = \
25
- { \
26
- .measured_value = 0.0 , \
27
- .min_measured_value = 0.0 , \
28
- .max_measured_value = 1.0 , \
29
- }, \
30
- }
13
+ #define ZIGBEE_DEFAULT_CARBON_DIOXIDE_SENSOR_CONFIG () \
14
+ { \
15
+ .basic_cfg = \
16
+ { \
17
+ .zcl_version = ESP_ZB_ZCL_BASIC_ZCL_VERSION_DEFAULT_VALUE, \
18
+ .power_source = ESP_ZB_ZCL_BASIC_POWER_SOURCE_DEFAULT_VALUE, \
19
+ }, \
20
+ .identify_cfg = \
21
+ { \
22
+ .identify_time = ESP_ZB_ZCL_IDENTIFY_IDENTIFY_TIME_DEFAULT_VALUE, \
23
+ }, \
24
+ .carbon_dioxide_meas_cfg = \
25
+ { \
26
+ .measured_value = 0.0 , \
27
+ .min_measured_value = 0.0 , \
28
+ .max_measured_value = 1.0 , \
29
+ }, \
30
+ }
31
31
// clang-format on
32
32
33
33
typedef struct zigbee_carbon_dioxide_sensor_cfg_s {
Original file line number Diff line number Diff line change 10
10
#include " ha/esp_zigbee_ha_standard.h"
11
11
12
12
// clang-format off
13
- #define ZIGBEE_DEFAULT_FLOW_SENSOR_CONFIG () \
14
- { \
15
- .basic_cfg = \
16
- { \
17
- .zcl_version = ESP_ZB_ZCL_BASIC_ZCL_VERSION_DEFAULT_VALUE, \
18
- .power_source = ESP_ZB_ZCL_BASIC_POWER_SOURCE_DEFAULT_VALUE, \
19
- }, \
20
- .identify_cfg = \
21
- { \
22
- .identify_time = ESP_ZB_ZCL_IDENTIFY_IDENTIFY_TIME_DEFAULT_VALUE, \
23
- }, \
24
- .flow_meas_cfg = \
25
- { \
26
- .measured_value = 0 , \
27
- .min_value = 0 , \
28
- .max_value = 0x7FFF , \
29
- }, \
30
- }
13
+ #define ZIGBEE_DEFAULT_FLOW_SENSOR_CONFIG () \
14
+ { \
15
+ .basic_cfg = \
16
+ { \
17
+ .zcl_version = ESP_ZB_ZCL_BASIC_ZCL_VERSION_DEFAULT_VALUE, \
18
+ .power_source = ESP_ZB_ZCL_BASIC_POWER_SOURCE_DEFAULT_VALUE, \
19
+ }, \
20
+ .identify_cfg = \
21
+ { \
22
+ .identify_time = ESP_ZB_ZCL_IDENTIFY_IDENTIFY_TIME_DEFAULT_VALUE, \
23
+ }, \
24
+ .flow_meas_cfg = \
25
+ { \
26
+ .measured_value = 0 , \
27
+ .min_value = 0 , \
28
+ .max_value = 0x7FFF , \
29
+ }, \
30
+ }
31
31
// clang-format on
32
32
33
33
typedef struct zigbee_flow_sensor_cfg_s {
Original file line number Diff line number Diff line change 10
10
#include " ha/esp_zigbee_ha_standard.h"
11
11
12
12
// clang-format off
13
- #define ZIGBEE_DEFAULT_OCCUPANCY_SENSOR_CONFIG () \
14
- { \
15
- .basic_cfg = \
16
- { \
17
- .zcl_version = ESP_ZB_ZCL_BASIC_ZCL_VERSION_DEFAULT_VALUE, \
18
- .power_source = ESP_ZB_ZCL_BASIC_POWER_SOURCE_DEFAULT_VALUE, \
19
- }, \
20
- .identify_cfg = \
21
- { \
22
- .identify_time = ESP_ZB_ZCL_IDENTIFY_IDENTIFY_TIME_DEFAULT_VALUE, \
23
- }, \
24
- .occupancy_meas_cfg = \
25
- { \
26
- .occupancy = ESP_ZB_ZCL_OCCUPANCY_SENSING_OCCUPANCY_UNOCCUPIED, \
27
- .sensor_type = ESP_ZB_ZCL_OCCUPANCY_SENSING_OCCUPANCY_SENSOR_TYPE_PIR, \
28
- .sensor_type_bitmap = (1 << ESP_ZB_ZCL_OCCUPANCY_SENSING_OCCUPANCY_SENSOR_TYPE_PIR), \
29
- }, \
30
- }
13
+ #define ZIGBEE_DEFAULT_OCCUPANCY_SENSOR_CONFIG () \
14
+ { \
15
+ .basic_cfg = \
16
+ { \
17
+ .zcl_version = ESP_ZB_ZCL_BASIC_ZCL_VERSION_DEFAULT_VALUE, \
18
+ .power_source = ESP_ZB_ZCL_BASIC_POWER_SOURCE_DEFAULT_VALUE, \
19
+ }, \
20
+ .identify_cfg = \
21
+ { \
22
+ .identify_time = ESP_ZB_ZCL_IDENTIFY_IDENTIFY_TIME_DEFAULT_VALUE, \
23
+ }, \
24
+ .occupancy_meas_cfg = \
25
+ { \
26
+ .occupancy = ESP_ZB_ZCL_OCCUPANCY_SENSING_OCCUPANCY_UNOCCUPIED, \
27
+ .sensor_type = ESP_ZB_ZCL_OCCUPANCY_SENSING_OCCUPANCY_SENSOR_TYPE_PIR, \
28
+ .sensor_type_bitmap = (1 << ESP_ZB_ZCL_OCCUPANCY_SENSING_OCCUPANCY_SENSOR_TYPE_PIR), \
29
+ }, \
30
+ }
31
31
// clang-format on
32
32
33
33
typedef struct zigbee_occupancy_sensor_cfg_s {
You can’t perform that action at this time.
0 commit comments