webproject-xyz / ikea-tradfri-php-api
PHP library to control ikea tradfri hub
3.0.0
2025-02-21 23:42 UTC
Requires
- php: ~8.3.0 || ~8.4.0
- ext-filter: *
- ext-json: *
- ext-mbstring: *
- doctrine/collections: ^2.2.2
- psr/log: ^3.0.2
- roave/better-reflection: ^6.57.0
- symfony/process: ^7.2.0
- symfony/property-access: ^7.2.3
- symfony/property-info: ^7.2.3
- symfony/serializer: ^7.2.3
- symfony/service-contracts: ^3.5.1
- symfony/validator: ^7.2.3
Requires (Dev)
- codeception/codeception: ^5.2.1
- codeception/mockery-module: ^0.5.0
- codeception/module-asserts: ^3.0.0
- ergebnis/license: ^2.6.0
- ergebnis/php-cs-fixer-config: ^6.43.1
- friendsofphp/php-cs-fixer: ^3.69.1
- maglnet/composer-require-checker: ^4.16.1
- mockery/mockery: ^1.6.12
- phpro/grumphp: ^2.10.0
- phpstan/extension-installer: ^1.4.3
- phpstan/phpdoc-parser: ^2.1.0
- phpstan/phpstan: ^2.1.6
- phpstan/phpstan-mockery: ^2.0.0
- phpunit/phpunit: ^12.0.4
- rector/rector: ^2.0.9
- roave/security-advisories: dev-latest
- symfony/var-dumper: ^7.2.3
- wmde/psr-log-test-doubles: ^3.2
- dev-develop
- 4.0.x-dev
- 3.1.x-dev
- 3.0.0
- 2.6.x-dev
- 2.6.0
- 2.5.x-dev
- 2.5.1
- 2.5.0
- 2.4.x-dev
- 2.4.0
- 2.3.x-dev
- 2.3.1
- 2.3.0
- 2.2.x-dev
- 2.2.0
- 2.1.0
- 2.0.0
- 1.0.0
- 0.3.13
- 0.3.12
- 0.3.11
- 0.3.10
- 0.3.9
- 0.3.8
- 0.3.7
- 0.3.6
- 0.3.5
- 0.3.4
- 0.3.3
- 0.3.2
- 0.3.1
- 0.3.0
- 0.2.0
- dev-renovate/all-minor-patch
- dev-renovate/lock-file-maintenance
- dev-2.6.x-merge-up-into-3.0.x_x0c7CPm1
- dev-master
This package is auto-updated.
Last update: 2025-03-14 05:52:36 UTC
README
PHP api to control Ikea smart lights (tradfri)
Inspired by
hvanderlaan/ikea-smartlight Python
Status
Main
Develop
Requirements and initial setup
see requirements.md
How to use
Docker Coap-Client
Get client
docker pull webproject/coap-client:latest
Run command in Docker
Generate API User and <COAP_API_KEY> (Shared Key)
docker run --rm --name coap-client webproject/coap-client -m post -u "Client_identity" -k "<COAP_GATEWAY_SECRET>" -e '{"9090":"php-api-user"}' "coaps://<COAP_GATEWAY_IP>:5684/15011/9063""
Get all api endpoints
docker run --rm --name coap-client webproject/coap-client -m get -u "php-api-user" -k "<COAP_API_KEY>" "coaps://<COAP_GATEWAY_IP>:5684/.well-known/core"