diff --git a/components/switch.rfxtrx/index.html b/components/switch.rfxtrx/index.html
index 8ad6ee6086..31d3dd115f 100644
--- a/components/switch.rfxtrx/index.html
+++ b/components/switch.rfxtrx/index.html
@@ -121,7 +121,35 @@ Then you should update your configuration to:
-Example configuration:
+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, for example a doorbell switch. Can also be used for automations.
+
+
+Generate codes:
+
+If you need to generate codes for switches you can use a template (usefull for example COCO switches).
+
+
+ - Go to home-assistant-IP:8123/dev-template
+ - Use this code to generate a code:
+
+
+ - Use this code to add a new switch in your configuration.yaml
+ - Launch your homeassistant and go the website.
+ - Enable learning mode on your switch (i.e. push learn button or plug it in a wall socket)
+ - Toggle your new switch in the homeassisant interface
+
+
+ Examples
+
+Basic configuration with 3 devices:
# Example configuration.yaml entry
switch:
@@ -139,14 +167,71 @@ Then you should update your configuration to:
-Configuration variables:
+Doorbell configuration:
-
- - 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.
-
+# Example configuration.yaml entry
+switch:
+ platform: rfxtrx
+ automatic_add: False
+ devices:
+ 0710014c440f0160:
+ name: Hall
+ 0710010244080780:
+ name: Door
+ fire_event: true
+
+automation:
+ - alias: Switch light on when door bell rings if sun is below horizon and light was off
+ trigger:
+ platform: event
+ event_type: button_pressed
+ event_data: {"entity_id": "switch.door"}
+ condition:
+ condition: and
+ conditions:
+ - condition: state
+ entity_id: sun.sun
+ state: "below_horizon"
+ - condition: state
+ entity_id: switch.hall
+ state: 'off'
+ action:
+ - service: switch.turn_on
+ entity_id: switch.hall
+
+
+
+Use remote to enable scene:
+
+# Example configuration.yaml entry
+switch:
+ platform: rfxtrx
+ automatic_add: False
+ devices:
+ 0b1100ce3213c7f210010f70:
+ name: Light1
+ 0b11000a02ef2gf210010f50:
+ name: Light2
+ 0b1111e003af16aa10000060:
+ name: Keychain remote
+ fire_event: true
+scene:
+ name: Livingroom
+ entities:
+ switch.light1: on
+ switch.light2: on
+
+automation:
+ - alias: Use remote to enable scene
+ trigger:
+ platform: event
+ event_type: button_pressed
+ event_data: {"state": "on", "entity_id": "switch.keychain_remote"}
+ action:
+ service: scene.turn_on
+ entity_id: scene.livingroom
+
+
diff --git a/sitemap.xml b/sitemap.xml
index 77a8087550..576e6ddda2 100644
--- a/sitemap.xml
+++ b/sitemap.xml
@@ -2311,62 +2311,62 @@
https://home-assistant.io/demo/frontend.html
-2016-11-02T10:14:00+00:00
+2016-11-02T16:27:16+00:00
https://home-assistant.io/demo/index.html
-2016-11-02T10:14:00+00:00
+2016-11-02T16:27:16+00:00
https://home-assistant.io/demo/panels/ha-panel-dev-event.html
-2016-11-02T10:14:00+00:00
+2016-11-02T16:27:16+00:00
https://home-assistant.io/demo/panels/ha-panel-dev-info.html
-2016-11-02T10:14:00+00:00
+2016-11-02T16:27:16+00:00
https://home-assistant.io/demo/panels/ha-panel-dev-service.html
-2016-11-02T10:14:00+00:00
+2016-11-02T16:27:16+00:00
https://home-assistant.io/demo/panels/ha-panel-dev-state.html
-2016-11-02T10:14:00+00:00
+2016-11-02T16:27:16+00:00
https://home-assistant.io/demo/panels/ha-panel-dev-template.html
-2016-11-02T10:14:00+00:00
+2016-11-02T16:27:16+00:00
https://home-assistant.io/demo/panels/ha-panel-history.html
-2016-11-02T10:14:00+00:00
+2016-11-02T16:27:16+00:00
https://home-assistant.io/demo/panels/ha-panel-iframe.html
-2016-11-02T10:14:00+00:00
+2016-11-02T16:27:16+00:00
https://home-assistant.io/demo/panels/ha-panel-logbook.html
-2016-11-02T10:14:00+00:00
+2016-11-02T16:27:16+00:00
https://home-assistant.io/demo/panels/ha-panel-map.html
-2016-11-02T10:14:00+00:00
+2016-11-02T16:27:16+00:00
https://home-assistant.io/googlef4f3693c209fe788.html
-2016-11-02T10:14:00+00:00
+2016-11-02T16:27:16+00:00
https://home-assistant.io/static/fonts/roboto/DESCRIPTION.en_us.html
-2016-11-02T10:14:00+00:00
+2016-11-02T16:27:17+00:00
https://home-assistant.io/static/fonts/robotomono/DESCRIPTION.en_us.html
-2016-11-02T10:14:00+00:00
+2016-11-02T16:27:17+00:00
https://home-assistant.io/static/mdi-demo.html
-2016-11-02T10:14:00+00:00
+2016-11-02T16:27:17+00:00