diff --git a/atom.xml b/atom.xml index 5028df106f..6afcfef9b0 100644 --- a/atom.xml +++ b/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Home Assistant]]> - 2017-12-24T13:42:39+00:00 + 2017-12-24T16:18:47+00:00 https://home-assistant.io/ diff --git a/blog/categories/announcements/atom.xml b/blog/categories/announcements/atom.xml index 1203ffadcb..8dffc936b1 100644 --- a/blog/categories/announcements/atom.xml +++ b/blog/categories/announcements/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Announcements | Home Assistant]]> - 2017-12-24T13:42:39+00:00 + 2017-12-24T16:18:47+00:00 https://home-assistant.io/ diff --git a/blog/categories/community/atom.xml b/blog/categories/community/atom.xml index 246fcc84c9..4504d7e522 100644 --- a/blog/categories/community/atom.xml +++ b/blog/categories/community/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Community | Home Assistant]]> - 2017-12-24T13:42:39+00:00 + 2017-12-24T16:18:47+00:00 https://home-assistant.io/ diff --git a/blog/categories/device-tracking/atom.xml b/blog/categories/device-tracking/atom.xml index 9e351db877..6a56de9bf2 100644 --- a/blog/categories/device-tracking/atom.xml +++ b/blog/categories/device-tracking/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Device-Tracking | Home Assistant]]> - 2017-12-24T13:42:39+00:00 + 2017-12-24T16:18:47+00:00 https://home-assistant.io/ diff --git a/blog/categories/esp8266/atom.xml b/blog/categories/esp8266/atom.xml index a478743bc4..7500e8eb5e 100644 --- a/blog/categories/esp8266/atom.xml +++ b/blog/categories/esp8266/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: ESP8266 | Home Assistant]]> - 2017-12-24T13:42:39+00:00 + 2017-12-24T16:18:47+00:00 https://home-assistant.io/ diff --git a/blog/categories/how-to/atom.xml b/blog/categories/how-to/atom.xml index d957d20b30..53ceeab4d0 100644 --- a/blog/categories/how-to/atom.xml +++ b/blog/categories/how-to/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: How-To | Home Assistant]]> - 2017-12-24T13:42:39+00:00 + 2017-12-24T16:18:47+00:00 https://home-assistant.io/ diff --git a/blog/categories/ibeacons/atom.xml b/blog/categories/ibeacons/atom.xml index 3ae34ed2c4..2d3a510138 100644 --- a/blog/categories/ibeacons/atom.xml +++ b/blog/categories/ibeacons/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: iBeacons | Home Assistant]]> - 2017-12-24T13:42:39+00:00 + 2017-12-24T16:18:47+00:00 https://home-assistant.io/ diff --git a/blog/categories/internet-of-things/atom.xml b/blog/categories/internet-of-things/atom.xml index 2fbf0ecf45..892513b4e7 100644 --- a/blog/categories/internet-of-things/atom.xml +++ b/blog/categories/internet-of-things/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Internet-of-Things | Home Assistant]]> - 2017-12-24T13:42:39+00:00 + 2017-12-24T16:18:47+00:00 https://home-assistant.io/ diff --git a/blog/categories/iot-data/atom.xml b/blog/categories/iot-data/atom.xml index 0df38b6caa..d18eafabcb 100644 --- a/blog/categories/iot-data/atom.xml +++ b/blog/categories/iot-data/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: IoT-Data | Home Assistant]]> - 2017-12-24T13:42:39+00:00 + 2017-12-24T16:18:47+00:00 https://home-assistant.io/ diff --git a/blog/categories/media/atom.xml b/blog/categories/media/atom.xml index 505c7ae906..1be27bc5ed 100644 --- a/blog/categories/media/atom.xml +++ b/blog/categories/media/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Media | Home Assistant]]> - 2017-12-24T13:42:39+00:00 + 2017-12-24T16:18:47+00:00 https://home-assistant.io/ diff --git a/blog/categories/merchandise/atom.xml b/blog/categories/merchandise/atom.xml index 15a475d284..5a3aa9720e 100644 --- a/blog/categories/merchandise/atom.xml +++ b/blog/categories/merchandise/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Merchandise | Home Assistant]]> - 2017-12-24T13:42:39+00:00 + 2017-12-24T16:18:47+00:00 https://home-assistant.io/ diff --git a/blog/categories/micropython/atom.xml b/blog/categories/micropython/atom.xml index e30011a05d..a78f08dc19 100644 --- a/blog/categories/micropython/atom.xml +++ b/blog/categories/micropython/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Micropython | Home Assistant]]> - 2017-12-24T13:42:39+00:00 + 2017-12-24T16:18:47+00:00 https://home-assistant.io/ diff --git a/blog/categories/mqtt/atom.xml b/blog/categories/mqtt/atom.xml index d078fdf669..1a8bcdf7e9 100644 --- a/blog/categories/mqtt/atom.xml +++ b/blog/categories/mqtt/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: MQTT | Home Assistant]]> - 2017-12-24T13:42:39+00:00 + 2017-12-24T16:18:47+00:00 https://home-assistant.io/ diff --git a/blog/categories/organisation/atom.xml b/blog/categories/organisation/atom.xml index 62112e212f..57154f2e71 100644 --- a/blog/categories/organisation/atom.xml +++ b/blog/categories/organisation/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Organisation | Home Assistant]]> - 2017-12-24T13:42:39+00:00 + 2017-12-24T16:18:47+00:00 https://home-assistant.io/ diff --git a/blog/categories/owntracks/atom.xml b/blog/categories/owntracks/atom.xml index eba53f840e..f693a15c4c 100644 --- a/blog/categories/owntracks/atom.xml +++ b/blog/categories/owntracks/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: OwnTracks | Home Assistant]]> - 2017-12-24T13:42:39+00:00 + 2017-12-24T16:18:47+00:00 https://home-assistant.io/ diff --git a/blog/categories/presence-detection/atom.xml b/blog/categories/presence-detection/atom.xml index aac38b0fca..4421cbd13d 100644 --- a/blog/categories/presence-detection/atom.xml +++ b/blog/categories/presence-detection/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Presence-Detection | Home Assistant]]> - 2017-12-24T13:42:39+00:00 + 2017-12-24T16:18:47+00:00 https://home-assistant.io/ diff --git a/blog/categories/public-service-announcement/atom.xml b/blog/categories/public-service-announcement/atom.xml index c64b9a943c..f2fd59974e 100644 --- a/blog/categories/public-service-announcement/atom.xml +++ b/blog/categories/public-service-announcement/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Public-Service-Announcement | Home Assistant]]> - 2017-12-24T13:42:39+00:00 + 2017-12-24T16:18:47+00:00 https://home-assistant.io/ diff --git a/blog/categories/release-notes/atom.xml b/blog/categories/release-notes/atom.xml index 8c4733ba52..4f1932b4ab 100644 --- a/blog/categories/release-notes/atom.xml +++ b/blog/categories/release-notes/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Release-Notes | Home Assistant]]> - 2017-12-24T13:42:39+00:00 + 2017-12-24T16:18:47+00:00 https://home-assistant.io/ diff --git a/blog/categories/survey/atom.xml b/blog/categories/survey/atom.xml index 04271652c5..0f675114c9 100644 --- a/blog/categories/survey/atom.xml +++ b/blog/categories/survey/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Survey | Home Assistant]]> - 2017-12-24T13:42:39+00:00 + 2017-12-24T16:18:47+00:00 https://home-assistant.io/ diff --git a/blog/categories/talks/atom.xml b/blog/categories/talks/atom.xml index 571b312901..eb0dc5146e 100644 --- a/blog/categories/talks/atom.xml +++ b/blog/categories/talks/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Talks | Home Assistant]]> - 2017-12-24T13:42:39+00:00 + 2017-12-24T16:18:47+00:00 https://home-assistant.io/ diff --git a/blog/categories/technology/atom.xml b/blog/categories/technology/atom.xml index df29bdad89..f87211c9ff 100644 --- a/blog/categories/technology/atom.xml +++ b/blog/categories/technology/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Technology | Home Assistant]]> - 2017-12-24T13:42:39+00:00 + 2017-12-24T16:18:47+00:00 https://home-assistant.io/ diff --git a/blog/categories/user-stories/atom.xml b/blog/categories/user-stories/atom.xml index 8107f370e6..3968825192 100644 --- a/blog/categories/user-stories/atom.xml +++ b/blog/categories/user-stories/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: User-Stories | Home Assistant]]> - 2017-12-24T13:42:39+00:00 + 2017-12-24T16:18:47+00:00 https://home-assistant.io/ diff --git a/blog/categories/video/atom.xml b/blog/categories/video/atom.xml index e3d1a00f92..a5d53c3c72 100644 --- a/blog/categories/video/atom.xml +++ b/blog/categories/video/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Video | Home Assistant]]> - 2017-12-24T13:42:39+00:00 + 2017-12-24T16:18:47+00:00 https://home-assistant.io/ diff --git a/blog/categories/website/atom.xml b/blog/categories/website/atom.xml index 7dc3256646..2a8a299152 100644 --- a/blog/categories/website/atom.xml +++ b/blog/categories/website/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Website | Home Assistant]]> - 2017-12-24T13:42:39+00:00 + 2017-12-24T16:18:47+00:00 https://home-assistant.io/ diff --git a/components/input_number/index.html b/components/input_number/index.html index 6f61582648..84916e80d7 100644 --- a/components/input_number/index.html +++ b/components/input_number/index.html @@ -96,21 +96,54 @@ Before version 0.55 this component was known as mode: box -

Configuration variables:

-
    -
  • [alias] (Required): Alias for the input. Multiple entries are allowed. -
      -
    • min (Required): Minimum value.
    • -
    • max (Required): Maximum value.
    • -
    • name (Optional): Friendly name of the input.
    • -
    • initial (Optional): Initial value when Home Assistant starts. Defaults to 0.
    • -
    • step (Optional): Step value for the slider. Defaults to 1.
    • -
    • mode (Optional): Can specify box, or slider. Defaults to slider.
    • -
    • unit_of_measurement (Optional): Unit of measurement in which the value of the slider is expressed in.
    • -
    • icon (Optional): Icon to display in front of the box/slider in the frontend. Refer to the Customizing devices page for possible values.
    • -
    -
  • -
+
+

Configuration Variables

+
+
input_number
+
+

(map)(Required)Alias for the input. Multiple entries are allowed.

+
+
+
+
min
+
+

(float)(Required)Minimum value.

+
+
max
+
+

(float)(Required)Maxium value.

+
+
name
+
+

(string)(Optional)Friendly name of the input.

+
+
initial
+
+

(float)(Optional)Initial value when Home Assistant starts.

+

Default value: 0

+
+
step
+
+

(float)(Optional)Step value for the slider. Smallest value 0.001.

+

Default value: 1

+
+
mode
+
+

(box | slider)(Optional)Can specify box or slider.

+

Default value: slider

+
+
unit_of_measurement
+
+

(string)(Optional)Unit of measurement in which the value of the slider is expressed in.

+
+
icon
+
+

(icon)(Optional)Icon to display in front of the box/slider in the frontend. Refer to the Customizing devices page for possible values.

+
+
+
+
+

Automation Examples

Here’s an example of input_number being used as a trigger in an automation.

# Example configuration.yaml entry using 'input_number' as a trigger in an automation
@@ -131,8 +164,7 @@ Before version 0.55 this component was known as 
         # Note the use of 'data_template:' below rather than the normal 'data:' if you weren't using an input variable
         data_template:
           entity_id: light.bedroom
-          brightness: '{{ trigger.to_state.state | int }}'
-
+          brightness: "{{ trigger.to_state.state | int }}"
 

Another code example using input_number, this time being used in an action in an automation.

@@ -166,7 +198,7 @@ Before version 0.55 this component was known as # Again, note the use of 'data_template:' rather than the normal 'data:' if you weren't using an input variable. data_template: entity_id: light.bedroom - brightness: '{{ states.input_number.bedroom_brightness.state | int }}' + brightness: "{{ states('input_number.bedroom_brightness') | int }}"

Example of input_number being used in a bidirectional manner, both being set by and controlled by an MQTT action in an automation.

@@ -179,20 +211,23 @@ Before version 0.55 this component was known as step: 1 unit_of_measurement: step icon: mdi:target + # This automation script runs when a value is received via MQTT on retained topic: setTemperature # It sets the value slider on the GUI. This slides also had its own automation when the value is changed. automation: - alias: Set temp slider trigger: platform: mqtt - topic: "setTemperature" + topic: 'setTemperature' action: service: input_number.set_value data_template: entity_id: input_number.target_temp - value: '{{ trigger.payload}}' + value: "{{ trigger.payload }}" + # This automation script runs when the target temperature slider is moved. # It publishes its value to the same MQTT topic it is also subscribed to. +automation: - alias: Temp slider moved trigger: platform: state @@ -200,9 +235,9 @@ Before version 0.55 this component was known as action: service: mqtt.publish data_template: - topic: "setTemperature" + topic: 'setTemperature' retain: true - payload: '{{ states.input_number.target_temp.state | int }}' + payload: "{{ states('input_number.target_temp') | int }}" diff --git a/sitemap.xml b/sitemap.xml index 41bde2833e..5bb3cd6ceb 100644 --- a/sitemap.xml +++ b/sitemap.xml @@ -3826,7 +3826,7 @@ https://home-assistant.io/components/switch.hook/ -2017-12-24T13:42:39+00:00 +2017-12-24T16:18:47+00:00 https://home-assistant.io/cookbook/automation_for_rainy_days/ @@ -4502,99 +4502,99 @@ https://home-assistant.io/docs/autostart/init.d/ -2017-12-24T13:42:39+00:00 +2017-12-24T16:18:47+00:00 https://home-assistant.io/docs/ecosystem/appdaemon/ -2017-12-24T13:42:39+00:00 +2017-12-24T16:18:47+00:00 https://home-assistant.io/docs/ecosystem/appdaemon/api/ -2017-12-24T13:42:39+00:00 +2017-12-24T16:18:47+00:00 https://home-assistant.io/docs/ecosystem/appdaemon/configuration/ -2017-12-24T13:42:39+00:00 +2017-12-24T16:18:47+00:00 https://home-assistant.io/docs/ecosystem/appdaemon/example_apps/ -2017-12-24T13:42:39+00:00 +2017-12-24T16:18:47+00:00 https://home-assistant.io/docs/ecosystem/appdaemon/installation/ -2017-12-24T13:42:39+00:00 +2017-12-24T16:18:47+00:00 https://home-assistant.io/docs/ecosystem/appdaemon/operation/ -2017-12-24T13:42:39+00:00 +2017-12-24T16:18:47+00:00 https://home-assistant.io/docs/ecosystem/appdaemon/reboot/ -2017-12-24T13:42:39+00:00 +2017-12-24T16:18:47+00:00 https://home-assistant.io/docs/ecosystem/appdaemon/running/ -2017-12-24T13:42:39+00:00 +2017-12-24T16:18:47+00:00 https://home-assistant.io/docs/ecosystem/appdaemon/tutorial/ -2017-12-24T13:42:39+00:00 +2017-12-24T16:18:47+00:00 https://home-assistant.io/docs/ecosystem/appdaemon/updating/ -2017-12-24T13:42:39+00:00 +2017-12-24T16:18:47+00:00 https://home-assistant.io/docs/ecosystem/appdaemon/windows/ -2017-12-24T13:42:39+00:00 +2017-12-24T16:18:47+00:00 https://home-assistant.io/docs/ecosystem/certificates/ -2017-12-24T13:42:39+00:00 +2017-12-24T16:18:47+00:00 https://home-assistant.io/docs/ecosystem/hadashboard/ -2017-12-24T13:42:39+00:00 +2017-12-24T16:18:47+00:00 https://home-assistant.io/docs/ecosystem/hass-configurator/ -2017-12-24T13:42:39+00:00 +2017-12-24T16:18:47+00:00 https://home-assistant.io/docs/ecosystem/ios/ -2017-12-24T13:42:39+00:00 +2017-12-24T16:18:47+00:00 https://home-assistant.io/docs/ecosystem/nginx/ -2017-12-24T13:42:39+00:00 +2017-12-24T16:18:47+00:00 https://home-assistant.io/docs/ecosystem/notebooks/ -2017-12-24T13:42:39+00:00 +2017-12-24T16:18:47+00:00 https://home-assistant.io/docs/ecosystem/scenegen/ -2017-12-24T13:42:39+00:00 +2017-12-24T16:18:47+00:00 https://home-assistant.io/docs/ecosystem/synology/ -2017-12-24T13:42:39+00:00 +2017-12-24T16:18:47+00:00 https://home-assistant.io/docs/tools/ -2017-12-24T13:42:39+00:00 +2017-12-24T16:18:47+00:00 https://home-assistant.io/docs/tools/dev-tools/ -2017-12-24T13:42:39+00:00 +2017-12-24T16:18:47+00:00 https://home-assistant.io/docs/tools/hass/ -2017-12-24T13:42:39+00:00 +2017-12-24T16:18:47+00:00 https://home-assistant.io/docs/tools/scripts/ -2017-12-24T13:42:39+00:00 +2017-12-24T16:18:47+00:00 https://home-assistant.io/faq/after-upgrading/ @@ -5726,62 +5726,62 @@ https://home-assistant.io/demo/frontend.html -2017-12-24T13:41:39+00:00 +2017-12-24T16:17:57+00:00 https://home-assistant.io/demo/index.html -2017-12-24T13:41:39+00:00 +2017-12-24T16:17:57+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-event.html -2017-12-24T13:41:39+00:00 +2017-12-24T16:17:57+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-info.html -2017-12-24T13:41:39+00:00 +2017-12-24T16:17:57+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-service.html -2017-12-24T13:41:39+00:00 +2017-12-24T16:17:57+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-state.html -2017-12-24T13:41:39+00:00 +2017-12-24T16:17:57+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-template.html -2017-12-24T13:41:39+00:00 +2017-12-24T16:17:57+00:00 https://home-assistant.io/demo/panels/ha-panel-history.html -2017-12-24T13:41:39+00:00 +2017-12-24T16:17:57+00:00 https://home-assistant.io/demo/panels/ha-panel-iframe.html -2017-12-24T13:41:39+00:00 +2017-12-24T16:17:57+00:00 https://home-assistant.io/demo/panels/ha-panel-logbook.html -2017-12-24T13:41:39+00:00 +2017-12-24T16:17:57+00:00 https://home-assistant.io/demo/panels/ha-panel-map.html -2017-12-24T13:41:39+00:00 +2017-12-24T16:17:57+00:00 https://home-assistant.io/googlef4f3693c209fe788.html -2017-12-24T13:41:39+00:00 +2017-12-24T16:17:57+00:00 https://home-assistant.io/static/fonts/roboto/DESCRIPTION.en_us.html -2017-12-24T13:41:40+00:00 +2017-12-24T16:17:57+00:00 https://home-assistant.io/static/fonts/robotomono/DESCRIPTION.en_us.html -2017-12-24T13:41:40+00:00 +2017-12-24T16:17:57+00:00 https://home-assistant.io/static/mdi-demo.html -2017-12-24T13:41:40+00:00 +2017-12-24T16:17:57+00:00