Merge pull request #52 from icanos/bluez
resolved missing device bug and new version
This commit is contained in:
commit
1abbea4be1
3 changed files with 4 additions and 4 deletions
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "Plejd",
|
||||
"version": "0.3.2",
|
||||
"version": "0.3.3",
|
||||
"slug": "plejd",
|
||||
"description": "Adds support for the Swedish home automation devices from Plejd.",
|
||||
"url": "https://github.com/icanos/hassio-plejd/",
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ const mqtt = require('./mqtt');
|
|||
const fs = require('fs');
|
||||
const PlejdService = require('./ble.bluez');
|
||||
|
||||
const version = "0.3.2";
|
||||
const version = "0.3.3";
|
||||
|
||||
async function main() {
|
||||
console.log('starting Plejd add-on v. ' + version);
|
||||
|
|
|
|||
|
|
@ -35,13 +35,13 @@ const getSettingsTopic = () => `plejd/settings`;
|
|||
const getDiscoveryPayload = device => ({
|
||||
schema: 'json',
|
||||
name: device.name,
|
||||
unique_id: device.serialNumber,
|
||||
unique_id: device.serialNumber + '_' + device.id,
|
||||
state_topic: getStateTopic(device),
|
||||
command_topic: getCommandTopic(device),
|
||||
optimistic: false,
|
||||
brightness: `${device.dimmable}`,
|
||||
device: {
|
||||
identifiers: device.serialNumber,
|
||||
identifiers: device.serialNumber + '_' + device.id,
|
||||
manufacturer: 'Plejd',
|
||||
model: device.typeName,
|
||||
name: device.name,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue