Commit Graph
12 Commits
Author SHA1 Message Date
Daniel Moindrot b079939ccb Add invert option for covers with reversed open/close logic
- Add invert: true option in airsend.yaml for covers where
  open/close logic is reversed (e.g. shade sails, projector screens)
- UP/DOWN commands are swapped when invert is enabled
- Position value is mirrored (100 - position) for covers with position
- is_closed state logic is inverted accordingly
- inverted: true shown in entity attributes when active
2026-06-12 08:20:30 +02:00
Daniel Moindrot 9047b75ce6 Improve error handling, availability logic and state restore
- Add TransferResult enum (SUCCESS, SENT, SERVER_ERROR, NETWORK_ERROR)
  to distinguish network errors from server errors
- Only mark entities as unavailable on NETWORK_ERROR (addon unreachable)
- HTTP 401, 405, 500 no longer trigger unavailable state, logged instead
- Add RestoreEntity to cover, switch and light to restore last known
  state after HA restart
2026-06-12 08:09:24 +02:00
Ingrid JARDILLIER 8db90ed88c Fix cover restore to avoid staying stuck unavailable after restart 2026-06-11 21:52:35 +02:00
Devmel Apps d31e77d1cf state persistence & device type fix 2026-04-01 10:35:15 +02:00
38decibel 7009d6ee89 feat: complete migration to config flow and bugfixes (@38decibel)
* feat: migrate to config flow with device registry and brand icons

- Migrate all platforms to async_setup_entry (config flow)
- Each device now appears as a real HA device in the device registry
- Add device_info to all entities (cover, switch, button, sensor, binary_sensor)
- Add config_flow.py with airsend.yaml + !secret resolution
- Add strings.json for UI labels
- Fix unique_id bug (was splitting each character of the name)
- Split binary_sensor.py from sensor.py
- Bump version to 4.0

* Add icon for local brand

* Revise installation steps for AirSend integration

* Correction du crash websocket

raise Exception remplacé par return False

* Update README with AirSend configuration steps

Added instructions for configuring AirSend in Home Assistant.

* Update README with clearer instructions for YAML

Clarified instructions for editing the airsend.yaml file.

* Add files via upload

* Add English translation for AirSend configuration

* Add fr translations

* Update screenshot following latest version

* Fixe unavailable and new type light

Corrections de bugs
500 avec wait: true non fatal

Nouveau type
light.py — lumière dimmable (type 4100)
2026-03-31 18:02:14 +02:00
spartDev 8512073e92 feat: Add state persistence for cover entities
Implements RestoreEntity to maintain cover position and state after Home Assistant restarts.

Changes:
- Add RestoreEntity mixin to AirSendCover class
- Implement async_added_to_hass() to restore previous state
- Position restoration for type 4099 covers (with position support)
- Open/closed state restoration for all cover types
- Maintains backward compatibility with 50% default for new covers

Fixes issue where covers would reset to 50% position after every restart.
2025-08-31 20:00:08 +02:00
Devmel Apps 65899064d4 RF listening and AirSend sensors 2023-08-08 17:58:43 +02:00
Devmel Apps 055cf05b48 async states 2023-08-04 16:41:19 +02:00
Devmel Apps bb072fd573 AirSend duo 2022-11-16 12:59:19 +01:00
jujupointcom 138ffba2e1 Closes #2
Add Airsend 1-button mapping to HA ButtonEntity instead of SwitchEntity
2022-08-16 18:04:36 +02:00
Devmel Apps 40e2dfac42 Local LAN connection 2022-02-19 22:26:13 +01:00
Devmel Apps 14a283f6ee first commit 2021-05-17 14:23:10 +02:00