Edimax


This edimax switch platform allows you to control the state of your Edimax switches.

To use your Edimax switch in your installation, add the following to your configuration.yaml file:

# Example configuration.yaml entry
switch:
  - platform: edimax
    host: 192.168.1.32

Configuration Variables

host string Required

The IP address of your Edimax switch, e.g., 192.168.1.32.

username string (Optional, default: admin)

Your username for the Edimax switch.

password string (Optional, default: 1234)

Your password for the Edimax switch.

name string (Optional, default: Edimax Smart Plug)

The name to use when displaying this switch.

Power consumption sensor

Starting with version 2 of the firmware, the Edimax switches can also report the current and accumulated daily power consumption in their state objects. Use a template sensor to extract their values:

template:
  - sensor:
    - name: Edimax Current power consumption
      unit_of_measurement: "W"
      state: "{{ state_attr('switch.edimax_smart_plug', 'current_power_w') | default(0, true) }}"
      
    - name: Edimax Accumulated daily power consumption
      unit_of_measurement: "kWh"
      state: "{{ state_attr('switch.edimax_smart_plug', 'today_energy_kwh') | default(0, true) }}"

Note that if the smart plug is off, these states report the string None. By using a replace() in the template, these sensors report purely numerical values.