Local LAN connection

This commit is contained in:
Devmel Apps
2022-02-19 22:26:13 +01:00
parent 7962a336a7
commit 40e2dfac42
7 changed files with 165 additions and 56 deletions
+4 -16
View File
@@ -9,7 +9,8 @@ Component for sending radio commands (433-434Mhz) through the AirSend device.
1. Add `airsend:` to your HA configuration (see configuration below).
2. Into the terminal, run `wget -q -O - https://raw.githubusercontent.com/devmel/hass_airsend/master/install | bash -`
OR copy the `airsend` folder into your [custom_components folder](https://developers.home-assistant.io/docs/creating_integration_file_structure/#where-home-assistant-looks-for-integrations).
3. Restart Home Assistant
3. To allow a local LAN connection please install and start [hass_airsend-addon](https://github.com/devmel/hass_airsend-addon).
4. Restart Home Assistant
## Configuration
@@ -17,21 +18,8 @@ Component for sending radio commands (433-434Mhz) through the AirSend device.
To integrate `airsend` into Home Assistant, go to `airsend.cloud -> import/export -> Export YAML` and add the contents of the downloaded file into your HA configuration `configuration.yaml`.
Simple example:
```yaml
# Example configuration.yaml entry
airsend:
devices:
light:
id: 9000
type: 4098
apiKey: !secret asKey
prise somfy:
id: 9010
type: 4097
apiKey: !secret asKey
```
#### Local LAN connection
The configuration allows to use the local mode (if [hass_airsend-addon](https://github.com/devmel/hass_airsend-addon) is started) by adding the field `spurl: !secret spurl` in each device. In this mode you must modify the file `secrets.yaml` by adding the local url of the AirSend with its local ipv4 (ex: 192.168.x.x so `spurl: sp://airsend_password@192.168.x.x`), the local ipv6 `fe80::` does not work because of virtualization. You can also remove fields `apiKey`.
## Preview