diff --git a/atom.xml b/atom.xml index 22451971d8..0253aa7e72 100644 --- a/atom.xml +++ b/atom.xml @@ -4,7 +4,7 @@
This example allows you to control two or more covers at once.
homeassistant:
customize:
- all_covers:
+ cover_group:
assume_state: true
cover:
- platform: template
covers:
- all_covers:
- friendly_name: "All Covers"
+ cover_group:
+ friendly_name: "Cover Group"
open_cover:
- service: script.cover_all_open
+ service: script.cover_group
+ data:
+ modus: 'open'
close_cover:
- service: script.cover_all_close
+ service: script.cover_group
+ data:
+ modus: 'close'
stop_cover:
- service: script.cover_all_stop
+ service: script.cover_group
+ data:
+ modus: 'stop'
set_cover_position:
- service: script.cover_all_set_position
+ service: script.cover_group_position
data_template:
- position: "{{ position }}"
- value_template: "{{ is_state('sensor.all_covers', 'open') }}"
+ position: "{{position}}"
+ value_template: "{{is_state('sensor.cover_group', 'open')}}"
icon_template: >-
- {% if is_state('sensor.all_covers', 'open') %}
+ {% if is_state('sensor.cover_group', 'open') %}
mdi:window-open
{% else %}
mdi:window-closed
@@ -248,7 +254,7 @@ sensor into a cover.
sensor:
- platform: template
sensors:
- all_covers:
+ cover_group:
value_template: >-
{% if is_state('cover.bedroom', 'open') %}
open
@@ -262,35 +268,21 @@ sensor into a cover.
- cover.livingroom
script:
- cover_all_open:
+ cover_group:
sequence:
- - service: cover.open_cover
+ - service_template: "cover.{{modus}}_cover"
data:
entity_id:
- cover.bedroom
- cover.livingroom
- cover_all_stop:
- sequence:
- - service: cover.stop_cover
- data:
- entity_id:
- - cover.bedroom
- - cover.livingroom
- cover_all_close:
- sequence:
- - service: cover.close_cover
- data:
- entity_id:
- - cover.bedroom
- - cover.livingroom
- cover_all_set_position:
+ cover_group_position:
sequence:
- service: cover.set_cover_position
data_template:
entity_id:
- cover.bedroom
- cover.livingroom
- position: "{{ position }}"
+ position: "{{position}}"
automation:
- alias: "Close covers at night"
@@ -301,7 +293,7 @@ sensor into a cover.
action:
- service: cover.set_cover_position
data:
- entity_id: cover.all_covers
+ entity_id: cover.cover_group
position: 25
This component has been tested on the following devices:
On state change of a specified entity, attempts to parse the state as a number and triggers if value is above and/or below a threshold.
+On state change of a specified entity, attempts to parse the state as a number and triggers once if value is changing from above to below a threshold, or from below to above the given threshold.
automation:
trigger:
platform: numeric_state
diff --git a/sitemap.xml b/sitemap.xml
index 3f2440a691..f891e0f530 100644
--- a/sitemap.xml
+++ b/sitemap.xml
@@ -3374,7 +3374,7 @@
https://home-assistant.io/components/switch.hook/
-2017-10-01T09:53:14+00:00
+2017-10-01T10:28:40+00:00
https://home-assistant.io/cookbook/automation_for_rainy_days/
@@ -4006,99 +4006,99 @@
https://home-assistant.io/docs/autostart/init.d/
-2017-10-01T09:53:14+00:00
+2017-10-01T10:28:40+00:00
https://home-assistant.io/docs/ecosystem/appdaemon/
-2017-10-01T09:53:14+00:00
+2017-10-01T10:28:40+00:00
https://home-assistant.io/docs/ecosystem/appdaemon/api/
-2017-10-01T09:53:14+00:00
+2017-10-01T10:28:40+00:00
https://home-assistant.io/docs/ecosystem/appdaemon/configuration/
-2017-10-01T09:53:14+00:00
+2017-10-01T10:28:40+00:00
https://home-assistant.io/docs/ecosystem/appdaemon/example_apps/
-2017-10-01T09:53:14+00:00
+2017-10-01T10:28:40+00:00
https://home-assistant.io/docs/ecosystem/appdaemon/installation/
-2017-10-01T09:53:14+00:00
+2017-10-01T10:28:40+00:00
https://home-assistant.io/docs/ecosystem/appdaemon/operation/
-2017-10-01T09:53:14+00:00
+2017-10-01T10:28:40+00:00
https://home-assistant.io/docs/ecosystem/appdaemon/reboot/
-2017-10-01T09:53:14+00:00
+2017-10-01T10:28:40+00:00
https://home-assistant.io/docs/ecosystem/appdaemon/running/
-2017-10-01T09:53:14+00:00
+2017-10-01T10:28:40+00:00
https://home-assistant.io/docs/ecosystem/appdaemon/tutorial/
-2017-10-01T09:53:14+00:00
+2017-10-01T10:28:40+00:00
https://home-assistant.io/docs/ecosystem/appdaemon/updating/
-2017-10-01T09:53:14+00:00
+2017-10-01T10:28:40+00:00
https://home-assistant.io/docs/ecosystem/appdaemon/windows/
-2017-10-01T09:53:14+00:00
+2017-10-01T10:28:40+00:00
https://home-assistant.io/docs/ecosystem/certificates/
-2017-10-01T09:53:14+00:00
+2017-10-01T10:28:40+00:00
https://home-assistant.io/docs/ecosystem/hadashboard/
-2017-10-01T09:53:14+00:00
+2017-10-01T10:28:40+00:00
https://home-assistant.io/docs/ecosystem/hass-configurator/
-2017-10-01T09:53:14+00:00
+2017-10-01T10:28:40+00:00
https://home-assistant.io/docs/ecosystem/ios/
-2017-10-01T09:53:14+00:00
+2017-10-01T10:28:40+00:00
https://home-assistant.io/docs/ecosystem/nginx/
-2017-10-01T09:53:14+00:00
+2017-10-01T10:28:40+00:00
https://home-assistant.io/docs/ecosystem/notebooks/
-2017-10-01T09:53:14+00:00
+2017-10-01T10:28:40+00:00
https://home-assistant.io/docs/ecosystem/scenegen/
-2017-10-01T09:53:14+00:00
+2017-10-01T10:28:40+00:00
https://home-assistant.io/docs/ecosystem/synology/
-2017-10-01T09:53:14+00:00
+2017-10-01T10:28:40+00:00
https://home-assistant.io/docs/tools/
-2017-10-01T09:53:14+00:00
+2017-10-01T10:28:40+00:00
https://home-assistant.io/docs/tools/dev-tools/
-2017-10-01T09:53:14+00:00
+2017-10-01T10:28:40+00:00
https://home-assistant.io/docs/tools/hass/
-2017-10-01T09:53:14+00:00
+2017-10-01T10:28:40+00:00
https://home-assistant.io/docs/tools/scripts/
-2017-10-01T09:53:14+00:00
+2017-10-01T10:28:40+00:00
https://home-assistant.io/faq/after-upgrading/
@@ -5122,62 +5122,62 @@
https://home-assistant.io/demo/frontend.html
-2017-10-01T09:52:42+00:00
+2017-10-01T10:27:58+00:00
https://home-assistant.io/demo/index.html
-2017-10-01T09:52:42+00:00
+2017-10-01T10:27:58+00:00
https://home-assistant.io/demo/panels/ha-panel-dev-event.html
-2017-10-01T09:52:42+00:00
+2017-10-01T10:27:58+00:00
https://home-assistant.io/demo/panels/ha-panel-dev-info.html
-2017-10-01T09:52:42+00:00
+2017-10-01T10:27:58+00:00
https://home-assistant.io/demo/panels/ha-panel-dev-service.html
-2017-10-01T09:52:42+00:00
+2017-10-01T10:27:58+00:00
https://home-assistant.io/demo/panels/ha-panel-dev-state.html
-2017-10-01T09:52:42+00:00
+2017-10-01T10:27:58+00:00
https://home-assistant.io/demo/panels/ha-panel-dev-template.html
-2017-10-01T09:52:42+00:00
+2017-10-01T10:27:58+00:00
https://home-assistant.io/demo/panels/ha-panel-history.html
-2017-10-01T09:52:42+00:00
+2017-10-01T10:27:58+00:00
https://home-assistant.io/demo/panels/ha-panel-iframe.html
-2017-10-01T09:52:42+00:00
+2017-10-01T10:27:58+00:00
https://home-assistant.io/demo/panels/ha-panel-logbook.html
-2017-10-01T09:52:42+00:00
+2017-10-01T10:27:58+00:00
https://home-assistant.io/demo/panels/ha-panel-map.html
-2017-10-01T09:52:42+00:00
+2017-10-01T10:27:58+00:00
https://home-assistant.io/googlef4f3693c209fe788.html
-2017-10-01T09:52:42+00:00
+2017-10-01T10:27:58+00:00
https://home-assistant.io/static/fonts/roboto/DESCRIPTION.en_us.html
-2017-10-01T09:52:42+00:00
+2017-10-01T10:27:59+00:00
https://home-assistant.io/static/fonts/robotomono/DESCRIPTION.en_us.html
-2017-10-01T09:52:42+00:00
+2017-10-01T10:27:59+00:00
https://home-assistant.io/static/mdi-demo.html
-2017-10-01T09:52:42+00:00
+2017-10-01T10:27:59+00:00