Bunch of YAML styling improvements - part 3 (#16394)

This commit is contained in:
Franck Nijhof 2021-02-04 03:00:11 +01:00 committed by GitHub
parent b8042f7e5c
commit 09759662a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
158 changed files with 545 additions and 536 deletions

View File

@ -117,6 +117,8 @@ automation:
If you want to migrate your manual automations to use the editor, you'll have to copy them to `automations.yaml`. Make sure that `automations.yaml` remains a list! For each automation that you copy over, you'll have to add an `id`. This can be any string as long as it's unique. If you want to migrate your manual automations to use the editor, you'll have to copy them to `automations.yaml`. Make sure that `automations.yaml` remains a list! For each automation that you copy over, you'll have to add an `id`. This can be any string as long as it's unique.
{% raw %}
```yaml ```yaml
# Example automations.yaml entry. Note, automations.yaml is always a list! # Example automations.yaml entry. Note, automations.yaml is always a list!
- id: my_unique_id # <-- Required for editor to work, for automations created with the editor the id will be automatically generated. - id: my_unique_id # <-- Required for editor to work, for automations created with the editor the id will be automatically generated.
@ -131,11 +133,13 @@ If you want to migrate your manual automations to use the editor, you'll have to
entity_id: sensor.temperature entity_id: sensor.temperature
above: 17 above: 17
below: 25 below: 25
value_template: '{% raw %}{{ float(state.state) + 2 }}{% endraw %}' value_template: "{{ float(state.state) + 2 }}"
action: action:
- service: light.turn_on - service: light.turn_on
``` ```
{% endraw %}
### Deleting Automations ### Deleting Automations
When automations remain visible in the Home Assistant Dashboard, even after having deleted in the YAML file, you have to delete them in the UI. When automations remain visible in the Home Assistant Dashboard, even after having deleted in the YAML file, you have to delete them in the UI.

View File

@ -51,7 +51,7 @@ To use your Mi Temperature and Humidity sensor in your installation, add the fol
# Example configuration.yaml entry # Example configuration.yaml entry
sensor: sensor:
- platform: beewi_smartclim - platform: beewi_smartclim
mac: 'xx:xx:xx:xx:xx:xx' mac: "xx:xx:xx:xx:xx:xx"
``` ```
{% configuration %} {% configuration %}
@ -73,6 +73,6 @@ A full configuration example could look like the one below:
# Example configuration.yaml entry # Example configuration.yaml entry
sensor: sensor:
- platform: beewi_smartclim - platform: beewi_smartclim
mac: 'xx:xx:xx:xx:xx:xx' mac: "xx:xx:xx:xx:xx:xx"
name: Garden name: Garden
``` ```

View File

@ -195,7 +195,7 @@ binary_sensor:
payload_not_available: "offline" payload_not_available: "offline"
qos: 0 qos: 0
device_class: opening device_class: opening
value_template: '{{ value_json.state }}' value_template: "{{ value_json.state }}"
``` ```
{% endraw %} {% endraw %}

View File

@ -117,8 +117,8 @@ You can play MP3 streams like net radios, FLAC files or videos from your local n
service: media_player.play_media service: media_player.play_media
data: data:
entity_id: media_player.chromecast entity_id: media_player.chromecast
media_content_type: 'video' media_content_type: "video"
media_content_id: 'http://192.168.0.100/movies/sample-video.mkv' media_content_id: "http://192.168.0.100/movies/sample-video.mkv"
``` ```
```yaml ```yaml
@ -126,8 +126,8 @@ data:
service: media_player.play_media service: media_player.play_media
data: data:
entity_id: media_player.chromecast entity_id: media_player.chromecast
media_content_type: 'image/jpeg' media_content_type: "image/jpeg"
media_content_id: 'http://via.placeholder.com/1024x600.jpg/0B6B94/FFFFFF/?text=Hello,%20Home%20Assistant!' media_content_id: "http://via.placeholder.com/1024x600.jpg/0B6B94/FFFFFF/?text=Hello,%20Home%20Assistant!"
``` ```
Extra media metadata (for example title, subtitle, artist or album name) can be passed into the service and that will be shown on the Chromecast display. Extra media metadata (for example title, subtitle, artist or album name) can be passed into the service and that will be shown on the Chromecast display.
@ -138,15 +138,15 @@ For the possible metadata types and values check [Google cast documentation > Me
service: media_player.play_media service: media_player.play_media
data: data:
entity_id: media_player.chromecast entity_id: media_player.chromecast
media_content_type: 'video/mp4' media_content_type: "video/mp4"
media_content_id: 'http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4' media_content_id: "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4"
extra: extra:
metadata: metadata:
metadataType: 1 metadataType: 1
title: 'Big Buck Bunny' title: "Big Buck Bunny"
subtitle: 'By Blender Foundation, Licensed under the Creative Commons Attribution license' subtitle: "By Blender Foundation, Licensed under the Creative Commons Attribution license"
images: images:
- url: 'https://peach.blender.org/wp-content/uploads/watchtrailer.gif' - url: "https://peach.blender.org/wp-content/uploads/watchtrailer.gif"
``` ```
```yaml ```yaml
@ -154,15 +154,15 @@ data:
service: media_player.play_media service: media_player.play_media
data: data:
entity_id: media_player.chromecast entity_id: media_player.chromecast
media_content_type: 'audio/mp3' media_content_type: "audio/mp3"
media_content_id: 'http://stream.tilos.hu:8000/tilos' media_content_id: "http://stream.tilos.hu:8000/tilos"
extra: extra:
metadata: metadata:
metadataType: 3 metadataType: 3
title: 'Radio TILOS' title: "Radio TILOS"
artist: 'LIVE' artist: "LIVE"
images: images:
- url: 'https://tilos.hu/images/kockalogo.png' - url: "https://tilos.hu/images/kockalogo.png"
``` ```
## Advanced use ## Advanced use

View File

@ -57,7 +57,7 @@ sender:
description: The name or number of the sender. (Limited to 11 characters.) description: The name or number of the sender. (Limited to 11 characters.)
required: false required: false
type: string type: string
default: 'hass' default: "hass"
{% endconfiguration %} {% endconfiguration %}
To use notifications, please see the [getting started with automation page](/getting-started/automation/). To use notifications, please see the [getting started with automation page](/getting-started/automation/).

View File

@ -68,7 +68,7 @@ automation:
- service: climate.set_preset_mode - service: climate.set_preset_mode
data: data:
entity_id: climate.kitchen entity_id: climate.kitchen
preset_mode: 'eco' preset_mode: "eco"
``` ```
### Service `climate.set_temperature` ### Service `climate.set_temperature`
@ -157,7 +157,7 @@ automation:
- service: climate.set_fan_mode - service: climate.set_fan_mode
data: data:
entity_id: climate.kitchen entity_id: climate.kitchen
fan_mode: 'On Low' fan_mode: "On Low"
``` ```
### Service `climate.set_hvac_mode` ### Service `climate.set_hvac_mode`

View File

@ -68,7 +68,7 @@ Example usage in an automation, taking the album art present on a Chromecast and
action: action:
- service: color_extractor.turn_on - service: color_extractor.turn_on
data_template: data_template:
color_extract_url: '{{ states.media_player.chromecast.attributes.entity_picture }}' color_extract_url: "{{ states.media_player.chromecast.attributes.entity_picture }}"
entity_id: light.shelf_leds entity_id: light.shelf_leds
``` ```
@ -85,7 +85,7 @@ With a nicer transition period of 5 seconds and setting brightness to 100% each
action: action:
- service: color_extractor.turn_on - service: color_extractor.turn_on
data_template: data_template:
color_extract_url: '{{ states.media_player.chromecast.attributes.entity_picture }}' color_extract_url: "{{ states.media_player.chromecast.attributes.entity_picture }}"
entity_id: light.shelf_leds entity_id: light.shelf_leds
brightness_pct: 100 brightness_pct: 100
transition: 5 transition: 5

View File

@ -19,7 +19,7 @@ To use your Command binary sensor in your installation, add the following to you
# Example configuration.yaml entry # Example configuration.yaml entry
binary_sensor: binary_sensor:
- platform: command_line - platform: command_line
command: 'cat /proc/sys/net/ipv4/ip_forward' command: "cat /proc/sys/net/ipv4/ip_forward"
``` ```
<div class='note'> <div class='note'>
@ -81,7 +81,7 @@ Check the state of an [SickRage](https://github.com/sickragetv/sickrage) instanc
binary_sensor: binary_sensor:
- platform: command_line - platform: command_line
command: 'netstat -na | find "33322" | find /c "LISTENING" > nul && (echo "Running") || (echo "Not running")' command: 'netstat -na | find "33322" | find /c "LISTENING" > nul && (echo "Running") || (echo "Not running")'
name: 'sickragerunning' name: "sickragerunning"
device_class: moving device_class: moving
payload_on: "Running" payload_on: "Running"
payload_off: "Not running" payload_off: "Not running"
@ -95,7 +95,7 @@ Check if [RasPlex](https://github.com/RasPlex/RasPlex) is `online`.
binary_sensor: binary_sensor:
- platform: command_line - platform: command_line
command: 'ping -c 1 rasplex.local | grep "1 received" | wc -l' command: 'ping -c 1 rasplex.local | grep "1 received" | wc -l'
name: 'is_rasplex_online' name: "is_rasplex_online"
device_class: connectivity device_class: connectivity
payload_on: 1 payload_on: 1
payload_off: 0 payload_off: 0
@ -133,8 +133,8 @@ A binary command line sensor can check this:
binary_sensor: binary_sensor:
- platform: command_line - platform: command_line
command: '/bin/systemctl is-active home-assistant@rock64.service' command: '/bin/systemctl is-active home-assistant@rock64.service'
payload_on: 'active' payload_on: "active"
payload_off: 'inactive' payload_off: "inactive"
``` ```
## Services ## Services

View File

@ -288,7 +288,7 @@ cover:
payload_available: "online" payload_available: "online"
payload_not_available: "offline" payload_not_available: "offline"
optimistic: false optimistic: false
value_template: '{{ value.x }}' value_template: "{{ value.x }}"
``` ```
{% endraw %} {% endraw %}
@ -319,7 +319,7 @@ cover:
payload_available: "online" payload_available: "online"
payload_not_available: "offline" payload_not_available: "offline"
optimistic: false optimistic: false
value_template: '{{ value.x }}' value_template: "{{ value.x }}"
``` ```
{% endraw %} {% endraw %}
@ -351,9 +351,9 @@ cover:
payload_available: "online" payload_available: "online"
payload_not_available: "offline" payload_not_available: "offline"
optimistic: false optimistic: false
value_template: '{{ value.x }}' value_template: "{{ value.x }}"
tilt_command_topic: 'home-assistant/cover/tilt' tilt_command_topic: "home-assistant/cover/tilt"
tilt_status_topic: 'home-assistant/cover/tilt-state' tilt_status_topic: "home-assistant/cover/tilt-state"
tilt_status_template: '{{ value_json["PWM"]["PWM1"] }}' tilt_status_template: '{{ value_json["PWM"]["PWM1"] }}'
tilt_min: 0 tilt_min: 0
tilt_max: 180 tilt_max: 180

View File

@ -199,15 +199,15 @@ cover:
open_cover: open_cover:
service: script.cover_group service: script.cover_group
data: data:
modus: 'open' modus: "open"
close_cover: close_cover:
service: script.cover_group service: script.cover_group
data: data:
modus: 'close' modus: "close"
stop_cover: stop_cover:
service: script.cover_group service: script.cover_group
data: data:
modus: 'stop' modus: "stop"
set_cover_position: set_cover_position:
service: script.cover_group_position service: script.cover_group_position
data: data:
@ -255,7 +255,7 @@ automation:
trigger: trigger:
- platform: sun - platform: sun
event: sunset event: sunset
offset: '+00:30:00' offset: "+00:30:00"
action: action:
- service: cover.set_cover_position - service: cover.set_cover_position
data: data:
@ -280,15 +280,15 @@ cover:
open_cover: open_cover:
service: script.cover_group service: script.cover_group
data: data:
modus: 'open' modus: "open"
close_cover: close_cover:
service: script.cover_group service: script.cover_group
data: data:
modus: 'close' modus: "close"
stop_cover: stop_cover:
service: script.cover_group service: script.cover_group
data: data:
modus: 'stop' modus: "stop"
value_template: "{{is_state('sensor.cover_group', 'open')}}" value_template: "{{is_state('sensor.cover_group', 'open')}}"
icon_template: >- icon_template: >-
{% if is_state('sensor.cover_group', 'open') %} {% if is_state('sensor.cover_group', 'open') %}
@ -315,15 +315,15 @@ cover:
open_cover: open_cover:
service: script.cover_group service: script.cover_group
data: data:
modus: 'open' modus: "open"
close_cover: close_cover:
service: script.cover_group service: script.cover_group
data: data:
modus: 'close' modus: "close"
stop_cover: stop_cover:
service: script.cover_group service: script.cover_group
data: data:
modus: 'stop' modus: "stop"
value_template: "{{is_state('sensor.cover_group', 'open')}}" value_template: "{{is_state('sensor.cover_group', 'open')}}"
icon_template: >- icon_template: >-
{% if is_state('sensor.cover_group', 'open') %} {% if is_state('sensor.cover_group', 'open') %}

View File

@ -280,7 +280,7 @@ automation:
trigger: trigger:
- platform: state - platform: state
entity_id: binary_sensor.doorbell_motion entity_id: binary_sensor.doorbell_motion
to: 'on' to: "on"
action: action:
- service: deconz.configure - service: deconz.configure
data: data:

View File

@ -27,7 +27,7 @@ To enable this sensor, add the following lines to your `configuration.yaml` file
# Example configuration.yaml entry # Example configuration.yaml entry
sensor: sensor:
- platform: delijn - platform: delijn
api_key: 'API_SUBSCRIPTION_KEY' api_key: "API_SUBSCRIPTION_KEY"
next_departure: next_departure:
- stop_id: 'STOP_ID' - stop_id: 'STOP_ID'
``` ```
@ -64,7 +64,7 @@ The example below shows a full configuration with two sensors, only the abcdefg
sensor: sensor:
# De Lijn public transport # De Lijn public transport
- platform: delijn - platform: delijn
api_key: 'abcdefg' api_key: "abcdefg"
next_departure: next_departure:
- stop_id: '200018' - stop_id: '200018'
- stop_id: '201169' - stop_id: '201169'

View File

@ -42,14 +42,18 @@ only_direct:
This sensor stores a lot of attributes which can be accessed by other sensors, e.g., a [template sensor](/integrations/template). This sensor stores a lot of attributes which can be accessed by other sensors, e.g., a [template sensor](/integrations/template).
{% raw %}
```yaml ```yaml
# Example configuration.yaml entry # Example configuration.yaml entry
sensor: sensor:
platform: template platform: template
sensors: sensors:
next_departure: next_departure:
value_template: '{% raw %}{{ state_attr('sensor.munich_to_ulm', 'next') }}{% endraw %}' value_template: "{{ state_attr('sensor.munich_to_ulm', 'next') }}"
friendly_name: 'Next departure' friendly_name: "Next departure"
``` ```
{% endraw %}
The data is coming from the [bahn.de](https://www.bahn.de/p/view/index.shtml) website. The data is coming from the [bahn.de](https://www.bahn.de/p/view/index.shtml) website.

View File

@ -20,8 +20,8 @@ To use this device tracker in your installation, add the following to your `conf
device_tracker: device_tracker:
- platform: mqtt - platform: mqtt
devices: devices:
paulus_oneplus: 'location/paulus' paulus_oneplus: "location/paulus"
annetherese_n4: 'location/annetherese' annetherese_n4: "location/annetherese"
``` ```
{% configuration %} {% configuration %}
@ -37,12 +37,12 @@ payload_home:
description: The payload value that represents the 'home' state for the device. description: The payload value that represents the 'home' state for the device.
required: false required: false
type: string type: string
default: 'home' default: "home"
payload_not_home: payload_not_home:
description: The payload value that represents the 'not_home' state for the device. description: The payload value that represents the 'not_home' state for the device.
required: false required: false
type: string type: string
default: 'not_home' default: "not_home"
source_type: source_type:
description: Attribute of a device tracker that affects state when being used to track a [person](/integrations/person/). Valid options are `gps`, `router`, `bluetooth`, or `bluetooth_le`. description: Attribute of a device tracker that affects state when being used to track a [person](/integrations/person/). Valid options are `gps`, `router`, `bluetooth`, or `bluetooth_le`.
required: false required: false
@ -56,11 +56,11 @@ source_type:
device_tracker: device_tracker:
- platform: mqtt - platform: mqtt
devices: devices:
paulus_oneplus: 'location/paulus' paulus_oneplus: "location/paulus"
annetherese_n4: 'location/annetherese' annetherese_n4: "location/annetherese"
qos: 1 qos: 1
payload_home: 'present' payload_home: "present"
payload_not_home: 'not present' payload_not_home: "not present"
source_type: bluetooth source_type: bluetooth
``` ```

View File

@ -49,8 +49,8 @@ If you have a sensor session running, and once you have enabled the Dexcom integ
entity_id: sensor.dexcom_YOUR_USERNAME_glucose_value entity_id: sensor.dexcom_YOUR_USERNAME_glucose_value
platform: numeric_state platform: numeric_state
condition: time condition: time
after: '22:00:00' after: "22:00:00"
before: '06:00:00' before: "06:00:00"
action: action:
- service: light.turn_on - service: light.turn_on
data: data:

View File

@ -73,8 +73,8 @@ automation:
action: action:
service: notify.dovado service: notify.dovado
data: data:
message: 'The sun has set' message: "The sun has set"
target: '+14151234567' target: "+14151234567"
``` ```
## Sensor ## Sensor

View File

@ -66,7 +66,7 @@ To use Dweet.io sensors in your installation, add the following to your `configu
sensor: sensor:
- platform: dweet - platform: dweet
device: THING_NAME device: THING_NAME
value_template: '{{ value_json.VARIABLE }}' value_template: "{{ value_json.VARIABLE }}"
``` ```
{% endraw %} {% endraw %}
@ -103,7 +103,7 @@ sensor:
- platform: dweet - platform: dweet
name: Temperature name: Temperature
device: THING_NAME device: THING_NAME
value_template: '{{ value_json.VARIABLE }}' value_template: "{{ value_json.VARIABLE }}"
unit_of_measurement: "°C" unit_of_measurement: "°C"
``` ```

View File

@ -284,9 +284,9 @@ dynalite:
template: time_cover template: time_cover
preset: preset:
'1': '1':
name: 'On' name: "On"
'4': '4':
name: 'Off' name: "Off"
template: template:
room: room:
room_on: 1 room_on: 1

View File

@ -18,7 +18,7 @@ Enable the sensor by adding the following to your `configuration.yaml` file:
# Example configuration.yaml entry # Example configuration.yaml entry
ebusd: ebusd:
host: 127.0.0.1 host: 127.0.0.1
circuit: '700' circuit: "700"
``` ```
{% configuration %} {% configuration %}

View File

@ -90,7 +90,7 @@ sensor:
sensors: sensors:
vacuum_filter: vacuum_filter:
friendly_name: "Vacuum Filter Remaining Lifespan" friendly_name: "Vacuum Filter Remaining Lifespan"
unit_of_measurement: '%' unit_of_measurement: "%"
value_template: "{{ state_attr('vacuum.my_vacuum_id', 'component_filter') }}" value_template: "{{ state_attr('vacuum.my_vacuum_id', 'component_filter') }}"
``` ```

View File

@ -52,12 +52,12 @@ Starting with [version 2 of the firmware](https://www.edimax.com/edimax/download
sensors: sensors:
edimax_current_power: edimax_current_power:
friendly_name: Edimax Current power consumption friendly_name: Edimax Current power consumption
unit_of_measurement: 'W' unit_of_measurement: "W"
value_template: "{{ state_attr('switch.edimax_smart_plug', 'current_power_w') | replace('None', 0) }}" value_template: "{{ state_attr('switch.edimax_smart_plug', 'current_power_w') | replace('None', 0) }}"
edimax_total_power: edimax_total_power:
friendly_name: Edimax Accumulated daily power consumption friendly_name: Edimax Accumulated daily power consumption
unit_of_measurement: 'kWh' unit_of_measurement: "kWh"
value_template: "{{ state_attr('switch.edimax_smart_plug', 'today_energy_kwh') | replace('None', 0) }}" value_template: "{{ state_attr('switch.edimax_smart_plug', 'today_energy_kwh') | replace('None', 0) }}"
``` ```

View File

@ -45,7 +45,7 @@ version:
description: The version of the Egardia system. `GATE-01`, `GATE-02` and `GATE-03` are currently supported. description: The version of the Egardia system. `GATE-01`, `GATE-02` and `GATE-03` are currently supported.
required: false required: false
type: string type: string
default: 'GATE-01' default: "GATE-01"
port: port:
description: The port of the alarm panel. description: The port of the alarm panel.
required: false required: false

View File

@ -33,7 +33,7 @@ envisalink:
panel_type: HONEYWELL or DSC panel_type: HONEYWELL or DSC
user_name: YOUR_USERNAME user_name: YOUR_USERNAME
password: YOUR_PASSWORD password: YOUR_PASSWORD
code: '1234' code: "1234"
port: 4025 port: 4025
evl_version: 3 evl_version: 3
keepalive_interval: 60 keepalive_interval: 60
@ -42,14 +42,14 @@ envisalink:
panic_type: Police panic_type: Police
zones: zones:
11: 11:
name: 'Back Door' name: "Back Door"
type: 'opening' type: "opening"
21: 21:
name: 'First Floor Motion' name: "First Floor Motion"
type: 'motion' type: "motion"
partitions: partitions:
1: 1:
name: 'Home Alarm' name: "Home Alarm"
``` ```
{% configuration %} {% configuration %}

View File

@ -40,7 +40,7 @@ name:
description: The name of the device used in the frontend. description: The name of the device used in the frontend.
required: false required: false
type: string type: string
default: 'EPSON Projector' default: "EPSON Projector"
{% endconfiguration %} {% endconfiguration %}
### Supported features ### Supported features

View File

@ -42,7 +42,7 @@ climate:
- platform: eq3btsmart - platform: eq3btsmart
devices: devices:
room1: room1:
mac: '00:11:22:33:44:55' mac: "00:11:22:33:44:55"
``` ```
{% configuration %} {% configuration %}

View File

@ -17,7 +17,7 @@ To add the Etherscan sensor to your installation, specify an Ethereum address to
# Example configuration.yaml entry # Example configuration.yaml entry
sensor: sensor:
- platform: etherscan - platform: etherscan
address: '0xfB6916095ca1df60bB79Ce92cE3Ea74c37c5d359' address: "0xfB6916095ca1df60bB79Ce92cE3Ea74c37c5d359"
- platform: etherscan - platform: etherscan
address: "0xfB6916095ca1df60bB79Ce92cE3Ea74c37c5d359" address: "0xfB6916095ca1df60bB79Ce92cE3Ea74c37c5d359"
token: OMG token: OMG

View File

@ -74,7 +74,7 @@ camera_view: live
elements: elements:
- icon: 'mdi:arrow-up' - icon: 'mdi:arrow-up'
style: style:
background: 'rgba(255, 255, 255, 0.5)' background: "rgba(255, 255, 255, 0.5)"
bottom: 50px bottom: 50px
right: 25px right: 25px
tap_action: tap_action:
@ -86,7 +86,7 @@ elements:
type: icon type: icon
- icon: 'mdi:arrow-down' - icon: 'mdi:arrow-down'
style: style:
background: 'rgba(255, 255, 255, 0.5)' background: "rgba(255, 255, 255, 0.5)"
bottom: 0px bottom: 0px
right: 25px right: 25px
tap_action: tap_action:
@ -98,7 +98,7 @@ elements:
type: icon type: icon
- icon: 'mdi:arrow-left' - icon: 'mdi:arrow-left'
style: style:
background: 'rgba(255, 255, 255, 0.5)' background: "rgba(255, 255, 255, 0.5)"
bottom: 25px bottom: 25px
right: 50px right: 50px
tap_action: tap_action:
@ -110,7 +110,7 @@ elements:
type: icon type: icon
- icon: 'mdi:arrow-right' - icon: 'mdi:arrow-right'
style: style:
background: 'rgba(255, 255, 255, 0.5)' background: "rgba(255, 255, 255, 0.5)"
bottom: 25px bottom: 25px
right: 0px right: 0px
tap_action: tap_action:
@ -122,7 +122,7 @@ elements:
type: icon type: icon
- icon: 'mdi:run-fast' - icon: 'mdi:run-fast'
style: style:
background: 'rgba(255, 255, 255, 0.5)' background: "rgba(255, 255, 255, 0.5)"
top: 25px top: 25px
right: 25px right: 25px
tap_action: tap_action:
@ -134,7 +134,7 @@ elements:
type: icon type: icon
- icon: 'mdi:run' - icon: 'mdi:run'
style: style:
background: 'rgba(255, 255, 255, 0.5)' background: "rgba(255, 255, 255, 0.5)"
top: 25px top: 25px
right: 0px right: 0px
tap_action: tap_action:
@ -146,7 +146,7 @@ elements:
type: icon type: icon
- icon: 'mdi:eye' - icon: 'mdi:eye'
style: style:
background: 'rgba(255, 255, 255, 0.5)' background: "rgba(255, 255, 255, 0.5)"
right: 25px right: 25px
top: 50px top: 50px
tap_action: tap_action:
@ -158,7 +158,7 @@ elements:
type: icon type: icon
- icon: 'mdi:eye-off' - icon: 'mdi:eye-off'
style: style:
background: 'rgba(255, 255, 255, 0.5)' background: "rgba(255, 255, 255, 0.5)"
right: 0px right: 0px
top: 50px top: 50px
tap_action: tap_action:
@ -170,7 +170,7 @@ elements:
type: icon type: icon
- icon: 'mdi:volume-high' - icon: 'mdi:volume-high'
style: style:
background: 'rgba(255, 255, 255, 0.5)' background: "rgba(255, 255, 255, 0.5)"
right: 25px right: 25px
top: 75px top: 75px
tap_action: tap_action:
@ -182,7 +182,7 @@ elements:
type: icon type: icon
- icon: 'mdi:volume-off' - icon: 'mdi:volume-off'
style: style:
background: 'rgba(255, 255, 255, 0.5)' background: "rgba(255, 255, 255, 0.5)"
right: 0px right: 0px
top: 75px top: 75px
tap_action: tap_action:
@ -194,7 +194,7 @@ elements:
type: icon type: icon
- icon: 'mdi:led-on' - icon: 'mdi:led-on'
style: style:
background: 'rgba(255, 255, 255, 0.5)' background: "rgba(255, 255, 255, 0.5)"
right: 25px right: 25px
top: 100px top: 100px
tap_action: tap_action:
@ -206,7 +206,7 @@ elements:
type: icon type: icon
- icon: 'mdi:led-off' - icon: 'mdi:led-off'
style: style:
background: 'rgba(255, 255, 255, 0.5)' background: "rgba(255, 255, 255, 0.5)"
right: 0px right: 0px
top: 100px top: 100px
tap_action: tap_action:
@ -218,7 +218,7 @@ elements:
type: icon type: icon
- icon: 'mdi:brightness-4' - icon: 'mdi:brightness-4'
style: style:
background: 'rgba(255, 255, 255, 0.5)' background: "rgba(255, 255, 255, 0.5)"
right: 25px right: 25px
top: 100px top: 100px
tap_action: tap_action:
@ -230,7 +230,7 @@ elements:
type: icon type: icon
- icon: 'mdi:brightness-5' - icon: 'mdi:brightness-5'
style: style:
background: 'rgba(255, 255, 255, 0.5)' background: "rgba(255, 255, 255, 0.5)"
right: 0px right: 0px
top: 100px top: 100px
tap_action: tap_action:

View File

@ -47,7 +47,7 @@ automation:
action: action:
service: notify.facebook service: notify.facebook
data: data:
message: 'Good Evening' message: "Good Evening"
target: target:
- '+919413017584' - '+919413017584'
- '+919784516314' - '+919784516314'

View File

@ -104,7 +104,7 @@ Use the `image_processing.detect_face` events to trigger automations, and breako
platform: event platform: event
event_type: image_processing.detect_face event_type: image_processing.detect_face
event_data: event_data:
name: 'Ringo_Starr' name: "Ringo_Starr"
action: action:
service: notify.platform service: notify.platform
data: data:
@ -184,7 +184,7 @@ you can create an automation to receive notifications on Facebox errors:
action: action:
- service: notify.pushbullet - service: notify.pushbullet
data_template: data_template:
message: '{{ trigger.event.data.message }}' message: "{{ trigger.event.data.message }}"
title: Facebox error title: Facebox error
``` ```

View File

@ -18,7 +18,7 @@ To enable your Family Hub camera in your installation, add the following to your
# Example configuration.yaml entry # Example configuration.yaml entry
camera: camera:
- platform: familyhub - platform: familyhub
ip_address: 'IP_ADDRESS' ip_address: "IP_ADDRESS"
``` ```
{% configuration %} {% configuration %}

View File

@ -106,5 +106,5 @@ sensor:
name: Temperature name: Temperature
file_path: /home/user/.homeassistant/sensor.json file_path: /home/user/.homeassistant/sensor.json
value_template: {% raw %}'{{ value_json.temperature }}'{% endraw %} value_template: {% raw %}'{{ value_json.temperature }}'{% endraw %}
unit_of_measurement: '°C' unit_of_measurement: "°C"
``` ```

View File

@ -142,7 +142,7 @@ automation:
entity_id: media_player.nest_hub_bedroom entity_id: media_player.nest_hub_bedroom
media_content_id: > media_content_id: >
{{ state_attr('sensor.incidents','message_to_speech_url') }} {{ state_attr('sensor.incidents','message_to_speech_url') }}
media_content_type: 'audio/mp4' media_content_type: "audio/mp4"
- alias: 'Send response acknowledgement when a button is pressed' - alias: 'Send response acknowledgement when a button is pressed'
trigger: trigger:

View File

@ -99,8 +99,8 @@ switch:
- light.desk - light.desk
- light.lamp - light.lamp
name: Fluxer name: Fluxer
start_time: '7:00' start_time: "7:00"
stop_time: '23:00' stop_time: "23:00"
start_colortemp: 4000 start_colortemp: 4000
sunset_colortemp: 3000 sunset_colortemp: 3000
stop_colortemp: 1900 stop_colortemp: 1900

View File

@ -17,6 +17,7 @@ This integration will provide local control over your LED lights/strips and can
The `flux_led` integration is configured through the Configuration -> Integrations page. You can select either auto configuration or manual configuration. For auto configuration the integration will automatically scan your network for any supported devices. The `flux_led` integration is configured through the Configuration -> Integrations page. You can select either auto configuration or manual configuration. For auto configuration the integration will automatically scan your network for any supported devices.
If you select the manual flow you can specify the name and host address of the light controller. You can add multiple lights/strips by adding additional instances of the integration. If you select the manual flow you can specify the name and host address of the light controller. You can add multiple lights/strips by adding additional instances of the integration.
### Effects ### Effects
The Flux LED light offers a number of effects which are not included in other lighting packages. These can be selected from the front-end, or sent in the effect field of the `light.turn_on` command. The Flux LED light offers a number of effects which are not included in other lighting packages. These can be selected from the front-end, or sent in the effect field of the `light.turn_on` command.

View File

@ -61,9 +61,9 @@ camera_image: camera.bedroom
camera_view: live camera_view: live
elements: elements:
- type: icon - type: icon
icon: 'mdi:arrow-up' icon: "mdi:arrow-up"
style: style:
background: 'rgba(255, 255, 255, 0.5)' background: "rgba(255, 255, 255, 0.5)"
right: 25px right: 25px
bottom: 50px bottom: 50px
tap_action: tap_action:
@ -73,9 +73,9 @@ elements:
entity_id: camera.bedroom entity_id: camera.bedroom
movement: up movement: up
- type: icon - type: icon
icon: 'mdi:arrow-down' icon: "mdi:arrow-down"
style: style:
background: 'rgba(255, 255, 255, 0.5)' background: "rgba(255, 255, 255, 0.5)"
right: 25px right: 25px
bottom: 0px bottom: 0px
tap_action: tap_action:
@ -85,9 +85,9 @@ elements:
entity_id: camera.bedroom entity_id: camera.bedroom
movement: down movement: down
- type: icon - type: icon
icon: 'mdi:arrow-left' icon: "mdi:arrow-left"
style: style:
background: 'rgba(255, 255, 255, 0.5)' background: "rgba(255, 255, 255, 0.5)"
right: 50px right: 50px
bottom: 25px bottom: 25px
tap_action: tap_action:
@ -97,9 +97,9 @@ elements:
entity_id: camera.bedroom entity_id: camera.bedroom
movement: left movement: left
- type: icon - type: icon
icon: 'mdi:arrow-right' icon: "mdi:arrow-right"
style: style:
background: 'rgba(255, 255, 255, 0.5)' background: "rgba(255, 255, 255, 0.5)"
right: 0px right: 0px
bottom: 25px bottom: 25px
tap_action: tap_action:
@ -109,9 +109,9 @@ elements:
entity_id: camera.bedroom entity_id: camera.bedroom
movement: right movement: right
- type: icon - type: icon
icon: 'mdi:arrow-top-left' icon: "mdi:arrow-top-left"
style: style:
background: 'rgba(255, 255, 255, 0.5)' background: "rgba(255, 255, 255, 0.5)"
right: 50px right: 50px
bottom: 50px bottom: 50px
tap_action: tap_action:
@ -121,9 +121,9 @@ elements:
entity_id: camera.bedroom entity_id: camera.bedroom
movement: top_left movement: top_left
- type: icon - type: icon
icon: 'mdi:arrow-top-right' icon: "mdi:arrow-top-right"
style: style:
background: 'rgba(255, 255, 255, 0.5)' background: "rgba(255, 255, 255, 0.5)"
right: 0px right: 0px
bottom: 50px bottom: 50px
tap_action: tap_action:
@ -133,9 +133,9 @@ elements:
entity_id: camera.bedroom entity_id: camera.bedroom
movement: top_right movement: top_right
- type: icon - type: icon
icon: 'mdi:arrow-bottom-left' icon: "mdi:arrow-bottom-left"
style: style:
background: 'rgba(255, 255, 255, 0.5)' background: "rgba(255, 255, 255, 0.5)"
right: 50px right: 50px
bottom: 0px bottom: 0px
tap_action: tap_action:
@ -145,9 +145,9 @@ elements:
entity_id: camera.bedroom entity_id: camera.bedroom
movement: bottom_left movement: bottom_left
- type: icon - type: icon
icon: 'mdi:arrow-bottom-right' icon: "mdi:arrow-bottom-right"
style: style:
background: 'rgba(255, 255, 255, 0.5)' background: "rgba(255, 255, 255, 0.5)"
right: 0px right: 0px
bottom: 0px bottom: 0px
tap_action: tap_action:

View File

@ -67,8 +67,8 @@ alias: "Bathroom Motion Detected"
trigger: trigger:
platform: state platform: state
entity_id: binary_sensor.motion_sensor_166d0001171111 entity_id: binary_sensor.motion_sensor_166d0001171111
from: 'off' from: "off"
to: 'on' to: "on"
action: action:
service: media_player.turn_on service: media_player.turn_on
data: data:

View File

@ -83,15 +83,15 @@ sensor:
- platform: template - platform: template
sensors: sensors:
garage_door_status: garage_door_status:
friendly_name: 'State of the door' friendly_name: "State of the door"
value_template: "{{ states('cover.garage_door') }}" value_template: "{{ states('cover.garage_door') }}"
garage_door_time_in_state: garage_door_time_in_state:
friendly_name: 'Since' friendly_name: "Since"
value_template: "{{ state_attr('cover.garage_door', 'time_in_state') }}" value_template: "{{ state_attr('cover.garage_door', 'time_in_state') }}"
garage_door_wifi_signal_strength: garage_door_wifi_signal_strength:
friendly_name: 'WiFi strength' friendly_name: "WiFi strength"
value_template: "{{ state_attr('cover.garage_door', 'wifi_signal_strength') }}" value_template: "{{ state_attr('cover.garage_door', 'wifi_signal_strength') }}"
unit_of_measurement: 'dB' unit_of_measurement: "dB"
group: group:
garage_door: garage_door:

View File

@ -89,7 +89,7 @@ camera:
- platform: generic - platform: generic
name: Weather name: Weather
still_image_url: https://www.yr.no/place/Norway/Oslo/Oslo/Oslo/meteogram.svg still_image_url: https://www.yr.no/place/Norway/Oslo/Oslo/Oslo/meteogram.svg
content_type: 'image/svg+xml' content_type: "image/svg+xml"
``` ```
### Local image ### Local image

View File

@ -70,5 +70,5 @@ geo_location:
- platform: geo_json_events - platform: geo_json_events
url: https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/all_day.geojson url: https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/all_day.geojson
radius: 250 radius: 250
entity_namespace: 'usgs_earthquakes' entity_namespace: "usgs_earthquakes"
``` ```

View File

@ -34,7 +34,7 @@ sensor:
- platform: geo_rss_events - platform: geo_rss_events
name: NSW Fire Service name: NSW Fire Service
url: https://www.rfs.nsw.gov.au/feeds/majorIncidents.xml url: https://www.rfs.nsw.gov.au/feeds/majorIncidents.xml
unit_of_measurement: 'Incidents' unit_of_measurement: "Incidents"
categories: categories:
- 'Emergency Warning' - 'Emergency Warning'
- 'Watch and Act' - 'Watch and Act'
@ -87,11 +87,11 @@ sensor:
- platform: geo_rss_events - platform: geo_rss_events
name: Qld Fire and Emergency Services name: Qld Fire and Emergency Services
url: https://www.qfes.qld.gov.au/data/alerts/bushfireAlert.xml url: https://www.qfes.qld.gov.au/data/alerts/bushfireAlert.xml
unit_of_measurement: 'Alerts' unit_of_measurement: "Alerts"
- platform: geo_rss_events - platform: geo_rss_events
name: Tas Fire Service name: Tas Fire Service
url: http://www.fire.tas.gov.au/Show?pageId=colBushfireSummariesRss url: http://www.fire.tas.gov.au/Show?pageId=colBushfireSummariesRss
unit_of_measurement: 'Alerts' unit_of_measurement: "Alerts"
- platform: geo_rss_events - platform: geo_rss_events
name: WA Department of Fire and Emergency Services name: WA Department of Fire and Emergency Services
url: https://www.emergency.wa.gov.au/data/incident_FCAD.rss url: https://www.emergency.wa.gov.au/data/incident_FCAD.rss

View File

@ -39,5 +39,5 @@ A full configuration sample including optional variables:
# Example configuration.yaml entry # Example configuration.yaml entry
tts: tts:
- platform: google_translate - platform: google_translate
language: 'de' language: "de"
``` ```

View File

@ -142,11 +142,11 @@ You can also use the `homeassistant.update_entity` service to update the sensor
initial_state: "on" initial_state: "on"
trigger: trigger:
- platform: time_pattern - platform: time_pattern
minutes: '/2' minutes: "/2"
condition: condition:
- condition: time - condition: time
after: '08:00:00' after: "08:00:00"
before: '11:00:00' before: "11:00:00"
- condition: time - condition: time
weekday: weekday:
- mon - mon

View File

@ -50,7 +50,7 @@ The current price for the Load Zone will appear as a sensor:
```yaml ```yaml
- id: '1572630019168' - id: '1572630019168'
alias: Stop Tesla Charging if Power Price Spikes alias: Stop Tesla Charging if Power Price Spikes
description: '' description: ""
trigger: trigger:
- above: '30' - above: '30'
entity_id: sensor.lz_houston_price_now entity_id: sensor.lz_houston_price_now

View File

@ -54,12 +54,12 @@ name:
# Example configuration.yaml entry # Example configuration.yaml entry
sensor: sensor:
- platform: growatt_server - platform: growatt_server
name: 'growatt home' name: "growatt home"
plant_id: 12345678 plant_id: 12345678
username: username username: username
password: password password: password
- platform: growatt_server - platform: growatt_server
name: 'growatt work' name: "growatt work"
plant_id: 87654321 plant_id: 87654321
username: username username: username
password: password password: password

View File

@ -238,7 +238,7 @@ sensor:
- platform: rest - platform: rest
resource: https://api.ipify.org/?format=json resource: https://api.ipify.org/?format=json
name: External IP name: External IP
value_template: '{{ value_json.ip }}' value_template: "{{ value_json.ip }}"
scan_interval: 10 scan_interval: 10
automation: automation:
@ -248,7 +248,7 @@ automation:
platform: state platform: state
condition: condition:
- condition: template - condition: template
value_template: '{{ trigger.from_state.state != trigger.to_state.state }}' value_template: "{{ trigger.from_state.state != trigger.to_state.state }}"
- condition: template - condition: template
value_template: '{{ not is_state("sensor.external_ip", "unavailable") }}' value_template: '{{ not is_state("sensor.external_ip", "unavailable") }}'
action: action:

View File

@ -180,10 +180,10 @@ sensor:
sensors: sensors:
family_room: family_room:
value_template: '{{ state_attr("remote.family_room", "current_activity") }}' value_template: '{{ state_attr("remote.family_room", "current_activity") }}'
friendly_name: 'Family Room' friendly_name: "Family Room"
bedroom: bedroom:
value_template: '{{ state_attr("remote.bedroom", "current_activity") }}' value_template: '{{ state_attr("remote.bedroom", "current_activity") }}'
friendly_name: 'bedroom' friendly_name: "bedroom"
``` ```
{% endraw %} {% endraw %}

View File

@ -160,11 +160,11 @@ automation:
initial_state: "on" initial_state: "on"
trigger: trigger:
- platform: time_pattern - platform: time_pattern
minutes: '/2' minutes: "/2"
condition: condition:
- condition: time - condition: time
after: '08:00:00' after: "08:00:00"
before: '11:00:00' before: "11:00:00"
- condition: time - condition: time
weekday: weekday:
- mon - mon

View File

@ -34,8 +34,8 @@ sensor:
entity_id: light.my_lamp entity_id: light.my_lamp
state: "on" state: "on"
type: time type: time
start: '{{ now().replace(hour=0, minute=0, second=0) }}' start: "{{ now().replace(hour=0, minute=0, second=0) }}"
end: '{{ now() }}' end: "{{ now() }}"
``` ```
{% endraw %} {% endraw %}
@ -135,8 +135,8 @@ Here are some examples of periods you could work with, and what to write in your
{% raw %} {% raw %}
```yaml ```yaml
start: '{{ now().replace(hour=0, minute=0, second=0) }}' start: "{{ now().replace(hour=0, minute=0, second=0) }}"
end: '{{ now() }}' end: "{{ now() }}"
``` ```
{% endraw %} {% endraw %}
@ -146,7 +146,7 @@ Here are some examples of periods you could work with, and what to write in your
{% raw %} {% raw %}
```yaml ```yaml
end: '{{ now().replace(hour=0, minute=0, second=0) }}' end: "{{ now().replace(hour=0, minute=0, second=0) }}"
duration: duration:
hours: 24 hours: 24
``` ```
@ -158,7 +158,7 @@ Here are some examples of periods you could work with, and what to write in your
{% raw %} {% raw %}
```yaml ```yaml
start: '{{ now().replace(hour=6, minute=0, second=0) }}' start: "{{ now().replace(hour=6, minute=0, second=0) }}"
duration: duration:
hours: 5 hours: 5
``` ```
@ -172,8 +172,8 @@ Here, last Monday is _today_ as a timestamp, minus 86400 times the current weekd
{% raw %} {% raw %}
```yaml ```yaml
start: '{{ as_timestamp( now().replace(hour=0, minute=0, second=0) ) - now().weekday() * 86400 }}' start: "{{ as_timestamp( now().replace(hour=0, minute=0, second=0) ) - now().weekday() * 86400 }}"
end: '{{ now() }}' end: "{{ now() }}"
``` ```
{% endraw %} {% endraw %}
@ -183,7 +183,7 @@ Here, last Monday is _today_ as a timestamp, minus 86400 times the current weekd
{% raw %} {% raw %}
```yaml ```yaml
end: '{{ now().replace(hour=0, minute=0, second=0) }}' end: "{{ now().replace(hour=0, minute=0, second=0) }}"
duration: duration:
days: 30 days: 30
``` ```
@ -195,8 +195,8 @@ Here, last Monday is _today_ as a timestamp, minus 86400 times the current weekd
{% raw %} {% raw %}
```yaml ```yaml
start: '{{ 0 }}' start: "{{ 0 }}"
end: '{{ now() }}' end: "{{ now() }}"
``` ```
{% endraw %} {% endraw %}

View File

@ -212,7 +212,7 @@ sensor:
bedroom_valve: bedroom_valve:
value_template: "{% raw %}{{ state_attr('climate.leq123456', 'level') }}{% endraw %}" value_template: "{% raw %}{{ state_attr('climate.leq123456', 'level') }}{% endraw %}"
entity_id: climate.leq123456 entity_id: climate.leq123456
friendly_name: 'Bedroom valve' friendly_name: "Bedroom valve"
``` ```
### Variables ### Variables

View File

@ -102,11 +102,11 @@ sensor:
monitored_variables: monitored_variables:
- name: CPU fanspeed - name: CPU fanspeed
sensor_type: server_health sensor_type: server_health
unit_of_measurement: '%' unit_of_measurement: "%"
value_template: '{% raw %}{{ ilo_data.fans["Fan 1"].speed[0] }}{% endraw %}' value_template: '{% raw %}{{ ilo_data.fans["Fan 1"].speed[0] }}{% endraw %}'
- name: Inlet temperature - name: Inlet temperature
sensor_type: server_health sensor_type: server_health
unit_of_measurement: '°C' unit_of_measurement: "°C"
value_template: '{% raw %}{{ ilo_data.temperature["01-Inlet Ambient"].currentreading[0] }}{% endraw %}' value_template: '{% raw %}{{ ilo_data.temperature["01-Inlet Ambient"].currentreading[0] }}{% endraw %}'
- name: Server Health - name: Server Health
sensor_type: server_health sensor_type: server_health

View File

@ -179,7 +179,7 @@ Example of adding a tag to your notification. This won't create new notification
message: "Last known sensor state is {{ states('sensor.sensor') }}." message: "Last known sensor state is {{ states('sensor.sensor') }}."
data: data:
data: data:
tag: 'notification-about-sensor' tag: "notification-about-sensor"
``` ```
{% endraw %} {% endraw %}

View File

@ -125,7 +125,7 @@ If you want to apply additional IP filtering, and automatically ban brute force
```yaml ```yaml
127.0.0.1: 127.0.0.1:
banned_at: '2016-11-16T19:20:03' banned_at: "2016-11-16T19:20:03"
``` ```
After a ban is added a Persistent Notification is populated to the Home Assistant frontend. After a ban is added a Persistent Notification is populated to the Home Assistant frontend.

View File

@ -46,7 +46,7 @@ automation:
- service: humidifier.set_mode - service: humidifier.set_mode
data: data:
entity_id: humidifier.bedroom entity_id: humidifier.bedroom
preset_mode: 'eco' preset_mode: "eco"
``` ```
### Service `humidifier.set_humidity` ### Service `humidifier.set_humidity`

View File

@ -93,7 +93,7 @@ automation:
trigger: trigger:
- platform: state - platform: state
entity_id: light.hyperion entity_id: light.hyperion
to: 'on' to: "on"
action: action:
- service: light.turn_on - service: light.turn_on
data: data:
@ -108,13 +108,13 @@ To have the lights playing an effect when pausing, idle or turn off a media play
trigger: trigger:
- platform: state - platform: state
entity_id: media_player.plex entity_id: media_player.plex
to: 'off' to: "off"
- platform: state - platform: state
entity_id: media_player.plex.plex entity_id: media_player.plex.plex
to: 'paused' to: "paused"
- platform: state - platform: state
entity_id: media_player.plex.plex entity_id: media_player.plex.plex
to: 'idle' to: "idle"
action: action:
- service: light.turn_on - service: light.turn_on
data: data:
@ -129,7 +129,7 @@ To capture the screen when playing something on a media_player you can use this
trigger: trigger:
- platform: state - platform: state
entity_id: media_player.plex entity_id: media_player.plex
to: 'playing' to: "playing"
action: action:
- service: light.turn_on - service: light.turn_on
data: data:

View File

@ -154,7 +154,7 @@ automation:
action: action:
service: script.ifttt_notify service: script.ifttt_notify
data: data:
value1: 'HA Status:' value1: "HA Status:"
value2: "{{ trigger.event.data.entity_id.split('_')[1] }} is " value2: "{{ trigger.event.data.entity_id.split('_')[1] }} is "
value3: "{{ trigger.event.data.to_state.state }}" value3: "{{ trigger.event.data.to_state.state }}"
``` ```

View File

@ -167,7 +167,7 @@ ihc:
sensor: sensor:
- id: 12345 - id: 12345
name: Temperatur_living_room name: Temperatur_living_room
unit_of_measurement: '°C' unit_of_measurement: "°C"
note: Floor and wall temp. note: Floor and wall temp.
position: On wall between windows position: On wall between windows
- id: 23456 - id: 23456

View File

@ -46,7 +46,7 @@ automation:
event_type: image_processing.detect_face event_type: image_processing.detect_face
event_data: event_data:
entity_id: image_processing.door entity_id: image_processing.door
name: 'Hans Maier' name: "Hans Maier"
... ...
``` ```
@ -67,7 +67,7 @@ automation:
trigger: trigger:
- platform: state - platform: state
entity_id: sensor.door_motion_sensor entity_id: sensor.door_motion_sensor
to: 'on' to: "on"
action: action:
- service: image_processing.scan - service: image_processing.scan
data: data:

View File

@ -520,7 +520,7 @@ username: home-assistant
field: value field: value
database: db1 database: db1
- name: Min for last hour - name: Min for last hour
unit_of_measurement: '%' unit_of_measurement: "%"
value_template: '{% raw %}{{ value | round(1) }}{% endraw %}' value_template: '{% raw %}{{ value | round(1) }}{% endraw %}'
group_function: min group_function: min
where: '"entity_id" = ''salon'' and time > now() - 1h' where: '"entity_id" = ''salon'' and time > now() - 1h'

View File

@ -75,7 +75,7 @@ automation:
trigger: trigger:
platform: state platform: state
entity_id: binary_sensor.motion_garage entity_id: binary_sensor.motion_garage
to: 'on' to: "on"
condition: condition:
condition: state condition: state
entity_id: input_boolean.notify_home entity_id: input_boolean.notify_home

View File

@ -136,7 +136,7 @@ If you have a `datetime` object you can use its `timestamp` method. Of if you ha
target: target:
entity_id: input_datetime.XXX entity_id: input_datetime.XXX
data: data:
time: '05:30:00' time: "05:30:00"
# Sets time to time from datetime object # Sets time to time from datetime object
- service: input_datetime.set_datetime - service: input_datetime.set_datetime
target: target:
@ -148,7 +148,7 @@ If you have a `datetime` object you can use its `timestamp` method. Of if you ha
target: target:
entity_id: input_datetime.XXX entity_id: input_datetime.XXX
data: data:
date: '2020-08-24' date: "2020-08-24"
# Sets date to date from datetime object # Sets date to date from datetime object
- service: input_datetime.set_datetime - service: input_datetime.set_datetime
target: target:
@ -160,7 +160,7 @@ If you have a `datetime` object you can use its `timestamp` method. Of if you ha
target: target:
entity_id: input_datetime.XXX entity_id: input_datetime.XXX
data: data:
datetime: '2020-08-25 05:30:00' datetime: "2020-08-25 05:30:00"
# Sets date and time from datetime object # Sets date and time from datetime object
- service: input_datetime.set_datetime - service: input_datetime.set_datetime
target: target:

View File

@ -154,7 +154,7 @@ input_select:
- Reading - Reading
- Relax - Relax
- 'OFF' - 'OFF'
initial: 'Select' initial: "Select"
input_number: input_number:
bedroom_brightness: bedroom_brightness:
name: Brightness name: Brightness
@ -198,7 +198,7 @@ automation:
- alias: Set temp slider - alias: Set temp slider
trigger: trigger:
platform: mqtt platform: mqtt
topic: 'setTemperature' topic: "setTemperature"
action: action:
service: input_number.set_value service: input_number.set_value
data: data:
@ -214,7 +214,7 @@ automation:
action: action:
service: mqtt.publish service: mqtt.publish
data: data:
topic: 'setTemperature' topic: "setTemperature"
retain: true retain: true
payload: "{{ states('input_number.target_temp') | int }}" payload: "{{ states('input_number.target_temp') | int }}"
``` ```
@ -249,7 +249,7 @@ automation:
trigger: trigger:
platform: state platform: state
entity_id: switch.something entity_id: switch.something
to: 'on' to: "on"
action: action:
- delay: "00:{{ states('input_number.minutes') | int }}:{{ states('input_number.seconds') | int }}" - delay: "00:{{ states('input_number.minutes') | int }}:{{ states('input_number.seconds') | int }}"
- service: switch.turn_off - service: switch.turn_off

View File

@ -32,7 +32,7 @@ input_text:
max: 40 max: 40
text3: text3:
name: Text 3 name: Text 3
pattern: '[a-fA-F0-9]*' pattern: "[a-fA-F0-9]*"
text4: text4:
name: Text 4 name: Text 4
mode: password mode: password
@ -121,7 +121,7 @@ input_select:
- Reading - Reading
- Relax - Relax
- 'OFF' - 'OFF'
initial: 'Select' initial: "Select"
input_text: input_text:
bedroom: bedroom:
name: Brightness name: Brightness

View File

@ -33,7 +33,7 @@ islamic_prayer_times:
{% configuration %} {% configuration %}
calculation_method: calculation_method:
required: false required: false
default: 'isna' default: "isna"
type: string type: string
description: "The calculation method used for prayer times. Must be one of: `karachi`, `isna`, `mwl`, `makkah`." description: "The calculation method used for prayer times. Must be one of: `karachi`, `isna`, `mwl`, `makkah`."
{% endconfiguration %} {% endconfiguration %}

View File

@ -113,7 +113,7 @@ automation:
event_type: isy994_control event_type: isy994_control
event_data: event_data:
entity_id: light.lr_track_lights_front entity_id: light.lr_track_lights_front
control: 'DFON' control: "DFON"
value: 255 value: 255
formatted: "On" formatted: "On"
uom: "100" uom: "100"

View File

@ -19,7 +19,7 @@ The `evdev` package is used to interface with the keyboard and thus this is Linu
```yaml ```yaml
# Example configuration.yaml entry # Example configuration.yaml entry
keyboard_remote: keyboard_remote:
type: 'key_up' type: "key_up"
``` ```
{% configuration %} {% configuration %}
@ -62,7 +62,7 @@ A full configuration for two Keyboard Remotes could look like the one below:
```yaml ```yaml
keyboard_remote: keyboard_remote:
- device_descriptor: '/dev/input/by-id/bluetooth-keyboard' - device_descriptor: '/dev/input/by-id/bluetooth-keyboard'
type: 'key_down' type: "key_down"
emulate_key_hold: true emulate_key_hold: true
emulate_key_hold_delay: 250 emulate_key_hold_delay: 250
emulate_key_hold_repeat: 33 emulate_key_hold_repeat: 33
@ -76,8 +76,8 @@ Or like the following for one keyboard:
```yaml ```yaml
keyboard_remote: keyboard_remote:
device_name: 'Bluetooth Keyboard' device_name: "Bluetooth Keyboard"
type: 'key_down' type: "key_down"
``` ```
And an automation rule to breathe life into it: And an automation rule to breathe life into it:

View File

@ -56,7 +56,7 @@ automation:
trigger: trigger:
- platform: state - platform: state
entity_id: binary_sensor.motion_1 entity_id: binary_sensor.motion_1
to: 'on' to: "on"
action: action:
- service: light.turn_on - service: light.turn_on
data: data:

View File

@ -195,7 +195,7 @@ lock:
optimistic: false optimistic: false
qos: 1 qos: 1
retain: true retain: true
value_template: '{{ value.x }}' value_template: "{{ value.x }}"
``` ```
{% endraw %} {% endraw %}

View File

@ -63,12 +63,12 @@ To explore the data available within the `data` attribute of a sensor use the `d
- platform: template - platform: template
sensors: sensors:
updated: updated:
friendly_name: 'Updated' friendly_name: "Updated"
value_template: {% raw %}'{{state_attr('sensor.merton', 'updated')}}'{% endraw %} value_template: {% raw %}'{{state_attr('sensor.merton', 'updated')}}'{% endraw %}
merton_pm10: merton_pm10:
friendly_name: 'Merton PM10' friendly_name: "Merton PM10"
value_template: {% raw %}'{{state_attr('sensor.merton', 'data')[0].pollutants[0].summary}}'{% endraw %} value_template: {% raw %}'{{state_attr('sensor.merton', 'data')[0].pollutants[0].summary}}'{% endraw %}
westminster_s02: westminster_s02:
friendly_name: 'Westminster S02' friendly_name: "Westminster S02"
value_template: {% raw %}'{{state_attr('sensor.westminster', 'data')[0].pollutants[3].summary}}'{% endraw %} value_template: {% raw %}'{{state_attr('sensor.westminster', 'data')[0].pollutants[3].summary}}'{% endraw %}
``` ```

View File

@ -47,11 +47,11 @@ Now you have the keys, add the following lines to your `configuration.yaml`, rep
sensor: sensor:
- platform: loopenergy - platform: loopenergy
electricity: electricity:
electricity_serial: 'ELECTRICAL_SERIAL' electricity_serial: "ELECTRICAL_SERIAL"
electricity_secret: 'ELECTRICAL_SECRET' electricity_secret: "ELECTRICAL_SECRET"
gas: gas:
gas_serial: 'GAS_SERIAL' gas_serial: "GAS_SERIAL"
gas_secret: 'GAS_SECRET' gas_secret: "GAS_SECRET"
``` ```
{% configuration %} {% configuration %}

View File

@ -134,7 +134,7 @@ In the configuration example below:
alarm_control_panel: alarm_control_panel:
- platform: manual - platform: manual
name: Home Alarm name: Home Alarm
code: '1234' code: "1234"
arming_time: 30 arming_time: 30
delay_time: 20 delay_time: 20
trigger_time: 4 trigger_time: 4
@ -157,16 +157,16 @@ automation:
trigger: trigger:
- platform: state - platform: state
entity_id: sensor.pir1 entity_id: sensor.pir1
to: 'active' to: "active"
- platform: state - platform: state
entity_id: sensor.pir2 entity_id: sensor.pir2
to: 'active' to: "active"
- platform: state - platform: state
entity_id: sensor.door entity_id: sensor.door
to: 'open' to: "open"
- platform: state - platform: state
entity_id: sensor.window entity_id: sensor.window
to: 'open' to: "open"
condition: condition:
- condition: state - condition: state
entity_id: alarm_control_panel.ha_alarm entity_id: alarm_control_panel.ha_alarm
@ -184,7 +184,7 @@ automation:
trigger: trigger:
- platform: state - platform: state
entity_id: alarm_control_panel.ha_alarm entity_id: alarm_control_panel.ha_alarm
to: 'triggered' to: "triggered"
action: action:
- service: notify.notify - service: notify.notify
data: data:
@ -199,7 +199,7 @@ automation:
trigger: trigger:
- platform: state - platform: state
entity_id: sensor.front_door_lock_alarm_type entity_id: sensor.front_door_lock_alarm_type
to: '19' to: "19"
# many z-wave locks use Alarm Type 19 for 'Unlocked by Keypad' # many z-wave locks use Alarm Type 19 for 'Unlocked by Keypad'
action: action:
- service: alarm_control_panel.alarm_disarm - service: alarm_control_panel.alarm_disarm
@ -215,7 +215,7 @@ Sending a Notification when the Alarm is Armed (Away/Home), Disarmed and in Pend
trigger: trigger:
- platform: state - platform: state
entity_id: alarm_control_panel.home_alarm entity_id: alarm_control_panel.home_alarm
to: 'disarmed' to: "disarmed"
action: action:
- service: notify.notify - service: notify.notify
data: data:
@ -227,7 +227,7 @@ Sending a Notification when the Alarm is Armed (Away/Home), Disarmed and in Pend
trigger: trigger:
- platform: state - platform: state
entity_id: alarm_control_panel.home_alarm entity_id: alarm_control_panel.home_alarm
to: 'pending' to: "pending"
action: action:
- service: notify.notify - service: notify.notify
data: data:
@ -239,7 +239,7 @@ Sending a Notification when the Alarm is Armed (Away/Home), Disarmed and in Pend
trigger: trigger:
- platform: state - platform: state
entity_id: alarm_control_panel.home_alarm entity_id: alarm_control_panel.home_alarm
to: 'armed_away' to: "armed_away"
action: action:
- service: notify.notify - service: notify.notify
data: data:
@ -251,7 +251,7 @@ Sending a Notification when the Alarm is Armed (Away/Home), Disarmed and in Pend
trigger: trigger:
- platform: state - platform: state
entity_id: alarm_control_panel.home_alarm entity_id: alarm_control_panel.home_alarm
to: 'armed_home' to: "armed_home"
action: action:
- service: notify.notify - service: notify.notify
data: data:

View File

@ -68,11 +68,11 @@ A full configuration sample including optional variables:
# Example configuration.yaml entry # Example configuration.yaml entry
tts: tts:
- platform: marytts - platform: marytts
host: 'localhost' host: "localhost"
port: 59125 port: 59125
codec: 'WAVE_FILE' codec: "WAVE_FILE"
voice: 'cmu-slt-hsmm' voice: "cmu-slt-hsmm"
language: 'en_US' language: "en_US"
effect: effect:
Volume: "amount:2.0;", Volume: "amount:2.0;",
TractScaler: "amount:1.5;", TractScaler: "amount:1.5;",

View File

@ -124,7 +124,7 @@ automation:
action: action:
service: notify.matrix_notify service: notify.matrix_notify
data: data:
message: 'It looks like you wrote !testword' message: "It looks like you wrote !testword"
- alias: 'React to an introduction' - alias: 'React to an introduction'
trigger: trigger:
platform: event platform: event

View File

@ -261,10 +261,10 @@ sensor:
- platform: template - platform: template
sensors: sensors:
date: date:
friendly_name: 'Date' friendly_name: "Date"
value_template: '{{ states.sensor.json_time.attributes["date"] }}' value_template: "{{ states.sensor.json_time.attributes["date"] }}"
milliseconds: milliseconds:
friendly_name: 'milliseconds' friendly_name: "milliseconds"
value_template: '{{ states.sensor.json_time.attributes["milliseconds_since_epoch"] }}' value_template: '{{ states.sensor.json_time.attributes["milliseconds_since_epoch"] }}'
``` ```
@ -310,17 +310,17 @@ sensor:
entity_picture_template: '{{ "https://openweathermap.org/img/w/"+state_attr('sensor.owm_report', 'weather')[0]["icon"].lower()+".png" }}' entity_picture_template: '{{ "https://openweathermap.org/img/w/"+state_attr('sensor.owm_report', 'weather')[0]["icon"].lower()+".png" }}'
entity_id: sensor.owm_report entity_id: sensor.owm_report
owm_temp: owm_temp:
friendly_name: 'Outside temp' friendly_name: "Outside temp"
value_template: '{{ state_attr('sensor.owm_report', 'main')["temp"]-273.15 }}' value_template: '{{ state_attr('sensor.owm_report', 'main')["temp"]-273.15 }}'
unit_of_measurement: "°C" unit_of_measurement: "°C"
entity_id: sensor.owm_report entity_id: sensor.owm_report
owm_pressure: owm_pressure:
friendly_name: 'Outside pressure' friendly_name: "Outside pressure"
value_template: '{{ state_attr('sensor.owm_report', 'main')["pressure"] }}' value_template: '{{ state_attr('sensor.owm_report', 'main')["pressure"] }}'
unit_of_measurement: "hP" unit_of_measurement: "hP"
entity_id: sensor.owm_report entity_id: sensor.owm_report
owm_humidity: owm_humidity:
friendly_name: 'Outside humidity' friendly_name: "Outside humidity"
value_template: '{{ state_attr('sensor.owm_report', 'main')["humidity"] }}' value_template: '{{ state_attr('sensor.owm_report', 'main')["humidity"] }}'
unit_of_measurement: "%" unit_of_measurement: "%"
entity_id: sensor.owm_report entity_id: sensor.owm_report
@ -368,25 +368,25 @@ sensor:
- bedroom1 - bedroom1
- bedroom2 - bedroom2
- bedroom3 - bedroom3
value_template: 'OK' value_template: "OK"
- platform: template - platform: template
sensors: sensors:
bedroom1_temperature: bedroom1_temperature:
value_template: '{{ states.sensor.room_sensors.attributes["bedroom1"]["temperature"] }}' value_template: '{{ states.sensor.room_sensors.attributes["bedroom1"]["temperature"] }}'
device_class: temperature device_class: temperature
unit_of_measurement: '°C' unit_of_measurement: "°C"
bedroom1_humidity: bedroom1_humidity:
value_template: '{{ states.sensor.room_sensors.attributes["bedroom1"]["humidity"] }}' value_template: '{{ states.sensor.room_sensors.attributes["bedroom1"]["humidity"] }}'
device_class: humidity device_class: humidity
unit_of_measurement: '%' unit_of_measurement: "%"
bedroom1_battery: bedroom1_battery:
value_template: '{{ states.sensor.room_sensors.attributes["bedroom1"]["battery"] }}' value_template: '{{ states.sensor.room_sensors.attributes["bedroom1"]["battery"] }}'
device_class: battery device_class: battery
unit_of_measurement: 'V' unit_of_measurement: "V"
bedroom2_temperature: bedroom2_temperature:
value_template: '{{ states.sensor.room_sensors.attributes["bedroom2"]["temperature"] }}' value_template: '{{ states.sensor.room_sensors.attributes["bedroom2"]["temperature"] }}'
device_class: temperature device_class: temperature
unit_of_measurement: '°C' unit_of_measurement: "°C"
``` ```
{% endraw %} {% endraw %}
@ -405,7 +405,7 @@ sensor:
resource: http://192.168.1.105/status.xml resource: http://192.168.1.105/status.xml
json_attributes_path: "$.response" json_attributes_path: "$.response"
scan_interval: 15 scan_interval: 15
value_template: 'OK' value_template: "OK"
json_attributes: json_attributes:
- "usr0" - "usr0"
- "pot0" - "pot0"

View File

@ -240,7 +240,7 @@ type_string: 'ARC'
id_string': 'C3' id_string': 'C3'
data: '0710010143030170' data: '0710010143030170'
values': values':
Command: 'On' Command: "On"
Rssi numeric': 7 Rssi numeric': 7
``` ```

View File

@ -62,11 +62,11 @@ Then you can use the following automation, with the entities from your system, w
```yaml ```yaml
automation: automation:
alias: 'Save the video when the doorbell is pushed' alias: "Save the video when the doorbell is pushed"
trigger: trigger:
- platform: state - platform: state
entity_id: binary_sensor.front_doorbell_ding entity_id: binary_sensor.front_doorbell_ding
to: 'on' to: "on"
action: action:
- service: downloader.download_file - service: downloader.download_file
data: data:

View File

@ -16,7 +16,7 @@ To add the Ripple sensor to your installation, specify a ripple address to watch
# Example configuration.yaml entry # Example configuration.yaml entry
sensor: sensor:
- platform: ripple - platform: ripple
address: 'r3kmLJN5D28dHuH8vZNUZpMC43pEHpaocV' address: "r3kmLJN5D28dHuH8vZNUZpMC43pEHpaocV"
``` ```
{% configuration %} {% configuration %}

View File

@ -101,13 +101,13 @@ sensor:
- 'Bus' - 'Bus'
- 'S' - 'S'
- station: 3006907 - station: 3006907
products: 'Bus' products: "Bus"
destinations: ['Wiesbaden Dernsches Gelände', 'Mainz Hauptbahnhof'] destinations: ['Wiesbaden Dernsches Gelände', 'Mainz Hauptbahnhof']
name: Destination name: Destination
- station: 3006904 - station: 3006904
lines: 'S8' lines: "S8"
max_journeys: 5 max_journeys: 5
products: 'S' products: "S"
``` ```
The first sensor will return S-Bahn, bus, RB and RE trains departures from Frankfurt Hauptbahnhof to Frankfurt Airport or Stadium that are at least 5 minutes away. The first sensor will return S-Bahn, bus, RB and RE trains departures from Frankfurt Hauptbahnhof to Frankfurt Airport or Stadium that are at least 5 minutes away.

View File

@ -84,10 +84,10 @@ To have your Home Assistant installation remind you of upcoming waste collection
# Example configuration.yaml entry for Rova waste collection reminder # Example configuration.yaml entry for Rova waste collection reminder
automation: automation:
- id: rova-garbage-bio-reminder - id: rova-garbage-bio-reminder
alias: 'Send Rova Bio waste collection reminder' alias: "Send Rova Bio waste collection reminder"
trigger: trigger:
- platform: time - platform: time
at: '19:00:00' at: "19:00:00"
condition: condition:
- condition: template - condition: template
value_template: "{% if (as_timestamp(states('sensor.rova_garbage_gft')) - as_timestamp(now())) < 43200 %}true{% endif %}" value_template: "{% if (as_timestamp(states('sensor.rova_garbage_gft')) - as_timestamp(now())) < 43200 %}true{% endif %}"
@ -96,7 +96,7 @@ automation:
action: action:
- service: NOTIFICATION_SERVICE - service: NOTIFICATION_SERVICE
data: data:
message: 'Reminder: put out biowaste bin' message: "Reminder: put out biowaste bin"
``` ```
{% endraw %} {% endraw %}

View File

@ -133,14 +133,14 @@ cover:
- platform: rpi_gpio - platform: rpi_gpio
relay_time: 0.2 relay_time: 0.2
invert_relay: false invert_relay: false
state_pull_mode: 'UP' state_pull_mode: "UP"
invert_state: true invert_state: true
covers: covers:
- relay_pin: 10 - relay_pin: 10
state_pin: 11 state_pin: 11
- relay_pin: 12 - relay_pin: 12
state_pin: 13 state_pin: 13
name: 'Right door' name: "Right door"
``` ```
## Remote Raspberry Pi Cover ## Remote Raspberry Pi Cover

View File

@ -16,7 +16,7 @@ To enable this sensor, add the following lines to your `configuration.yaml`:
# Example configuration.yaml entry # Example configuration.yaml entry
sensor: sensor:
- platform: rtorrent - platform: rtorrent
url: 'http://<user>:<password>@<host>:<port>/RPC2' url: "http://<user>:<password>@<host>:<port>/RPC2"
monitored_variables: monitored_variables:
- 'current_status' - 'current_status'
- 'download_speed' - 'download_speed'

View File

@ -118,43 +118,43 @@ satel_integra:
port: 7094 port: 7094
partitions: partitions:
01: 01:
name: 'House' name: "House"
arm_home_mode: 2 arm_home_mode: 2
02: 02:
name: 'Garage' name: "Garage"
zones: zones:
01: 01:
name: 'Bedroom' name: "Bedroom"
type: 'motion' type: "motion"
02: 02:
name: 'Hall' name: "Hall"
type: 'motion' type: "motion"
30: 30:
name: 'Kitchen - smoke' name: "Kitchen - smoke"
type: 'smoke' type: "smoke"
113: 113:
name: 'Entry door' name: "Entry door"
type: 'opening' type: "opening"
outputs: outputs:
05: 05:
name: 'Garden lights trigger' name: "Garden lights trigger"
type: 'light' type: "light"
09: 09:
name: 'Gate opening trigger' name: "Gate opening trigger"
type: 'opening' type: "opening"
30: 30:
name: 'Alarm triggered' name: "Alarm triggered"
type: 'safety' type: "safety"
32: 32:
name: 'Alarm power problem' name: "Alarm power problem"
type: 'safety' type: "safety"
switchable_outputs: switchable_outputs:
05: 05:
name: 'Gate open' name: "Gate open"
06: 06:
name: 'Gate close' name: "Gate close"
14: 14:
name: 'Garden light' name: "Garden light"
``` ```
@ -165,8 +165,8 @@ For example:
alias: Flick the input switch when movement in bedroom detected alias: Flick the input switch when movement in bedroom detected
trigger: trigger:
platform: state platform: state
entity_id: 'binary_sensor.bedroom' entity_id: "binary_sensor.bedroom"
to: 'on' to: "on"
action: action:
service: input_boolean.turn_on service: input_boolean.turn_on
data: data:

View File

@ -164,8 +164,8 @@ The following example turns off some entities as soon as a window opens. The sta
trigger: trigger:
- platform: state - platform: state
entity_id: binary_sensor.window entity_id: binary_sensor.window
from: 'off' from: "off"
to: 'on' to: "on"
condition: [] condition: []
action: action:
- service: scene.create - service: scene.create
@ -180,13 +180,13 @@ The following example turns off some entities as soon as a window opens. The sta
- service: climate.set_hvac_mode - service: climate.set_hvac_mode
data: data:
entity_id: climate.ecobee entity_id: climate.ecobee
hvac_mode: 'off' hvac_mode: "off"
- alias: Window closed - alias: Window closed
trigger: trigger:
- platform: state - platform: state
entity_id: binary_sensor.window entity_id: binary_sensor.window
from: 'on' from: "on"
to: 'off' to: "off"
condition: [] condition: []
action: action:
- service: scene.turn_on - service: scene.turn_on

View File

@ -126,9 +126,9 @@ sensor:
- platform: scrape - platform: scrape
resource: http://www.bfs.de/DE/themen/opt/uv/uv-index/prognose/prognose_node.html resource: http://www.bfs.de/DE/themen/opt/uv/uv-index/prognose/prognose_node.html
name: Coast Ostsee name: Coast Ostsee
select: 'p' select: "p"
index: 19 index: 19
unit_of_measurement: 'UV Index' unit_of_measurement: "UV Index"
``` ```
### IFTTT status ### IFTTT status
@ -141,7 +141,7 @@ sensor:
- platform: scrape - platform: scrape
resource: https://status.ifttt.com/ resource: https://status.ifttt.com/
name: IFTTT status name: IFTTT status
select: '.component-status' select: ".component-status"
``` ```
### Get the latest podcast episode file URL ### Get the latest podcast episode file URL
@ -154,7 +154,7 @@ sensor:
- platform: scrape - platform: scrape
resource: https://hasspodcast.io/feed/podcast resource: https://hasspodcast.io/feed/podcast
name: Home Assistant Podcast name: Home Assistant Podcast
select: 'enclosure' select: "enclosure"
index: 1 index: 1
attribute: url attribute: url
``` ```
@ -191,7 +191,7 @@ sensor:
resource: http://www.bom.gov.au/vic/forecasts/melbourne.shtml resource: http://www.bom.gov.au/vic/forecasts/melbourne.shtml
name: Melbourne Forecast Summary name: Melbourne Forecast Summary
select: ".main .forecast p" select: ".main .forecast p"
value_template: '{{ value | truncate(255) }}' value_template: "{{ value | truncate(255) }}"
# Request every hour # Request every hour
scan_interval: 3600 scan_interval: 3600
headers: headers:

View File

@ -120,12 +120,12 @@ script: 
wakeup: wakeup:
alias: Wake Up alias: Wake Up
icon: "mdi:party-popper" icon: "mdi:party-popper"
description: 'Turns on the bedroom lights and then the living room lights after a delay' description: "Turns on the bedroom lights and then the living room lights after a delay"
variables: variables:
turn_on_entity: group.living_room turn_on_entity: group.living_room
fields: fields:
minutes: minutes:
description: 'The amount of time to wait before turning on the living room lights' description: "The amount of time to wait before turning on the living room lights"
example: 1 example: 1
# If called again while still running (probably in delay step), start over. # If called again while still running (probably in delay step), start over.
mode: restart mode: restart
@ -165,15 +165,15 @@ automation:
trigger: trigger:
platform: state platform: state
entity_id: light.bedroom entity_id: light.bedroom
from: 'off' from: "off"
to: 'on' to: "on"
action: action:
service: script.turn_on service: script.turn_on
entity_id: script.notify_pushover entity_id: script.notify_pushover
data: data:
variables: variables:
title: 'State change' title: "State change"
message: 'The light is on!' message: "The light is on!"
``` ```
The other way is calling the script as a service directly. In this case, all service data will be made available as variables. If we apply this approach on the script above, it would look like this: The other way is calling the script as a service directly. In this case, all service data will be made available as variables. If we apply this approach on the script above, it would look like this:
@ -184,13 +184,13 @@ automation:
trigger: trigger:
platform: state platform: state
entity_id: light.bedroom entity_id: light.bedroom
from: 'off' from: "off"
to: 'on' to: "on"
action: action:
service: script.notify_pushover service: script.notify_pushover
data: data:
title: 'State change' title: "State change"
message: 'The light is on!' message: "The light is on!"
``` ```
Using the variables in the script requires the use of templates: Using the variables in the script requires the use of templates:
@ -199,14 +199,14 @@ Using the variables in the script requires the use of templates:
# Example configuration.yaml entry # Example configuration.yaml entry
script: script:
notify_pushover: notify_pushover:
description: 'Send a pushover notification' description: "Send a pushover notification"
fields: fields:
title: title:
description: 'The title of the notification' description: "The title of the notification"
example: 'State change' example: "State change"
message: message:
description: 'The message content' description: "The message content"
example: 'The light is on!' example: "The light is on!"
sequence: sequence:
- condition: state - condition: state
entity_id: switch.pushover_notifications entity_id: switch.pushover_notifications

View File

@ -87,14 +87,14 @@ sensor:
- platform: template - platform: template
sensors: sensors:
sensehat_temperature: sensehat_temperature:
value_template: '{{ states('sensor.temperature') | round(1) }}' value_template: "{{ states('sensor.temperature') | round(1) }}"
unit_of_measurement: '°C' unit_of_measurement: "°C"
sensehat_pressure: sensehat_pressure:
value_template: '{{ states('sensor.pressure') | round(1) }}' value_template: "{{ states('sensor.pressure') | round(1) }}"
unit_of_measurement: 'mb' unit_of_measurement: "mb"
sensehat_humidity: sensehat_humidity:
value_template: '{{ states('sensor.humidity') | round(1) }}' value_template: "{{ states('sensor.humidity') | round(1) }}"
unit_of_measurement: '%' unit_of_measurement: "%"
``` ```
{% endraw %} {% endraw %}

View File

@ -158,7 +158,7 @@ Full configuration example (excluding forecasted conditions) where location is m
```yaml ```yaml
# Example configuration.yaml entry # Example configuration.yaml entry
- platform: buienradar - platform: buienradar
name: 'volkel' name: "volkel"
# Force 'Meetstation Volkel' to be used: # Force 'Meetstation Volkel' to be used:
latitude: 51.65 latitude: 51.65
longitude: 5.70 longitude: 5.70

View File

@ -74,7 +74,7 @@ sensor:
command: "cat /sys/class/thermal/thermal_zone0/temp" command: "cat /sys/class/thermal/thermal_zone0/temp"
# If errors occur, make sure configuration file is encoded as UTF-8 # If errors occur, make sure configuration file is encoded as UTF-8
unit_of_measurement: "°C" unit_of_measurement: "°C"
value_template: '{{ value | multiply(0.001) | round(1) }}' value_template: "{{ value | multiply(0.001) | round(1) }}"
``` ```
{% endraw %} {% endraw %}
@ -184,8 +184,8 @@ sensor:
json_attributes: json_attributes:
- date - date
- milliseconds_since_epoch - milliseconds_since_epoch
command: 'python3 /home/pi/.homeassistant/scripts/datetime.py' command: "python3 /home/pi/.homeassistant/scripts/datetime.py"
value_template: '{{ value_json.time }}' value_template: "{{ value_json.time }}"
``` ```
{% endraw %} {% endraw %}

View File

@ -165,7 +165,7 @@ sensor:
- platform: mqtt - platform: mqtt
name: "RSSI" name: "RSSI"
state_topic: "home/sensor1/infojson" state_topic: "home/sensor1/infojson"
unit_of_measurement: 'dBm' unit_of_measurement: "dBm"
value_template: "{{ value_json.RSSI }}" value_template: "{{ value_json.RSSI }}"
availability: availability:
- topic: "home/sensor1/status" - topic: "home/sensor1/status"
@ -219,7 +219,7 @@ sensor:
- platform: mqtt - platform: mqtt
name: "Battery Tablet" name: "Battery Tablet"
state_topic: "owntracks/tablet/tablet" state_topic: "owntracks/tablet/tablet"
unit_of_measurement: '%' unit_of_measurement: "%"
value_template: "{{ value_json.batt }}" value_template: "{{ value_json.batt }}"
``` ```
{% endraw %} {% endraw %}
@ -245,12 +245,12 @@ sensor:
- platform: mqtt - platform: mqtt
name: "Temperature" name: "Temperature"
state_topic: "office/sensor1" state_topic: "office/sensor1"
unit_of_measurement: '°C' unit_of_measurement: "°C"
value_template: "{{ value_json.temperature }}" value_template: "{{ value_json.temperature }}"
- platform: mqtt - platform: mqtt
name: "Humidity" name: "Humidity"
state_topic: "office/sensor1" state_topic: "office/sensor1"
unit_of_measurement: '%' unit_of_measurement: "%"
value_template: "{{ value_json.humidity }}" value_template: "{{ value_json.humidity }}"
``` ```
{% endraw %} {% endraw %}

View File

@ -142,9 +142,9 @@ sensor:
- platform: template - platform: template
sensors: sensors:
power_meter: power_meter:
value_template: '{{ states('image_processing.sevensegment_ocr_seven_segments') }}' value_template: "{{ states('image_processing.sevensegment_ocr_seven_segments') }}"
friendly_name: 'Ampere' friendly_name: "Ampere"
unit_of_measurement: 'A' unit_of_measurement: "A"
``` ```
{% endraw %} {% endraw %}

View File

@ -24,7 +24,7 @@ file:
sensor: sensor:
- platform: shodan - platform: shodan
api_key: SHODAN_API_KEY api_key: SHODAN_API_KEY
query: 'home-assistant' query: "home-assistant"
``` ```
{% configuration %} {% configuration %}

View File

@ -56,8 +56,8 @@ service: notify.notify
title: "Time to shop?" title: "Time to shop?"
message: 'Click to open the shopping list' message: 'Click to open the shopping list'
data: data:
clickAction: '/shopping-list' clickAction: "/shopping-list"
url: '/shopping-list' url: "/shopping-list"
``` ```
{% endraw %} {% endraw %}

View File

@ -92,8 +92,8 @@ To give an example of simulating real world data, a simulated relative humidity
```yaml ```yaml
sensor: sensor:
- platform: simulated - platform: simulated
name: 'simulated relative humidity' name: "simulated relative humidity"
unit: '%' unit: "%"
amplitude: 0 # Turns off the periodic contribution amplitude: 0 # Turns off the periodic contribution
mean: 50 mean: 50
spread: 10 spread: 10

View File

@ -34,9 +34,9 @@ Auto-detection can be a little slow, so if your table has a fixed IP address or
# This will skip auto-detection and add only the listed tables # This will skip auto-detection and add only the listed tables
sisyphus: sisyphus:
- name: 'TABLE_NAME' - name: 'TABLE_NAME'
host: 'TABLE_IP_OR_HOSTNAME' host: "TABLE_IP_OR_HOSTNAME"
- name: 'ANOTHER_TABLE_NAME' - name: 'ANOTHER_TABLE_NAME'
host: 'ANOTHER_TABLE_IP_OR_HOSTNAME' host: "ANOTHER_TABLE_IP_OR_HOSTNAME"
``` ```
{% configuration %} {% configuration %}

View File

@ -44,7 +44,7 @@ notify:
- name: NOTIFIER_NAME - name: NOTIFIER_NAME
platform: slack platform: slack
api_key: YOUR_API_KEY api_key: YOUR_API_KEY
default_channel: '#general' default_channel: "#general"
``` ```
{% configuration %} {% configuration %}

View File

@ -127,7 +127,7 @@ Example:
```yaml ```yaml
custom: custom:
yesterday_consumption: yesterday_consumption:
key: '6400_00543A01' key: "6400_00543A01"
unit: kWh unit: kWh
factor: 1000 factor: 1000
``` ```

View File

@ -109,8 +109,8 @@ To use the SMTP notification, refer to it in an automation or script like in thi
seconds: 1 seconds: 1
- service: notify.NOTIFIER_NAME - service: notify.NOTIFIER_NAME
data: data:
title: 'Intruder alert' title: "Intruder alert"
message: 'Intruder alert at apartment!!' message: "Intruder alert at apartment!!"
data: data:
images: images:
- /home/pi/snapshot1.jpg - /home/pi/snapshot1.jpg
@ -130,7 +130,7 @@ The optional `html` field makes a custom text/HTML multi-part message, allowing
seconds: 1 seconds: 1
- service: notify.NOTIFIER_NAME - service: notify.NOTIFIER_NAME
data: data:
message: 'Intruder alert at apartment!!' message: "Intruder alert at apartment!!"
data: data:
images: images:
- /home/pi/snapshot1.jpg - /home/pi/snapshot1.jpg

View File

@ -155,7 +155,7 @@ intent_script:
- service: light.turn_on - service: light.turn_on
data: data:
entity_id: 'light.{{ objectLocation | replace(" ","_") }}' entity_id: 'light.{{ objectLocation | replace(" ","_") }}'
color_name: '{{ objectColor }}' color_name: "{{ objectColor }}"
``` ```
{% endraw %} {% endraw %}
@ -176,7 +176,7 @@ In this example if we had an intent triggered with 'Set a timer for five minutes
SetTimer: SetTimer:
speech: speech:
type: plain type: plain
text: 'Set a timer' text: "Set a timer"
action: action:
service: script.set_timer service: script.set_timer
data: data:
@ -221,7 +221,7 @@ intent_script:
turn_on_light: turn_on_light:
speech: speech:
type: plain type: plain
text: 'OK, turning on the light' text: "OK, turning on the light"
action: action:
service: light.turn_on service: light.turn_on
``` ```
@ -233,7 +233,7 @@ intent_script:
OpenGarageDoor: OpenGarageDoor:
speech: speech:
type: plain type: plain
text: 'OK, opening the garage door' text: "OK, opening the garage door"
action: action:
- service: cover.open_cover - service: cover.open_cover
data: data:
@ -250,14 +250,14 @@ automation:
trigger: trigger:
- platform: state - platform: state
entity_id: binary_sensor.my_garage_door_sensor entity_id: binary_sensor.my_garage_door_sensor
from: 'off' from: "off"
to: 'on' to: "on"
for: for:
minutes: 10 minutes: 10
sequence: sequence:
service: snips.say_action service: snips.say_action
data: data:
text: 'Garage door has been open 10 minutes, would you like me to close it?' text: "Garage door has been open 10 minutes, would you like me to close it?"
intent_filter: intent_filter:
- closeGarageDoor - closeGarageDoor
@ -266,7 +266,7 @@ intent_script:
closeGarageDoor: closeGarageDoor:
speech: speech:
type: plain type: plain
text: 'OK, closing the garage door' text: "OK, closing the garage door"
action: action:
- service: script.garage_door_close - service: script.garage_door_close
``` ```

View File

@ -230,12 +230,12 @@ To create a sensor that displays the uptime for your printer in minutes, you can
# Example configuration.yaml entry # Example configuration.yaml entry
sensor: sensor:
- platform: snmp - platform: snmp
name: 'Printer uptime' name: "Printer uptime"
host: 192.168.2.21 host: 192.168.2.21
baseoid: 1.3.6.1.2.1.1.3.0 baseoid: 1.3.6.1.2.1.1.3.0
accept_errors: true accept_errors: true
unit_of_measurement: 'minutes' unit_of_measurement: "minutes"
value_template: '{{((value | int) / 6000) | int}}' value_template: "{{((value | int) / 6000) | int}}"
``` ```
{% endraw %} {% endraw %}
@ -389,12 +389,12 @@ switch:
- platform: snmp - platform: snmp
name: SNMP v3 switch name: SNMP v3 switch
host: 192.168.0.3 host: 192.168.0.3
version: '3' version: "3"
username: 'myusername' username: "myusername"
auth_key: 'myauthkey' auth_key: "myauthkey"
auth_protocol: 'hmac-sha' auth_protocol: "hmac-sha"
priv_key: 'myprivkey' priv_key: "myprivkey"
priv_protocol: 'aes-cfb-128' priv_protocol: "aes-cfb-128"
baseoid: 1.3.6.1.4.1.19865.1.2.1.4.0 baseoid: 1.3.6.1.4.1.19865.1.2.1.4.0
payload_on: 1 payload_on: 1
payload_off: 0 payload_off: 0
@ -402,12 +402,12 @@ switch:
- platform: snmp - platform: snmp
name: Enable PoE on Netgear switch port 2 using SNMP v3 name: Enable PoE on Netgear switch port 2 using SNMP v3
host: 192.168.0.4 host: 192.168.0.4
version: '3' version: "3"
username: 'myusername' username: "myusername"
auth_key: 'myauthkey' auth_key: "myauthkey"
auth_protocol: 'hmac-sha' auth_protocol: "hmac-sha"
priv_key: 'myprivkey' priv_key: "myprivkey"
priv_protocol: 'des' priv_protocol: "des"
baseoid: 1.3.6.1.4.1.4526.11.15.1.1.1.1.1.2 baseoid: 1.3.6.1.4.1.4526.11.15.1.1.1.1.1.2
payload_on: 15400 payload_on: 15400
payload_off: 3000 payload_off: 3000

View File

@ -17,7 +17,7 @@ To add the SoChain sensor to your installation, specify a network and address to
sensor: sensor:
- platform: sochain - platform: sochain
network: LTC network: LTC
address: 'M9m37h3dVkLDS13wYK7vcs7ck6MMMX6yhK' address: "M9m37h3dVkLDS13wYK7vcs7ck6MMMX6yhK"
``` ```
{% configuration %} {% configuration %}

View File

@ -72,7 +72,7 @@ sensor:
sensors: sensors:
solaredge_energy_this_year_template: solaredge_energy_this_year_template:
value_template: "{{ (states('sensor.solaredge_energy_this_year') | float / 1000) | round(2) }}" value_template: "{{ (states('sensor.solaredge_energy_this_year') | float / 1000) | round(2) }}"
unit_of_measurement: 'KWh' unit_of_measurement: "KWh"
icon_template: "mdi:solar-power" icon_template: "mdi:solar-power"
``` ```

Some files were not shown because too many files have changed in this diff Show More