Code Monkey home page Code Monkey logo

tradfri-fhem's Introduction

FHEM Trådfri Module

This is a small extension module for the FHEM Home-Control software. It enables connectivity to an IKEA Trådfri gateway.

Important Notice

Sadly, I'm not using the Tradfri devices anymore, thus I had to stop continuing to develop on this module. I'd be happy to transfer it to a new owner.

About this branch (cf-dev)

This branch is used to evaluate other options for CoAP clients, here Eclipse Californium. It is one step into the direction of realtime updating of the device parameters. You can get information about the usage of this beta version on my website: http://electronic.kappelt.net/wordpress/ikea-tradfri-module-for-fhem-beta/

Contact me

If you've a github account: please open an issue, with the appropriate description of your problem. You may send me an email, though issues are prefered: [email protected]

tradfri-fhem's People

Contributors

peterkappelt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tradfri-fhem's Issues

Use Log3

The Log-Function is used in the code, though it is recommended to use the newer Log3-function.
Migrate it

Incomplete (?) Messages are transmitted

Valid for dev-cf

User reported, that FHEM shows messages like this:

TradfriGW: Unknown code subscribedDeviceUpdate::65555::{"lastSeenAt":1502202743,"createdAt":1498833388,"c, help me!
TradfriGW: Unknown code subscribedDeviceUpdate::65559::{"lastSeenAt":1502205382,"createdAt":1499181237,"color":"f5faf6","reachabilityState":1,"name":"...","dimvalue":254,"type":"TRADFRI bulb GU10 WS 400lm","deviceid":65559,"version":"1.2.217","manufacturer, help me!

Looks like the messages transmitted from JTradfri are not transmitted entirely, or FHEM calls _Parse before the full message was received?

No more Updates after some Time

Valid for dev-cf

JTradfri stops to receive updates from the gateway after some time. Reason is most likely the system's firewall, that is closing the UDP port after some inactivity.

Bug has been seen on Windows and Linux systems with a custom configured firewall.

Workaround: None yet.

Fix: Ping the gateway periodically in order to keep the port open. The ping feature isn't implemented in the stable Californium yet.

controller as device

Hey Peter,

thanks for this fantastic peace of work.
As an enhancement it would be nice if the controller could be read and used as a control device.

Thanks,
Michael

Development status

Is this project dead or can you give us an eta when you might implement the missing features?

NullPointerException if working as a service

Exception at readline function:

Exception in thread "main" java.lang.NullPointerException
at net.kappelt.JTradfri.Commands.Commandline.run(Commandline.java:26)
at net.kappelt.JTradfri.JTradfri.startThreadHandler(JTradfri.java:62)
at net.kappelt.JTradfri.JTradfri.main(JTradfri.java:48)

Tradfri switches as sensors

I could not find a documentation how to use the switch/dimmer as fhem control device.
I am new to fhem and it could absolutely be that I missed it.
This should be possible because the group state is updated in the app in real-time. Therefore the gateway must send something to the network on which we should be able to react.

Have you done any work in this direction? Otherwise I will try to use wireshark to reverse the protocol.

Thanks in advance for any directions.

Configurable hostname

Could you please make the hostname configurable?

# @todo make user settable
$hash->{DeviceName} = "localhost:1505";

I tried to change this line with another hostname, but it doesn‘t work.
Thank you very much.

Error while trying to fetch devices!

when i try to fetch my devices, i always get this error message : "Error while trying to fetch devices!". With "get coapClientVersion" i resive the message "coap-client v4.1.2 -- a small CoAP implementation".
And if i run "coap-client -m get -k PSK -u Client_identity coaps://IP/15001" in my commandline" i get this output:
v:1 t:CON c:GET i:24f3 {} [ ]
decrypt_verify(): found 24 bytes cleartext
decrypt_verify(): found 4 bytes cleartext
4.01

i guess i did all the steps of your tutorial without any mistakes..

ty for your help
greetings Stimming

Division by zero

Under some (unlikely) circumstances, there might be a division by Zero:

TradfriLib.pm / Line 202

Only valid for current master/ not development version

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.