Commit Graph
5 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
Daniel Moindrot 6949219c2b Merge pull request #28 from ijardillier/fix/cover-restore-state
Fix cover restore to avoid staying stuck unavailable after restart
2026-06-12 08:02:54 +02:00
Daniel Moindrot b688219e1a Update README and add HACS support files (#25)
* Enhance README with badges and installation details

Updated README to include badges, installation steps, and device options for AirSend integration.

* Update hacs.json

include content_in_root
delete iot_class thats not a hacs.json but manifest.json property

* Remove install script

Remove install script — installation is now handled via HACS or manual copy
2026-06-04 14:01:53 +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