I am curious if anyone has discovered a way to disable the glowing LED on the end of the Z-Wave USB stick from Aeotec? I see a few guides that requite sudo
and apt-get
which neither work (in my experience) for someone using Hassio. I have a control panel for Zwave but unsure if I can disable the lights via this method. I am also able to browse the file structure via a FTP program like Transmit, but unsure where/if there is a file I can just edit to do the same thing. Much like I can edit the configuration.yaml
.
If you have a windows box you can use thier gui. (Assuming its a gen5)
Not sure about getting it working from Hassio. I had no problem with the sudo commands using my mac.
You know I hadnât thought of that. Just unplug the stick and into my mac, then run it form there. Thanks! Simple solution. I wasnât sure if it was a setting that was bonded to the OS it is currently attached to.
Pretty sure the setting is internal to the stick. Reverts back to defaults if you reset it.
Not sure about HASSio but this has work on every other install of HA I have used. (Bottom of the page)
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'
Thanks! This (the above code) worked great for me.
Worked great! Thanks
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
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.
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.