Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Workaround for Home Assistant #40

Open
alexvenom opened this issue Apr 10, 2020 · 1 comment
Open

Workaround for Home Assistant #40

alexvenom opened this issue Apr 10, 2020 · 1 comment

Comments

@alexvenom
Copy link

alexvenom commented Apr 10, 2020

As the custom_component for Home Assistant seems not to be working, I came up with this workaround for using the Candelas.
It is slow and far from perfect, but it works.

1- Install python-yeelightbt using SSH in port 22222 (as described in the Installation section of the documentation) or using Portainer to access the shell.

2- Still in the SSH or Portainer shell, configure your lights:
2.1- make sure your Candela is turned ON (light up) and near
2.2- use yeelightbt scan to list your devices
2.3- try to connect to each Candela using this command yeelightbt --mac:the_mac_of_your_candela on
2.4- it will ask you to change the brightness. CHANGE THE BRIGHTNESS turning the light glass. If you don't, the link will work for a while and stop working later. If you don't see a "we are linked" message, it did not work. Try again.
2.5- repeat 2.3 and 2.4 for every Candela you have.

3- Create multiple command switches in your configuration to operate the Candelas:

switch:
  platform: command_line
  switches:
    candela_1:
      command_on: '/usr/local/bin/yeelightbt --mac=f8:24:41:XX:YY:ZZ on'
      command_off: '/usr/local/bin/yeelightbt --mac=f8:24:41:XX:YY:ZZ off'
      friendly_name: Candela Living Room
    candela_2:
      command_on: '/usr/local/bin/yeelightbt --mac=f8:24:41:XX:YY:KK on'
      command_off: '/usr/local/bin/yeelightbt --mac=f8:24:41:XX:YY:KK off'
      friendly_name: Candela Bedroom
    candela_3:
      command_on: '/usr/local/bin/yeelightbt --mac=f8:24:41:XX:YY:PP on'
      command_off: '/usr/local/bin/yeelightbt --mac=f8:24:41:XX:YY:PP off'
      friendly_name: Candela TV room

Use those switches to turn on/off your candelas.
You can also set brightness to turn it on at a specified brightness setting, so, if the Candela is turned off, running '/usr/local/bin/yeelightbt --mac=f8:24:41:XX:YY:ZZ brightness 100' will turn it on at 100%.

@djjproject
Copy link

Hi, I was made scripts for this.
https://github.com/djjproject/yeelightbt_script

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants