diff --git a/docs/automation/templating/index.html b/docs/automation/templating/index.html
index ea219c7970..13eb343cc2 100644
--- a/docs/automation/templating/index.html
+++ b/docs/automation/templating/index.html
@@ -111,6 +111,13 @@
While the float
and int
filters do allow a default fallback value if the conversion is unsuccessful, they do not provide the ability to catch undefined variables.
Remembering these simple rules will help save you from many headaches and endless hours of frustration when using automation templates.
+ Trigger State Object
+Knowing how to access the state object of a trigger entity could be one of the more common questions. Here are a few ways for the state
, numeric_state
and template
triggers:
+
+ trigger.from_state
will return the previous state object of the entity.
+ trigger.to_state
will return the new state object that triggered trigger.
+ states[trigger.to_state.domain][trigger.to_state.object_id]
will return the current state object of the entity.
+
Available Trigger Data
The following tables show the available trigger data per platform.
event
diff --git a/sitemap.xml b/sitemap.xml
index 8f1249d023..b820c73121 100644
--- a/sitemap.xml
+++ b/sitemap.xml
@@ -3646,7 +3646,7 @@
https://home-assistant.io/components/switch.hook/
-2017-11-17T20:21:23+00:00
+2017-11-17T23:35:29+00:00
https://home-assistant.io/cookbook/automation_for_rainy_days/
@@ -4318,99 +4318,99 @@
https://home-assistant.io/docs/autostart/init.d/
-2017-11-17T20:21:23+00:00
+2017-11-17T23:35:29+00:00
https://home-assistant.io/docs/ecosystem/appdaemon/
-2017-11-17T20:21:23+00:00
+2017-11-17T23:35:29+00:00
https://home-assistant.io/docs/ecosystem/appdaemon/api/
-2017-11-17T20:21:23+00:00
+2017-11-17T23:35:29+00:00
https://home-assistant.io/docs/ecosystem/appdaemon/configuration/
-2017-11-17T20:21:23+00:00
+2017-11-17T23:35:29+00:00
https://home-assistant.io/docs/ecosystem/appdaemon/example_apps/
-2017-11-17T20:21:23+00:00
+2017-11-17T23:35:29+00:00
https://home-assistant.io/docs/ecosystem/appdaemon/installation/
-2017-11-17T20:21:23+00:00
+2017-11-17T23:35:29+00:00
https://home-assistant.io/docs/ecosystem/appdaemon/operation/
-2017-11-17T20:21:23+00:00
+2017-11-17T23:35:29+00:00
https://home-assistant.io/docs/ecosystem/appdaemon/reboot/
-2017-11-17T20:21:23+00:00
+2017-11-17T23:35:29+00:00
https://home-assistant.io/docs/ecosystem/appdaemon/running/
-2017-11-17T20:21:23+00:00
+2017-11-17T23:35:29+00:00
https://home-assistant.io/docs/ecosystem/appdaemon/tutorial/
-2017-11-17T20:21:23+00:00
+2017-11-17T23:35:29+00:00
https://home-assistant.io/docs/ecosystem/appdaemon/updating/
-2017-11-17T20:21:23+00:00
+2017-11-17T23:35:29+00:00
https://home-assistant.io/docs/ecosystem/appdaemon/windows/
-2017-11-17T20:21:23+00:00
+2017-11-17T23:35:29+00:00
https://home-assistant.io/docs/ecosystem/certificates/
-2017-11-17T20:21:23+00:00
+2017-11-17T23:35:29+00:00
https://home-assistant.io/docs/ecosystem/hadashboard/
-2017-11-17T20:21:23+00:00
+2017-11-17T23:35:29+00:00
https://home-assistant.io/docs/ecosystem/hass-configurator/
-2017-11-17T20:21:23+00:00
+2017-11-17T23:35:29+00:00
https://home-assistant.io/docs/ecosystem/ios/
-2017-11-17T20:21:23+00:00
+2017-11-17T23:35:29+00:00
https://home-assistant.io/docs/ecosystem/nginx/
-2017-11-17T20:21:23+00:00
+2017-11-17T23:35:29+00:00
https://home-assistant.io/docs/ecosystem/notebooks/
-2017-11-17T20:21:23+00:00
+2017-11-17T23:35:29+00:00
https://home-assistant.io/docs/ecosystem/scenegen/
-2017-11-17T20:21:23+00:00
+2017-11-17T23:35:29+00:00
https://home-assistant.io/docs/ecosystem/synology/
-2017-11-17T20:21:23+00:00
+2017-11-17T23:35:29+00:00
https://home-assistant.io/docs/tools/
-2017-11-17T20:21:23+00:00
+2017-11-17T23:35:29+00:00
https://home-assistant.io/docs/tools/dev-tools/
-2017-11-17T20:21:23+00:00
+2017-11-17T23:35:29+00:00
https://home-assistant.io/docs/tools/hass/
-2017-11-17T20:21:23+00:00
+2017-11-17T23:35:29+00:00
https://home-assistant.io/docs/tools/scripts/
-2017-11-17T20:21:23+00:00
+2017-11-17T23:35:29+00:00
https://home-assistant.io/faq/after-upgrading/
@@ -5522,62 +5522,62 @@
https://home-assistant.io/demo/frontend.html
-2017-11-17T20:20:20+00:00
+2017-11-17T23:34:12+00:00
https://home-assistant.io/demo/index.html
-2017-11-17T20:20:20+00:00
+2017-11-17T23:34:12+00:00
https://home-assistant.io/demo/panels/ha-panel-dev-event.html
-2017-11-17T20:20:20+00:00
+2017-11-17T23:34:12+00:00
https://home-assistant.io/demo/panels/ha-panel-dev-info.html
-2017-11-17T20:20:20+00:00
+2017-11-17T23:34:12+00:00
https://home-assistant.io/demo/panels/ha-panel-dev-service.html
-2017-11-17T20:20:20+00:00
+2017-11-17T23:34:12+00:00
https://home-assistant.io/demo/panels/ha-panel-dev-state.html
-2017-11-17T20:20:20+00:00
+2017-11-17T23:34:12+00:00
https://home-assistant.io/demo/panels/ha-panel-dev-template.html
-2017-11-17T20:20:20+00:00
+2017-11-17T23:34:12+00:00
https://home-assistant.io/demo/panels/ha-panel-history.html
-2017-11-17T20:20:20+00:00
+2017-11-17T23:34:12+00:00
https://home-assistant.io/demo/panels/ha-panel-iframe.html
-2017-11-17T20:20:20+00:00
+2017-11-17T23:34:12+00:00
https://home-assistant.io/demo/panels/ha-panel-logbook.html
-2017-11-17T20:20:20+00:00
+2017-11-17T23:34:12+00:00
https://home-assistant.io/demo/panels/ha-panel-map.html
-2017-11-17T20:20:20+00:00
+2017-11-17T23:34:12+00:00
https://home-assistant.io/googlef4f3693c209fe788.html
-2017-11-17T20:20:20+00:00
+2017-11-17T23:34:12+00:00
https://home-assistant.io/static/fonts/roboto/DESCRIPTION.en_us.html
-2017-11-17T20:20:20+00:00
+2017-11-17T23:34:12+00:00
https://home-assistant.io/static/fonts/robotomono/DESCRIPTION.en_us.html
-2017-11-17T20:20:20+00:00
+2017-11-17T23:34:12+00:00
https://home-assistant.io/static/mdi-demo.html
-2017-11-17T20:20:20+00:00
+2017-11-17T23:34:12+00:00