All Projects → hardillb → TRADFRI2MQTT

hardillb / TRADFRI2MQTT

Licence: Apache-2.0 license
MQTT Bridge for IKEA TRÅDFRI Light Gateway

Programming Languages

java
68154 projects - #9 most used programming language
Dockerfile
14818 projects

Projects that are alternatives of or similar to TRADFRI2MQTT

Emqx
An Open-Source, Cloud-Native, Distributed MQTT Message Broker for IoT.
Stars: ✭ 8,951 (+11088.75%)
Mutual labels:  coap
Ikea Tradfri Coap Docs
How can you communicate to your ikea tradfri gateway/hub through coap-client
Stars: ✭ 111 (+38.75%)
Mutual labels:  coap
Aiocoap
The Python CoAP library
Stars: ✭ 185 (+131.25%)
Mutual labels:  coap
Flogo Contrib
Flogo Contribution repo. Contains activities, triggers, models and actions.
Stars: ✭ 60 (-25%)
Mutual labels:  coap
Mainflux
Industrial IoT Messaging and Device Management Platform
Stars: ✭ 1,341 (+1576.25%)
Mutual labels:  coap
Anjay
C implementation of the client-side OMA LwM2M protocol
Stars: ✭ 115 (+43.75%)
Mutual labels:  coap
Coapnet
CoAPnet is a high performance .NET library for CoAP based communication. It provides a CoAP client and a CoAP server. It also has DTLS support out of the box.
Stars: ✭ 23 (-71.25%)
Mutual labels:  coap
zestdb
ZestDB
Stars: ✭ 18 (-77.5%)
Mutual labels:  coap
Qcloud Iot Sdk Embedded C
SDK for connecting to Tencent Cloud IoT from a device using embedded C.
Stars: ✭ 109 (+36.25%)
Mutual labels:  coap
Designiot
教你设计物联网系统。构建自己的Internet of Things 。
Stars: ✭ 1,983 (+2378.75%)
Mutual labels:  coap
Swiftcoap
Swift Server/Client Implementation of CoAP - RFC 7252
Stars: ✭ 63 (-21.25%)
Mutual labels:  coap
Awalwm2m
Awa LWM2M is an implementation of the OMA Lightweight M2M protocol in C.
Stars: ✭ 93 (+16.25%)
Mutual labels:  coap
Coap Rs
A Constrained Application Protocol(CoAP) library implemented in Rust.
Stars: ✭ 128 (+60%)
Mutual labels:  coap
Node Lwm2m
OMA LwM2M protocol implementation for Node
Stars: ✭ 41 (-48.75%)
Mutual labels:  coap
Golden Gate
Framework to connect wearables and other IoT devices to mobile phones, tablets and PCs with an IP-based protocol stack over Bluetooth Low Energy
Stars: ✭ 223 (+178.75%)
Mutual labels:  coap
Rtos Wot
Open source FreeRTOS SDK for ESP8266 WiFi Module
Stars: ✭ 29 (-63.75%)
Mutual labels:  coap
Iot Technical Guide
🐝 IoT Technical Guide --- 从零搭建高性能物联网平台及物联网解决方案和Thingsboard源码分析 ✨ ✨ ✨ (IoT Platform, SaaS, MQTT, CoAP, HTTP, Modbus, OPC, WebSocket, 物模型,Protobuf, PostgreSQL, MongoDB, Spring Security, OAuth2, RuleEngine, Kafka, Docker)
Stars: ✭ 2,334 (+2817.5%)
Mutual labels:  coap
custom-brand-icons
Custom brand icons for Home Assistant
Stars: ✭ 242 (+202.5%)
Mutual labels:  ikea
Go Coap
Implementation of CoAP Server & Client in Go
Stars: ✭ 226 (+182.5%)
Mutual labels:  coap
Cloud
Secure and Interoperable Internet of Things
Stars: ✭ 142 (+77.5%)
Mutual labels:  coap

Invocation

java -jar TRADFRI2MQTT-X.X.X-SNAPSHOT.jar -ip {gateway IP} -psk {gateway secret} -broker {MQTT broker URL} [-retained]

The optional -retained configures the MQTT topics as retained.

e.g.

java -jar TRADFRI2MQTT-X.X.X-SNAPSHOT.jar -ip 192.168.1.XXX -psk xxxxxxxxxxxxxxxx -broker tcp://localhost

Publishes state messages on topics like this:

  • TRÅDFRI/bulb/Living Room Light/state/on
  • TRÅDFRI/bulb/Living Room Light/state/dim
  • TRÅDFRI/bulb/Living Room Light/state/temperature
  • TRÅDFRI/room/Living Room/state/on
  • TRÅDFRI/room/Living Room/state/dim

Subscribes to control messages on topics like this:

  • TRÅDFRI/bulb/Living Room Light/control/on
  • TRÅDFRI/bulb/Living Room Light/control/dim
  • TRÅDFRI/bulb/Living Room Light/control/temperature
  • TRÅDFRI/room/Living Room/control/on
  • TRÅDFRI/room/Living Room/control/dim
  • TRÅDFRI/room/Living Room/control/mood

publish 0/1 to the on topic to turn the light off/on respectively

publish 0-254 to the dim topic to change the brightness

publish "cold" / "normal" / "warm" to the temperature topic to change temperatures. This only works on individual bulbs.

publish the name of a mood (case-sensitive) to the mood topic of a room to adapt that mood. IKEA predefined moods are internally uppercase-only for some reason: "EVERYDAY" / "FOCUS" / "RELAX". Your self-defined moods have to be spelled like in the Trådfri App. At the moment, only control is implemented and state is not.

MQTT broker example

An easy-to-use MQTT broker is mosquitto.

After installation run it locally with mosquitto.

Then submit commands like this: mosquitto_pub -t "TRÅDFRI/bulb/LivingRoomBulb1/control/temperature" -m warm or subscribe like this: mosquitto_sub -t "TRÅDFRI/room/LivingRoom/state/on"

Installation on Docker

Optionally, TRADFRI2MQTT can be installed and run within a Docker image using the following instructions:

  1. Clone this GIT repository.
  2. Build the tradfri2mqtt docker image like so: docker build -t tradfri2mqtt .
  3. Run tradfri2mqtt within a docker container: docker run -rm tradfri2mqtt -ip [gateway ip] -psk [gateway secret] -broker [mqtt broker url]
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].