core: Cannot set custom scan_interval on new tplink: component

Home Assistant release with the issue:

0.89

Last working Home Assistant release (if known): 0.88.2

Operating environment (Hass.io/Docker/Windows/etc.):

Windows Component/platform:

tplink Description of problem: With the new tplink component, cannot set custom scan_interval

Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):

tplink:
  switch:
    - host: 192.168.2.120
    - host: 192.168.2.121
      scan_interval: 15

Traceback (if applicable):

2019-03-07 21:19:15 ERROR (MainThread) [homeassistant.config] Invalid config for [tplink]: [scan_interval] is an invalid option for [tplink]. Check: tplink->tplink->switch->1->scan_interval. (See c:\ProgramData\.homeassistant\configuration.yaml, line 93). Please check the docs at https://home-assistant.io/components/tplink/

Additional information:

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 24 (6 by maintainers)

Commits related to this issue

Most upvoted comments

I don’t think this is reasonable. As far as hammering devices, it’s my device in my network, so that’s my problem. This level of control is the entire reason I’m trying to build my own automation.

In my instance, I have an unused switch in the wall that I replaced with a smart switch, and then tied that by an automation to turn on 3 lamps around the living room. An average 15-20 second delay is completely unacceptable. I’d rather the light switch do a push notification that I could intercept, but that doesn’t seem possible.

yeah i was wondering how you could scan, I didn’t see a way it could be added. This will work

- id: update_tp_link
  initial_state: 'on'
  trigger:
    - platform: time_pattern
      seconds: '/5' # every 5 seconds
  action:
    - service: homeassistant.update_entity
      data:
        entity_id: 
          - light.tp_link_light1
          - light.tp_link_light