From 0fc200df3a974caf556a5c65ade7ec2806d027eb Mon Sep 17 00:00:00 2001 From: Clayton Nummer Date: Wed, 21 Nov 2018 04:16:09 -0500 Subject: [PATCH 1/2] Reflect changes in Sense configuration (#7558) * Reflect changes in Sense configuration Configuration options changed after #17645, this updates the documentation to reflect those changes. * :pencil2: Tweaks --- source/_components/sensor.sense.markdown | 61 ++++++++---------------- 1 file changed, 21 insertions(+), 40 deletions(-) diff --git a/source/_components/sensor.sense.markdown b/source/_components/sensor.sense.markdown index f894c5312e2..f66a91a8639 100644 --- a/source/_components/sensor.sense.markdown +++ b/source/_components/sensor.sense.markdown @@ -13,32 +13,23 @@ ha_iot_class: "Cloud Polling" ha_release: 0.65 --- - -Integrate your [Sense](https://sense.com) meter information into Home Assistant. +Integrate your [Sense](https://sense.com) electricity meter information into Home Assistant. ## {% linkable_title Configuration %} -To enable this sensor in your installation, add the following to your `configuration.yaml` file: +To enable this integration in your installation, add the following to your `configuration.yaml` file: ```yaml # Example configuration.yaml entry -sensor: - platform: sense +sense: email: CLIENT_ID password: CLIENT_SECRET - monitored_conditions: - - active_usage - - active_production - - daily_usage - - daily_production ``` -Two types of sensors can be monitored and will be created with the following names: +In addition to binary sensors for individual devices, two types of sensors will be created with the following names: -- **Active Usage/Production**: Current active power usage/production in Watts. Updated every 30 seconds. -- **Daily Usage/Production**: Daily power usage/production in kWh. Updated every 5 minutes. - -Weekly, Monthly and Yearly variants are also available. +- **Active Usage/Production**: Current active power usage/production in Watts. Updated every 1 minute. +- **Daily/Weekly/Monthly/Yearly Usage/Production**: Daily power usage/production in kWh. Updated every 5 minutes. {% configuration %} email: @@ -49,29 +40,19 @@ password: description: The password for your Sense account/application. required: true type: string -monitored_conditions: - description: List of sensors to display in the front end. - required: true - type: list - keys: - active_usage: - description: The current power usage in W. - active_production: - description: The current solar production in W. - daily_usage: - description: Total power used for current day in kWh. - daily_production: - description: Total power produced for current day in kWh. - weekly_usage: - description: Total power used for current week in kWh. - weekly_production: - description: Total power produced for current week in kWh. - monthly_usage: - description: Total power used for current month in kWh. - monthly_production: - description: Total power produced for current month in kWh. - yearly_usage: - description: Total power used for current year in kWh. - yearly_production: - description: Total power produced for current year in kWh. +timeout: + description: Timeout for the connection in seconds. + required: false + default: 5 + type: integer {% endconfiguration %} + +Full example: + +```yaml +# Example configuration.yaml entry +sense: + email: CLIENT_ID + password: CLIENT_SECRET + timeout: 5 +``` From 130ce79a2955001b9b4bbc5cbea0ba0d1bb3b885 Mon Sep 17 00:00:00 2001 From: Zack Arnett Date: Wed, 21 Nov 2018 06:32:55 -0500 Subject: [PATCH 2/2] Update Entity Button Docs (#7588) --- source/_lovelace/entity-button.markdown | 1 + 1 file changed, 1 insertion(+) diff --git a/source/_lovelace/entity-button.markdown b/source/_lovelace/entity-button.markdown index f8c6d69bab6..d84bd7866f9 100644 --- a/source/_lovelace/entity-button.markdown +++ b/source/_lovelace/entity-button.markdown @@ -77,6 +77,7 @@ Title and Script Service Example: ```yaml - type: entity-button name: Turn Off Lights + tap_action: call-service entity: script.turn_off_lights service: script.turn_on ```