1
0
mirror of https://github.com/esphome/esphome.git synced 2025-06-15 04:45:43 +01:00
Commit Graph

2416 Commits

Author SHA1 Message Date
460a144ca8 t6615: tolerate sensor dropping commands ()
The Amphenol T6615 has a built-in calibration system which means that
the sensor could go away for a couple of seconds to figure itself out.
While this is happening, commands are silently dropped.

This caused the previous version of this code to lock up completely,
since there was no way for the command_ state machine to tick back to
the NONE state.

Instead of just breaking the state machine, which might be harmful on
a multi-core or multi-threaded device, add a timestamp and only break
the lock if it's been more than a second since the command was issued.

The command usually doesn't take more than a few milliseconds to
complete, so this should not affect things unduly.

While we're at it, rewrite the rx side to be more robust against
bytes going missing.

Instead of reading in the data essentially inline, read into a buffer
and process it when enough has been read to make progress.

If data stops coming when we expect it to, or the data is malformed,
have a timeout that sends a new command.

Co-authored-by: jas <jas@asspa.in>
2021-09-14 23:06:13 +12:00
23ead416d5 Suppress excessive warnings about deprecated Fan interfaces () 2021-09-14 23:06:13 +12:00
1b5f11bbee Only try compat parsing after regular parsing fails () 2021-09-14 23:06:13 +12:00
0da97289e6 Merge pull request from esphome/bump-2021.9.0b3
2021.9.0b3
2021.9.0b3
2021-09-14 07:47:20 +12:00
91f12a50cf Bump version to 2021.9.0b3 2021-09-14 07:13:00 +12:00
e92a9d1d9e Fix API socket issues ()
* Fix API socket issues

* Fix compile error against beta

* Format
2021-09-14 07:13:00 +12:00
4eb51ab4d6 Disable automatic usage of SNTP servers from DHCP () 2021-09-14 07:12:59 +12:00
f1a8d957f8 Merge pull request from esphome/bump-2021.9.0b2
2021.9.0b2
2021.9.0b2
2021-09-10 22:13:54 +12:00
9821a3442b Bump version to 2021.9.0b2 2021-09-10 21:34:38 +12:00
87842e097b sm300d2: Accept (undocumented) 0x80 checksum offset. ()
Co-authored-by: Matt Hallacy <github@poptix.net>
2021-09-10 21:34:38 +12:00
7dd40e2014 Fix a few ESP32-C3 compiler issues ()
* Fix using Serial when using ESP32-C3 standard pins

* Force type for std::min in pn532

* Fix variable size where size_t is different on exp32-c3
2021-09-10 21:34:38 +12:00
a719998220 Merge pull request from esphome/bump-2021.9.0b1
2021.9.0b1
2021.9.0b1
2021-09-09 11:40:33 +12:00
09a6fdf1c7 Bump version to 2021.9.0b1 2021-09-09 10:28:34 +12:00
d2616cbdfc PMSA003i Update state_class and async ()
* Update component (state_class and async)

* No need to specify empty device class

* Remove unused import

Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
2021-09-09 10:14:08 +12:00
faf1c8bee8 SGP40 sensor start-up fix () 2021-09-09 09:42:35 +12:00
f09aca4865 pm1006: add support for sending a measurement request () 2021-09-09 09:35:00 +12:00
cc52f37933 Revert "Dont dump legacy fields ()" ()
This reverts commit 97eba1eecc.
2021-09-09 09:29:08 +12:00
e5051eefbc API encryption () 2021-09-09 09:22:47 +12:00
9e5cd0da51 ccs811: publish firmware version; log bootloader and HW version; fix a bug () 2021-09-09 09:19:43 +12:00
4e120a291e Midea support v2 () 2021-09-09 09:10:02 +12:00
2790d72bff Convert API to use sockets ()
* Socket component

* Lint

* Lint

* Fix esp8266 missing INADDR_ANY

* API convert to sockets and frame helper

* Fix compile error

Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
2021-09-08 12:52:57 +02:00
e44f447d85 Fix socket not setting callbacks early enough () 2021-09-08 12:02:32 +02:00
4356581db0 Remove removesuffix 2021-09-08 19:51:20 +12:00
f87a701b28 Bump dashboard to 20210908.0 and fix card names for yml () 2021-09-08 17:14:12 +12:00
fa2eb46cd6 Allow .yml files to show up in the dashboard () 2021-09-08 16:11:09 +12:00
f924e80f43 Socket component () 2021-09-08 15:41:42 +12:00
6180ee8065 Template sensors always publish on update interval ()
Co-authored-by: Chris Nussbaum <chris.nussbaum@protolabs.com>
2021-09-08 15:36:49 +12:00
1be106c0b5 Fix fan speed restore issue on boot () 2021-09-08 15:30:17 +12:00
b0533db2eb Add new trigger to fan component on_speed_set () 2021-09-08 15:15:57 +12:00
dba502c756 Logger prevent recursive logging () 2021-09-08 08:57:20 +12:00
d9cb64b893 Add device classes new in HA 2021.9 () 2021-09-07 10:12:26 +12:00
2d91e6b977 template: select: fix initial_value cannot be used with lambda () 2021-09-07 08:00:08 +12:00
4a6f1f150a Fix runtime exception due to dict typing () 2021-09-06 14:48:28 +12:00
7f76f3726f LOG_UPDATE_INTERVAL: correctly report "never" () 2021-09-06 14:47:13 +12:00
e2d97b6f36 Light: include ON_OFF capability to BRIGHTNESS ColorMode () 2021-09-06 08:57:58 +12:00
2a653642f5 Fix encoding bug () 2021-09-06 08:57:37 +12:00
97eba1eecc Dont dump legacy fields () 2021-09-06 08:36:55 +12:00
ff6bed54c6 Remove last_reset_type and convert all those sensors to TOTAL_INCREASING () 2021-09-06 08:30:47 +12:00
f9b0666adf Allow using a git source for a package () 2021-09-06 08:23:06 +12:00
ca12b8aa56 Move to use zeroconf library instead of inline copy () 2021-09-06 08:22:15 +12:00
77508f7e44 Fix UARTComponent hardware vs software UART0 conflict ()
Co-authored-by: Oxan van Leeuwen <oxan@oxanvanleeuwen.nl>
2021-09-04 14:49:34 +12:00
54de0ca0da Reject template select/number/switches that don't handle user input () 2021-09-04 14:46:53 +12:00
f364788c03 Expose WHITE/CWWW/RGBCT color modes over MQTT () 2021-09-04 14:32:33 +12:00
00aaf84c37 Fix uptime's state_class (esphome/issues#2337) () 2021-09-03 16:58:30 +12:00
b01bc76dc5 mqtt_sensor: properly send state_class via MQTT () 2021-09-03 16:37:18 +12:00
910f812737 Bump pylint from 2.9.6 to 2.10.2 ()
Bumps [pylint](https://github.com/PyCQA/pylint) from 2.9.6 to 2.10.2.
- [Release notes](https://github.com/PyCQA/pylint/releases)
- [Changelog](https://github.com/PyCQA/pylint/blob/main/ChangeLog)
- [Commits](https://github.com/PyCQA/pylint/compare/v2.9.6...v2.10.2)

---
updated-dependencies:
- dependency-name: pylint
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-09-03 16:20:42 +12:00
a4d024f43d Add is_on and is_off conditions for the fan component ()
Co-authored-by: Chris Nussbaum <chris.nussbaum@protolabs.com>
2021-09-02 12:16:11 +12:00
9937ad7fa0 Cleanup flash transitions () 2021-09-02 11:56:40 +12:00
edcd88123d iBeacon support for ble_presence () 2021-09-02 11:46:15 +12:00
ea1b5e19f0 Add transitions to light flash () 2021-08-31 14:18:16 +12:00