Sign inSign up

thomasloven/plejd2mqtt

By thomasloven

•Updated over 5 years ago

Connect Plejd deviced to Home Assistant (unsupervised) via MQTT discovery

Image
0

4.9K

thomasloven/plejd2mqtt repository overview

⁠Plejd2MQTT⁠

https://github.com/thomasloven/plejd2mqtt⁠

A docker container that works as a translator between Home Assistant⁠ and Plejd⁠ devices via MQTT.

This is just a standalone variant of hassio-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

ParameterDescription
PLEJD_SITEThe name of your site in the Plejd app
PLEJD_USERNAMEYour Plejd app username
PLEJD_PASSWORDYour Plejd app password
MQTT_BROKERMQTT broker URI. (default: mqtt://localhost)
MQTT_USERNAMEMQTT broker username
MQTT_PASSWORDMQTT 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:

version: "3"

services:
  mqtt:
    image: eclipse-mosquitto:latest


  plejd2mqtt:
    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

Tag summary

Content type

Image

Digest

Size

42.7 MB

Last updated

over 5 years ago

docker pull thomasloven/plejd2mqtt