Aeotec Gen5 Z-stick strobing LED question in Hass.io

:+1: Pretty sure the setting is internal to the stick. Reverts back to defaults if you reset it.

1 Like

Not sure about HASSio but this has work on every other install of HA I have used. (Bottom of the page)

https://home-assistant.io/docs/z-wave/settings/

I’m starting to feel really dumb now. I tried putting stick into the Mac but in terminal I see a no such command on “apt-get” error when I run instructions I found on reddit, so I checked Aeotec and they recommend I install an app called domoticz? to turn off the light. But its not a simple click to install…it looks like I have to install home-brew or something just to compile? and run the program. My eyes are glazing over.

When I plug the stick back in to the pi and copy the code over to the terminal window, I get can't create /dev/serial/by-id/usb-0658_0200-if00: nonexistent directory.

I think I’m going to get black tape from the garage.

Hello all,

I also have this same issue. I am running a RPi3 with a Z-Stick, and the disco lights drive me nuts. The following command from the guide unfortunately does not work:

$ echo -e -n "\x01\x08\x00\xF2\x51\x01\x00\x05\x01\x51" > /dev/serial/by-id/usb-0658_0200-if00

Any help would be greatly appreciated.

Thanks!

I was able to solve this by plugging the Z-Stick into my MacBook and executing the following command:

sudo sh -c "echo -e '\x01\x08\x00\xF2\x51\x01\x00\x05\x01\x51' | cu -l /dev/tty.usbmodem1421 -s 115200"

For hassio, the easiest way is to create a command line switch which allows you to toggle it via the Home Assistant UI.

switch:
  - platform: command_line
    switches:
      aeotec_zstick_disco_light:
        friendly_name: 'Aeotec Z-Stick Disco Light'
        command_on: 'echo -e -n "\x01\x08\x00\xF2\x51\x01\x01\x05\x01\x50" > /dev/serial/by-id/usb-0658_0200-if00'
        command_off: 'echo -e -n "\x01\x08\x00\xF2\x51\x01\x00\x05\x01\x51" > /dev/serial/by-id/usb-0658_0200-if00'
33 Likes

Thanks! This (the above code) worked great for me. :+1:

1 Like

This worked great! Thank you @NotoriousBDG!

1 Like

Worked great! Thanks

1 Like

I can’t seem to get this to work in Hassbian. When I execute the commands in shell, they work perfectly. I have confirmed they work for the pi user, the home assistant user, and the home assistant user from the virtualenv.

But when I copy your command_line switch into my config, the switch does nothing. I can see it in the fronted, can switch it on and off, but nothing going on the Z-stick itself. Am I missing something obvious? For what it’s worth, I have a couple other command_line switches that work fine.

  - platform: command_line
    switches:
      aeotec_zstick_disco_light:
        friendly_name: 'Aeotec Z-Stick Disco Light'
        command_on: 'echo -e -n "\x01\x08\x00\xF2\x51\x01\x01\x05\x01\x50" > /dev/serial/by-id/usb-0658_0200-if00'
        command_off: 'echo -e -n "\x01\x08\x00\xF2\x51\x01\x00\x05\x01\x51" > /dev/serial/by-id/usb-0658_0200-if00'

No errors that I can see in the log either, by the way.

Have you tried running it with sudo? I only have hassio, so I can’t test it.

This works fine in HASSIO. I do have an additional first line (switch:), that may be the problem.

switch:
  - platform: command_line
    switches:
      aeotec_zstick_disco_light:
        friendly_name: 'Aeotec Z-Stick Disco Light'
        command_on: 'echo -e -n "\x01\x08\x00\xF2\x51\x01\x01\x05\x01\x50" > /dev/serial/by-id/usb-0658_0200-if00'
        command_off: 'echo -e -n "\x01\x08\x00\xF2\x51\x01\x00\x05\x01\x51" > /dev/serial/by-id/usb-0658_0200-if00'

Thanks for the suggestions. I have the switch: line a couple line up in my config (above a couple other command_line switches that are working fine). And no dice on sudo. I was pretty sure it would error, but tried it just in case. With sudo, the actual switch fails in the frontend. It won’t even switch off, and i get an error in the log. Without sudo, the switch looks like it works fine, with no errors in the log. It’s almost like the command just gets lost after it leaves HA.

Not a critical issue, as this was more so I would’nt have to try to remember the command whenever I wanted to change the disco lights (which isn’t very often at all). But definitely a head scratcher.

Hi Guys,

Have just installed a Gen 5 Z-Stick on my rpi3 running HASS.IO 0.60.1 and am unable to turn off those annoying disco lights :confused:

When typing in the echo command mentioned in previous posts I get the following response ‘No such file or directory’

core-ssh:~# echo -e -n "\x01\x08\x00\xF2\x51\x01\x00\x05\x01\x51" > /dev/serial/by-id/usb-0658_0200-if00
-bash: /dev/serial/by-id/usb-0658_0200-if00: No such file or directory
core-ssh:~# lsusb
Bus 001 Device 002: ID 0424:9514
Bus 001 Device 001: ID 1d6b:0002
Bus 001 Device 003: ID 0424:ec00
Bus 001 Device 004: ID 0658:0200

lsusb shows the stick is there. What am I missing here ?

Try putting this into your configuration file, If you already have a switch: leave out the first line and add the rest to it.

switch:
  - platform: command_line
    switches:
      aeotec_zstick_disco_light:
        friendly_name: 'Aeotec Z-Stick Disco Light'
        command_on: 'echo -e -n "\x01\x08\x00\xF2\x51\x01\x01\x05\x01\x50" > /dev/serial/by-id/usb-0658_0200-if00'
        command_off: 'echo -e -n "\x01\x08\x00\xF2\x51\x01\x00\x05\x01\x51" > /dev/serial/by-id/usb-0658_0200-if00'

It works on my setup.

5 Likes

Well that is the weirdest thing !

I didn’t bother putting the switch into HA as the command didn’t work while SSHing into the rpi.
But guess what ? It works as a switch !!

Thankyou for the motivation @carbuthn

Just passing it along, I don’t remember who wrote it in a previous post.

Check your z-wave configuration and adjust USB-path if not working. That was the issue with my hassio installation.

#my config.yaml

zwave:
  usb_path: /dev/ttyACM0

#so adjust the command as follows (for turning off):

> 'echo -e -n "\x01\x08\x00\xF2\x51\x01\x00\x05\x01\x51" > /dev/ttyACM0'
3 Likes

That was awesome, thanks. I’ve added that switch to my hassio config and it worked perfectly.

Hi all.
I find a way to make it work in hassbian:

  - platform: command_line
    switches:
      aeotec_zstick_disco_light:
        friendly_name: 'Aeotec Z-Stick Disco Light'
        command_on: '/usr/bin/echo -e -n "\x01\x08\x00\xF2\x51\x01\x01\x05\x01\x50" > /dev/serial/by-id/usb-0658_0200-if00'
        command_off: '/usr/bin/echo -e -n "\x01\x08\x00\xF2\x51\x01\x00\x05\x01\x51" > /dev/serial/by-id/usb-0658_0200-if00'

The key is to use the full path of echo.

Still useless, so indispensable.

1 Like