Hi there
I’m a bit of a noob to HA and python I’m afraid but do have some computer/tech experience!
I’m trying to use the TP Link HS110 smart plug to send me push notifications when my washing is done.
I can see entities for the sensors to add to the overview configuration (lovelace?) however I’m getting errors of “unavailable” and “no state history found”
Any help hugely appreciated!
Here’s my config.yaml:
# Configure a default setup of Home Assistant (frontend, api, etc)
default_config:
# Text to speech
tts:
- platform: google_translate
cache: true
cache_dir: /tmp/tts
time_memory: 300
base_url: http://XXXXXXXXXXXXXXXXX
service_name: google_say
group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
mycroft:
host: XXXXXXXXXXXXXXXXXXXX
notify:
- platform: mycroft
name: Picroft main
spotify:
client_id: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
client_secret: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
downloader:
download_dir: downloads
tplink:
discovery: false
switch:
- host: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
panel_iframe:
nodered:
title: 'Node-Red'
icon: 'mdi:shuffle-variant'
url: 'XXXXXXXXXXXXXXXXXXXXX/'
sensor:
- platform: template
sensors:
washingmachine_amps:
friendly_name_template: "{{ states.switch.washingmachine.name}} Current"
value_template: '{{ states.switch.washingmachine.attributes["current_a"] | float }}'
unit_of_measurement: 'A'
washingmachine_watts:
friendly_name_template: "{{ states.switch.washingmachine.name}} Current Consumption"
value_template: '{{ states.switch.washingmachine.attributes["current_power_w"] | float }}'
unit_of_measurement: 'W'
washingmachine_total_kwh:
friendly_name_template: "{{ states.switch.Washingmachine.name}} Total Consumption"
value_template: '{{ states.switch.washingmachine.attributes["total_energy_kwh"] | float }}'
unit_of_measurement: 'kWh'
washingmachine_volts:
friendly_name_template: "{{ states.switch.Washingmachine.name}} Voltage"
value_template: '{{ states.switch.washingmachine.attributes["voltage"] | float }}'
unit_of_measurement: 'V'
washingmachine_today_kwh:
friendly_name_template: "{{ states.switch.Washingmachine.name}} Today's Consumption"
value_template: '{{ states.switch.washingmachine.attributes["today_energy_kwh"] | float }}'
unit_of_measurement: 'kWh'