Diorcet Yann and Jonathan Swoboda
bd63f63b36
[esp32] Fix some compiler warnings & bugs ( #15610 )
...
Co-authored-by: Jonathan Swoboda <154711427+swoboda1337@users.noreply.github.com >
2026-04-15 10:58:29 +12:00
Jonathan Swoboda
e428cb5092
[multiple] Fix misc cosmetic bugs (batch 2) ( #15502 )
2026-04-06 21:33:22 -04:00
Jonathan Swoboda
95e2b0a8b0
[multiple] Add missing device_class to sensor schemas ( #15479 )
2026-04-06 17:02:20 -04:00
Jonathan Swoboda
951ad91cb2
[atm90e32] Fix phase angle precision loss and remove unused member ( #15238 )
2026-03-27 08:39:30 -10:00
Jonathan Swoboda and Claude Opus 4.6
9654140c00
[tm1638][rp2040_pio_led_strip][atm90e32] Fix bounds checks and off-by-one ( #14559 )
...
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com >
2026-03-06 09:00:46 -10:00
J. Nick Koston
5779e3e6e4
[atm90e32] Fix dump_summary deprecation warning and remove stored cs_summary_ ( #13465 )
2026-01-22 12:54:01 -10:00
J. Nick Koston
01cdc4ed58
[core] Add fnv1_hash_extend() string overloads, use in atm90e32 ( #13326 )
2026-01-17 15:52:19 -10:00
davidmonro
a8b8507ffc
Atm90e32/26 device class fixes ( #10629 )
2025-09-08 08:06:10 +12:00
Ben Winslow
7e23d865e6
[atm90e32] Only read 1 register per SPI transaction per datasheet. ( #10258 )
2025-08-19 15:45:30 +12:00
7ffdaa1f06
[atm90e32] energy meter calibration log output enhancements & software SPI fix ( #10143 )
...
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com >
2025-08-12 20:26:53 +12:00
J. Nick Koston
b7ce8c116b
[core] Centralize component setup logging to reduce flash usage ( #9885 )
2025-07-25 19:27:03 +00:00
Jimmy Hedman and J. Nick Koston
68d66c873e
Upgrade to use C++20 ( #9135 )
...
Co-authored-by: J. Nick Koston <nick@koston.org >
2025-06-27 17:31:50 +00:00
Keith Burzinski
6675e99862
Remove unnecessary ellipsis ( #8964 )
2025-06-03 21:46:10 +01:00
Keith Burzinski
44f1ff10e6
Introduce "communication failed" log macro ( #8939 )
2025-05-29 01:59:38 -05:00
Keith Burzinski
b6fa4f641d
Streamline setup() logging (a, b) ( #8924 )
2025-05-28 22:53:51 +12:00
John and Jesse Hills
e94e71ded8
ATM90E32 Semi-automatic calibration & Status fields ( #8529 )
...
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com >
2025-05-09 12:50:59 +12:00
Jesse Hills
dc9c001056
[const] Move `CONF_LINE_FREQUENCY` to const.py ( #7351 )
2024-08-26 13:07:18 +12:00
ccf57488c5
Correct offset calibration ( #7228 )
...
Co-authored-by: descipher <mike.laspina@gelidus.ca >
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com >
2024-08-14 16:43:35 +12:00
Mike La Spina and descipher
cd89c38a07
Refactor ATM90E32 to reduce blocking time and improve accuracy. ( #5670 )
...
Co-authored-by: descipher <120155735+GelidusResearch@users.noreply.github.com >
2024-03-12 07:23:13 +13:00
DAVe3283 and Jesse Hills
e0cee472c3
Fix compile with latest esp-idf on esp32c6 ( #5677 )
...
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com >
2023-11-05 23:13:01 +00:00
Kevin P. Fleming
0c84224ca2
Move CONF_PHASE_A/B/C constants to const.py. ( #5304 )
2023-09-09 18:19:54 -05:00
Jesse Hills
f81c556b63
Update components "if x in config" ( #5181 )
2023-08-02 16:25:26 +12:00
Jesse Hills
3c0414c420
Add Entity categories for Home Assistant ( #2636 )
2021-11-08 07:24:52 +13:00
davidmonro and David Monro
a1b28cb36e
atm90e32: make the total_increasing class sensors actually be increasing totals. ( #2459 )
...
Co-authored-by: David Monro <david.monro@anu.edu.au >
2021-10-09 17:44:16 +02:00
Jesse Hills
ff6bed54c6
Remove last_reset_type and convert all those sensors to TOTAL_INCREASING ( #2233 )
2021-09-06 08:30:47 +12:00
Otto Winter and Jesse Hills
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
a3dcac62f9
Fix a bunch of typos ( #2058 )
...
Co-authored-by: Stefan Agner <stefan@agner.ch >
Co-authored-by: Otto Winter <otto@otto-winter.com >
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com >
2021-07-26 14:48:57 +02:00
Jesse Hills
3b3297d269
Adding last_reset_type to sensors that should support it. ( #2039 )
2021-07-21 09:20:20 +12:00
Stefan Agner
501f88ca86
Avoid non-const globals and enable clang-tidy check ( #1892 )
2021-06-11 08:19:44 +12:00
Franck Nijhof and Jesse Hills
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
polyfaces and Jesse Hills
bb759d52c8
Add support for SDMXXX energy meters ( #1260 )
...
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com >
2021-05-31 16:05:49 +12:00
Otto Winter
2376a2c941
Convert components to async-def syntax ( #1821 )
2021-05-24 10:58:29 +02:00
elyorkhakimov and Elyor Khakimov
cc6d1e85cc
Addition of forward and reverse active energy counters to ATM90E32 sensor component ( #1271 )
...
Co-authored-by: Elyor Khakimov <elyorkhakimov@forwardnetworks.com >
2021-04-29 07:15:50 +12: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
marecabo and Guillermo Ruffino
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
igg and Ilya Goldberg
821c1a8bbd
making SPI CS optional ( #988 )
...
* making SPI CS optional
* CS pin should be declared as optional or required in CONFIG_SCHEMA
* changed SPI_DEVICE_SCHEMA to a function, like i2c
* added spi_device_schema() to pcd8544, lint fixes
* updated max31856 with new spi_device_schema()
* cleanup imports
Co-authored-by: Ilya Goldberg <iggie@mac.com >
2020-06-10 17:03:11 -03:00
John
4cb30a22ac
Corrections to default register values of ATM90E32 component ( #982 )
...
* Corrections to default register values of ATM90E32 component
2020-03-13 10:27:19 -07:00
John
6a0268b852
fix chip_temperature for atm90e32 component ( #865 )
...
* Added more data to atm90e32 component
* ignore
* correction
* Delete 6chan_energy_meter.yaml
* PR request changes
* repository test branch
* Update setup.py
* Update const.py
* delete test yaml
* fix chip_temperature_sensor
This was throwing an error if chip_temperature was used. It needed to be changed from temp to temperature.
* default
* Update test1.yaml
2019-11-20 17:47:34 +01:00
Mark
092bca0d63
Atm90e32 pf fix ( #841 )
...
* correct set_pf_sensor to set_power_factor_senor
* remove junk files added in error
* correct sensors.yaml reference to set_reactive_power
* Fixes
2019-11-13 08:49:59 +01:00
Otto Winter
4f1a28d460
Adjust some units ( #852 )
...
* Adjust some units
Fixes https://github.com/esphome/issues/issues/843
* Lint
2019-11-12 19:04:39 +01:00
John and Otto Winter
5a67e72389
Added more power data to the atm90e32 component ( #799 )
...
* Added more data to atm90e32 component
* ignore
* correction
* Delete 6chan_energy_meter.yaml
* Update sensor.py
fixed indents
* Update atm90e32.h
* Update esphome/components/atm90e32/sensor.py
Co-Authored-By: Otto Winter <otto@otto-winter.com >
* PR request changes
* repository test branch
* Update setup.py
* Update const.py
* backslash
* comma!
* delete test yaml
* corrected chip temp
* change to signed int for get_pf_ functions
* Update atm90e32.h
formatting
* adjusted function & variable names
* Update atm90e32.h
formatting
* Update sensor.py
Import CONF_POWER_FACTOR from const.py
* travis formatting
* Update esphome/components/atm90e32/sensor.py
Co-Authored-By: Otto Winter <otto@otto-winter.com >
* Update esphome/components/atm90e32/atm90e32.h
Co-Authored-By: Otto Winter <otto@otto-winter.com >
2019-10-27 12:05:13 +01:00
db968bc6b0
Atmel M90E32AS Energy Metering IC. Found in CircuitSetup 2chan and 6chan energy meterss ( #629 )
...
* Atmel M90E32AS Energy Metering IC. Found in CircuitSetup 2can and 6chan energy meters
* fix style bugs
* Update esphome/components/atm90e32/atm90e32.cpp
Co-Authored-By: Otto Winter <otto@otto-winter.com >
* Properly put atm90e32_reg in namespace
* Use phase grouped config like ina3221
* Log why the component is marked failed, did not read back our register value
* 32bit register reads are 2s compliment
* Fix atm90e32 option name in test
* clang-format changes from travis-ci
* use new protected method names
* Whitespace changes to please Travis
* Update esphome/components/atm90e32/atm90e32.cpp
Co-Authored-By: Otto Winter <otto@otto-winter.com >
* Fix up type change for val_h/val_l
* Remove conditions around values with defaults
* Rename constants to match their value
* Remove 2's complement check
Co-authored-by: Andrew Thompson <andrew@whosonlocation.com >
Co-authored-by: Otto Winter <otto@otto-winter.com >
2019-06-16 12:00:15 +02:00