Hello,
I have an Aeon Labs Smart Energy Switch (z-wave) which shows up when I view localhost:8123 as:
Switch
Smart Energy Switch
I am able to turn the switch on and off using the web page.
What is the proper syntax to add this switch to the configuration.yaml file? I have three of the switches but only one has been paired so far since I wanted to get the configuration.yaml info nailed down before proceeding.
My system is a Raspberry Pi Model B (Rasbian OS) and Aeotec Z-Stick Gen5.
I’m fairly new to HA and z-wave, but basically under 'Developer Tools | <> ’ (set state), you can see the names (entity_id’s) associated with your switch. This might be something like switch.aeon_labs_switch_5. You can just use this name in your groups, scenes, automation, etc.
To rename it in the web interface to something more descriptive use Customize
Thanks for the reply. I followed those instructions and at first it seemed to work. When I restarted hass, it lost the information I had entered. I must be doing something wrong but I don’t know what that may be…
I was just setting up a new Aeotec Micro switch yesterday and had it working just fine. I then notice there was and update available so I installed it an my custom names were no longer recognized. After the update the ID hand changed. If you updated HA during the process you might want to double check your ids.
Hi guys, all the Z-Wave stuff is identified automatically in hass with generic names. If you want to customize those you have to do it in the configuration.yaml.
You can do it via the development-tools as well, but those changes are forgot when home-assistant restarts.
Thanks, but unfortunately the customize names aren’t showing up after editing configuration.yaml and restarting hass. Here’s my configuration.yaml:
homeassistant:
# Name of the location where Home Assistant is running
name: House
# Location required to calculate the time the sun rises and sets
latitude: 34.500
longitude: -85.000
# C for Celcius, F for Fahrenheit
temperature_unit: F
# Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
time_zone: America/New_York
# View all events in a logbook
logbook:
# Discover some devices automatically
discovery:
# Enables support for tracking state changes over time.
history:
# Enables the frontend
frontend:
# Track the sun
#sun:
# Show links to resources in log and frontend
#introduction:
# Checks for available updates
updater:
# Allows you to issue voice commands from the frontend
conversation:
http:
api_password: xxx
zwave:
usb_path: /dev/ttyACM0
config_path: /usr/local/share/python-openzwave/config
customize:
switch.aeon_labs_smart_energy_switch_switch_2:
friendly_name: Switch-1
icon: mdi:lightbulb-outline
I got “switch.aeon_labs_smart_energy_switch_switch_2” from watching the output when I start hass, and it also appears on the /devState page. The switch shows up as “Aeon Labs Smart Energy Switch Switch” on the /states page.
I did the same mistake as you the first time i setup customization. It has to be inside the homeassistant-element. I’ve corrected your config below.
homeassistant:
# Name of the location where Home Assistant is running
name: House
# Location required to calculate the time the sun rises and sets
latitude: 34.500
longitude: -85.000
# C for Celcius, F for Fahrenheit
temperature_unit: F
# Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
time_zone: America/New_York
customize:
switch.aeon_labs_smart_energy_switch_switch_2:
friendly_name: Switch-1
icon: mdi:lightbulb-outline
# View all events in a logbook
logbook:
# Discover some devices automatically
discovery:
# Enables support for tracking state changes over time.
history:
# Enables the frontend
frontend:
# Track the sun
#sun:
# Show links to resources in log and frontend
#introduction:
# Checks for available updates
updater:
# Allows you to issue voice commands from the frontend
conversation:
http:
api_password: xxx
zwave:
usb_path: /dev/ttyACM0
config_path: /usr/local/share/python-openzwave/config