Tplink HS100 don't show state

Hi,
I must to configure 3 switch Tplink HS100 (that I named “uno”, “due” and “tre”).
If I watch in state, I don’t see ampere, voltage and other parameter, but I see only “friendly name”; there are not other attributes :

hasse-state1

My configuration.yaml is this:

# Configure a default setup of Home Assistant (frontend, api, etc)
default_config:

logger:
  default: info
  
# Uncomment this if you are using SSL/TLS, running in Docker container, etc.
# http:
#   base_url: example.duckdns.org:8123

# Text to speech
#tts:
# - platform: google_translate

discovery:

tplink:
  discovery: false
  switch:
    - host: 10.10.0.106
    - host: 10.10.0.120
    - host: 10.10.0.129
    



switch:
  - platform: tplink
    host: 10.10.0.106
    name: uno
    
# Sensors
sensor:
  # Weather prediction
  - platform: yr
  - platform: time_date
  
  - platform: template
    sensors:
      my_tp_switch_amps:
        friendly_name_template: "{{ states.switch.uno.name}} Current"
        value_template: '{{ states.switch.uno.attributes["current_a"] | float }}'
        unit_of_measurement: 'A'
      my_tp_switch_watts:
        friendly_name_template: "{{ states.switch.uno.name}} Current Consumption"
        value_template: '{{ states.switch.uno.attributes["current_power_w"] | float }}'
        unit_of_measurement: 'W'
      my_tp_switch_total_kwh:
        friendly_name_template: "{{ states.switch.uno.name}} Total Consumption"
        value_template: '{{ states.switch.uno.attributes["total_energy_kwh"] | float }}'
        unit_of_measurement: 'kWh'
      my_tp_switch_volts:
        friendly_name_template: "{{ states.switch.uno.name}} Voltage"
        value_template: '{{ states.switch.uno.attributes["voltage"] | float }}'
        unit_of_measurement: 'V'
      my_tp_switch_today_kwh:
        friendly_name_template: "{{ states.switch.uno.name}} Today's Consumption"
        value_template: '{{ states.switch.uno.attributes["today_energy_kwh"] | float }}'
        unit_of_measurement: 'kWh'



input_datetime:
  both_date_and_time:
    name: Input con data e ora
    has_date: true
    has_time: true
  only_date:
    name: Input con solo data
    has_date: true
    has_time: false
  only_time:
    name: Input con solo orario
    has_date: false
    has_time: true
    
  
# riferimenti ai 3 file sidecar
group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml

Why ?

ok. I found the problem: HS100 don’t have any electric monitoring…only HS110.

1 Like

Energy monitoring allows only HS 110…

that is very refined by the manufacturers. I do not know if the flashing of Tasmota is possible here and a solution would be …