Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mattsbanner/mqtt-to-kasa
Simple Node.js application that subscribes to MQTT messages and forwards on the relevant command to TP-Link Kasa devices.
https://github.com/mattsbanner/mqtt-to-kasa
iot mqtt smarthome tplink-kasa
Last synced: about 1 month ago
JSON representation
Simple Node.js application that subscribes to MQTT messages and forwards on the relevant command to TP-Link Kasa devices.
- Host: GitHub
- URL: https://github.com/mattsbanner/mqtt-to-kasa
- Owner: mattsbanner
- Created: 2023-09-10T13:53:09.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-10T14:10:23.000Z (over 1 year ago)
- Last Synced: 2024-11-07T17:34:30.317Z (3 months ago)
- Topics: iot, mqtt, smarthome, tplink-kasa
- Language: JavaScript
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MQTT to Kasa
Simple Node.js application that subscribes to MQTT messages and forwards on the relevant command to TP-Link Kasa devices.
## Topics
Currently, only a state topic is supported. Kasa devices can only be specified by their local IP address.### State
Publishing 1 or 0 to `/kasa/kasa-device-ip/state` will send the request required to turn on or off the device (e.g. `/kasa/192.168.1.100/state` will turn the device at `192.168.1.100` off when the message is 0).## Environment
Each of the following environment variables must be declared.- MQTT_BROKER_IP
- MQTT_BROKER_PORT## Development
A `docker-compose.yml` file is included for running locally.
```
docker-compose up
```