diff --git a/atom.xml b/atom.xml index e205c6cdff..1901900767 100644 --- a/atom.xml +++ b/atom.xml @@ -4,7 +4,7 @@
This recipe will turn on a light when there is motion and turn off the light when ten minutes has passed without any motion events.
-```yaml -automation:
-alias: Turn on kitchen light when there is movement -trigger: - platform: state - entity_id: sensor.motion_sensor - to: ‘on’ -action: - service: homeassistant.turn_on - entity_id: light.kitchen
-alias: Turn off kitchen light 10 minutes after last movement -trigger: - platform: state - entity_id: sensor.motion_sensor - to: ‘off’ - for: - minutes: 10 -action: - service: homeassistant.turn_off - entity_id: light.kitchen_light
-automation:
+- alias: Turn on kitchen light when there is movement
+ trigger:
+ platform: state
+ entity_id: sensor.motion_sensor
+ to: 'on'
+ action:
+ service: homeassistant.turn_on
+ entity_id: light.kitchen
+
+- alias: Turn off kitchen light 10 minutes after last movement
+ trigger:
+ platform: state
+ entity_id: sensor.motion_sensor
+ to: 'off'
+ for:
+ minutes: 10
+ action:
+ service: homeassistant.turn_off
+ entity_id: light.kitchen_light
+
+homeassistant/binary_sensor/garden/config
homeassistant/binary_sensor/garden/state
{"name": "garden", "sensor_class": "motion"}
{"name": "garden", "device_class": "motion"}
To create a new sensor manually. For more details please refer to the MQTT testing section.
-$ mosquitto_pub -h 127.0.0.1 -p 1883 -t "homeassistant/binary_sensor/garden/config" -m '{"name": "garden", "sensor_class": "motion"}'
+$ mosquitto_pub -h 127.0.0.1 -p 1883 -t "homeassistant/binary_sensor/garden/config" -m '{"name": "garden", "device_class": "motion"}'
Update the state.
diff --git a/getting-started/configuration/index.html b/getting-started/configuration/index.html
index c0e2adeea3..490d5a1f6d 100644
--- a/getting-started/configuration/index.html
+++ b/getting-started/configuration/index.html
@@ -101,7 +101,7 @@
The Setting up devices part contains of the documentation additional details about adding device and services and customization.
+The Setting up devices part contains of the documentation additional details about adding device and services and customization.
For further details about configuration, please take a look at the configuration documentation.
diff --git a/sitemap.xml b/sitemap.xml index 1d95d14181..93a38b98eb 100644 --- a/sitemap.xml +++ b/sitemap.xml @@ -2872,62 +2872,62 @@