https://github.com/thomasloven/plejd2mqtt
https://github.com/thomasloven/plejd2mqtt
Last synced: 3 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/thomasloven/plejd2mqtt
- Owner: thomasloven
- License: apache-2.0
- Created: 2020-10-19T18:11:39.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-08-20T18:58:23.000Z (over 1 year ago)
- Last Synced: 2025-04-05T08:05:03.753Z (26 days ago)
- Language: JavaScript
- Size: 16.6 KB
- Stars: 14
- Watchers: 7
- Forks: 8
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Plejd2MQTT
A docker container that works as a translator between [Home Assistant](https://home-assistant.io) and [Plejd](https://www.plejd.com) devices via MQTT.This is just a standalone variant of [hassio-plejd](https://github.com/icanos/hassio-plejd/tree/master/plejd) which can be run in a separate container and doesn't need the Home Assistant supervisor.
I've removed some dead code and added availability tracking. I.e. lights will become unavailable when the container stops.
**Note that I have not tested all the functionality.
This is provided as-is.**## Usage
Configuration is done via environment variables
Parameter | Description
--- | ---
`PLEJD_SITE` | The name of your site in the Plejd app
`PLEJD_USERNAME` | Your Plejd app username
`PLEJD_PASSWORD` | Your Plejd app password
`MQTT_BROKER` | MQTT broker URI. (default: `mqtt://localhost`)
`MQTT_USERNAME` | MQTT broker username
`MQTT_PASSWORD` | MQTT broker password
`PLEJD_INCLUDE_ROOMS_AS_LIGHT` | (default `false`)
`BLUETOOTH_TIMEOUT` | (default `2`)
`BLUETOOTH_WAIT` | (default `400`)The Plejd2MQTT container requires access to `/var/run/dbus` for bluetooth access.
## Example docker-compose file:
```yaml
version: "3"services:
mqtt:
image: eclipse-mosquitto:latestplejd2mqtt:
image: thomasloven/plejd2mqtt
volumes:
- /var/run/dbus:/var/run/dbus
environment:
PLEJD_SITE: My Home
PLEJD_USERNAME: [email protected]
PLEJD_PASSWORD: ${MY_PLEJD_PASSWORD}
MQTT_BROKER: mqtt://mqtt```