webproject-xyz / ikea-tradfri-php-api
PHP library to control ikea tradfri hub
2.0.0
2024-01-21 20:33 UTC
Requires
- php: ~8.2.0 || ~8.3.0
- ext-json: *
- doctrine/annotations: ^2.0.1
- doctrine/collections: ^2.1.4
- phpdocumentor/reflection-docblock: ^5.3
- phpstan/phpdoc-parser: ^1.25
- roave/better-reflection: ^6.21.0
- symfony/property-access: ^7.0.0
- symfony/property-info: ^7.0.0
- symfony/serializer: ^7.0.2
- symfony/service-contracts: ^3.4.1
- symfony/validator: ^7.0.2
Requires (Dev)
- codeception/codeception: ^5.0.13
- codeception/mockery-module: ^0.5.0
- codeception/module-asserts: ^3.0.0
- ergebnis/license: ^2.4.0
- ergebnis/php-cs-fixer-config: ^6.19.0
- friendsofphp/php-cs-fixer: ^3.46.0
- mockery/mockery: ^1.6.7
- phpro/grumphp: ^2.4.0
- phpstan/extension-installer: ^1.3.1
- phpstan/phpstan: ^1.10.55
- phpstan/phpstan-mockery: ^1.1.2
- rector/rector: ^0.19.0
- roave/security-advisories: dev-latest
- symfony/var-dumper: ^7.0.2
- wmde/psr-log-test-doubles: ^3.2
This package is auto-updated.
Last update: 2024-04-26 02:10:22 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"