home-assistant.github.io/source/_components/switch.rfxtrx.markdown
John Arild Berentsen a0364f2f84 Update config of rfxtrx switch
Describes the config option 
```yaml
 fire_event: True
```
2016-03-30 16:30:17 +02:00

35 lines
1.2 KiB
Markdown

---
layout: page
title: "RFXtrx Switch"
description: "Instructions how to integrate RFXtrx switches into Home Assistant."
date: 2015-10-08 10:15
sidebar: true
comments: false
sharing: true
footer: true
ha_category: Switch
---
The `rfxtrx` platform support switches that communicate in the frequency range of 433.92 MHz.
To enable RFXtrx switches in your installation, add the following to your `configuration.yaml` file:
```yaml
# Example configuration.yaml entry
switch:
platform: rfxtrx
signal_repetitions: 3
devices:
living_room:
name: Living Room
packetid: XXXXX
fire_event: True
automatic_add: True
```
Configuration variables:
- **devices** (*Required*): A list of devices with their name to use in the frontend.
- **automatic_add** (*Optional*): To enable the automatic addition of new switches.
- **signal_repetitions** *Optional*: Because the rxftrx device sends its actions via radio and from most receivers it's impossible to know if the signal was received or not. Therefore you can configure the switch to try to send each signal repeatedly.
- **fire_event** *Optional*: Fires an event even if the state is the same as before. Can be used for automations.