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

xiaomi philips bulb & philips ceiling #151

Closed
BrownC0de opened this issue Dec 27, 2017 · 6 comments
Closed

xiaomi philips bulb & philips ceiling #151

BrownC0de opened this issue Dec 27, 2017 · 6 comments

Comments

@BrownC0de
Copy link

BrownC0de commented Dec 27, 2017

Hello.
Who managed to get these lamps to work in Domoticz?
I would be grateful if someone prompted a little instruction for this
Thank you!

@rytilahti
Copy link
Owner

rytilahti commented Dec 28, 2017

Hi, this is not a support forum, so I think you'd be best served by contacting Domoticz forums / support channels :-)

@BrownC0de
Copy link
Author

I answer myself to my question:

sudo su
apt-get install python3-dev
apt-get install python3-pip
apt-get install libffi-dev libssl-dev
apt-get install git-core
pip3 install virtualenv
virtualenv -p python3 testenv
source testenv/bin/activate
pip install -U setuptools
pip install -e git+https://github.com/rytilahti/python-mirobo#egg=python-mirobo
deactivate
sudo mv /home/pi/testenv/bin/miceil /usr/local/bin/

And.. Create Dummy + Lua
commandArray = {}

if (devicechanged['Xiaomi Philips Люстра'] == 'On') then
    os.execute('miceil --ip 192.168.1.5 --token 182ab112341dd826b19264a6239c11 on')
elseif (devicechanged['Xiaomi Philips Люстра'] == 'Off') then
    os.execute('miceil --ip 192.168.1.5 --token 182ab112341dd826b19264a6239c11 off')
    end
return commandArray

@arek156
Copy link

arek156 commented May 31, 2018

Hi, I have a question where to get a light bulb token?

@deennoo
Copy link

deennoo commented May 31, 2018

That the tricky parts.

Use mitool kits (Windows app who backup and search for token on your android MiHome app).

Mitool kits need an old version off MiHome 5.0.6 one still store token on app dB. Newer ones doesn't store token

@arek156
Copy link

arek156 commented Jun 8, 2018

unfortunately my huawei p9 requires a password when making a copy, while the mihomekit application displays a message to not enter the password and unfortunately I can not read the key: /

@salcabo
Copy link

salcabo commented Nov 25, 2018

I answer myself to my question:

sudo su
apt-get install python3-dev
apt-get install python3-pip
apt-get install libffi-dev libssl-dev
apt-get install git-core
pip3 install virtualenv
virtualenv -p python3 testenv
source testenv/bin/activate
pip install -U setuptools
pip install -e git+https://github.com/rytilahti/python-mirobo#egg=python-mirobo
deactivate
sudo mv /home/pi/testenv/bin/miceil /usr/local/bin/

And.. Create Dummy + Lua
commandArray = {}

if (devicechanged['Xiaomi Philips Люстра'] == 'On') then
    os.execute('miceil --ip 192.168.1.5 --token 182ab112341dd826b19264a6239c11 on')
elseif (devicechanged['Xiaomi Philips Люстра'] == 'Off') then
    os.execute('miceil --ip 192.168.1.5 --token 182ab112341dd826b19264a6239c11 off')
    end
return commandArray

Can you tell me if its possible to dim light from domoticz? I know nothing about lua

Thanks

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

5 participants