url = https://github.com/mjcross/esp32_onewire.git
[submodule "aqi/esp32_onewire"]
path = aqi/esp32_onewire
- url = https://github.com/mjcross/esp32_onewire.git
+ url = ssh://git@git.hexthepla.net:2222/esp32_onewire
+ branch = main
float cur_avg = get_average_pm25(data, rxBytes);
ESP_LOGI(TAG, "average from last 10 seconds pm25: %f", cur_avg);
ESP_LOGI(TAG, "setting attrib value and sending, I guess");
- cur_pm25 = (uint16_t)cur_avg;
+ cur_pm25 = cur_avg*100;
esp_zb_zcl_set_attribute_val(HA_ESP_TEMP_ENDPOINT, PM25CLUSTER, ESP_ZB_ZCL_CLUSTER_SERVER_ROLE,
PM25MEASURED, &cur_pm25, false);
- send_report(PM25_REPORT);
+ //send_report(PM25_REPORT);
} else {
ESP_LOGI(TAG, "Nothing seen from uart");