Merge branch 'current' into next

This commit is contained in:
Paulus Schoutsen 2019-02-13 20:40:31 -08:00
commit 0cf89b343e
30 changed files with 177 additions and 138 deletions

View File

@ -7,6 +7,7 @@ sidebar: true
comments: false
sharing: true
footer: true
logo: apple.png
ha_category: Notifications
ha_release: 0.31
---

View File

@ -43,4 +43,3 @@ monitored_conditions:
light:
description: Brightness in lux (if supported by tag).
{% endconfiguration %}

View File

@ -14,8 +14,9 @@ ha_release: pre 0.7
ha_qa_scale: internal
---
The `worldclock` sensor platform simply displays the current time in a different time zone.
The `worldclock` sensor platform simply displays the current time in a different time zone
## {% linkable_title Configuration %}
To enable this sensor in your installation, add the following to your `configuration.yaml` file:

View File

@ -50,4 +50,3 @@ longitude:
type: float
default: "The longitude in your `configuration.yaml` file."
{% endconfiguration %}

View File

@ -21,6 +21,8 @@ Obtain a WUnderground API key [here](https://www.wunderground.com/weather/api).
Please consider this when using the following information.
</p>
{% linkable_title Configuration %}
To add Wunderground to your installation, add the following to your `configuration.yaml` file:
```yaml
@ -181,28 +183,27 @@ monitored_conditions:
description: Text summary of current wind conditions
{% endconfiguration %}
All the conditions listed above will be updated every 5 minutes.
### {% linkable_title Forecasts %}
## {% linkable_title Forecasts %}
_12 hour forecasts_
### {% linkable_title 12 hour forecasts %}
Monitored conditions marked above with <a name="12h">[12h]</a> are 12 hour forecasts. To get a forecast for different period/daytime replace the `_1d_` part of the sensor name. e.g., `weather_2n` will give you forecast for tomorrow night. Valid values for day are `1` to `4` and valid values for daytime are `d` or `n`.
_Daily forecasts_
### {% linkable_title Daily forecasts %}
Conditions above marked with <a name="1d">[1d]</a> are daily forecasts. To get forecast for different day, replace the number
in `_1d_` part of the sensor name. Valid values are from `1` to `4`.
_Hourly forecasts_
### {% linkable_title Hourly forecasts %}
Conditions marked with <a name="1h">[1h]</a> are hourly forecasts. To get forecast for different hour, replace the number
in the `_1h_` part of the sensor name with `1` to `36`. e.g., `weather_24h` will give you weather in 24 hours.
### {% linkable_title Additional examples %}
## {% linkable_title Additional examples %}
#### {% linkable_title Daily forecast %}
### {% linkable_title Daily forecast %}
```yaml
sensor:
@ -234,7 +235,7 @@ group:
![Daily Forecast](/images/screenshots/wunderground_daily_forecast.png)
#### {% linkable_title Weather overview %}
### {% linkable_title Weather overview %}
```yaml
sensor:

View File

@ -13,8 +13,6 @@ ha_release: "0.50"
ha_iot_class: "Local Push"
---
The `xiaomi aqara` sensor platform allows you to get data from your [Xiaomi](http://www.mi.com/en/) sensors.
The requirement is that you have setup [Xiaomi aqara](/components/xiaomi_aqara/).

View File

@ -19,6 +19,8 @@ The `zabbix` sensor platform let you monitor the current count of active trigger
You must have the [Zabbix component](/components/zabbix/) configured to use those sensors.
</p>
## {% linkable_title Configuration %}
To set it up, add the following information to your `configuration.yaml` file:
```yaml
@ -48,5 +50,4 @@ individual:
description: A 'true'/'false' to specify whether we should show individual sensors when a list of hostids is provided. If false, the sensor state will be the count of all triggers for the specified hosts (or all hosts within the Zabbix instance, if hostids isn't provided).
required: false
type: boolean
{% endconfiguration %}
{% endconfiguration %}

View File

@ -36,11 +36,11 @@ sensor:
{% configuration %}
api_key:
description: The API key to access the service. Obtain yours using the [Zillow API](https://www.zillow.com/howto/api/APIOverview.htm)
description: The API key to access the service. Obtain yours using the [Zillow API](https://www.zillow.com/howto/api/APIOverview.htm).
required: true
type: string
zpid:
description: Property IDs to track in the front end. Can be found in it's Zillow URL as described above. Include only the numbers, do not include the "_zpid"
description: Property IDs to track in the front end. Can be found in it's Zillow URL as described above. Include only the numbers, do not include the "_zpid".
required: true
type: list
{% endconfiguration %}
@ -59,6 +59,6 @@ These attributes are available:
- Currency
- Amount
Example screenshot
Example screenshot:
<img src="/images/components/zestimate/zestimateexample.png" />

View File

@ -38,4 +38,3 @@ password:
required: true
type: string
{% endconfiguration %}

View File

@ -15,21 +15,24 @@ ha_qa_scale: internal
The `shopping_list` component allows you to keep track of shopping list items. Includes the ability to add items via your voice using the sentence "Add eggs to my shopping list".
## {% linkable_title Configuration %}
```yaml
# Example configuration.yaml entry
shopping_list:
```
### Services
## Services
You can add or remove items on your shopping list by using the following services.
#### {% linkable_title Service `shopping_list.add_item` %}
### {% linkable_title Service `shopping_list.add_item` %}
| Service data attribute | Optional | Description |
|------------------------|----------|--------------------------------------------------------|
| `name` | no | Name of the item to add. Example: "Beer" |
#### {% linkable_title Service `shopping_list.complete_item` %}
### {% linkable_title Service `shopping_list.complete_item` %}
| Service data attribute | Optional | Description |
|------------------------|----------|--------------------------------------------------------|

View File

@ -31,7 +31,6 @@ You can only add locations through the integrations page, not in configuration f
Only location close to Sweden can be added. See [SMHI.se area](http://opendata.smhi.se/apidocs/metfcst/geographic_area.html) for more details what locations are supported.
</p>
{% configuration %}
latitude:
description: Manually specify latitude.

View File

@ -22,7 +22,6 @@ Snips takes voice or text as input and produces *intents* as output, which are e
![Snips Modules](/images/screenshots/snips_nlu.png)
## {% linkable_title The Snips Voice Platform %}
### {% linkable_title Installation %}
@ -30,18 +29,18 @@ Snips takes voice or text as input and produces *intents* as output, which are e
The Snips platform can be installed via the Snips APT/Debian repository. If you prefer to install the platform using the Docker distribution, check out our [Docker Installation Guide](https://github.com/snipsco/snips-platform-documentation/wiki/6.--Miscellaneous#using-docker).
```bash
$ sudo apt-get update
$ sudo apt-get install -y dirmngr
$ sudo bash -c 'echo "deb https://raspbian.snips.ai/$(lsb_release -cs) stable main" > /etc/apt/sources.list.d/snips.list'
$ sudo apt-key adv --keyserver pgp.mit.edu --recv-keys D4F50CDCA10A2849
$ sudo apt-get update
$ sudo apt-get install -y snips-platform-voice
sudo apt-get update
sudo apt-get install -y dirmngr
sudo bash -c 'echo "deb https://raspbian.snips.ai/$(lsb_release -cs) stable main" > /etc/apt/sources.list.d/snips.list'
sudo apt-key adv --keyserver pgp.mit.edu --recv-keys D4F50CDCA10A2849
sudo apt-get update
sudo apt-get install -y snips-platform-voice
```
Note that if the keyserver pgp.mit.edu is down then try to use another one in the 4th line, like pgp.surfnet.nl:
```bash
$ sudo apt-key adv --keyserver pgp.surfnet.nl --recv-keys D4F50CDCA10A2849
sudo apt-key adv --keyserver pgp.surfnet.nl --recv-keys D4F50CDCA10A2849
```
### {% linkable_title Creating an assistant %}
@ -51,13 +50,13 @@ Head over to the [Snips Console](https://console.snips.ai) to create your assist
The next step is to get the assistant to work on your device. Unzip and copy the `assistant` folder that you downloaded from the web console to the path. Assuming your downloaded `assistant` folder is on your desktop, just run:
```bash
$ scp -r ~/Desktop/assistant pi@<raspi_hostname.local_or_IP>:/home/pi/.
scp -r ~/Desktop/assistant pi@<raspi_hostname.local_or_IP>:/home/pi/.
```
Now ssh into your Raspberry Pi:
```bash
$ ssh pi@<raspi_hostname.local_or_IP>
ssh pi@<raspi_hostname.local_or_IP>
```
By default, this command is `ssh pi@raspberrypi.local`, if you are using the default Raspberry Pi hostname.
@ -82,7 +81,7 @@ Make sure that a microphone is plugged to the Raspberry Pi. If you are having tr
Start the Snips Voice Platform by starting the `snips-*` services:
```bash
$ sudo systemctl start "snips-*"
sudo systemctl start "snips-*"
```
Snips is now ready to take voice commands from the microphone. To trigger the listening, simply say
@ -161,7 +160,7 @@ In the `data_template` block, we have access to special variables, corresponding
### {% linkable_title Special slots %}
Several special values for slots are populated with the `siteId `the intent originated from and the probability value for the intent, the `sessionId` generate by the dialogue manager, and `slote_name` raw which will contain the raw, uninterpreted text of the slot value.
Several special values for slots are populated with the `siteId` the intent originated from and the probability value for the intent, the `sessionId` generate by the dialogue manager, and `slote_name` raw which will contain the raw, uninterpreted text of the slot value.
In the above example, the slots are plain strings. However, Snips has a duration builtin value used for setting timers and this will be parsed to a seconds value.
@ -185,8 +184,6 @@ SetTimer:
```
{% endraw %}
### {% linkable_title Sending TTS Notifications %}
You can send TTS notifications to Snips using the `snips.say` and `snips.say_action` services. `say_action` starts a session and waits for user response, "Would you like me to close the garage door?", "Yes, close the garage door".
@ -209,7 +206,6 @@ You can send TTS notifications to Snips using the `snips.say` and `snips.say_act
| `can_be_enqueued` | yes | If True, session waits for an open session to end, if False session is dropped if one is running. |
| `intent_filter` | yes | Array of Strings - A list of intents names to restrict the NLU resolution to on the first query. |
### {% linkable_title Snips Support %}
There is an active [discord](https://discordapp.com/invite/3939Kqx) channel for further support.
@ -308,4 +304,3 @@ intent_script:
and {{ states('sensor.dark_sky_weather_hourly_summary') }}
```
{% endraw %}

View File

@ -100,7 +100,6 @@ Night Sound and Speech Enhancement modes are only supported on Sonos PLAYBAR and
| `night_sound` | yes | Boolean to control Night Sound mode.
| `speech_enhance` | yes | Boolean to control Speech Enhancement mode.
## {% linkable_title Advanced use %}
For advanced uses, there are some manual configuration options available.
@ -140,4 +139,3 @@ sonos:
This component is using the [SoCo](https://github.com/SoCo/SoCo) project.
To be able to support the Sonos components and features it is mandatory to have TCP port 1400 opened. This port is used to receive events about changes on the Sonos network. For more details please see the [SoCo documentation](https://github.com/SoCo/SoCo) and source code of the SoCo project.

View File

@ -19,6 +19,8 @@ below the horizon. The sun can be used within automation as
[sun_trigger]: /docs/automation/trigger/#sun-trigger
[sun_condition]: /docs/scripts/conditions/#sun-condition
## {% linkable_title Configuration %}
```yaml
# Example configuration.yaml entry
sun:
@ -35,7 +37,7 @@ elevation:
<img src='/images/screenshots/more-info-dialog-sun.png' />
</p>
### {% linkable_title Implementation Details %}
## {% linkable_title Implementation Details %}
The sun's event listener will call the service when the sun rises or sets with
an offset.
@ -52,7 +54,7 @@ which event (sunset or sunrise) and the offset.
}
```
#### {% linkable_title Maintains entity `sun.sun` %}
### {% linkable_title Maintains entity `sun.sun` %}
| Possible state | Description |
| --------- | ----------- |

View File

@ -13,7 +13,6 @@ ha_iot_class: "Local Polling"
ha_release: 0.19
---
The `acer_projector` switch platform allows you to control the state of RS232 connected projectors from [Acer](http://www.acer.com).
## {% linkable_title Configuration %}

View File

@ -13,7 +13,6 @@ ha_release: pre 0.7
ha_iot_class: "Local Polling"
---
The `arduino` switch platform allows you to control the digital pins of your [Arduino](https://www.arduino.cc/) board. Support for switching pins is limited to high/on and low/off of the digital pins. PWM (pin 3, 5, 6, 9, 10, and 11 on an Arduino Uno) is not supported yet.
To enable the Arduino pins with Home Assistant, add the following section to your `configuration.yaml` file:
@ -59,4 +58,3 @@ pins:
{% endconfiguration %}
The digital pins are numbered from 0 to 13 on a Arduino UNO. The available pins are 2 till 13. For testing purposes you can use pin 13 because with that pin you can control the internal LED.

View File

@ -44,9 +44,10 @@ switch:
function1:
name: Light Desk
```
{% configuration %}
resource:
description: IP address and schema of the device that is exposing an aREST API, e.g., http://192.168.1.10 (no-trailing slash)
description: IP address and schema of the device that is exposing an aREST API, e.g., `http://192.168.1.10` (no-trailing slash)
required: true
type: string
name:
@ -78,9 +79,8 @@ functions:
type: string
{% endconfiguration %}
You can still switch your pins with a web browser or a command line tool. Use the URL http://192.168.1.10/digital/8/1 to set pin 8 to high/on, the JSON response will give you the feedback.
You can still switch your pins with a web browser or a command line tool. Use the URL `http://192.168.1.10/digital/8/1` to set pin 8 to high/on, the JSON response will give you the feedback.
```json
{"message": "Pin D8 set to 1", "id": "sensor02", "name": "livingroom", "connected": true}
```

View File

@ -15,6 +15,8 @@ ha_iot_class: "Local Polling"
This `Broadlink` switch platform allow to you control Broadlink [devices](http://www.ibroadlink.com/).
## {% linkable_title Configuration %}
To enable it, add the following lines to your `configuration.yaml`:
```yaml
@ -93,7 +95,7 @@ slots:
Information about how to install on Windows can be found [here](/components/sensor.broadlink/#microsoft-windows-installation).
### {% linkable_title How to obtain IR/RF packets? %}
## {% linkable_title How to obtain IR/RF packets? %}
Choose Call Service from the Developer Tools. Choose the service `switch.broadlink_learn_command` from the list of **Available services:** and hit **CALL SERVICE**. Press the button on your remote with in 20 seconds. The packet will be printed as a persistent notification in the States page of the web interface.
@ -173,7 +175,7 @@ switch:
slot_4: 'Speaker slot'
```
### {% linkable_title Service `broadlink_send_packet` %}
## {% linkable_title Service `broadlink_send_packet` %}
You can use the service `switch.broadlink_send_packet` to directly send IR packets without the need to assign a switch entity for each command.
@ -194,7 +196,7 @@ script:
- "JgBGAJSTFDUUNhM2ExITEhMSExITEhM2EzYTNhQRFBEUERQRFBEUNRQ2ExITNhMSExITNhMSExITEhM2ExITNhQ1FBEUNhMADQUAAA=="
```
### {% linkable_title Using E-Control Remotes %}
## {% linkable_title Using E-Control Remotes %}
If you already have your remotes learned on E-Control app you can use this method to "copy" them to Home Assistant.
@ -226,65 +228,71 @@ First get or learn all the remotes you want to add to Home Assistant in E-Contro
6. Install python-broadlink library:
1. `git clone https://github.com/mjg59/python-broadlink.git`
2. `cd python-broadlink`
3. `sudo python setup.py install`
```bash
git clone https://github.com/mjg59/python-broadlink.git
cd python-broadlink
sudo python setup.py install
```
7. Test the codes
Use the `sendcode` script you have already downloaded to test the codes you got from the device.
You need to edit the script with your RM Pro IP Address and MAC Address and with the code in HEX format.
When run the script, you know the code works when get message .
Code sent...
Not every code works.
Use the `sendcode` script you have already downloaded to test the codes you got from the device.
You need to edit the script with your RM Pro IP Address and MAC Address and with the code in HEX format.
When run the script, you know the code works when get message.
Code sent...
Not every code works.
8. Convert the HEX codes to base64
Use [this](http://tomeko.net/online_tools/hex_to_base64.php?lang=en1) tool to convert the hex codes to base64 for use with Home Assistant.
8. Convert the HEX codes to base64.
Use [this](http://tomeko.net/online_tools/hex_to_base64.php?lang=en1) tool to convert the hex codes to base64 for use with Home Assistant.
### {% linkable_title Using iOS and Windows to Obtain Codes %}
## {% linkable_title Using iOS and Windows to Obtain Codes %}
1. Use the E-Control app to learn the codes from all of your suitable remotes. Depending on the remote, try to add useful names for the buttons and/or the remotes. This will mean that you should only have to run this process once and will help with getting them quickly into Home Assistant. Dump the files in the app by navigating to the hamburger icon, select `share and select`, then choose `Share to other phones on WLAN`.
2. Install Requirements
- Download and install Python 2.7 on your windows PC.
- Run `pip install simplejson`. You must install simplejson in the same python version you will use to run the scripts. You can ensure that the current version is installed by attempting to install again and confirming that you see "Requirement already satisfied".
- Download and install [iBackup Viewer](http://www.imactools.com/iphonebackupviewer/).
- Download [these](https://github.com/NightRang3r/Broadlink-e-control-db-dump) github files. Make sure you place them in the \Python27 path in Windows. Be sure that the getBroadlinkSharedData.py from the download is in this directory.
- Download and install Python 2.7 on your windows PC.
- Run `pip install simplejson`. You must install simplejson in the same python version you will use to run the scripts. You can ensure that the current version is installed by attempting to install again and confirming that you see "Requirement already satisfied".
- Download and install [iBackup Viewer](http://www.imactools.com/iphonebackupviewer/).
- Download [these](https://github.com/NightRang3r/Broadlink-e-control-db-dump) github files. Make sure you place them in the \Python27 path in Windows. Be sure that the getBroadlinkSharedData.py from the download is in this directory.
3. Plug your iphone into your windows PC, open iTunes and create a non-encrypted backup of your device.
4. Open iBackup viewer then select the iOS backup that you created. Navigate to the App icon and then scroll until you find e-control.app, select this. Select and extract the files jsonButton, jsonIrCode and jsonSublr; they will be located in the Documents/SharedData section. Put these in the same location as the getBroadlinkSharedData.py.
5. Now open a Command Prompt and navigate to the directory where the aforementioned files are located e.g. C:\Python27. Now run the command python getBroadlinkSharedData.py, you should see something like this:
```C:\Python27>python getBroadlinkSharedData.py
ID: 1 | Name: TV
ID: 2 | Name: Upstairs
ID: 3 | Name: Sort in order
ID: 4 | Name: Soundbar
ID: 5 | Name: TV
ID: 6 | Name: Xbox One
ID: 7 | Name: User-Defined Aircon
ID: 8 | Name: Sort in order
ID: 9 | Name: User-Defined Aircon
ID: 10 | Name: Kids Fan
ID: 11 | Name: Downstairs
ID: 12 | Name: Ceiling Fan
ID: 13 | Name: Samsung TV
ID: 14 | Name: Xbox One
ID: 15 | Name: SONY SoundBar
ID: 16 | Name: Fire TV
ID: 17 | Name: New RF Remote
```
6. Select the remote ID you would like to extract:
```Select accessory ID: 5
[+] You selected: TV
[+] Dumping codes to TV.txt
```
```bash
C:\Python27>python getBroadlinkSharedData.py
ID: 1 | Name: TV
ID: 2 | Name: Upstairs
ID: 3 | Name: Sort in order
ID: 4 | Name: Soundbar
ID: 5 | Name: TV
ID: 6 | Name: Xbox One
ID: 7 | Name: User-Defined Aircon
ID: 8 | Name: Sort in order
ID: 9 | Name: User-Defined Aircon
ID: 10 | Name: Kids Fan
ID: 11 | Name: Downstairs
ID: 12 | Name: Ceiling Fan
ID: 13 | Name: Samsung TV
ID: 14 | Name: Xbox One
ID: 15 | Name: SONY SoundBar
ID: 16 | Name: Fire TV
ID: 17 | Name: New RF Remote
```
7. Now there should be a file with the name of the remote you chose in the same directory ending in `.txt`. Open that up and it will contain the Base64 code required for Home Assistant. To ensure these codes work correctly you may need to add `==` to the end of the code in your config.yaml file (or wherever you have your switches).
Select the remote ID you would like to extract:
### {% linkable_title Using Windows to Obtain Codes with Broadlink Manager %}
```bash
Select accessory ID: 5
[+] You selected: TV
[+] Dumping codes to TV.txt
```
6. Now there should be a file with the name of the remote you chose in the same directory ending in `.txt`. Open that up and it will contain the Base64 code required for Home Assistant. To ensure these codes work correctly you may need to add `==` to the end of the code in your config.yaml file (or wherever you have your switches).
## {% linkable_title Using Windows to Obtain Codes with Broadlink Manager %}
1. Install Broadlink Manager from this SourceForge link [here](https://sourceforge.net/projects/broadlink-manager/).
2. Open the application and hit "scan" to activate your broadlink device.

View File

@ -13,7 +13,6 @@ ha_release: 0.57
ha_iot_class: "Local Polling"
---
The `deluge` switch platform allows you to control your [Deluge](http://deluge-torrent.org/) client from within Home Assistant. The platform enables you switch all your torrents in pause, and then unpause them all.
To add Deluge to your installation, add the following to your `configuration.yaml` file:

View File

@ -13,10 +13,9 @@ ha_release: 0.35
ha_iot_class: "Local Polling"
---
The `digitalloggers` switch platform allows you to control the state of your [Digital Loggers](http://www.digital-loggers.com/dinfaqs.html) switches.
### {% linkable_title Configuration %}
## {% linkable_title Configuration %}
To use your digitalloggers switch in your installation, add the following to your `configuration.yaml` file:

View File

@ -13,7 +13,6 @@ ha_iot_class: "Local Polling"
ha_release: 0.14
---
The `dlink` switch platform allows you to control the state of your [D-Link Wi-Fi Smart Plugs](http://us.dlink.com/product-category/home-solutions/connected-home/smart-plugs/).
Supported devices (tested):

View File

@ -16,7 +16,7 @@ ha_iot_class: "Local Push"
The `doorbird` switch platform allows you to power connected relays and trigger the IR array in your [DoorBird](http://www.doorbird.com/) video doorbell device.
<p class='note'>
You must have the [DoorBird component](/components/doorbird/) configured to use this switch.
You must have the [DoorBird component](/components/doorbird/) configured to use this switch.
</p>
To enable this switch, add the following lines to your `configuration.yaml` file:

View File

@ -12,7 +12,6 @@ ha_category: Switch
ha_release: pre 0.7
---
This `edimax` switch platform allows you to control the state of your [Edimax](http://www.edimax.com/edimax/merchandise/merchandise_list/data/edimax/global/home_automation_smart_plug/) switches.
To use your Edimax switch in your installation, add the following to your `configuration.yaml` file:

View File

@ -16,4 +16,3 @@ ha_release: 0.68
The `eufy` platform allows you to control your [Eufy](http://www.eufylife.com) switches from within Home Assistant.
They will be automatically discovered if the [Eufy](/components/eufy/) component is enabled.

View File

@ -13,7 +13,6 @@ ha_iot_class: "Local Polling"
ha_release: 0.38
---
The `fritzdect` switch platform allows you to control the state of your [AVM FRITZ!DECT DECT-based wireless switches](https://en.avm.de/products/fritzdect/). The AVM FRITZ!DECT switches need to be paired to your Fritz!Box and then can be monitored and controlled via Home Assistant.
Supported devices (tested):

View File

@ -12,7 +12,6 @@ ha_category: Switch
ha_release: pre 0.7
---
This `hikvisioncam` switch platform allows you to control your motion detection setting on your [Hikvision](http://www.hikvision.com/) camera.
<p class='note warning'>

View File

@ -13,16 +13,12 @@ ha_release: 0.59
ha_iot_class: "Cloud Polling"
---
The `hive` switch platform integrates your Hive plugs into Home Assistant, enabling control of your devices.
The platform supports the following Hive products:
- Hive Active Plug
<p class='note'>
Full configuration details can be found on the main [Hive component](/components/hive/) page.
</p>

View File

@ -103,8 +103,9 @@ monitored_conditions:
The Transmission component is continuously monitoring the status of torrents in the target client. Once a torrent is started or completed, an event is triggered on the Home Assistant Bus, which allows to implement any kind of automation.
Possible events are:
- transmission_downloaded_torrent
- transmission_started_torrent
- transmission_downloaded_torrent
- transmission_started_torrent
Inside of the event, there is the name of the torrent that is started or completed, as it is seen in the Transmission User Interface.

View File

@ -57,7 +57,7 @@ tariffs:
type: list
{% endconfiguration %}
# {% linkable_title Services %}
## {% linkable_title Services %}
### {% linkable_title Service `utility_meter.reset` %}
@ -114,6 +114,7 @@ utility_meter:
```
Assuming your energy provider tariffs are time based according to:
- *peak*: from 9h00 to 21h00
- *offpeak*: from 21h00 to 9h00 next day
@ -132,11 +133,13 @@ automation:
- service: utility_meter.next_tariff
entity_id: utility_meter.monthly_energy
```
# {% linkable_title Advanced Configuration for DSMR users %}
## {% linkable_title Advanced Configuration for DSMR users %}
When using the [DSMR component](https://www.home-assistant.io/components/sensor.dsmr/) to get data from the utility meter, each tariff (peak and off-peak) has a separate sensor. Additionally, there is a separate sensor for gas consumption. The meter switches automatically between tariffs, so an automation is not necessary in this case. But, you do have to setup a few more instances of the `utility_meter` component.
If you want to create a daily and monthly sensor for each tariff, you have to track separate sensors:
- `sensor.power_consumption_low` for off-peak power
- `sensor.power_consumption_normal` for peak power
- `sensor.gas_consumption` for gas consumption

View File

@ -1 +1,46 @@
<svg xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" version="1.1" id="Layer_1" x="0" y="0" viewBox="0 0 420 60" xml:space="preserve" enable-background="new 0 0 420 60"><metadata id="metadata3500"><rdf:RDF><cc:Work><dc:format>image/svg+xml</dc:format><dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/></cc:Work></rdf:RDF></metadata><style type="text/css" id="style3455">.st0{fill:#fff}</style><g id="g3457"><path class="st0" d="M51.3,4.4C57.2,4.4,62,9.2,62,15.1v29.9c0,5.9-4.8,10.7-10.7,10.7H21.4c-5.9,0-10.7-4.8-10.7-10.7V15.1 c0-5.9,4.8-10.7,10.7-10.7H51.3 M53.3,25.2c0-2-0.7-3.7-2.1-5.1c-1.4-1.4-3.1-2.1-5.1-2.1c-2,0-3.7,0.7-5.1,2.1 c-1.4,1.4-2.1,3.1-2.1,5.1v7.3c0,1.6-0.8,2.4-2.4,2.4c-1.6,0-2.4-0.8-2.4-2.4v-6.8v-0.4c0-2-0.7-3.7-2.1-5.1 c-1.4-1.4-3.1-2.1-5.1-2.1c-2,0-3.7,0.7-5.1,2.1c-1.4,1.4-2.1,3.1-2.1,5.1v14.5c0,1.6,0.8,2.4,2.4,2.4s2.4-0.8,2.4-2.4V25.2h0 c0-1.6,0.8-2.4,2.4-2.4c1.6,0,2.4,0.8,2.4,2.4v7.3c0,2,0.7,3.7,2.1,5.1c1.4,1.4,3.1,2.1,5.1,2.1c2,0,3.7-0.7,5.1-2.1 c1.4-1.4,2.1-3.1,2.1-5.1V32v-6.8c0-1.6,0.8-2.4,2.4-2.4c1.6,0,2.4,0.8,2.4,2.4h0l0,14.5c0,1.6,0.8,2.4,2.4,2.4 c1.6,0,2.4-0.8,2.4-2.4V25.2z" id="path3459" fill="#000000"/><path class="st0" d="M146,12c5.4,0,9.9,1.7,13.5,5.1c3.6,3.4,5.4,7.7,5.4,12.9c0,5.2-1.8,9.5-5.5,12.8c-3.6,3.4-8.2,5.1-13.8,5.1 c-5.3,0-9.7-1.7-13.2-5.1c-3.5-3.4-5.3-7.6-5.3-12.7c0-5.2,1.8-9.6,5.3-13C136.1,13.7,140.6,12,146,12z M146.2,16.8 c-4,0-7.3,1.3-9.9,3.8c-2.6,2.5-3.9,5.7-3.9,9.6c0,3.8,1.3,6.9,3.9,9.4c2.6,2.5,5.8,3.8,9.7,3.8c3.9,0,7.2-1.3,9.8-3.8 c2.6-2.6,3.9-5.8,3.9-9.6c0-3.7-1.3-6.8-3.9-9.4C153.2,18,150,16.8,146.2,16.8z" id="path3461" fill="#000000"/><path class="st0" d="M202.8,12.3h4.8v35.4h-4.4l-23.7-27.3v27.3h-4.8V12.3h4.1l23.9,27.5V12.3z" id="path3463" fill="#000000"/><path class="st0" d="M236.2,12c5.4,0,9.9,1.7,13.5,5.1c3.6,3.4,5.4,7.7,5.4,12.9c0,5.2-1.8,9.4-5.4,12.8c-3.6,3.4-8.2,5.1-13.7,5.1 c-5.3,0-9.7-1.7-13.2-5.1c-3.5-3.4-5.3-7.6-5.3-12.7c0-5.2,1.8-9.6,5.3-13C226.3,13.8,230.7,12,236.2,12z M236.4,16.8 c-4,0-7.3,1.3-9.9,3.8c-2.6,2.5-3.9,5.7-3.9,9.6c0,3.8,1.3,6.9,3.9,9.4c2.6,2.5,5.8,3.8,9.7,3.8c3.9,0,7.2-1.3,9.8-3.8 c2.6-2.6,3.9-5.7,3.9-9.5c0-3.7-1.3-6.8-3.9-9.4C243.4,18.1,240.2,16.8,236.4,16.8z" id="path3465" fill="#000000"/><path class="st0" d="M265.1,47.7V12.3h11.2c3.4,0,6.1,0.9,8.1,2.7s3,4.3,3,7.3c0,2.1-0.5,3.9-1.5,5.5c-1,1.6-2.4,2.7-4.2,3.5 c-1.8,0.7-4.4,1.1-7.7,1.1h-3.7v15.3H265.1z M275.4,16.8h-5.2v11.1h5.5c2.1,0,3.6-0.5,4.8-1.5c1.1-1,1.7-2.4,1.7-4.2 C282.2,18.6,279.9,16.8,275.4,16.8z" id="path3467" fill="#000000"/><path class="st0" d="M322.6,45.2c-0.7-1-1.7-2.5-3-4.5c-2-3.2-3.5-5.4-4.6-6.7c-0.8-0.9-1.5-1.6-2.3-2.3c0.4-0.1,0.8-0.2,1.1-0.4 c1.8-0.7,3.2-1.9,4.2-3.5c1-1.6,1.5-3.4,1.5-5.5c0-3.1-1-5.5-3-7.3c-2-1.8-4.7-2.7-8.1-2.7h-11.2v35.4h5.1V32.4h2.4 c1,0.1,1.7,0.2,2.2,0.5c0.7,0.4,1.5,1,2.4,1.9c0.9,0.9,1.8,2,2.9,3.5l1.7,2.8l1.6,2.6l1,1.4c0.2,0.2,0.3,0.3,0.3,0.4l1.5,2.3h6 L322.6,45.2z M302.5,16.8h5.2c4.5,0,6.7,1.8,6.7,5.4c0,1.8-0.6,3.2-1.7,4.2c-1.1,1-2.7,1.5-4.8,1.5h-5.5V16.8z" id="path3469" fill="#000000"/><path class="st0" d="M332.6,12.3h5.1v35.4h-5.1V12.3z" id="path3471" fill="#000000"/><path class="st0" d="M379,39.4V45c-3.7,2-7.9,3-12.8,3c-3.9,0-7.3-0.8-10-2.4s-4.9-3.7-6.5-6.5c-1.6-2.8-2.4-5.8-2.4-9 c0-5.1,1.8-9.4,5.5-12.9c3.6-3.5,8.1-5.2,13.5-5.2c3.7,0,7.8,1,12.3,2.9v5.4c-4.1-2.3-8.1-3.5-12-3.5c-4,0-7.4,1.3-10,3.8 c-2.7,2.5-4,5.7-4,9.5c0,3.9,1.3,7,3.9,9.5c2.6,2.5,6,3.7,10,3.7C370.8,43.4,374.9,42.1,379,39.4z" id="path3473" fill="#000000"/><path class="st0" d="M388.6,12.3h20.1v4.5h-15v10.8h14.5v4.5h-14.5v11h15.5v4.5h-20.6V12.3z" id="path3475" fill="#000000"/><g id="g3477" fill="#000000"><path class="st0" d="M98.9,39.5L98.9,39.5l10.6-27.2h7.7v35.4h-5V18.1h-0.1l-11.8,29.6h-3.2L85.5,18.1h-0.1v29.6h-4.8V12.3h7.7 L98.9,39.5z" id="path3479" fill="#000000"/></g></g></svg>
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 19.2.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="layer" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 652 652" style="enable-background:new 0 0 652 652;" xml:space="preserve">
<style type="text/css">
.st0{fill:#212121;}
</style>
<g>
<path class="st0" d="M98.1,283.4c8.9,0,16.1,7.2,16.1,16.1v45c0,8.9-7.2,16.1-16.1,16.1h-45c-8.9,0-16.1-7.2-16.1-16.1v-45
c0-8.9,7.2-16.1,16.1-16.1H98.1 M101.1,314.7c0-3-1.1-5.6-3.2-7.7c-2.1-2.1-4.7-3.2-7.7-3.2s-5.6,1.1-7.7,3.2
c-2.1,2.1-3.2,4.7-3.2,7.7v11c0,2.4-1.2,3.6-3.6,3.6s-3.6-1.2-3.6-3.6v-10.2v-0.6c0-3-1.1-5.6-3.2-7.7c-2.1-2.1-4.7-3.2-7.7-3.2
c-3,0-5.6,1.1-7.7,3.2c-2.1,2.1-3.2,4.7-3.2,7.7v21.8c0,2.4,1.2,3.6,3.6,3.6s3.6-1.2,3.6-3.6v-22l0,0c0-2.4,1.2-3.6,3.6-3.6
s3.6,1.2,3.6,3.6v11c0,3,1.1,5.6,3.2,7.7c2.1,2.1,4.7,3.2,7.7,3.2s5.6-1.1,7.7-3.2s3.2-4.7,3.2-7.7V325v-10.2
c0-2.4,1.2-3.6,3.6-3.6c2.4,0,3.6,1.2,3.6,3.6l0,0v21.8c0,2.4,1.2,3.6,3.6,3.6s3.6-1.2,3.6-3.6
C101.1,336.6,101.1,314.7,101.1,314.7z"/>
<path class="st0" d="M240.7,294.9c8.1,0,14.9,2.6,20.3,7.7c5.4,5.1,8.1,11.6,8.1,19.4c0,7.8-2.7,14.3-8.3,19.3
c-5.4,5.1-12.3,7.7-20.8,7.7c-8,0-14.6-2.6-19.9-7.7s-8-11.4-8-19.1c0-7.8,2.7-14.5,8-19.6C225.8,297.4,232.5,294.9,240.7,294.9z
M241,302.1c-6,0-11,2-14.9,5.7c-3.9,3.8-5.9,8.6-5.9,14.5c0,5.7,2,10.4,5.9,14.2c3.9,3.8,8.7,5.7,14.6,5.7s10.8-2,14.8-5.7
c3.9-3.9,5.9-8.7,5.9-14.5c0-5.6-2-10.2-5.9-14.2C251.5,303.9,246.7,302.1,241,302.1z"/>
<path class="st0" d="M326.2,295.3h7.2v53.3h-6.6l-35.7-41.1v41.1h-7.2v-53.3h6.2l36,41.4v-41.4H326.2z"/>
<path class="st0" d="M376.5,294.9c8.1,0,14.9,2.6,20.3,7.7c5.4,5.1,8.1,11.6,8.1,19.4c0,7.8-2.7,14.2-8.1,19.3
c-5.4,5.1-12.3,7.7-20.6,7.7c-8,0-14.6-2.6-19.9-7.7c-5.3-5.1-8-11.4-8-19.1c0-7.8,2.7-14.5,8-19.6
C361.6,297.6,368.2,294.9,376.5,294.9z M376.8,302.1c-6,0-11,2-14.9,5.7c-3.9,3.8-5.9,8.6-5.9,14.5c0,5.7,2,10.4,5.9,14.2
c3.9,3.8,8.7,5.7,14.6,5.7s10.8-2,14.8-5.7c3.9-3.9,5.9-8.6,5.9-14.3c0-5.6-2-10.2-5.9-14.2C387.3,304.1,382.5,302.1,376.8,302.1z"
/>
<path class="st0" d="M420,348.6v-53.3h16.9c5.1,0,9.2,1.4,12.2,4.1c3,2.7,4.5,6.5,4.5,11c0,3.2-0.8,5.9-2.3,8.3
c-1.5,2.4-3.6,4.1-6.3,5.3c-2.7,1.1-6.6,1.7-11.6,1.7h-5.6v23C427.8,348.6,420,348.6,420,348.6z M435.5,302.1h-7.8v16.7h8.3
c3.2,0,5.4-0.8,7.2-2.3c1.7-1.5,2.6-3.6,2.6-6.3C445.7,304.8,442.3,302.1,435.5,302.1z"/>
<path class="st0" d="M506.6,344.9c-1.1-1.5-2.6-3.8-4.5-6.8c-3-4.8-5.3-8.1-6.9-10.1c-1.2-1.4-2.3-2.4-3.5-3.5
c0.6-0.2,1.2-0.3,1.7-0.6c2.7-1.1,4.8-2.9,6.3-5.3c1.5-2.4,2.3-5.1,2.3-8.3c0-4.7-1.5-8.3-4.5-11s-7.1-4.1-12.2-4.1h-16.9v53.3h7.7
v-23h3.6c1.5,0.2,2.6,0.3,3.3,0.8c1.1,0.6,2.3,1.5,3.6,2.9c1.4,1.4,2.7,3,4.4,5.3l2.6,4.2l2.4,3.9l1.5,2.1c0.3,0.3,0.5,0.5,0.5,0.6
l2.3,3.5h9L506.6,344.9z M476.3,302.1h7.8c6.8,0,10.1,2.7,10.1,8.1c0,2.7-0.9,4.8-2.6,6.3s-4.1,2.3-7.2,2.3h-8.3v-16.7H476.3z"/>
<path class="st0" d="M521.6,295.3h7.7v53.3h-7.7V295.3z"/>
<path class="st0" d="M591.5,336.1v8.4c-5.6,3-11.9,4.5-19.3,4.5c-5.9,0-11-1.2-15.1-3.6c-4.1-2.4-7.4-5.6-9.8-9.8
c-2.4-4.2-3.6-8.7-3.6-13.6c0-7.7,2.7-14.2,8.3-19.4c5.4-5.3,12.2-7.8,20.3-7.8c5.6,0,11.7,1.5,18.5,4.4v8.1
c-6.2-3.5-12.2-5.3-18.1-5.3c-6,0-11.1,2-15.1,5.7c-4.1,3.8-6,8.6-6,14.3c0,5.9,2,10.5,5.9,14.3c3.9,3.8,9,5.6,15.1,5.6
C579.1,342.2,585.3,340.2,591.5,336.1z"/>
<path class="st0" d="M605.9,295.3h30.3v6.8h-22.6v16.3h21.8v6.8h-21.8v16.6H637v6.8h-31V295.3z"/>
<g>
<path class="st0" d="M169.7,336.3L169.7,336.3l16-41h11.6v53.3h-7.5v-44.6h-0.2l-17.8,44.6H167l-17.5-44.6h-0.2v44.6h-7.2v-53.3
h11.6L169.7,336.3z"/>
</g>
</g>
<g id="XMLID_249_">
</g>
</svg>

Before

Width:  |  Height:  |  Size: 3.9 KiB

After

Width:  |  Height:  |  Size: 3.6 KiB