Giter VIP home page Giter VIP logo

hass_airsend's People

Contributors

jouralexandre avatar jujupointcom avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

hass_airsend's Issues

One button type command is associated to a switch command

Hello,
First of all, thanks for this job !
I have mapped a command in airsend GW which is a simple "one button" command. It is stateless. Each push on the button send a command in the sequence : open - stop - close - stop. It is linked to a gate motor.
In Home Assistant, with this AirSend integration, this command, which type is "4096" in the AirSend.yaml, is associated to a switch (as 4097). I guess 4097 corresponds to real switch (with on and off states).
Would it be possible to create a new mapping in the integration to map 4096 type to a simple button object in HA ?
Thanks,
Julien

how to add lovelace cards ?

Hi,
I don't get how to add lovelace cards for airsend entities like the readme example.
I'm new on home assistant.
Thanks

Error - Addon local_airsend does not exist

Hi !

I follow all your process but I have an errror :
Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/setup.py", line 253, in _async_setup_component result = await task File "/config/custom_components/airsend/__init__.py", line 25, in async_setup addon_info: dict = await async_get_addon_info(hass, "local_airsend") File "/usr/src/homeassistant/homeassistant/components/hassio/handler.py", line 64, in async_get_addon_info return await hassio.get_addon_info(slug) File "/usr/src/homeassistant/homeassistant/components/hassio/handler.py", line 51, in _wrapper raise HassioAPIError(data["message"]) homeassistant.components.hassio.handler.HassioAPIError: Addon local_airsend does not exist

I put this configuration :
airsend: devices: Volet salon: id: 25591 type: 4098 spurl: !secret spurl channel: id: 26848 source: 2076914944

And my secret on secret.yalm :
spurl: sp://[email protected]

I have your plugin in Hacs, and I add AirSend Web service in Home Assistant Add-on.

May you help me do solve this problem ?

Thanks

Bug: Python traceback on RPi

I am trying to setup the airsend on home assistant
and during loading I've got the following traceback

Traceback (most recent call last):
  File "/home/bnv/hass/lib/python3.9/site-packages/homeassistant/loader.py", line 744, in get_platform
    cache[full_name] = self._import_platform(platform_name)
  File "/home/bnv/hass/lib/python3.9/site-packages/homeassistant/loader.py", line 761, in _import_platform
    return importlib.import_module(f"{self.pkg_path}.{platform_name}")
  File "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 790, in exec_module
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "/home/bnv/.homeassistant/custom_components/airsend/sensor.py", line 81, in <module>
    class AirSendStateSensor(BinarySensorEntity):
  File "/home/bnv/.homeassistant/custom_components/airsend/sensor.py", line 117, in AirSendStateSensor
    def device_class(self) -> BinarySensorDeviceClass | None:
TypeError: unsupported operand type(s) for |: 'EnumMeta' and 'NoneType'

Problème a la première commande d'appel de service

Quand mes volets ne sont pas utilisés pendant un certain temps la première commande exécuté ne fonctionne pas et produit une erreur. Les commandes suivantes qui sont faites dans la foulée fonctionne parfaitement sans produire d'erreur
Donc après un certain temps sans utilisation pour ouvrir ou femme un volet j'appuie une fois l'erreur ce produit et une deuxième pour que la commande soit prise en compte.
Je joins les log ha

Cette erreur provient d'une intégration personnalisée

Logger: airsend
Source: custom_components/airsend/device.py:171
Integration: AirSend (documentation)
First occurred: 30 juin 2023 à 01:01:15 (9 occurrences)
Last logged: 5 juillet 2023 à 10:28:42

Transfer error 'Volet chambre parentale' : '500'
Transfer error 'Volet Ch1 Etage' : '500'
Transfer error 'Volet Sdb Etage' : '500'

Autre erreur qui apparaît dans le log ha

Logger: homeassistant.components.websocket_api.http.connection
Source: custom_components/airsend/device.py:172
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 30 juin 2023 à 01:01:15 (7 occurrences)
Last logged: 5 juillet 2023 à 10:28:43

[547070776528] Transfer error Volet Ch1 Etage : 500
[546963666448] Transfer error Volet Ch1 Etage : 500
[547070080080] Transfer error Volet Ch1 Etage : 500
[546961604560] Transfer error Volet Sdb Etage : 500
[546728642576] Transfer error Volet Ch1 Etage : 500
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 205, in handle_call_service
await hass.services.async_call(
File "/usr/src/homeassistant/homeassistant/core.py", line 1910, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1950, in _execute_service
await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 226, in handle_service
await service.entity_service_call(
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 811, in entity_service_call
future.result() # pop exception if have
^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1034, in async_request_call
await coro
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 851, in _handle_entity_call
await result
File "/usr/src/homeassistant/homeassistant/components/cover/init.py", line 337, in async_open_cover
await self.hass.async_add_executor_job(ft.partial(self.open_cover, **kwargs))
File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/airsend/cover.py", line 83, in open_cover
if self._device.transfer(note):
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/airsend/device.py", line 172, in transfer
raise Exception("Transfer error " + self.name + " : " + str(status_code))
Exception: Transfer error Volet chambre parentale : 500

Si je pouvais avoir de l'aide pour régler ce problème je serai très reconnaissant merci

Expecting value: line 1 column 1 (char 0)

Hello,
I have Airsend custom component and Airsend Addon for local use installed on Home Assistant (latest version, 2023.3), and I've had it for more than 6 months, to control Profalux 433MHz rolling shutters and a Bft Garage 868MHz door
Regularly I have an error pop up when operating my covers with the message in title.
In the home assistant logs I find the following

Log Details (ERROR)
Logger: homeassistant.components.websocket_api.http.connection
Source: custom_components/airsend/device.py:123
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: April 4, 2023 at 11:50:51 (8 occurrences)
Last logged: April 4, 2023 at 20:55:12

[3559160440] Expecting value: line 1 column 1 (char 0)
[3406315872] Expecting value: line 1 column 1 (char 0)
[3522599208] Expecting value: line 1 column 1 (char 0)
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 199, in handle_call_service
await hass.services.async_call(
File "/usr/src/homeassistant/homeassistant/core.py", line 1808, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1845, in _execute_service
await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 213, in handle_service
await service.entity_service_call(
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 686, in entity_service_call
future.result() # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 961, in async_request_call
await coro
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 726, in _handle_entity_call
await result
File "/usr/src/homeassistant/homeassistant/components/cover/init.py", line 337, in async_open_cover
await self.hass.async_add_executor_job(ft.partial(self.open_cover, **kwargs))
File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/airsend/cover.py", line 83, in open_cover
if self._device.transfer(note):
File "/config/custom_components/airsend/device.py", line 123, in transfer
jdata = json.loads(response.text)
File "/usr/local/lib/python3.10/json/init.py", line 346, in loads
return _default_decoder.decode(s)
File "/usr/local/lib/python3.10/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/local/lib/python3.10/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

This error is frequent (more than once a day), happens randomly and I believe sometimes at least the command to the shutters/door are not done. It always stops my automations to close/open all shutters when it happens though.

Could you look into it ?
I'm available if more details are needed.

Thank you,
Alex

spurl: !secret spurl in each device

Hello
For Local Mode, what does it mean "spurl: !secret spurl in each device"?
How and where in HA to do that after to install the Local mode addon?

Airsend & HA Container

Hello , how can I install in HA Container (docker) ?
I have no supervisor for add-ons.
Do you have docker image with config info ?
It would really help me

Local connection with button

Hi,
Using the spurl option instead of api key, to go though local connection does not work for controls of type "button". Using a switch type command on the same device works fine.
Code to handle button has been copied from the switch one, so I do not understand where is the issue.
Thanks

Automatisation des matériels dans Hass

Bonjour,

J’utilise depuis peu un Airsend duo (AirSend Duo - Sans fil 433 & 868 Mhz) pour piloter mon matériel radio 433 mhz : mes volets roulants Somfy RTS et mon portail Nice Popkit avec télécommande ON2E (à code tournant).

J’aimerai maintenant faire des automatisations avec Home assistant que j’ai installé il y a quelques jours.

N.B. Je suis plutôt débutant en informatique, mais j’apprends bien.

J’ai suivi la procédure https://github.com/devmel/hass_airsend

Je peux désormais piloter mes volets roulants et mon portail depuis Home assistant puisque les commandes apparaissent dans Aperçu de Home assistant.

N.B. Les 3 boutons des télécommandes Somfy (Lever, Baisser et Stop qui fait aussi Position mémorisée) ont bien été récupérés par le Airsend, puis par Home assistant, ce qui est très satisfaisant.

En revanche, je ne peux pas faire d’automatisation avec mes volets et mon portail avec Home assistant parce que les éléments pilotés par le Airsend (volets/portail) ne sont pas présents en tant que ‹ Appareil › dans ‹ Ajouter une action › du paramétrage d’une ‹ Automatisation ›.

Dans Hass, ‹ Paramètres › / ‹ Appareil et services ›, il existe :

Dans l’onglet 'Appareils" : Airsend (Fabiquant : Local add-ons ; Modèle : Home Assistant Add-on ; Intégration : Home Assistant supervisor) qui comprend 5 capteurs : Running ; CPU percent ; Memory ; percent ; Newest version ;

Dans l’onglet ‹ Entités › : mes volets et mon portail ;

Dans l’onglet ‹ Intégrations ›, aucune référence au Airsend, ni aux volets et portail.

Lorsque j’essaie de AJOUTER UNE INTEGRATION pour le Airsend, je retrouve bien Airsend en faisant une recherche par marque, mais je ne peux pas l’ajouter. Le messages est : Cet appareil ne peut pas être ajouté à partir de l’interface utilisateur. Vous pouvez ajouter cet appareil en l’ajoutant à votre ‹ configuration.yaml ›. Reportez-vous à la documentation pour plus d’informations.

N.B. Le lien vers la documentation renvoie vers https://github.com/devmel/hass_airsend

Je suis donc bloqué ici. Home assistant ne me sert à rien s’il ne me permet pas de faire des automatisations (car je peux déjà piloter mes volets et portail depuis l’application Airsend.cloud - qui ne propose pas d’automatisation possible).

Pourriez-vous m’aider à automatiser mes volets et portail depuis Home assistant via le Airsend ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.