Merge branch 'current' into next

This commit is contained in:
Franck Nijhof 2020-12-04 11:22:50 +01:00
commit 21fd4b46aa
No known key found for this signature in database
GPG Key ID: D62583BA8AB11CA3
3 changed files with 12 additions and 12 deletions

View File

@ -38,7 +38,7 @@ name:
required: false required: false
type: string type: string
max_volume: max_volume:
description: Maximum volume as a percentage. Often the maximum volume of the receiver is far too loud. Setting this wil set Home Assistant's 100% volume to be this setting on the amp. i.e., if you set this to 50% when you set Home Assistant to be 100% then your receiver will be set to 50% of it's maximum volume. description: Maximum volume as a percentage. Often the maximum volume of the receiver is far too loud. Setting this will set Home Assistant's 100% volume to be this setting on the amp. i.e., if you set this to 50% when you set Home Assistant to be 100% then your receiver will be set to 50% of it's maximum volume.
required: false required: false
default: 100 default: 100
type: integer type: integer

View File

@ -60,7 +60,7 @@ samsungtv:
turn_on_action: turn_on_action:
- service: wake_on_lan.send_magic_packet - service: wake_on_lan.send_magic_packet
data: data:
mac: "11:22:33:44:55:66" mac: MAC_ADDRESS
``` ```
### Usage ### Usage

View File

@ -150,24 +150,24 @@ sensor:
- platform: template - platform: template
sensors: sensors:
my_tp_switch_amps: my_tp_switch_amps:
friendly_name_template: "{{ states.switch.my_tp_switch.name}} Current" friendly_name_template: "{{ state_attr('switch.my_tp_switch','friendly_name') }} Current"
value_template: '{{ states.switch.my_tp_switch.attributes["current_a"] | float }}' value_template: "{{ state_attr('switch.my_tp_switch','current_a') | float }}"
unit_of_measurement: 'A' unit_of_measurement: 'A'
my_tp_switch_watts: my_tp_switch_watts:
friendly_name_template: "{{ states.switch.my_tp_switch.name}} Current Consumption" friendly_name_template: "{{ state_attr('switch.my_tp_switch','friendly_name') }} Current Consumption"
value_template: '{{ states.switch.my_tp_switch.attributes["current_power_w"] | float }}' value_template: "{{ state_attr('switch.my_tp_switch','current_power_w') | float }}"
unit_of_measurement: 'W' unit_of_measurement: 'W'
my_tp_switch_total_kwh: my_tp_switch_total_kwh:
friendly_name_template: "{{ states.switch.my_tp_switch.name}} Total Consumption" friendly_name_template: "{{ state_attr('switch.my_tp_switch','friendly_name') }} Total Consumption"
value_template: '{{ states.switch.my_tp_switch.attributes["total_energy_kwh"] | float }}' value_template: "{{ state_attr('switch.my_tp_switch','total_energy_kwh') | float }}"
unit_of_measurement: 'kWh' unit_of_measurement: 'kWh'
my_tp_switch_volts: my_tp_switch_volts:
friendly_name_template: "{{ states.switch.my_tp_switch.name}} Voltage" friendly_name_template: "{{ state_attr('switch.my_tp_switch','friendly_name') }} Voltage"
value_template: '{{ states.switch.my_tp_switch.attributes["voltage"] | float }}' value_template: "{{ state_attr('switch.my_tp_switch','voltage') | float }}"
unit_of_measurement: 'V' unit_of_measurement: 'V'
my_tp_switch_today_kwh: my_tp_switch_today_kwh:
friendly_name_template: "{{ states.switch.my_tp_switch.name}} Today's Consumption" friendly_name_template: "{{ state_attr('switch.my_tp_switch','friendly_name') }} Today's Consumption"
value_template: '{{ states.switch.my_tp_switch.attributes["today_energy_kwh"] | float }}' value_template: "{{ state_attr('switch.my_tp_switch','today_energy_kwh') | float }}"
unit_of_measurement: 'kWh' unit_of_measurement: 'kWh'
``` ```
{% endraw %} {% endraw %}