Skip to content

Commit

Permalink
Update README about RF Bridge
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexxIT committed Feb 20, 2020
1 parent 6ab1899 commit 1fe2f4d
Showing 1 changed file with 22 additions and 13 deletions.
35 changes: 22 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,14 +123,17 @@ sonoff:

## Sonoff RF Bridge 433

Although the component supports training, it is recommended to train buttons through the eWeLink application.
Component will create only one entity per RF Bridge - `remote.sonoff_1000abcdefg`. Entity RF Buttons or RF Sensors are not created!

The component can both send RF signals and receive them, but only previously trained.
You can receive signals from RF Buttons and RF Sensors through an event `sonoff.remote`. And send signals using the service `remote.send_command`.

Although the component supports training, it is recommended to train RF Buttons through the eWeLink application.

When a command is received, the event `sonoff.remote` is generated with a button number and response time (in UTC, sends the device).

`command` - number of the button in the eWeLink application.

Example for receive RF signal via [Automation](https://www.home-assistant.io/integrations/automation/):

```yaml
automation:
Expand All @@ -139,19 +142,25 @@ automation:
platform: event
event_type: sonoff.remote
event_data:
command: 0
command: 0 # button/sensor number in eWeLink application
action:
service: homeassistant.toggle
entity_id: remote.sonoff_1000abcdefg
```

Example for send RF signal via [Script](https://www.home-assistant.io/integrations/script/):

```yaml
script:
# send one command
send_num1:
sequence:
- service: remote.send_command
data:
entity_id: remote.sonoff_1000abcdefg
command: 1
command: 1 # button/sensor number in eWeLink application
# send three commands
send_num111:
sequence:
- service: remote.send_command
Expand Down Expand Up @@ -219,16 +228,16 @@ The list will be loaded from the local file even if you remove `username` and `p

## Common problems

Not show devices.
**Devices are not displayed**

1. Currently only supported devices with firmware v3+
2. Common problems with Multicast:
- two routers
- docker with port forwarding
- virtual machine with port forwarding
- virtualbox
- linux firewall
- linux network driver
- two routers
- docker with port forwarding
- virtual machine with port forwarding
- virtualbox
- linux firewall
- linux network driver

## Component Debugging

Expand Down Expand Up @@ -259,15 +268,15 @@ switch: 'on'

Example service params to multi-channel switch:

```
```yaml
device: 1000123456
command: switches
switches: [{outlet: 0, switch: 'off'}]
```

Example service params to dimmer:

```
```yaml
device: 1000123456
command: dimmable
switch: 'on'
Expand Down

0 comments on commit 1fe2f4d

Please sign in to comment.