Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tanishqmanuja/ha.integration.rf4ch

4 Channel RF Switcher integration for Home Assistant
https://github.com/tanishqmanuja/ha.integration.rf4ch

hacs-integraiton home-assistant home-assistant-integration home-automation

Last synced: 1 day ago
JSON representation

4 Channel RF Switcher integration for Home Assistant

Awesome Lists containing this project

README

        

# Rf4Ch //RF Four Channel

Home Assistant integration to control my basic of the shelf Four Channel RF Switchers easily.

#### 📦 Actual Switcher Device

These devices are dirt cheap! Can be retro-fitted into existing switches and also consume less power than wifi enabled devices.

The only problem being they are not "smart", but with a wifi enabled device acting as a bridge you can control them from Home Assistant.

## ⚙️ Configuration

Example snippet for configuration.yaml file.

```yaml
rf4ch:
my_switcher:
name: My Switcher
code:
channel_a: "0001"
channel_b: "0010"
channel_c: "0100"
channel_d: "1000"
channel_on: "1111"
channel_off: "0000"
service:
id: rf4ch.dummy_rf_send

your_switcher:
name: Your Switcher
code:
channel_a: "0001"
channel_b: "0010"
channel_c: "0100"
channel_d: "1000"
channel_on: "1111"
channel_off: "0000"
prefix: "0110"
service:
id: rf4ch.dummy_rf_send
data:
repeat: 6
availability_template: "{{ is_state('switch.my_switcher_ch_a','on') }}"
```

## 🌐 ESPHome API Service

This is how I expose a RF Bridge service to Home Assistant.

```yaml
api:
services:
- service: rf_bridge_send
variables:
code: string
repeat: int
then:
- remote_transmitter.transmit_rc_switch_raw:
protocol: 1
code: !lambda "return code;"
repeat:
times: !lambda "return repeat;"
wait_time: 0s
```