Edimax
This edimax
switch integrationIntegrations connect and integrate Home Assistant with your devices, services, and more. [Learn more] allows you to control the state of your Edimax
To use your Edimax switch in your installation, add the following to your configuration.yaml
The configuration.yaml file is the main configuration file for Home Assistant. It lists the integrations to be loaded and their specific configurations. In some cases, the configuration needs to be edited manually directly in the configuration.yaml file. Most integrations can be configured in the UI. [Learn more] file.
After changing the configuration.yaml
The configuration.yaml file is the main configuration file for Home Assistant. It lists the integrations to be loaded and their specific configurations. In some cases, the configuration needs to be edited manually directly in the configuration.yaml file. Most integrations can be configured in the UI. [Learn more] file, restart Home Assistant to apply the changes. The integration is now shown on the integrations page under Settings > Devices & services. Its entities are listed on the integration card itself and on the Entities tab.
# Example configuration.yaml entry
switch:
- platform: edimax
host: 192.168.1.32
Power consumption sensor
Starting with version 2 of the firmware
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.