38 Commits

Author SHA1 Message Date
Tomer
fedab2a3c7
Bump version to 2025.2.1 (#357) 2025-02-14 21:26:11 +02:00
Tomer
89eb52ee56
Skip failed entities instead of stop loading all of them (#356)
change async_setup_platform to just skip entities with HW issues instead of throwing and skipping the rest of the entities.
2025-02-14 21:22:43 +02:00
Tomer
1bbefe1f7b
Bump version to 2025.2.0 (#350) 2025-02-01 13:45:27 +02:00
Tomer
3400619946
Minor error handling and tracing improvement (#348)
* 1. Better exceptions for ports that are used by us or other components.
2. Improve tracing to understand failures better.

* Use the right exception class
2025-01-31 22:51:20 +02:00
Tomer
58c5d678ee
Bump version to 2024.12.2 (#336) 2024-12-27 23:23:48 +02:00
Tomer
aeb27b45d6
Hub refactor (#332)
* Hub refactor:
As discussed in: https://github.com/thecode/ha-rpi_gpio/discussions/325 :
1. Each entity will do its own registration.
2. State can not be changed before we register for fd changes.
3. No need to call get_line_value from events.
4. Cover was changed to use the async APIs

* Additional changes:
1. Add validationt to switch __init__ so if the line is busy it will fail early and not in async_added_to_hass
2. Remove the need to send to hub the HA entities. This makes the hub more generic.
3. Fix cover initial state to be read from the binary sensor instead of assuming the cover is closed.
2024-12-27 22:48:36 +02:00
Shay Levy
7e4eda3636
Remove wrong comment about cover (#329) 2024-12-03 09:51:25 +02:00
Tomer
82afeeaf69
Bump version to 2024.12.1 (#328) 2024-12-03 08:22:54 +02:00
Tomer
aa563dfd45
Fix regressions in cover (#327) 2024-12-03 08:14:57 +02:00
Tomer
902c9808a2
Bump version to 2024.12.0 (#323) 2024-12-02 15:14:19 +02:00
Tomer
3e4867c3ff
Fix wrong sensor value when pull_mode=UP (#322) 2024-12-02 15:00:41 +02:00
Tomer
91ab3b2a3e
Bump version to 2024.11.0 (#318) 2024-11-10 18:17:04 +02:00
Tomer
769706d0ad
Fix cover config with no ID (#317)
* Fix cover config with no ID
2024-11-10 18:01:05 +02:00
Tomer
76f8b68077
Multiple improvments (#313)
Multiple improvments:
1. Bump gpiod min version to 2.2.1 which is the latest.
2. Based on the learning from the used ports, I added detection for those cases which clear and useful errors.
3. Make it easier to load the integration twice on the same machine for testing.
2024-10-28 21:01:00 +02:00
Tomer
5cec6a6670
Bump version to 2024.10.2 (#312) 2024-10-26 20:41:30 +03:00
Tomer
3d8cb5f76c
Add version tracing on startup (#311)
* Add version tracing on startup
2024-10-26 20:37:13 +03:00
Tomer
9d8c2b061c
Bump manifest version (#310) 2024-10-26 15:33:13 +03:00
Tomer
53611ae1b1
Improve detection libgpiod issues (#309)
1. Catch unhandled exception from update_lines
2. Add some tracing which will show if the GPIO is used by other consumers. When we have more info we will be able to add specific checks.
2024-10-26 07:18:37 +03:00
Tomer
f36b427748
Minor error handing and tracing improvements (#308)
* Update the minimal HA supported version for the RP5 release

* Improve tracing when hub is not online. Also rename the update function to make it more clear.

* Minor trace improvement

* Remove duplicate update_lines from cover.

* Fix README to have the right integration name
2024-10-25 17:37:16 +03:00
Shay Levy
d94cdcbb60
Bump version to 2024.10.0 (#304) 2024-10-24 19:03:46 +03:00
Tomer
206fc3cc0f
Add @tomer-w as code owner (#302) 2024-10-24 18:42:01 +03:00
Shay Levy
745a4f09fa
Gpiod rpi5 (#300)
* Integrate the work done by @jdeneef back to this repo (#281)

* initial setup, config_flow only

* initial setup, reading config

* renamed to ha_gpiod

* added gpiod_config

* switches working

* added invert_logic for switch

* initial setup for binarysensor added

* button working in thread

* added some timeouts to avoid resource busy

* button working! inc state

* doc update

* version nr updated in manifest

* fix for wrong state, tested invert_logic for binary_sensor

* updated docs and unique_id

* simplified tables

* found nothread solution, test a bit more first

* working without thread

* removed  thread, simpeler solution

* added cover ..

* added cover to docs

* default fix relay_time and doc cleanups

* doc cleanups

* moved listener to hub, no longer blocking

* cleanups

* fixed comma in manifest file, and added version n manifest

* fix for hass.async_create_task for hass 2024.5

* Update README.md

* add rpi5 info to readme

* added gpiodevice discovery since rpi5 uses different gpiodevice from rpi3 and 4

* readme update

* readme typo, license update to mit

* fix for cover, updates from gpiod instead of calculated, readme updates

* update manifest version

* add stop_cover for cover, readme update gpiod no longer mandatory

* add github actions hacs validation

* limit hacs validation to on push

* remove brands check for github action

* updated readme, 1.0 version

* add hassfest check

* sorted manifest

* follow blueprint a bit more

* update github actions

* feat: add bias and drive mode options to switches

* updated code adding feature from askz

* add bias/drive to cover

* gpiod bias and drive added

* code cleanup more inline with gpiod, with some deprecations in the future

* highlight deprecated

* update todo

* fixed drive info in readme

* readme fix

* update readme

* retrofit

* cover update not init is_closing/opening

* readme update

* remove changelog

* update readme refer to bias for switch

* markdown cleanups, markdown render

* fix for port ranges, back to int

* rename README-DEV

* Update README.md

* alternative solution removing the loop waiting for gpio events

* cleanup of config_validations, eases backward compatibility in configs

* added changelog to readme

* changelog creation from git

* removed changelog, added generation howto to README-DEV, generate from there

* read initial status from gpio status (check bias on errors)

* typo in changelog git line

* added possible bias issue in readme

* Add persistentcy support for switches

* Make the persistent example more relevant

* removed previous persistence via gpiod

* updated sensor reading at startup

* updated readme for persistence over reboots

* fix to remove state error

* Align old configuration for sensor and switch

* Fix manifest

* Align cover configuration with old format

* Fix readme attribution

* Fix break in cover

* Manifest fix

* remove commented code

* fixed version in manifest

* Revert not needed files

* Revert LICENSE

* CR comments

* Another CR fix

* More CR comments

* Fix doc CR comments

* Update custom_components/rpi_gpio/hub.py

* Update custom_components/rpi_gpio/hub.py

* CR comments

* Fix break caused by removing manufacturer.

* Update custom_components/rpi_gpio/hub.py

* Fixed last CR comments

---------

Co-authored-by: J de Neef <6884662+jdeneef@users.noreply.github.com>
Co-authored-by: Maxime Saddok <saddok.ma@gmail.com>
Co-authored-by: gwhiteCL <whitegc5@comcast.net>
Co-authored-by: Shay Levy <levyshay1@gmail.com>

* rename update to handle_event to make it less confusion with HA naming.

* Fix cover break after my rename

* Rename update to handle_event to make it less confusion with HA naming (#287)

* rename update to handle_event to make it less confusion with HA naming.

* Fix cover break after my rename

* Merge from main (#296)

* Bump pylint from 3.3.0 to 3.3.1 (#283)

Bumps [pylint](https://github.com/pylint-dev/pylint) from 3.3.0 to 3.3.1.
- [Release notes](https://github.com/pylint-dev/pylint/releases)
- [Commits](https://github.com/pylint-dev/pylint/compare/v3.3.0...v3.3.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump pre-commit from 3.8.0 to 4.0.0 (#288)

Bumps [pre-commit](https://github.com/pre-commit/pre-commit) from 3.8.0 to 4.0.0.
- [Release notes](https://github.com/pre-commit/pre-commit/releases)
- [Changelog](https://github.com/pre-commit/pre-commit/blob/main/CHANGELOG.md)
- [Commits](https://github.com/pre-commit/pre-commit/compare/v3.8.0...v4.0.0)

---
updated-dependencies:
- dependency-name: pre-commit
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump actions/checkout from 4.2.0 to 4.2.1 (#289)

Bumps [actions/checkout](https://github.com/actions/checkout) from 4.2.0 to 4.2.1.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v4.2.0...v4.2.1)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump black from 24.8.0 to 24.10.0 (#290)

Bumps [black](https://github.com/psf/black) from 24.8.0 to 24.10.0.
- [Release notes](https://github.com/psf/black/releases)
- [Changelog](https://github.com/psf/black/blob/main/CHANGES.md)
- [Commits](https://github.com/psf/black/compare/24.8.0...24.10.0)

---
updated-dependencies:
- dependency-name: black
  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>

* Bump pre-commit from 4.0.0 to 4.0.1 (#291)

Bumps [pre-commit](https://github.com/pre-commit/pre-commit) from 4.0.0 to 4.0.1.
- [Release notes](https://github.com/pre-commit/pre-commit/releases)
- [Changelog](https://github.com/pre-commit/pre-commit/blob/main/CHANGELOG.md)
- [Commits](https://github.com/pre-commit/pre-commit/compare/v4.0.0...v4.0.1)

---
updated-dependencies:
- dependency-name: pre-commit
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump mypy from 1.11.2 to 1.12.0 (#292)

Bumps [mypy](https://github.com/python/mypy) from 1.11.2 to 1.12.0.
- [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md)
- [Commits](https://github.com/python/mypy/compare/v1.11.2...v1.12.0)

---
updated-dependencies:
- dependency-name: mypy
  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>

* Bump mypy from 1.12.0 to 1.12.1 (#295)

Bumps [mypy](https://github.com/python/mypy) from 1.12.0 to 1.12.1.
- [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md)
- [Commits](https://github.com/python/mypy/compare/v1.12.0...v1.12.1)

---
updated-dependencies:
- dependency-name: mypy
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Integrate the fix for cover (#297)

* fix for cover

* simpler cover fix, not based on cover state

* Fix minor bug in the cover code

* Refactor cover init

---------

Co-authored-by: J de Neef <6884662+jdeneef@users.noreply.github.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Tomer <57483589+tomer-w@users.noreply.github.com>
Co-authored-by: J de Neef <6884662+jdeneef@users.noreply.github.com>
Co-authored-by: Maxime Saddok <saddok.ma@gmail.com>
Co-authored-by: gwhiteCL <whitegc5@comcast.net>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-24 18:15:58 +03:00
Tomer
14516ec30a
Add the option to have persistent switches (#266)
* Add the option to have persistent switches

* update README

* Make the same changes in the info.md file.
2024-07-19 15:49:11 +03:00
Shay Levy
edc8188ba3
Sort manifest (#157) 2023-02-27 09:20:46 +02:00
Shay Levy
1aae63a41a
Bump version to 2022.7.0 (#77) 2022-06-30 13:38:19 +03:00
Shay Levy
ddc04ebdfd
Bump RPi.GPIO to 0.7.1 (#24) 2022-06-30 13:30:17 +03:00
Shay Levy
40544b351c
Bump version to 2022.6.0 (#61) 2022-05-27 02:12:51 +03:00
thecode
151cf55486 Bump version to 2022.4.0 2022-04-02 16:31:42 +03:00
Shay Levy
8ab01e7ce8
New config schema for supporting unique id (#40) 2022-04-02 14:04:54 +03:00
Shay Levy
c594fdd229
Bump version to 2022.3.0 (#31) 2022-03-04 21:36:13 +02:00
Shay Levy
a299ca4db9
Fix binary sensor exception (#27) 2022-03-01 18:46:28 +02:00
Shay Levy
9421a9ae58
Bump version to 2022.2.3 (#15) 2022-02-05 11:23:45 +02:00
Shay Levy
21c2da26cf
Remove imports from deprecated integration (#14) 2022-02-05 11:17:29 +02:00
Shay Levy
e6396efc40
Bump version to 2022.2.2 (#10) 2022-02-04 17:21:41 +02:00
Shay Levy
6b8a808460
Remove depreciation warning (#8) 2022-02-04 11:16:21 +02:00
thecode
81f3545dce Bump version to 2022.2.1 2022-02-03 12:45:49 +02:00
thecode
c5c44ccfd3 Update workflows 2022-02-03 00:26:36 +02:00
thecode
ca3408e656 Initial commit 2022-02-03 00:25:26 +02:00