Commit Graph
53 Commits
Author SHA1 Message Date
f87dc917a6 Add support for SwitchBot Weather Station (#170571)
Co-authored-by: Fan Kai <[email protected]>
Co-authored-by: Claude Opus 4.5 <[email protected]>
2026-05-25 11:14:42 +02:00
Onero-testdevandGitHub eb0c1700b7 Add support for SwitchBot Lock Vision (Pro) and Lock Pro Wifi (#170470) 2026-05-19 15:36:33 +02:00
612dbf2d44 Add SwitchBot Permanent Outdoor Light support (#170463)
Co-authored-by: Fan Kai <[email protected]>
2026-05-18 23:22:56 +02:00
5b2816e56c Fix line length violations in tests/components s (#170990)
Co-authored-by: Simone Chemelli <[email protected]>
2026-05-17 17:14:26 -04:00
Retha RunolfssonandGitHub c1a9f293a7 Add fan speed percentage control to SwitchBot Air Purifier (#166953) 2026-04-01 16:08:40 +02:00
bf1327e355 Fix Meter Pro CO2 not discoverable via BT proxies (#165173)
Co-authored-by: Claude Sonnet 4.6 <[email protected]>
2026-03-25 14:38:52 +01:00
422d69f2b3 Bump PySwitchbot to 2.0.0 (#165995)
Co-authored-by: Joost Lekkerkerker <[email protected]>
2026-03-24 14:29:02 +01:00
ba62d95715 Control time display format on SwitchBot Meter Pro CO2 (#163008)
Co-authored-by: Joostlek <[email protected]>
2026-02-16 22:58:09 +01:00
dfe1990484 Add service for switchbot keypad vision (#160659)
Co-authored-by: Joostlek <[email protected]>
2026-01-29 12:23:38 +01:00
Retha RunolfssonandGitHub 8d2b925131 Add support for switchbot art frame (#159710) 2025-12-25 13:50:46 +01:00
a0323e80f5 Add support for switchbot presence sensor (#156314)
Co-authored-by: Joostlek <[email protected]>
2025-11-25 15:15:57 +01:00
Retha RunolfssonandGitHub c0e59c4508 Add support for switchbot s20 (#156368) 2025-11-11 13:55:50 +01:00
Retha RunolfssonandGitHub c18dc0a9ab Add support for Switchbot Smart thermostat radiator (#155123) 2025-11-11 13:12:39 +01:00
Retha RunolfssonandGitHub 1bef707cd1 Add support for switchbot climate panel (#155124) 2025-10-25 22:56:50 +02:00
Retha RunolfssonandGitHub 7a4d75bc44 Add garage door opener for switchbot integration (#148460) 2025-09-26 12:11:59 +02:00
Retha RunolfssonandGitHub 71cc3b7fcd Add K11+ Vacuum for switchbot integration (#152643) 2025-09-22 11:51:39 +02:00
Retha RunolfssonandGitHub aadaf87c16 Add switchbot relayswitch 2PM (#146140) 2025-09-16 15:59:13 +02:00
Retha RunolfssonandGitHub 1ef90180cc Add plug mini eu for switchbot integration (#151130) 2025-09-12 10:05:15 +02:00
Retha RunolfssonandGitHub 7d471f9624 Add rgbicww light for switchbot integration (#151129) 2025-09-10 13:52:47 -05:00
Retha RunolfssonandGitHub c05d8aab1c Add floor lamp and strip light 3 for switchbot integration (#147517) 2025-06-25 18:01:10 +02:00
Retha RunolfssonandGitHub c5f8acfe93 Add effect mode support for switchbot light (#147326)
* add support for strip light3 and floor lamp

* clear the color mode

* add led unit test

* use property for effect

* fix color mode issue

* remove new products

* fix adv data

* adjust log level

* add translation and icon
2025-06-25 14:45:07 +02:00
Retha RunolfssonandGitHub d0b2d1dc92 Add evaporative humidifier for switchbot integration (#146235)
* add support for evaporative humidifier

* add evaporative humidifier unit test

* clear the humidifier action in pyswitchbot

* fix ruff

* fix Sentence-casing issue

* add icon translation

* remove last run success

* use icon translations for water level

* remove the translation for last run success
2025-06-25 09:32:33 +02:00
Retha RunolfssonandGitHub 2d5867cab6 Add switchbot air purifier support (#144552)
* add support for air purifier

* add unit tests for air purifier

* fix aqi translation

* fix aqi translation

* add air purifier table

* fix air purifier

* remove init and add options for aqi level
2025-05-26 15:06:33 +02:00
Retha RunolfssonandGitHub 630c438834 Add lock ultra and lock lite for switchbot integration (#145373) 2025-05-21 12:37:47 +02:00
Retha RunolfssonandGitHub 08c453581c Add hub3 support for switchbot integration (#145371)
add support for hub3
2025-05-21 11:12:08 +02:00
Retha RunolfssonandGitHub 0cf503d871 Add exception translation for switchbot device initialization (#144828) 2025-05-19 14:22:10 +02:00
Retha RunolfssonandGitHub 977d2fe8b3 Add switchbot vacuum support (#144550)
* add support for vacuum

* add vacuum unit test
2025-05-10 09:34:51 +02:00
Retha RunolfssonandGitHub 9732b8c0dd Add switchbot circulator fan support (#142980)
* add support for circulator fan

* add fan unin tests

* optimize unit tests

* add fan mode translation and icon

* optimize fan unit test
2025-04-30 19:58:33 +02:00
f7e3e207b7 Add parallel updates in lock and lock unit tests for switchbot integration (#143391)
Co-authored-by: J. Nick Koston <[email protected]>
2025-04-23 19:49:09 -10:00
Retha RunolfssonandGitHub da8339066b Add light unit tests for switchbot (#140436) 2025-04-21 11:07:03 +01:00
Retha RunolfssonandGitHub 27b7fb6f91 Add humidifier unit test for switchbot (#143207) 2025-04-19 09:48:01 +02:00
Retha RunolfssonandGitHub 79b984d612 Add switchbot roller shade and hubmini matter support (#142168)
* Add roller shade and hubmini matter support

* add unit tests

* fix adv data
2025-04-07 16:25:00 +02:00
560c719b0f Add switchbot cover unit tests (#140265)
* add cover unit tests

* Add unit test for SwitchBot cover

* fix: use mock_restore_cache to mock the last state

* modify unit tests

* modify scripts as suggest

* improve readability

* adjust patch target per review comments

* adjust patch target per review comments

---------

Co-authored-by: J. Nick Koston <[email protected]>
2025-03-31 11:42:31 +02:00
HuyuweiandGitHub 1772348eef Add illuminance sensor to SwitchBot integration (#141382)
* Add illuminance sensor to SwitchBot integration

* Add WoHub2 sensor tests
2025-03-25 17:09:51 +01:00
Arkadiusz WahligandGitHub c9ab75a02d Add support for Switchbot Remote (#137443) 2025-02-05 10:38:34 -06:00
c2358d5158 Add Switchbot Water Leak Detector (BLE) (#133799)
Co-authored-by: J. Nick Koston <[email protected]>
2024-12-22 11:37:57 -10:00
861d9b3341 Add initial support for SwitchBot relay switch (#130863)
* Support relay switch

* 更新下版本

* add test case

* change to async_abort

* Upgrade PySwitchbot to 0.53.2

* change unit to volt

* upgrade pySwitchbot dependency

* bump lib, will be split into a seperate PR after testing is finished

* dry

* dry

* dry

* dry

* dry

* dry

* dry

* update tests

* fixes

* fixes

* cleanups

* fixes

* fixes

* fixes

* bump again

---------

Co-authored-by: J. Nick Koston <[email protected]>
Co-authored-by: Joost Lekkerkerker <[email protected]>
2024-12-21 00:49:30 +01:00
J. Nick KostonandGitHub a2c9aa7662 Add Meter Pro support to SwitchBot (#128991) 2024-10-24 17:49:40 +02:00
epenetandGitHub a06f098312 Fix dangerous-default-value warnings in switchbot tests (#119575) 2024-06-13 09:20:53 +02:00
J. Nick KostonandGitHub 2b2b46c774 Bump habluetooth to 3.0.1 (#116663) 2024-05-03 12:15:51 +02:00
Marc MuellerandGitHub aa16a9d707 Add empty line after module docstring (3) (#112750) 2024-03-08 20:38:34 +01:00
c3043fb0ee Bump bluetooth deps for bleak 0.20 (#89925)
Co-authored-by: K <[email protected]>
2023-03-20 12:06:15 +01:00
7aadcc1f97 Add option to retrieve SwitchBot Lock encryption key through config flow (#84830)
Co-authored-by: J. Nick Koston <[email protected]>
2022-12-29 21:48:39 -10:00
Damian SypniewskiandGitHub 599569bc53 Add support for SwitchBot Lock (#84673)
* Added support for SwitchBot Lock

* Updated PySwitchbot to 0.32.1

* Updated .coveragerc

* Removed unnecessary condition

* Using library method to verify encryption key

* Added config flow tests

* Remove link from config flow description

* Added one more test for config flow

* Updated CODEOWNERS
2022-12-27 18:16:00 -10:00
J. Nick KostonandGitHub d12cbab6c4 Bump bleak to 0.19.0 (#80349) 2022-10-15 13:57:23 -04:00
J. Nick KostonandGitHub ba74f00fb5 Add tests for switchbot sensor platform (#78611) 2022-09-18 16:49:12 -05:00
J. Nick KostonandGitHub 3938015c93 Add support for scanners that do not provide connectable devices (#77132) 2022-08-22 14:02:26 -04:00
J. Nick KostonandGitHub b1497b0857 Simplify switchbot config flow (#76272) 2022-08-10 09:02:08 -10:00
198167a2c8 Update switchbot to be local push (#75645)
* Update switchbot to be local push

* fixes

* fixes

* fixes

* fixes

* adjust

* cover is not assumed anymore

* cleanups

* adjust

* adjust

* add missing cover

* import compat

* fixes

* uses lower

* uses lower

* bleak users upper case addresses

* fixes

* bump

* keep conf_mac and deprecated options for rollback

* reuse coordinator

* adjust

* move around

* move around

* move around

* move around

* refactor fixes

* compat with DataUpdateCoordinator

* fix available

* Update homeassistant/components/bluetooth/passive_update_processor.py

Co-authored-by: Martin Hjelmare <[email protected]>

* Update homeassistant/components/bluetooth/passive_update_coordinator.py

Co-authored-by: Martin Hjelmare <[email protected]>

* Update homeassistant/components/bluetooth/update_coordinator.py

Co-authored-by: Martin Hjelmare <[email protected]>

* Split bluetooth coordinator into PassiveBluetoothDataUpdateCoordinator and PassiveBluetoothProcessorCoordinator

The PassiveBluetoothDataUpdateCoordinator is now used to replace instances
of DataUpdateCoordinator where the data is coming from bluetooth
advertisements, and the integration may also mix in active updates

The PassiveBluetoothProcessorCoordinator is used for integrations that
want to process each bluetooth advertisement with multiple processors
which can be dispatched to individual platforms or areas or the integration
as it chooes

* change connections

* reduce code churn to reduce review overhead

* reduce code churn to reduce review overhead

* Update homeassistant/components/bluetooth/passive_update_coordinator.py

Co-authored-by: Martin Hjelmare <[email protected]>

* add basic test

* add basic test

* complete coverage

* Update homeassistant/components/switchbot/coordinator.py

Co-authored-by: Martin Hjelmare <[email protected]>

* Update homeassistant/components/switchbot/coordinator.py

Co-authored-by: Martin Hjelmare <[email protected]>

* Update homeassistant/components/switchbot/__init__.py

Co-authored-by: Martin Hjelmare <[email protected]>

* Update homeassistant/components/switchbot/__init__.py

Co-authored-by: Martin Hjelmare <[email protected]>

* lint

Co-authored-by: Martin Hjelmare <[email protected]>
2022-07-24 11:38:45 -05:00
148f963510 Add Switchbot hygrometers (#75325)
* Switchbot add support for hygrometers

* Update CODEOWNERS

* Improve debug

* Remove redundant mention to temp unit

* Adopt FlowResultType

* Modify SwitchBot data within coordinator

* Increase logging for switchbot sensor

* Revert "Increase logging for switchbot sensor"

This reverts commit d8b377429c.

Co-authored-by: J. Nick Koston <[email protected]>
2022-07-22 11:03:02 -05:00