arno1801
62fed4c1eb
Improved compensation sgp30 ( #5208 )
2023-08-07 11:59:17 +12:00
J. Nick Koston
314c1c8b5c
Migrate VOC sensors that use ppb to use volatile_organic_compounds_parts device class ( #4982 )
2023-06-22 11:45:41 +12:00
Martin
d620b6dd5e
Refactor Sensirion Sensors ( #3374 )
...
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
2022-04-13 10:19:48 +12:00
JasperPlant
4c22a98b0b
Add entity_category_diagnostics to SGP30 baseline sensors ( #3272 )
2022-03-08 15:21:13 +13:00
Oxan van Leeuwen
80d03a631e
Force braces around multi-line statements ( #3094 )
...
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
2022-01-25 08:56:36 +13:00
Oxan van Leeuwen
607601b3a4
Enable a bunch of clang-tidy checks ( #2149 )
2021-12-02 09:03:51 +13:00
Dmitriy Lopatko
7e482901d9
add missing include in sgp30 ( #2517 )
2021-10-14 21:00:53 +13:00
Otto Winter
ac0d921413
ESP-IDF support and generic target platforms ( #2303 )
...
* Socket refactor and SSL
* esp-idf temp
* Fixes
* Echo component and noise
* Add noise API transport support
* Updates
* ESP-IDF
* Complete
* Fixes
* Fixes
* Versions update
* New i2c APIs
* Complete i2c refactor
* SPI migration
* Revert ESP Preferences migration, too complex for now
* OTA support
* Remove echo again
* Remove ssl again
* GPIOFlags updates
* Rename esphal and ICACHE_RAM_ATTR
* Make ESP32 arduino compilable again
* Fix GPIO flags
* Complete pin registry refactor and fixes
* Fixes to make test1 compile
* Remove sdkconfig file
* Ignore sdkconfig file
* Fixes in reviewing
* Make test2 compile
* Make test4 compile
* Make test5 compile
* Run clang-format
* Fix lint errors
* Use esp-idf APIs instead of btStart
* Another round of fixes
* Start implementing ESP8266
* Make test3 compile
* Guard esp8266 code
* Lint
* Reformat
* Fixes
* Fixes v2
* more fixes
* ESP-IDF tidy target
* Convert ARDUINO_ARCH_ESPxx
* Update WiFiSignalSensor
* Update time ifdefs
* OTA needs millis from hal
* RestartSwitch needs delay from hal
* ESP-IDF Uart
* Fix OTA blank password
* Allow setting sdkconfig
* Fix idf partitions and allow setting sdkconfig from yaml
* Re-add read/write compat APIs and fix esp8266 uart
* Fix esp8266 store log strings in flash
* Fix ESP32 arduino preferences not initialized
* Update ifdefs
* Change how sdkconfig change is detected
* Add checks to ci-custom and fix them
* Run clang-format
* Add esp-idf clang-tidy target and fix errors
* Fixes from clang-tidy idf round 2
* Fixes from compiling tests with esp-idf
* Run clang-format
* Switch test5.yaml to esp-idf
* Implement ESP8266 Preferences
* Lint
* Re-do PIO package version selection a bit
* Fix arduinoespressif32 package version
* Fix unit tests
* Lint
* Lint fixes
* Fix readv/writev not defined
* Fix graphing component
* Re-add all old options from core/config.py
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
2021-09-20 11:47:51 +02:00
Otto Winter
a4867a00ea
Activate owning-memory clang-tidy check ( #1891 )
...
* Activate owning-memory clang-tidy check
* Lint
* Lint
* Fix issue with new NfcTag constructor
* Update pointers for number and select
* Add back the NOLINT to display buffer
* Fix merge
* DSMR fixes
* Nextion fixes
* Fix pipsolar
* Fix lwip socket
* Format
* Change socket fix
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
2021-09-13 11:31:02 +02:00
Oxan van Leeuwen
d9cb64b893
Add device classes new in HA 2021.9 ( #2248 )
2021-09-07 10:12:26 +12:00
Oxan van Leeuwen
bf5f846fc6
Refactor clang-tidy script to use actual compiler flags and includes ( #2133 )
...
Co-authored-by: Otto winter <otto@otto-winter.com>
2021-08-09 22:43:18 +02:00
Otto Winter
5c65f9f9ad
Convert sensor_schema to use kwargs ( #2094 )
...
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
2021-08-01 12:21:32 +02:00
Huub Eikens
7dd16df846
Sgp30 sensor improvements ( #1510 )
...
Co-authored-by: Umberto73 <huub@eikens.com>
Co-authored-by: Guillermo Ruffino <glm.net@gmail.com>
2021-07-13 09:21:54 +12:00
Stefan Agner
501f88ca86
Avoid non-const globals and enable clang-tidy check ( #1892 )
2021-06-11 08:19:44 +12:00
Otto Winter
360effcb72
Activate some clang-tidy checks ( #1884 )
2021-06-10 13:04:40 +02:00
Franck Nijhof
11fb54c74e
Add support for Sensor state class ( #1835 )
...
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
2021-06-03 13:49:56 +12:00
Otto Winter
2376a2c941
Convert components to async-def syntax ( #1821 )
2021-05-24 10:58:29 +02:00
Guillermo Ruffino
69879920eb
add-black ( #1593 )
...
* Add black
Update pre commit
Update pre commit
add empty line
* Format with black
2021-03-07 16:03:16 -03:00
Moritz Glöckl
8e93735861
Add support for the SM300D2 7-in-1 sensor module ( #1524 )
...
* Added support for SM300D2 sensor module
* Fixed lint errors due to added tvoc config
* add device class
Co-authored-by: Guillermo Ruffino <glm.net@gmail.com>
2021-03-02 21:54:52 -03:00
marecabo
520c4331e3
Add default device classes to sensor components ( #1533 )
...
* Add device_class arg to homeassistant sensor_schema call
* Add device_class arg to mqtt_subscribe sensor_schema call
* Add device_class arg to dht sensor_schema call
* Add device_class arg to dht12 sensor_schema call
* Add device_class arg to am2320 sensor_schema call
* Add device_class arg to atc_mithermometer sensor_schema call
* Add device_class arg to atm90e32 sensor_schema call
* Add device_class arg to bh1750 sensor_schema call
* Add device_class arg to ble_rssi sensor_schema call
* Add device_class arg to bme280 sensor_schema call
* Add device_class arg to bme680 sensor_schema call
* Add device_class arg to bmp085 sensor_schema call
* Add device_class arg to bmp280 sensor_schema call
* Add device_class arg to binary_sensor_map sensor_schema call
* Add device_class arg to apds9960 sensor_schema call
* Add device_class arg to as3935 sensor_schema call
* Add device_class arg to ccs811 sensor_schema call
* Add device_class arg to cse7766 sensor_schema call
* Add device_class arg to ct_clamp sensor_schema call
* Add device_class arg to dallas sensor_schema call
* Add device_class arg to duty_cycle sensor_schema call
* Add device_class arg to esp32_hall sensor_schema call
* Add device_class arg to hdc1080 sensor_schema call
* Add device_class arg to hlw8012 sensor_schema call
* Add device_class arg to hm3301 sensor_schema call
* Add device_class arg to hmc5883l sensor_schema call
* Add device_class arg to htu21d sensor_schema call
* Add device_class arg to hx711 sensor_schema call
* Add device_class arg to ina219 sensor_schema call
* Add device_class arg to ina226 sensor_schema call
* Add device_class arg to ina3221 sensor_schema call
* Add device_class arg to ibsth1 sensor_schema call
* Add device_class arg to max31855 sensor_schema call
* Add device_class arg to max31856 sensor_schema call
* Add device_class arg to max31865 sensor_schema call
* Add device_class arg to mhz19 sensor_schema call
* Add device_class arg to max6675 sensor_schema call
* Add device_class arg to mpu6050 sensor_schema call
* Add device_class arg to ms5611 sensor_schema call
* Add device_class arg to mcp9808 sensor_schema call
* Add device_class arg to ntc sensor_schema call
* Add device_class arg to pid sensor_schema call
* Add device_class arg to pmsx003 sensor_schema call
* Add device_class arg to pulse_counter sensor_schema call
* Add device_class arg to pulse_width sensor_schema call
* Add device_class arg to pzem004t sensor_schema call
* Add device_class arg to pzemac sensor_schema call
* Add device_class arg to pzemdc sensor_schema call
* Add device_class arg to qmc5883l sensor_schema call
* Add device_class arg to resistance sensor_schema call
* Add device_class arg to rotary_encoder sensor_schema call
* Add device_class arg to ruuvitag sensor_schema call
* Add device_class arg to scd30 sensor_schema call
* Add device_class arg to sds011 sensor_schema call
* Add device_class arg to senseair sensor_schema call
* Add device_class arg to sgp30 sensor_schema call
* Add device_class arg to sht3xd sensor_schema call
* Add device_class arg to shtcx sensor_schema call
* Add device_class arg to sps30 sensor_schema call
* Add device_class arg to sts3x sensor_schema call
* Add device_class arg to sun sensor_schema call
* Add device_class arg to tcs34725 sensor_schema call
* Add device_class arg to teleinfo sensor_schema call
* Add device_class arg to template sensor_schema call
* Add device_class arg to tmp102 sensor_schema call
* Add device_class arg to tmp117 sensor_schema call
* Add device_class arg to tsl2561 sensor_schema call
* Add device_class arg to tx20 sensor_schema call
* Add device_class arg to ultrasonic sensor_schema call
* Add device_class arg to uptime sensor_schema call
* Add device_class arg to vl53l0x sensor_schema call
* Add device_class arg to wifi_signal sensor_schema call
* Add device_class arg to xiaomi_cgd1 sensor_schema call
* Add device_class arg to xiaomi_cgg1 sensor_schema call
* Add device_class arg to xiaomi_gcls002 sensor_schema call
* Add device_class arg to xiaomi_hhccjcy01 sensor_schema call
* Add device_class arg to xiaomi_hhccpot002 sensor_schema call
* Add device_class arg to xiaomi_jqjcy01ym sensor_schema call
* Add device_class arg to xiaomi_lywsd02 sensor_schema call
* Add device_class arg to xiaomi_lywsd03mmc sensor_schema call
* Add device_class arg to xiaomi_lywsdcgq sensor_schema call
* Add device_class arg to xiaomi_mhoc401 sensor_schema call
* Add device_class arg to xiaomi_mjyd02yla sensor_schema call
* Add device_class arg to xiaomi_wx08zm sensor_schema call
* Add device_class arg to zyaura sensor_schema call
* Add device_class arg to ads1115 sensor_schema call
* Add device_class arg to adc sensor_schema call
* Add device_class arg to ade7953 sensor_schema call
* Add device_class arg to aht10 sensor_schema call
* Make args of sensor_schema required
* lint
Co-authored-by: Guillermo Ruffino <glm.net@gmail.com>
2021-02-27 19:28:06 -03:00
Guillermo Ruffino
a6f6b8da7f
renamed icon molecule co2 ( #1217 )
...
* renamed icon molecule co2
* sort of course
2020-07-28 15:17:24 -03:00
korellas
d000440927
sgp30 baseline write bug ( #1157 ) ( #1078 )
2020-06-15 00:41:17 -03:00
Panuruj Khambanonda (PK)
170d52e0db
Fix SGP30 incorrect baseline reading/writing ( #936 )
...
* Split the SGP30 baseline into 2 values
- According to the SGP30 datasheet, each eCO2 and TVOC baseline is a 2-byte value (MSB first)
- The current implementation ignores the MSB of each of the value
- Update the schema to allow 2 different baseline values (optional, but both need to be specified for the baseline to apply)
* Make both eCO2 and TVOC required if the optional baseline is defined
* Make dump_config() looks better
2020-01-12 16:42:18 +01:00
Otto Winter
d63cd8b4cd
Add additional custom lint checks ( #790 )
2019-10-23 14:43:27 +02:00
Nad
286ca07cc8
Add support for SGP30 eCO2 and TVOC sensors ( #679 )
...
* Add support for SGP30 eCO2 and TVOC sensors
* Added test for SGP30
* Lint issues fixed
* Lint fixes
* Fixed light lengths
* Cleanup
* Add support for Sensirion SCD30 CO2 sensors
* Fixed few lint issues
* Lint fixes
* Fixed line ending for lint
* Cleanup
* Refactored float conversion
* Refactor unnecessary return
* Refactoring and cleanup
* Updated uptime_sensor_ referencing and simplified checking on availability of copensation
* Temperature and Humidity source moved to a separate compensation block; Dependency for Uptime sensor removed.
* Both humidity_source and temperature_source are now mandatory if the compensation block is defined;
* Clean up
* Cleanup
* Cleanup in search of perfection
* Use correct comment style
Co-authored-by: Otto Winter <otto@otto-winter.com>
2019-10-19 21:21:07 +02:00