Examples: Setting Up Home Assistant So Sense Sees Non-Compatible Kasa Plugs?

A few of you have mentioned using Home Assistant to emulate the Kasa output. Can any of you share your configurations?

I’m currently using this for my newer EP25s, but the Sense doesn’t appear to see them.

emulated_kasa:
  entities:
    sensor.refrigerator_current_consumption:
      name: "Refrigerator"
    sensor.washer_current_consumption:
      name: "Washer"

That’s what mine looks like. Two things: if the 1st item is not providing a valid watts number in home assistant, all of them will fail. 2) you need to restart HA each time you make changes.

Oh and you need to make sure the TP/Kasa integration is enabled in Sense - I think it’s called network listening.

Is your HA on the same network as your sense?

1 Like

Here is my pool / kasa integration, which shows three different styles of driving the data. Hope this helps.

emulated_kasa:
  entities: 
    switch.pentair_id_pool:
      name: "Pool Pump"
      power_entity: sensor.pentair_id_pool_pump_watts_now
    switch.pentair_id_edge_pump:
      name: "Edge Pump"
      power_entity: sensor.pentair_id_edge_pump_pump_watts_now
    switch.pentair_id_jets:
      name: "Spa Jets"
      power: 2325
    sensor.pool_lights:
      name: "Pool Lights"
    sensor.spa_light:
      name: "Spa Light"
template:
  - sensor:
      # NB: Used by the Kasa integration
      name: "Pool lights"
      unique_id: pool_lights
      device_class: power
      unit_of_measurement: "W"
      state: >
        {% if is_state('light.pentair_id_pool_light', 'on') %}
          {{ 116 }} 
        {% else %}
          {{ 0 }}
        {% endif %}
  - sensor:
      # NB: Used by the Kasa integration
      name: "Spa light"
      unique_id: spa_light
      device_class: power
      unit_of_measurement: "W"
      state: >
        {% if is_state('light.pentair_id_spa_light', 'on') %}
          {{ 58 }}
        {% else %}
          {{ 0 }}
        {% endif %}
1 Like

Wow. Thank you.

By the way, it turns out that the port that Emulated Kasa needs to broadcast is being used by my Synology (I’m running HA in a container on my NAS). I think it’s the root of my problems. Getting in over my head quickly.

1 Like