core: No Longer able to individually control TPLink Smart PowerStrip HS300 outlets after 2021.8 Update

The problem

After updating to 2021.8.0 this morning I can no longer individually control the switch entities for the individual outlets on my HS300 power strip.

They had worked find previously (though I would have to reload the integration after booting up for them all to come online).

The power monitoring entities that were added in this release work properly and I am able to turn them all on and off at once using the switch for the actual power strip entity: TP-LINK_Power Strip_07B1

Adding the power strip by IP to configuration.yaml doesn’t make a difference.

What is version of Home Assistant Core has the issue?

core-2021.8.0

What was the last working version of Home Assistant Core?

core-2021.7.4

What type of installation are you running?

Home Assistant OS

Integration causing the issue

tp_link

Link to integration documentation on our website

https://www.home-assistant.io/integrations/tplink

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Logger: pyHS100.smartplug
Source: /usr/local/lib/python3.9/site-packages/pyHS100/smartplug.py:59
First occurred: 3:08:05 PM (7 occurrences)
Last logged: 3:11:17 PM

Unknown state None returned.

Additional information

No response

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 18 (9 by maintainers)

Most upvoted comments

boy do I feel like a moron. That fixed it.

Got it 😃

Bash output (including error):

bash-5.1# pyhs100 sysinfo
No host name given, trying discovery..
Discovering devices for 3 seconds
== microscope - HS103(US) ==
OFF
Host/IP: 10.0.0.198
LED state: True
On since: 2021-08-05 12:23:09.083586
== Generic information ==
Time:         2021-08-05 12:23:07
Hardware:     2.1
Software:     1.1.4 Build 210409 Rel.113427
MAC (rssi):   D8:47:32:C2:7A:1B (-60)
Location:     {'latitude': XXXXXX, 'longitude': -XXXXXX}
== Emeter ==
Device has no emeter

== prusa heater - HS103(US) ==
OFF
Host/IP: 10.0.0.116
LED state: True
On since: 2021-08-05 12:23:09.276776
== Generic information ==
Time:         2021-08-05 12:23:07
Hardware:     2.1
Software:     1.1.4 Build 210409 Rel.113427
MAC (rssi):   74:DA:88:6F:07:85 (-52)
Location:     {'latitude': XXXXXX, 'longitude': -XXXXXX}
== Emeter ==
Device has no emeter

== kitchen lamp - HS103(US) ==
OFF
Host/IP: 10.0.0.120
LED state: True
On since: 2021-08-05 12:23:09.437563
== Generic information ==
Time:         2021-08-05 12:23:07
Hardware:     2.1
Software:     1.1.4 Build 210409 Rel.113427
MAC (rssi):   74:DA:88:6E:F3:21 (-41)
Location:     {'latitude': XXXXXX, 'longitude': -XXXXXX}
== Emeter ==
Device has no emeter

== ender 3 v2 - HS103(US) ==
OFF
Host/IP: 10.0.0.104
LED state: True
On since: 2021-08-05 12:23:09.592587
== Generic information ==
Time:         2021-08-05 12:23:07
Hardware:     2.1
Software:     1.1.4 Build 210409 Rel.113427
MAC (rssi):   D8:47:32:C2:60:68 (-50)
Location:     {'latitude': XXXXXX, 'longitude': -XXXXXX}
== Emeter ==
Device has no emeter

== TP-LINK_Power Strip_07B1 - HS300(US) ==
Device state: ON
  * desk lights state: OFF
  * stripper state: OFF
  * power supply state: OFF
  * iron state: ON
  * door lamp state: OFF
  * large psu state: OFF
Host/IP: 10.0.0.240
LED state: True
Plug 4 on since: 2021-08-04 23:31:49.501309
== Generic information ==
Time:         2021-08-05 12:23:10
Hardware:     1.0
Software:     1.0.21 Build 210524 Rel.161309
MAC (rssi):   84:D8:1B:11:07:B1 (-65)
Location:     {'latitude': XXXXXX, 'longitude': -XXXXXX}
== Emeter ==
== Current State ==
{0: {'voltage_mv': 120311, 'current_ma': 3, 'power_mw': 0, 'total_wh': 0}, 1: {'voltage_mv': 120609, 'current_ma': 4, 'power_mw': 0, 'total_wh': 0}, 2: {'voltage_mv': 120410, 'current_ma': 3, 'power_mw': 0, 'total_wh': 0}, 3: {'voltage_mv': 120543, 'current_ma': 4, 'power_mw': 0, 'total_wh': 0}, 4: {'voltage_mv': 120509, 'current_ma': 3, 'power_mw': 31, 'total_wh': 1}, 5: {'voltage_mv': 120642, 'current_ma': 4, 'power_mw': 0, 'total_wh': 0}}

== optitrack 1 - HS103(US) ==
OFF
Host/IP: 10.0.0.194
LED state: True
On since: 2021-08-05 12:23:15.797937
== Generic information ==
Time:         2021-08-05 12:23:15
Hardware:     5.0
Software:     1.0.3 Build 201015 Rel.142523
MAC (rssi):   C0:C9:E3:26:44:B1 (-52)
Location:     {'latitude': XXXXXX, 'longitude': -XXXXXX}
== Emeter ==
Device has no emeter

== bookcase lamp - HS103(US) ==
Device state: ON
Host/IP: 10.0.0.176
LED state: True
On since: 2021-08-05 12:13:33.770996
== Generic information ==
Time:         2021-08-05 12:23:15
Hardware:     2.1
Software:     1.1.4 Build 210409 Rel.113427
MAC (rssi):   D8:47:32:C2:57:BE (-42)
Location:     {'latitude': XXXXXX, 'longitude': -XXXXXX}
== Emeter ==
Device has no emeter

== optitrack primary - HS103(US) ==
OFF
Host/IP: 10.0.0.245
LED state: True
On since: 2021-08-05 12:23:17.339573
== Generic information ==
Time:         2021-08-05 12:23:17
Hardware:     5.0
Software:     1.0.3 Build 201015 Rel.142523
MAC (rssi):   C0:C9:E3:26:3F:29 (-48)
Location:     {'latitude': XXXXXX, 'longitude': -XXXXXX}
== Emeter ==
Device has no emeter

== ac lamp - HS103(US) ==
Device state: ON
Host/IP: 10.0.0.48
LED state: True
On since: 2021-08-05 12:13:33.394417
== Generic information ==
Time:         2021-08-05 12:23:16
Hardware:     2.1
Software:     1.1.4 Build 210409 Rel.113427
MAC (rssi):   D8:47:32:C2:6B:3F (-42)
Location:     {'latitude': XXXXXX, 'longitude': -XXXXXX}
== Emeter ==
Device has no emeter

== spotlight - HS103(US) ==
Device state: ON
Host/IP: 10.0.0.189
LED state: True
On since: 2021-08-05 12:13:33.543278
== Generic information ==
Time:         2021-08-05 12:23:16
Hardware:     2.1
Software:     1.1.4 Build 210409 Rel.113427
MAC (rssi):   D8:47:32:C2:4E:D7 (-37)
Location:     {'latitude': XXXXXX, 'longitude': -XXXXXX}
== Emeter ==
Device has no emeter

== center lamp - HS103(US) ==
Device state: ON
Host/IP: 10.0.0.85
LED state: True
On since: 2021-08-05 12:13:33.687566
== Generic information ==
Time:         2021-08-05 12:23:16
Hardware:     2.1
Software:     1.1.4 Build 210409 Rel.113427
MAC (rssi):   D8:47:32:C2:4E:6F (-41)
Location:     {'latitude': 0, 'longitude': 0}
== Emeter ==
Device has no emeter

== front porch light - KL110(US) ==
OFF
Host/IP: 10.0.0.32
Brightness: 100
Is dimmable: True
== Generic information ==
Time:         None
Hardware:     2.0
Software:     1.0.12 Build 210329 Rel.141126
MAC (rssi):   C0C9E397AE53 (-65)
Location:     {'latitude': XXXXXX, 'longitude': -XXXXXX}
== Emeter ==
== Current State ==
{'power_mw': 0, 'total_wh': 1192}

== office wall light - KL110(US) ==
Device state: ON
Host/IP: 10.0.0.111
Brightness: 100
Is dimmable: True
== Generic information ==
Time:         None
Hardware:     2.0
Software:     1.0.12 Build 210329 Rel.141126
MAC (rssi):   C0C9E3AD6B9A (-31)
Location:     {'latitude': XXXXXX, 'longitude': -XXXXXX}
== Emeter ==
== Current State ==
{'power_mw': 10800, 'total_wh': 28}

== hallway stairs - KL110(US) ==
Device state: ON
Host/IP: 10.0.0.160
Brightness: 12
Is dimmable: True
== Generic information ==
Time:         None
Hardware:     2.0
Software:     1.0.12 Build 210329 Rel.141126
MAC (rssi):   E4C32A43FAED (-54)
Location:     {'latitude': XXXXXX, 'longitude': -XXXXXX}
== Emeter ==
== Current State ==
{'power_mw': 2000, 'total_wh': 9}

== cr10 - HS103(US) ==
OFF
Host/IP: 10.0.0.102
LED state: True
On since: 2021-08-05 12:23:26.084973
== Generic information ==
Time:         2021-08-05 12:23:25
Hardware:     5.0
Software:     1.0.3 Build 201015 Rel.142523
MAC (rssi):   C0:C9:E3:26:2D:AB (-47)
Location:     {'latitude': XXXXXX, 'longitude': -XXXXXX}
== Emeter ==
Device has no emeter

Traceback (most recent call last):
  File "/usr/local/bin/pyhs100", line 8, in <module>
    sys.exit(cli())
  File "/usr/local/lib/python3.9/site-packages/click/core.py", line 1137, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/click/core.py", line 1062, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python3.9/site-packages/click/core.py", line 1668, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python3.9/site-packages/click/core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python3.9/site-packages/click/core.py", line 763, in invoke
    return __callback(*args, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/click/decorators.py", line 78, in new_func
    raise RuntimeError(
RuntimeError: Managed to invoke callback without a context object of type 'SmartDevice' existing.
bash-5.1#