Comments (11)
Hi
You can manually edit the settings.xml in userdata/addon_data/script.service.hue but also need to manually create a user on the bridge for it to work...
I'm working on allowing manual IP entry as a fallback in the current discovery flow to solve both this and #172, it should be in the next available version.
from script.service.hue.
Please try this version https://github.com/zim514/script.service.hue/releases/tag/v1.2-dev1
from script.service.hue.
thanks. after seeing #147 (only one ambilight color with this add-on) i'll try to get the add-on script.kodi.hue.ambilight working first before i try this one. for those having the same problem, if you want to configure it manually it is very easy to create a user on the hue bridge with curl:
$ curl -d '{"devicetype":"$DEVICE-NAME"}' -H "Content-Type: application/json" -X POST 'http://$BRIDGE-IP/api'
response:
[{"error":{"type":101,"address":"","description":"link button not pressed"}}]
now press the button on the hue bridge and repeat:
$ curl -d '{"devicetype":"$DEVICE-NAME"}' -H "Content-Type: application/json" -X POST 'http://$BRIDGE-IP/api' ; echo
response:
[{"success":{"username":"XXXXXXXXXXXXXXXXXX"}}]
$DEVICE-NAME can be any any string, for example "Kodi"
$BRIDGE-IP is the IP of the hue bridge, for example 192.168.0.9
XXXXXXXXXXXXXXXXXXX is the username/key you have created (alphanumeric string)
from script.service.hue.
I have the same problem, I can't enter the IP manually, I tried the last version from https://github.com/zim514/script.service.hue/releases/tag/v1.12.14 and I also tried https://github.com/zim514/script.service.hue/releases/tag/v1.2-dev1. There is no way to enter the IP like with other programs, just an error it can't find the bridge.
If I look the setting file ./.kodi/addons/script.service.hue/resources/settings.xml there is setting id="bridgeIP" and setting id="bridgeUser" but I don't understand the syntax to put the IP and hue user/key there. Should I put these with the and tags and should I remove anything from the section? It is really painful to make this work!
from script.service.hue.
Could you please provide debug logs?
from script.service.hue.
Has manual entry of bridge IP been implemented? If not, how could debug logs be useful at all? I only see I can't enter the IP, maybe I'm doing something wrong and maybe it's not implemented yet. But I don't get any errors that could make reading logs be useful. I just want to clarify before uploading them...
from script.service.hue.
Yep, if you select 'Discover bridge' but it doesn't find one, it should prompt you to enter an IP manually and then continue the connection flow. If you're not getting the prompt, logs will help me figure out why
from script.service.hue.
Thanks for the clarification! Logs attached (username replaced with $user), it complains about a missing module called PIL, maybe that is the reason
from script.service.hue.
Probably. PIL is included with Kodi, you may have to reinstall Kodi to fix the problem. What OS are you running Kodi on?
from script.service.hue.
I use Linux, Kodi comes in a package. If I remove and add it again I'll end up with the same files. There is an optional package with Kodi binary add-ons, but I have no idea if PIL is included with the Kodi package or not or how to check. Is there a file I should be looking for? Maybe it was compiled without PIL. I actually have no idea what PIL is..
from script.service.hue.
PIL is the Python Imaging Library / Pillow python package. It comes bundled with Kodi so I'm not sure why it wouldn't be included in your install. It may be part of the binary add-ons but I'm not sure. I think you can also try 'pip install Pillow' from the command line to install it manually. It's a problem with the Kodi installation rather than the Hue add-on so I'm sure how to fix it. You may have better luck asking on https://forum.kodi.tv/
from script.service.hue.
Related Issues (20)
- Hue Service crashing with error message on Vero4K+ HOT 2
- Ambi-light left and right effect HOT 3
- xbmc.python version 3.0.0 could not be satisfied HOT 1
- Unknown colour gamut for light -1 during Startup/Settings Menu HOT 3
- Make compatible with diyHue HOT 9
- Error Contents: No module named 'PIL' HOT 1
- JSONDecodeError: Expecting value: line 1 column 1 (char 0)
- Discover does not work with manual ip HOT 1
- AttributeError: __enter__
- QhueException: QhueException: 3 -> resource, /scenes/-1, not available
- JSONDecodeError: [Errno Expecting value] : 0 HOT 1
- Scene selection issues with diyHue
- Daylight setting no longer working HOT 2
- ConnectTimeout: HTTPConnectionPool(host='192.168....
- RuntimeError: Kodi is not playing any videofile HOT 1
- simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0) HOT 1
- Brightness and Transition not working with ikea trådfri bulbs
- Does not work with Python 2
- Feature request: Disable Hue Labs effects while playing with Ambilight enabled HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from script.service.hue.