hvanderlaan / ikea-smartlight Goto Github PK
View Code? Open in Web Editor NEWpython framework for controlling the Ikea smart lights (tradfri)
License: GNU General Public License v3.0
python framework for controlling the Ikea smart lights (tradfri)
License: GNU General Public License v3.0
Please add support for the new tradfri smart blinds Fyrtur and Kadril :-)
Hi!
I would guess that it might not be an application rather then an issue with Trådfri itself.
It seems that by today they are rolling out software upgrades, I noticed some bulbs went from .214 to .217, the sad thing is that for nearly 4h my devices behave very inconsistent, but that also
by using the app or even the physical switches.
Any one else experiencing this?
[
{
"fw_binary_url": "http://fw.ota.homesmart.ikea.net/Tradfri_OTA_release_signed_2017_07_12_161101/bin/159693-TRADFRI-bulb-ws-1.2.217.ota.ota.signed",
"fw_file_version_LSB": 30066,
"fw_file_version_MSB": 4641,
"fw_filesize": 173246,
"fw_image_type": 8705,
"fw_manufacturer_id": 4476,
"fw_type": 2
},
{
"fw_binary_url": "http://fw.ota.homesmart.ikea.net/Tradfri_OTA_release_signed_2017_07_12_161101/bin/190579-ncp572b444.ebl.ota.ota.signed",
"fw_build_version": 444,
"fw_file_version_LSB": 444,
"fw_file_version_MSB": 5720,
"fw_filesize": 166270,
"fw_hotfix_version": 2,
"fw_image_type": 2,
"fw_major_version": 5,
"fw_manufacturer_id": 4476,
"fw_minor_version": 7,
"fw_type": 1
},
{
"fw_binary_url": "http://fw.ota.homesmart.ikea.net/Tradfri_OTA_release_signed_2017_07_12_161101/bin/159694-TRADFRI-bulb-ws-gu10-1.2.217.ota.ota.signed",
"fw_file_version_LSB": 30066,
"fw_file_version_MSB": 4641,
"fw_filesize": 173246,
"fw_image_type": 8707,
"fw_manufacturer_id": 4476,
"fw_type": 2
},
{
"fw_binary_url": "http://fw.ota.homesmart.ikea.net/Tradfri_OTA_release_signed_2017_07_12_161101/bin/159695-TRADFRI-bulb-ws-1000lm-1.2.217.ota.ota.signed",
"fw_file_version_LSB": 30066,
"fw_file_version_MSB": 4641,
"fw_filesize": 173246,
"fw_image_type": 8706,
"fw_manufacturer_id": 4476,
"fw_type": 2
},
{
"fw_binary_url": "http://fw.ota.homesmart.ikea.net/Tradfri_OTA_release_signed_2017_07_12_161101/bin/159696-TRADFRI-bulb-w-1000lm-1.2.214.ota.ota.signed",
"fw_file_version_LSB": 17778,
"fw_file_version_MSB": 4641,
"fw_filesize": 168318,
"fw_image_type": 8449,
"fw_manufacturer_id": 4476,
"fw_type": 2
},
{
"fw_binary_url": "http://fw.ota.homesmart.ikea.net/Tradfri_OTA_release_signed_2017_07_12_161101/bin/159697-TRADFRI-driver-hp-1.2.217.ota.ota.signed",
"fw_file_version_LSB": 30066,
"fw_file_version_MSB": 4641,
"fw_filesize": 173246,
"fw_image_type": 16898,
"fw_manufacturer_id": 4476,
"fw_type": 2
},
{
"fw_binary_url": "http://fw.ota.homesmart.ikea.net/Tradfri_OTA_release_signed_2017_07_12_161101/bin/159698-TRADFRI-driver-lp-1.2.217.ota.ota.signed",
"fw_file_version_LSB": 30066,
"fw_file_version_MSB": 4641,
"fw_filesize": 173246,
"fw_image_type": 16897,
"fw_manufacturer_id": 4476,
"fw_type": 2
},
{
"fw_binary_url": "http://fw.ota.homesmart.ikea.net/Tradfri_OTA_release_signed_2017_07_12_161101/bin/159699-TRADFRI-remote-control-1.2.214.ota.ota.signed",
"fw_file_version_LSB": 17778,
"fw_file_version_MSB": 4641,
"fw_filesize": 158590,
"fw_image_type": 4545,
"fw_manufacturer_id": 4476,
"fw_type": 2
},
{
"fw_binary_url": "http://fw.ota.homesmart.ikea.net/Tradfri_OTA_release_signed_2017_07_12_161101/bin/159700-TRADFRI-motion-sensor-1.2.214.ota.ota.signed",
"fw_file_version_LSB": 17778,
"fw_file_version_MSB": 4641,
"fw_filesize": 157822,
"fw_image_type": 4548,
"fw_manufacturer_id": 4476,
"fw_type": 2
},
{
"fw_binary_url": "http://fw.ota.homesmart.ikea.net/Tradfri_OTA_release_signed_2017_07_12_161101/bin/159701-TRADFRI-wireless-dimmer-1.2.248.ota.ota.signed",
"fw_file_version_LSB": 34162,
"fw_file_version_MSB": 4644,
"fw_filesize": 172926,
"fw_image_type": 4546,
"fw_manufacturer_id": 4476,
"fw_type": 2
},
{
"fw_binary_url": "http://fw.ota.homesmart.ikea.net/Tradfri_OTA_release_signed_2017_07_12_161101/bin/190578-TRADFRI-gateway-1.1.0015.p.elf.sig.ota.signed",
"fw_filesize": 454588,
"fw_hotfix_version": 15,
"fw_major_version": 1,
"fw_minor_version": 1,
"fw_req_hotfix_version": 16,
"fw_req_major_version": 9,
"fw_req_minor_version": 9,
"fw_type": 0,
"fw_update_prio": 5,
"fw_weblink_relnote": "https://ww8.ikea.com/ikeahomesmart/releasenotes/releasenotes.html"
}
]
Hi, I am wondering how could I use this if I want to develop my own APP for controlling ikea lights, thanks
Hi,
I get this error when im trying to turn on the lights:
v:1 t:CON c:PUT i:a2b4 {} [ ]
4.05 Method Not Allowed
When I've set-up tradfri.cfg and I run the command ./tradfri-status.py I get the following error messages:
[ ] Tradfri: acquiring all Tradfri devices, please wait ... Traceback (most recent call last): File "./tradfri-status.py", line 101, in <module> main() File "./tradfri-status.py", line 52, in main devices = tradfriStatus.tradfri_get_devices(hubip, apiuser, apikey) File "/home/vanesp/ikea-smartlight/tradfri/tradfriStatus.py", line 46, in tradfri_get_devices return json.loads(result.read().strip('\n').split('\n')[-1]) File "/usr/lib/python2.7/json/__init__.py", line 339, in loads return _default_decoder.decode(s) File "/usr/lib/python2.7/json/decoder.py", line 364, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/lib/python2.7/json/decoder.py", line 382, in raw_decode raise ValueError("No JSON object could be decoded") ValueError: No JSON object could be decoded
When I issue the coap command
coap-client -m get -u "IDENTITY" -k "<key>" "coaps://192.168.2.2:5684/15001/65537"
I get the following output:
{"9003":65537,"9001":"keukenkastjes","9002":1527787087,"5750":2,"9020":1528315461,"9054":0,"9019":1,"3":{"0":"IKEA of Sweden","1":"TRADFRI transformer 30W","2":"","3":"1.2.245","6":1},"3311":[{"5850":1,"5851":55,"9003":0}]}
Hope you can help
Hello,
I have integrated Color Bulbs to your frameworks - useless at Git stuff, can send you it for review if you like.
Regards,
Johnny
just needed to apiuser a thing anyways heres the files: mega
or here?: tradfrifix.zip
I don't know how to compile it so someone else is going to have to do that
After yesterdays update of the gateway firmware the scripts doesn't work for me any more...
Can supply information regarding error messages later on but for now this notification as a friendly alert from a otherwise happy user :-)
/R
Is there a way to detect if a bulb is powered off? The status in the tradfri gateway stays ON for a bulb, even if the power for the bulb is turned off. But there must be a way, because the Hue essentials app is able to report that a bulb is unreachable if it was turned off.
While tradfri-lights works perfectly well, the tradfri-status returns:
./tradfri-status.py
[ ] Tradfri: acquiring all Tradfri devices, please wait ...
Traceback (most recent call last):
File "./tradfri-status.py", line 95, in <module>
main()
File "./tradfri-status.py", line 52, in main
devices = tradfriStatus.tradfri_get_devices(hubip, apiuser, apikey)
File "/home/pi/src/ikea-smartlight/tradfri/tradfriStatus.py", line 46, in tradfri_get_devices
return json.loads(result.read().strip('\n'))
File "/usr/lib/python2.7/json/__init__.py", line 339, in loads
return _default_decoder.decode(s)
File "/usr/lib/python2.7/json/decoder.py", line 364, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python2.7/json/decoder.py", line 382, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
A bit cryptic error...
My gateway has 1.9.27 firmware. I am trying to create a preshared key without a success. Can you please let me know what is the api user id? As security code I have put the code found in Gateway. As ip address I have gateways ip adress. What is the client identity?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.