klali / ha-plejd

Plejd component for Home Assistant
Apache License 2.0
69 stars 15 forks source link

Possibility to also add Plejd wall switch WPH-01? #24

Open NonjSAme opened 4 years ago

NonjSAme commented 4 years ago

Hi!

I've been playing around with Plejd wall switch WPH-01 for a couple of days and trying to get it to work with my RPi 3B+/HA v 101.2 setup. I don't have any of the Plejd dimmers or controllers, just the wall switch. And though I thus couldn't set it up completely enough in the iOS app, to test it, at least I managed to find a crypto key from the iPhone back-up files. (Even though it wasn't stored in the same place as described here by iCarl)

So far I've managed to both get hcitool lescan to find the P mesh - but also the plejd custom component to - at least occasionally - find the device. But... as the Plejd component currently is only made up for lights and controllers, it of course brakes when it finds this switch device it doesn't understand anything about. At the moment this is what I get repeatedly in the log file:

2019-11-25 11:26:40 DEBUG (Thread-4) [custom_components.plejd.light] no match for device '00' (b'00011000160b03170a')

Unfortunately I have no clue what the device response b'00011000160b03170a' means. Besides it's some form of protocol for the device. But I thought i'd try repeatedly and in sequence press buttons in the order 'top right' 'top left' 'bottom left' and 'bottom right' to see what happened. And this is the result from the log file:

nov 25 13:49:40 hass[474]: 2019-11-25 13:49:40 DEBUG (Thread-5) [custom_components.plejd.light] no match for device '00' (b'00011000160b02140a')

nov 25 13:49:46 hass[474]: 2019-11-25 13:49:46 DEBUG (Thread-5) [custom_components.plejd.light] no match for device '00' (b'00011000160b03140a')

nov 25 13:49:47 hass[474]: 2019-11-25 13:49:47 DEBUG (Thread-5) [custom_components.plejd.light] no match for device '00' (b'00011000160b03100a')

nov 25 13:49:54 hass[474]: 2019-11-25 13:49:54 DEBUG (Thread-5) [custom_components.plejd.light] no match for device '00' (b'00011000160b030d0a')

nov 25 13:50:05 hass[474]: 2019-11-25 13:50:05 DEBUG (Thread-5) [custom_components.plejd.light] no match for device '00' (b'00011000160b03090a')

nov 25 13:50:16 hass[474]: 2019-11-25 13:50:16 DEBUG (Thread-5) [custom_components.plejd.light] no match for device '00' (b'00011000160b03060a')

nov 25 13:50:22 hass[474]: 2019-11-25 13:50:22 DEBUG (Thread-5) [custom_components.plejd.light] no match for device '00' (b'00011000160b01060a')

nov 25 13:50:34 hass[474]: 2019-11-25 13:50:34 DEBUG (Thread-5) [custom_components.plejd.light] no match for device '00' (b'00011000160b01020a')

nov 25 13:50:45 hass[474]: 2019-11-25 13:50:45 DEBUG (Thread-5) [custom_components.plejd.light] no match for device '00' (b'00011000160b00020a')

nov 25 13:50:50 hass[474]: 2019-11-25 13:50:50 DEBUG (Thread-5) [custom_components.plejd.light] no match for device '00' (b'00011000160b00ff09')

nov 25 13:50:53 hass[474]: 2019-11-25 13:50:53 DEBUG (Thread-5) [custom_components.plejd.light] no match for device '00' (b'00011000160b00fb09')

nov 25 13:51:01 hass[474]: 2019-11-25 13:51:01 DEBUG (Thread-5) [custom_components.plejd.light] no match for device '00' (b'00011000160b00f809')

nov 25 13:51:08 hass[474]: 2019-11-25 13:51:08 DEBUG (Thread-5) [custom_components.plejd.light] no match for device '00' (b'00011000160b02f809')

nov 25 13:52:01 hass[474]: 2019-11-25 13:52:01 DEBUG (Thread-5) [custom_components.plejd.light] no match for device '00' (b'00011000160b03f809')

nov 25 13:52:26 hass[474]: 2019-11-25 13:52:26 DEBUG (Thread-5) [custom_components.plejd.light] no match for device '00' (b'00011000160b01f809')

nov 25 13:52:48 hass[474]: 2019-11-25 13:52:48 DEBUG (Thread-5) [custom_components.plejd.light] no match for device '00' (b'00011000160b00f809')

nov 25 13:53:00 hass[474]: 2019-11-25 13:53:00 DEBUG (Thread-5) [custom_components.plejd.light] no match for device '00' (b'00011000160b00f409')

nov 25 13:53:14 hass[474]: 2019-11-25 13:53:14 DEBUG (Thread-5) [custom_components.plejd.light] no match for device '00' (b'00011000160b02f409')

nov 25 13:53:22 hass[474]: 2019-11-25 13:53:22 DEBUG (Thread-5) [custom_components.plejd.light] no match for device '00' (b'00011000160b02f109')

nov 25 13:53:34 hass[474]: 2019-11-25 13:53:34 DEBUG (Thread-5) [custom_components.plejd.light] no match for device '00' (b'00011000160b03f109')

nov 25 13:53:37 hass[474]: 2019-11-25 13:53:37 DEBUG (Thread-5) [custom_components.plejd.light] no match for device '00' (b'00011000160b03ed09')

nov 25 13:53:44 hass[474]: 2019-11-25 13:53:44 DEBUG (Thread-5) [custom_components.plejd.light] no match for device '00' (b'00011000160b01ed09')

nov 25 13:53:52 hass[474]: 2019-11-25 13:53:52 DEBUG (Thread-5) [custom_components.plejd.light] no match for device '00' (b'00011000160b00ea09')

nov 25 13:53:57 hass[474]: 2019-11-25 13:53:57 DEBUG (Thread-5) [custom_components.plejd.light] no match for device '00' (b'00011000160b02ea09')

nov 25 13:54:02 hass[474]: 2019-11-25 13:54:02 DEBUG (Thread-5) [custom_components.plejd.light] no match for device '00' (b'00011000160b03ea09')

nov 25 13:54:15 hass[474]: 2019-11-25 13:54:15 DEBUG (Thread-5) [custom_components.plejd.light] no match for device '00' (b'00011000160b01ea09')

nov 25 13:54:20 hass[474]: 2019-11-25 13:54:20 DEBUG (Thread-5) [custom_components.plejd.light] no match for device '00' (b'00011000160b00ea09')

nov 25 13:54:41 hass[474]: 2019-11-25 13:54:41 DEBUG (Thread-5) [custom_components.plejd.light] no match for device '00' (b'00011000160b02ea09')

nov 25 13:54:57 hass[474]: 2019-11-25 13:54:57 DEBUG (Thread-5) [custom_components.plejd.light] no match for device '00' (b'00011000160b03ea09')

nov 25 13:55:12 hass[474]: 2019-11-25 13:55:12 DEBUG (Thread-5) [custom_components.plejd.light] no match for device '00' (b'00011000160b01ea09')

nov 25 13:55:28 hass[474]: 2019-11-25 13:55:28 DEBUG (Thread-5) [custom_components.plejd.light] no match for device '00' (b'00011000160b00ea09')

(Note: for easier reading, I've only listed all those occurrences changed from the previous one here!)

Obviously byte 14 (perhaps 13 and 14) is directly connected to the buttons pressed. But I don't understand byte 15-18 that changes seemingly intermittent...

What are the possibilities for also including the wall switch as a known device in the code? I guess it should be implemented as a binary sensor? Or am I wrong?
(As you probably understand, I'm just not so experienced programmer - yet at least...)

klali commented 4 years ago

So I don't have one of these. Generally the triggering of an input doesn't seem to generate an obvious event, these might be different. So if we look at the data you captured:

00011000160b03170a

the first byte 00 seems to mean that it's a broadcast bytes 2 and 3, 0110 means that it's a command without response expected. bytes 4 and 5, 0016 is the actual command, this is a command called event_fired after this we have a payload: 0b03170a

Do you get the same payload every time you press the same button? If you look in the json file you can dump from the app, what does the information about the switch say? Most interesting is probably anything under the PlejdMesh key.

NonjSAme commented 4 years ago

Okay, I seem to totally have miscalculated the number of bytes in my previous message. Don'I know where that came from... Of course I meant byte 7 is the byte that is connected to the button pressed! And yes, that payload byte 7 is the same every time for each four different buttons on the device giving the data 00, 01, 02 or 03 depending on which button was pressed. But the remaining bytes in the payload changes occasionally also. Could they describe the type of press maybe? Single click? Double click? Amount of time pressed? I don't know...

Regarding the dump, as i mentioned, I wasn't able to find the exact same json file in the iPhone backup as iCarl described. But I found two different json formatted files, both named with what I'v spotted as being the user account ID (a hexadecimal id in the format of "00000000-0000-0000-0000-000000000000"). One file with the file extension .partialSite and the other with just .site. The partial one seems to just be - partial - but the second one was more complete. This is the content of that one with the extension .site:

{
  "$type" : "Plejd.Site, Plejd",
  "PlejdDevices" : {
    "$type" : "System.Collections.Generic.List`1[[Plejd.PlejdDevice, Plejd]], mscorlib",
    "$values" : [
      {
        "$type" : "Plejd.PlejdDevice, Plejd",
        "Coordinates" : null,
        "BuildTime" : "20190808134723",
        "FirmwareVersion" : "0.3.1",
        "DirtyInstall" : false,
        "DirtyUpdate" : false,
        "DirtySettings" : false,
        "DeviceID" : "BC57A048D762",
        "DirtyClock" : false,
        "Diagnostics" : {
          "$type" : "Plejd.WorstEnvironmentMeasuredStruct, Plejd",
          "RawData" : null,
          "MinExternalTemp" : 0,
          "MinInternalTemp" : 0,
          "MaxExternalTemp" : 0,
          "MaxInternalTemp" : 0,
          "MaxCurrentMa" : 0,
          "MaxCurrentRmsMa" : 0,
          "MaxLoadWatt" : 0
        },
        "Image" : null,
        "HardwareId" : "6",
        "FaceplateId" : "0",
        "Installer" : "",
        "PredefinedLoad" : null
      }
    ]
  },
  "DeviceInfos" : {
    "$type" : "System.Collections.Generic.List`1[[Plejd.DeviceInfo, Plejd]], mscorlib",
    "$values" : [
      {
        "$type" : "Plejd.DeviceInfo, Plejd",
        "Traits" : 0,
        "HiddenFromRoomList" : false,
        "Title" : ”Vänstra hallväggen”,
        "RoomID" : "76da5431-a92b-3d21-ba31-32b52100329a",
        "DeviceID" : "BC57A048D762",
        "Order" : 0,
        "ParseID" : "RxxUZ2111G"
      }
    ]
  },
  "Rooms" : {
    "$type" : "System.Collections.Generic.List`1[[Plejd.Room, Plejd]], mscorlib",
    "$values" : [
      {
        "$type" : "Plejd.Room, Plejd",
        "ID" : "76da5431-a92b-3d21-ba31-32b52100329a",
        "Title" : ”Hall”,
        "Order" : 0,
        "ImageHash" : 0,
        "ImageData" : null,
        "ImageUrl" : null,
        "Category" : 2
      }
    ]
  },
  "Scenes" : {
    "$type" : "System.Collections.Generic.List`1[[Plejd.Scene, Plejd]], mscorlib",
    "$values" : []
  },
  "TimeEvents" : {
    "$type" : "System.Collections.Generic.List`1[[Plejd.PlejdTimeEvent, Plejd]], mscorlib",
    "$values" : []
  },
  "AstroEvents" : {
    "$type" : "System.Collections.Generic.List`1[[Plejd.PlejdAstroTimeEvent, Plejd]], mscorlib",
    "$values" : []
  },
  "OutputSettings" : {
    "$type" : "System.Collections.Generic.List`1[[Plejd.PlejdDeviceOutputSetting, Plejd]], mscorlib",
    "$values" : []
  },
  "InputSettings" : {
    "$type" : "System.Collections.Generic.List`1[[Plejd.PlejdDeviceInputSetting, Plejd]], mscorlib",
    "$values" : [
      {
        "$type" : "Plejd.PlejdDeviceInputSetting, Plejd",
        "DeviceId" : "BC57A048D762",
        "Input" : 0,
        "DimSpeed" : 2,
        "ButtonType" : 9,
        "SingleClickScene" : null,
        "DoubleClickScene" : null
      },
      {
        "$type" : "Plejd.PlejdDeviceInputSetting, Plejd",
        "DeviceId" : "BC57A048D762",
        "Input" : 1,
        "DimSpeed" : 2,
        "ButtonType" : 9,
        "SingleClickScene" : null,
        "DoubleClickScene" : null
      },
      {
        "$type" : "Plejd.PlejdDeviceInputSetting, Plejd",
        "DeviceId" : "BC57A048D762",
        "Input" : 2,
        "DimSpeed" : 2,
        "ButtonType" : 8,
        "SingleClickScene" : null,
        "DoubleClickScene" : null
      },
      {
        "$type" : "Plejd.PlejdDeviceInputSetting, Plejd",
        "DeviceId" : "BC57A048D762",
        "Input" : 3,
        "DimSpeed" : 2,
        "ButtonType" : 8,
        "SingleClickScene" : null,
        "DoubleClickScene" : null
      }
    ]
  },
  "Alias" : null,
  "Coordinates" : null,
  "Country" : null,
  "City" : null,
  "ZipCode" : null,
  "ID" : "a45e0b4c-4af4-2aff-2312-e4236b231fa1",
  "ParseID" : "DdYZbawMKo",
  "Title" : ”Test”,
  "Order" : 0,
  "Version" : 11,
  "Completed" : false,
  "UpdatedAt" : "2019-11-17T22:17:27.467",
  "CreatedAt" : "2019-11-17T22:15:01.351",
  "SunriseTable" : null,
  "SunsetTable" : null,
  "PlejdMesh" : {
    "$type" : "Plejd.PlejdMesh, Plejd",
    "inputAddresses" : {
      "$type" : "System.Collections.Generic.Dictionary`2[[System.String, mscorlib],[System.Collections.Generic.IDictionary`2[[System.Int32, mscorlib],[System.Int32, mscorlib]], mscorlib]], mscorlib",
      "BC57A048D762" : {
        "$type" : "System.Collections.Generic.Dictionary`2[[System.Int32, mscorlib],[System.Int32, mscorlib]], mscorlib",
        "0" : 255,
        "1" : 255,
        "2" : 255,
        "3" : 255
      }
    },
    "outputAdresses" : {
      "$type" : "System.Collections.Generic.Dictionary`2[[System.String, mscorlib],[System.Collections.Generic.IDictionary`2[[System.Int32, mscorlib],[System.Int32, mscorlib]], mscorlib]], mscorlib"
    },
    "outputGroups" : {
      "$type" : "System.Collections.Generic.Dictionary`2[[System.String, mscorlib],[System.Collections.Generic.IDictionary`2[[System.Int32, mscorlib],[System.Collections.Generic.IList`1[[System.Int32, mscorlib]], mscorlib]], mscorlib]], mscorlib"
    },
    "deviceAddresses" : {
      "$type" : "System.Collections.Generic.Dictionary`2[[System.String, mscorlib],[System.Int32, mscorlib]], mscorlib",
      "BC57A048D762" : 11
    },
    "roomAddresses" : {
      "$type" : "System.Collections.Generic.Dictionary`2[[System.String, mscorlib],[System.Int32, mscorlib]], mscorlib",
      "76da5431-a92b-3d21-ba31-32b52100329a" : 10
    },
    "sceneIndexes" : {
      "$type" : "System.Collections.Generic.Dictionary`2[[System.String, mscorlib],[System.Int32, mscorlib]], mscorlib"
    },
    "ID" : "00000000-0000-0000-0000-000000000000",
    "MeshKey" : "62-28-1A-20",
    "CryptoKey" : "XX-XX-XX-XX-XX-XX-XX-XX-XX-XX-XX-XX-XX-XX-XX-XX",
    "Version" : 0
  },
  "CurrentUser" : {
    "$type" : "Plejd.SiteUser, Plejd",
    "UserType" : 2,
    "UserId" : "D98h2xAq72",
    "Permissions" : {
      "$type" : "System.Collections.Generic.List`1[[Plejd.UserSitePermission, Plejd]], mscorlib",
      "$values" : []
    },
    "RestrictedRooms" : {
      "$type" : "System.Collections.Generic.List`1[[System.String, mscorlib]], mscorlib",
      "$values" : []
    }
  },
  "ResourceSets" : {
    "$type" : "System.Collections.Generic.List`1[[Plejd.ResourceSet, Plejd]], mscorlib",
    "$values" : []
  }
}

(Note: The data has been anonymised)

Yeah.. one last small note... i also figured out that I needed to change in my configuration.yaml so it says:

device: 
     00....

Doing that changed the log file to claim no match for command 'b'0016'' (b'00011000160b03c709') instead of no match for device '00' (b'00011000160b03c709') One small step further... :) ( From the instructions here at your GitHub repository I didn't understand what the device number was supposed to be so from the start setup I just had it set to 11...)

klali commented 4 years ago

so byte 7 is the deviceId 0xb/11 byte 8 looks like the input id for the button you press (00-03) byte 9&10 might be dim? What happens if you hold a direction to dim?

edit: (also note that you have your cryptokey posted here now, I've edited it out of your post. I don't know how/if that can be changed, maybe if you setup as a new system)

NonjSAme commented 4 years ago

Thanks for your support and interest in this matter.

First of all, I just need to mention that the data i put up was already anonymised, so it wasn't the real crypto key i posted here. Neither is it the right device ID etc... but of course the response data is the real one!

And also... sorry for my long descriptions here.

In order to try to experiment with byte 9&10, I thought I first should update to the dbus-next bransch to make sure I'm on the same bransch as You are working with now. After making sure the home assistant user also is a member of the bluetooth group i also got the plejd platform to seemingly be set up. Also, in the same way as I had to do using the previous set up - the one with the old master using bluepy - during boot up, I repeatedly presses any of the switch buttons in order to get the plejd-ha platform to recognise it. (In the bluepy-version I noticed it made 9 retries and I could only get any connection if I made sure any of the switches actually where pressed at the same time while ha booting was setting up the plejd service).

So.. it once again finds my switch... But I had some problems loosing the communication to the switch right again. It turned out that there now seems to be a conflict if you also are using HA integration with flic buttons at the same time (the flic buttons also uses bluetooth but in my setup these are directed to a separate, external bluetooth dongle and not the built-in bluetooth on my Raspberry Pi 3 Model B Rev 1.2. Please note that this was not a conflict with the old bluepy branch of plejd but seems to have be introduced by the dbus-next setup !)

Anyhow... by inhibiting flic as a binary sensor in HA, I could at least perform a longer test. But it didn't totally help me figure out byte 9 & 10. They seem to change occasionally, but they are the same value for all 4 switches (00-03), and pressing and holding down a switch doesn't affect byte 9 & 10. So there seems to be no indication of how long time the button has been pressed or a dim value or so.

Also and actually. there seems to be no way to determine when a switch is being pressed and kept being pressed down. The data seems to only show the latest recently presses state. And this is of course quite unfortunate!

Below is a long debugger log from my test (note: every click on a switch created at least 2-4 instances in the log file sometimes top to 10 or 20 instances. I have cleaned the log file by deleting those identical instances.):

jan 09 12:50:20  hass[484]: 2020-01-09 12:50:20 DEBUG (MainThread) [custom_components.plejd.light] Discovered plejd /org/bluez/hci0/dev_BC_57_A0_48_D7_62 with RSSI -83
jan 09 12:50:20  hass[484]: 2020-01-09 12:50:20 DEBUG (MainThread) [custom_components.plejd.light] Connecting to /org/bluez/hci0/dev_BC_57_A0_48_D7_62
jan 09 12:50:25  hass[484]: 2020-01-09 12:50:25 DEBUG (MainThread) [custom_components.plejd.light] No match for device '00' (b'00011000160b02a709')
jan 09 12:50:26  hass[484]: 2020-01-09 12:50:26 DEBUG (MainThread) [custom_components.plejd.light] Successfully pinged with 33
jan 09 12:50:26  hass[484]: 2020-01-09 12:50:26 DEBUG (MainThread) [custom_components.plejd.light] Adding device 0 (kitchen)
jan 09 12:50:26  hass[484]: 2020-01-09 12:50:26 DEBUG (MainThread) [custom_components.plejd.light] All plejd setup completed
jan 09 12:50:27  hass[484]: 2020-01-09 12:50:27 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b02a709')
jan 09 12:50:54  hass[484]: 2020-01-09 12:50:54 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b03a709')
jan 09 12:51:14  hass[484]: 2020-01-09 12:51:14 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b02a709')
jan 09 12:51:20  hass[484]: 2020-01-09 12:51:20 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b03a709')
jan 09 12:51:25  hass[484]: 2020-01-09 12:51:25 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b01a709')
jan 09 12:51:29  hass[484]: 2020-01-09 12:51:29 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b02a709')
jan 09 12:51:30  hass[484]: 2020-01-09 12:51:30 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b02a709')
jan 09 12:51:35  hass[484]: 2020-01-09 12:51:35 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b00a709')
jan 09 12:51:41  hass[484]: 2020-01-09 12:51:41 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b03a709')
jan 09 12:51:42  hass[484]: 2020-01-09 12:51:42 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b00a709')
jan 09 12:51:44  hass[484]: 2020-01-09 12:51:44 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b02a709')
jan 09 12:51:47  hass[484]: 2020-01-09 12:51:47 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b01a709')
jan 09 12:51:48  hass[484]: 2020-01-09 12:51:48 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b03a709')
jan 09 12:51:53  hass[484]: 2020-01-09 12:51:53 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b02a709')
jan 09 12:51:56  hass[484]: 2020-01-09 12:51:56 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b00a709')
jan 09 12:55:29  hass[484]: 2020-01-09 12:55:29 DEBUG (MainThread) [custom_components.plejd.light] Discovered plejd /org/bluez/hci0/dev_BC_57_A0_48_D7_62 with RSSI -73
jan 09 12:55:29  hass[484]: 2020-01-09 12:55:29 DEBUG (MainThread) [custom_components.plejd.light] Connecting to /org/bluez/hci0/dev_BC_57_A0_48_D7_62
jan 09 12:55:33  hass[484]: 2020-01-09 12:55:33 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b03ca09')
jan 09 12:55:35  hass[484]: 2020-01-09 12:55:35 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b01ca09')
jan 09 12:55:39  hass[484]: 2020-01-09 12:55:39 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b00ca09')
jan 09 12:55:42  hass[484]: 2020-01-09 12:55:42 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b00c709')
jan 09 12:55:46  hass[484]: 2020-01-09 12:55:46 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b02c709')
jan 09 12:55:55  hass[484]: 2020-01-09 12:55:55 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b02c309')
jan 09 12:55:58  hass[484]: 2020-01-09 12:55:58 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b02c009')
jan 09 12:56:02  hass[484]: 2020-01-09 12:56:02 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b02bc09')
jan 09 12:56:24  hass[484]: 2020-01-09 12:56:24 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b00b909')
jan 09 12:56:29  hass[484]: 2020-01-09 12:56:29 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b03b909')
jan 09 12:57:02  hass[484]: 2020-01-09 12:57:02 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b00b509')
jan 09 12:57:05  hass[484]: 2020-01-09 12:57:05 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b02b509')
jan 09 12:57:09  hass[484]: 2020-01-09 12:57:09 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b00b509')
jan 09 12:57:16  hass[484]: 2020-01-09 12:57:16 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b01b509')
jan 09 12:57:19  hass[484]: 2020-01-09 12:57:19 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b03b509')
jan 09 12:57:21  hass[484]: 2020-01-09 12:57:21 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b02b509')
jan 09 12:57:24  hass[484]: 2020-01-09 12:57:24 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b00b509')
jan 09 12:57:27  hass[484]: 2020-01-09 12:57:27 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b02b209')
jan 09 12:57:30  hass[484]: 2020-01-09 12:57:30 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b00b209')
jan 09 12:57:32  hass[484]: 2020-01-09 12:57:32 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b02b209')
jan 09 12:57:34  hass[484]: 2020-01-09 12:57:34 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b03b209')
jan 09 12:57:36  hass[484]: 2020-01-09 12:57:36 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b02b209')
jan 09 12:57:38  hass[484]: 2020-01-09 12:57:38 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b03b209')
jan 09 12:57:40  hass[484]: 2020-01-09 12:57:40 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b02ae09')
jan 09 12:57:42  hass[484]: 2020-01-09 12:57:42 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b03ae09')
jan 09 12:57:45  hass[484]: 2020-01-09 12:57:45 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b01ae09')
jan 09 12:57:47  hass[484]: 2020-01-09 12:57:47 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b00ae09')
jan 09 12:57:50  hass[484]: 2020-01-09 12:57:50 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b01ae09')
jan 09 12:57:55  hass[484]: 2020-01-09 12:57:55 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b02ae09')
jan 09 12:58:26  hass[484]: 2020-01-09 12:58:26 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b01ae09')
jan 09 12:58:27  hass[484]: 2020-01-09 12:58:27 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b03ae09')
jan 09 12:58:28  hass[484]: 2020-01-09 12:58:28 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b01ae09')
jan 09 12:58:29  hass[484]: 2020-01-09 12:58:29 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b00ae09')
jan 09 12:58:31  hass[484]: 2020-01-09 12:58:31 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b02ae09')
jan 09 12:58:33  hass[484]: 2020-01-09 12:58:33 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b00ae09')
jan 09 12:58:33  hass[484]: 2020-01-09 12:58:33 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b01ae09')
jan 09 12:58:34  hass[484]: 2020-01-09 12:58:34 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b02ae09')
jan 09 12:58:36  hass[484]: 2020-01-09 12:58:36 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b03ae09')
jan 09 12:58:37  hass[484]: 2020-01-09 12:58:37 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b00ae09')
jan 09 12:58:37  hass[484]: 2020-01-09 12:58:37 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b01ae09')
jan 09 12:58:38  hass[484]: 2020-01-09 12:58:38 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b02ae09')
jan 09 12:58:38  hass[484]: 2020-01-09 12:58:38 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b03ae09')
jan 09 12:58:39  hass[484]: 2020-01-09 12:58:39 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b00ae09')
jan 09 12:58:40  hass[484]: 2020-01-09 12:58:40 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b01ae09')
jan 09 12:58:40  hass[484]: 2020-01-09 12:58:40 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b02ae09')
jan 09 12:58:41  hass[484]: 2020-01-09 12:58:41 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b03ae09')
jan 09 12:58:41  hass[484]: 2020-01-09 12:58:41 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b00ab09')
jan 09 12:58:42  hass[484]: 2020-01-09 12:58:42 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b01ab09')
jan 09 12:58:42  hass[484]: 2020-01-09 12:58:42 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b02ab09')
jan 09 12:58:43  hass[484]: 2020-01-09 12:58:43 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b03ab09')
jan 09 12:58:43  hass[484]: 2020-01-09 12:58:43 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b00ab09')
jan 09 12:58:44  hass[484]: 2020-01-09 12:58:44 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b01ab09')
jan 09 12:58:44  hass[484]: 2020-01-09 12:58:44 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b02ab09')
jan 09 12:58:45  hass[484]: 2020-01-09 12:58:45 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b03ab09')
jan 09 12:58:45  hass[484]: 2020-01-09 12:58:45 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b00ab09')
jan 09 12:58:46  hass[484]: 2020-01-09 12:58:46 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b01ab09')
jan 09 12:58:46  hass[484]: 2020-01-09 12:58:46 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b02ab09')
jan 09 12:58:46  hass[484]: 2020-01-09 12:58:46 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b03ab09')
jan 09 12:58:47  hass[484]: 2020-01-09 12:58:47 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b00a709')
jan 09 12:58:48  hass[484]: 2020-01-09 12:58:48 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b01a709')
jan 09 12:58:48  hass[484]: 2020-01-09 12:58:48 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b02a709')
jan 09 12:58:49  hass[484]: 2020-01-09 12:58:49 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b03a709')
jan 09 12:58:51  hass[484]: 2020-01-09 12:58:51 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b00a709')
jan 09 12:59:06  hass[484]: 2020-01-09 12:59:06 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b01a709')
jan 09 12:59:07  hass[484]: 2020-01-09 12:59:07 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b02a709')
jan 09 12:59:07  hass[484]: 2020-01-09 12:59:07 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b03a709')
jan 09 12:59:08  hass[484]: 2020-01-09 12:59:08 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b00a709')
jan 09 12:59:09  hass[484]: 2020-01-09 12:59:09 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b01a709')
jan 09 12:59:09  hass[484]: 2020-01-09 12:59:09 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b02a709')
jan 09 12:59:10  hass[484]: 2020-01-09 12:59:10 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b03a709')
jan 09 12:59:11  hass[484]: 2020-01-09 12:59:11 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b00a709')
jan 09 12:59:11  hass[484]: 2020-01-09 12:59:11 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b01a709')
jan 09 12:59:11  hass[484]: 2020-01-09 12:59:11 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b02a709')
jan 09 12:59:12  hass[484]: 2020-01-09 12:59:12 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b03a709')
jan 09 12:59:16  hass[484]: 2020-01-09 12:59:16 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b01a709')
jan 09 12:59:18  hass[484]: 2020-01-09 12:59:18 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b03a709')
jan 09 12:59:20  hass[484]: 2020-01-09 12:59:20 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b01a709')
jan 09 12:59:20  hass[484]: 2020-01-09 12:59:20 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b03a709')
jan 09 12:59:23  hass[484]: 2020-01-09 12:59:23 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b01a709')
jan 09 12:59:25  hass[484]: 2020-01-09 12:59:25 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b03a709')
jan 09 12:59:26  hass[484]: 2020-01-09 12:59:26 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b01a009')
jan 09 12:59:26  hass[484]: 2020-01-09 12:59:26 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b03a009')
jan 09 12:59:30  hass[484]: 2020-01-09 12:59:30 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b01a009')
jan 09 12:59:30  hass[484]: 2020-01-09 12:59:30 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b03a009')
jan 09 12:59:31  hass[484]: 2020-01-09 12:59:31 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b01a009')
jan 09 12:59:31  hass[484]: 2020-01-09 12:59:31 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b03a009')
jan 09 12:59:34  hass[484]: 2020-01-09 12:59:34 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b01a009')
jan 09 13:00:34  hass[484]: 2020-01-09 13:00:34 DEBUG (MainThread) [custom_components.plejd.light] Successfully pinged with 55
jan 09 13:00:36  hass[484]: 2020-01-09 13:00:36 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b00a009')
jan 09 13:01:14  hass[484]: 2020-01-09 13:01:14 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b01a009')
jan 09 13:01:18  hass[484]: 2020-01-09 13:01:18 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b02a009')
jan 09 13:01:20  hass[484]: 2020-01-09 13:01:20 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b03a009')
jan 09 13:01:21  hass[484]: 2020-01-09 13:01:21 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b00a009')
jan 09 13:01:29  hass[484]: 2020-01-09 13:01:29 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b01a009')
jan 09 13:01:39  hass[484]: 2020-01-09 13:01:39 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b00a009')
jan 09 13:01:50  hass[484]: 2020-01-09 13:01:50 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b02a009')
jan 09 13:02:04  hass[484]: 2020-01-09 13:02:04 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b03a009')
jan 09 13:02:18  hass[484]: 2020-01-09 13:02:18 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b01a009')
jan 09 13:02:25  hass[484]: 2020-01-09 13:02:25 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b00a009')
jan 09 13:02:27  hass[484]: 2020-01-09 13:02:27 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b01a009')
jan 09 13:02:28  hass[484]: 2020-01-09 13:02:28 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b00a009')
jan 09 13:02:29  hass[484]: 2020-01-09 13:02:29 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b01a009')
jan 09 13:02:29  hass[484]: 2020-01-09 13:02:29 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b00a009')
jan 09 13:02:30  hass[484]: 2020-01-09 13:02:30 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b01a009')
jan 09 13:02:30  hass[484]: 2020-01-09 13:02:30 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b00a009')
jan 09 13:02:31  hass[484]: 2020-01-09 13:02:31 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b01a009')
jan 09 13:02:32  hass[484]: 2020-01-09 13:02:32 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b00a009')
jan 09 13:02:34  hass[484]: 2020-01-09 13:02:34 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b01a009')
jan 09 13:02:37  hass[484]: 2020-01-09 13:02:37 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b00a009')
jan 09 13:02:42  hass[484]: 2020-01-09 13:02:42 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b00a009')
jan 09 13:02:43  hass[484]: 2020-01-09 13:02:43 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b01a009')
jan 09 13:02:44  hass[484]: 2020-01-09 13:02:44 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b00a009')
jan 09 13:02:46  hass[484]: 2020-01-09 13:02:46 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b01a009')
jan 09 13:02:47  hass[484]: 2020-01-09 13:02:47 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b00a009')
jan 09 13:02:48  hass[484]: 2020-01-09 13:02:48 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b03a009')
jan 09 13:02:48  hass[484]: 2020-01-09 13:02:48 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b02a009')
jan 09 13:02:49  hass[484]: 2020-01-09 13:02:49 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b03a009')
jan 09 13:02:49  hass[484]: 2020-01-09 13:02:49 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b01a009')
jan 09 13:02:50  hass[484]: 2020-01-09 13:02:50 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b00a009')
jan 09 13:02:50  hass[484]: 2020-01-09 13:02:50 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b02a009')
jan 09 13:02:51  hass[484]: 2020-01-09 13:02:51 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b03a009')
jan 09 13:02:51  hass[484]: 2020-01-09 13:02:51 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b00a009')
jan 09 13:02:51  hass[484]: 2020-01-09 13:02:51 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b01a009')
jan 09 13:02:52  hass[484]: 2020-01-09 13:02:52 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b00a009')
jan 09 13:02:52  hass[484]: 2020-01-09 13:02:52 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b02a009')
jan 09 13:02:53  hass[484]: 2020-01-09 13:02:53 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b03a009')
jan 09 13:02:53  hass[484]: 2020-01-09 13:02:53 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b00a009')
jan 09 13:02:54  hass[484]: 2020-01-09 13:02:54 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b01a009')
jan 09 13:02:54  hass[484]: 2020-01-09 13:02:54 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b00a009')
jan 09 13:02:54  hass[484]: 2020-01-09 13:02:54 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b02a009')
jan 09 13:02:55  hass[484]: 2020-01-09 13:02:55 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b039c09')
jan 09 13:02:55  hass[484]: 2020-01-09 13:02:55 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b019c09')
jan 09 13:03:04  hass[484]: 2020-01-09 13:03:04 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b029c09')
jan 09 13:03:05  hass[484]: 2020-01-09 13:03:05 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b009c09')
jan 09 13:03:05  hass[484]: 2020-01-09 13:03:05 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b029c09')
jan 09 13:03:05  hass[484]: 2020-01-09 13:03:05 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b009c09')
jan 09 13:03:05  hass[484]: 2020-01-09 13:03:05 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b029c09')
jan 09 13:03:05  hass[484]: 2020-01-09 13:03:05 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b009c09')
jan 09 13:03:06  hass[484]: 2020-01-09 13:03:06 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b029c09')
jan 09 13:03:06  hass[484]: 2020-01-09 13:03:06 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b009c09')
jan 09 13:03:06  hass[484]: 2020-01-09 13:03:06 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b029c09')
jan 09 13:03:06  hass[484]: 2020-01-09 13:03:06 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b009c09')
jan 09 13:03:06  hass[484]: 2020-01-09 13:03:06 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b029c09')
jan 09 13:03:06  hass[484]: 2020-01-09 13:03:06 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b009c09')
jan 09 13:03:07  hass[484]: 2020-01-09 13:03:07 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b029c09')
jan 09 13:03:07  hass[484]: 2020-01-09 13:03:07 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b009c09')
jan 09 13:03:07  hass[484]: 2020-01-09 13:03:07 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b029c09')
jan 09 13:03:07  hass[484]: 2020-01-09 13:03:07 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b009c09')
jan 09 13:03:07  hass[484]: 2020-01-09 13:03:07 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b029c09')
jan 09 13:03:07  hass[484]: 2020-01-09 13:03:07 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b009c09')
jan 09 13:03:08  hass[484]: 2020-01-09 13:03:08 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b029c09')
jan 09 13:03:08  hass[484]: 2020-01-09 13:03:08 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b009c09')
jan 09 13:03:08  hass[484]: 2020-01-09 13:03:08 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b029c09')
jan 09 13:03:08  hass[484]: 2020-01-09 13:03:08 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b009c09')
jan 09 13:03:08  hass[484]: 2020-01-09 13:03:08 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b029c09')
jan 09 13:03:08  hass[484]: 2020-01-09 13:03:08 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b009c09')
jan 09 13:03:08  hass[484]: 2020-01-09 13:03:08 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b029c09')
jan 09 13:03:09  hass[484]: 2020-01-09 13:03:09 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b019c09')
jan 09 13:03:09  hass[484]: 2020-01-09 13:03:09 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b029c09')
jan 09 13:03:09  hass[484]: 2020-01-09 13:03:09 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b009c09')
jan 09 13:03:09  hass[484]: 2020-01-09 13:03:09 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b039c09')
jan 09 13:03:09  hass[484]: 2020-01-09 13:03:09 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b019c09')
jan 09 13:03:10  hass[484]: 2020-01-09 13:03:10 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b029c09')
jan 09 13:03:10  hass[484]: 2020-01-09 13:03:10 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b009c09')
jan 09 13:03:10  hass[484]: 2020-01-09 13:03:10 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b039c09')
jan 09 13:03:10  hass[484]: 2020-01-09 13:03:10 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b019c09')
jan 09 13:03:11  hass[484]: 2020-01-09 13:03:11 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b009c09')
jan 09 13:03:11  hass[484]: 2020-01-09 13:03:11 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b029c09')
jan 09 13:03:11  hass[484]: 2020-01-09 13:03:11 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b009c09')
jan 09 13:03:11  hass[484]: 2020-01-09 13:03:11 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b039c09')
jan 09 13:03:11  hass[484]: 2020-01-09 13:03:11 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b019c09')
jan 09 13:03:12  hass[484]: 2020-01-09 13:03:12 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b029c09')
jan 09 13:03:12  hass[484]: 2020-01-09 13:03:12 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b009c09')
jan 09 13:03:12  hass[484]: 2020-01-09 13:03:12 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b039c09')
jan 09 13:03:12  hass[484]: 2020-01-09 13:03:12 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b019c09')
jan 09 13:03:12  hass[484]: 2020-01-09 13:03:12 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b029c09')
jan 09 13:03:13  hass[484]: 2020-01-09 13:03:13 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b009c09')
jan 09 13:03:13  hass[484]: 2020-01-09 13:03:13 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b039c09')
jan 09 13:03:13  hass[484]: 2020-01-09 13:03:13 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b019c09')
jan 09 13:03:13  hass[484]: 2020-01-09 13:03:13 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b029c09')
jan 09 13:03:13  hass[484]: 2020-01-09 13:03:13 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b009c09')
jan 09 13:03:14  hass[484]: 2020-01-09 13:03:14 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b039c09')
jan 09 13:03:14  hass[484]: 2020-01-09 13:03:14 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b019c09')
jan 09 13:03:14  hass[484]: 2020-01-09 13:03:14 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b029c09')
jan 09 13:03:14  hass[484]: 2020-01-09 13:03:14 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b009c09')
jan 09 13:03:14  hass[484]: 2020-01-09 13:03:14 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b039c09')
jan 09 13:03:15  hass[484]: 2020-01-09 13:03:15 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b019c09')
jan 09 13:03:15  hass[484]: 2020-01-09 13:03:15 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b029c09')
jan 09 13:03:15  hass[484]: 2020-01-09 13:03:15 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b009c09')
jan 09 13:03:15  hass[484]: 2020-01-09 13:03:15 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b039c09')
jan 09 13:03:16  hass[484]: 2020-01-09 13:03:16 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b019c09')
jan 09 13:03:16  hass[484]: 2020-01-09 13:03:16 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b029c09')
jan 09 13:03:16  hass[484]: 2020-01-09 13:03:16 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b009c09')
jan 09 13:03:16  hass[484]: 2020-01-09 13:03:16 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b039c09')
jan 09 13:03:17  hass[484]: 2020-01-09 13:03:17 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b019c09')
jan 09 13:03:17  hass[484]: 2020-01-09 13:03:17 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b029c09')
jan 09 13:03:17  hass[484]: 2020-01-09 13:03:17 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b009c09')
jan 09 13:03:17  hass[484]: 2020-01-09 13:03:17 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b039c09')
jan 09 13:03:17  hass[484]: 2020-01-09 13:03:17 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b019c09')
jan 09 13:03:18  hass[484]: 2020-01-09 13:03:18 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b029c09')
jan 09 13:03:18  hass[484]: 2020-01-09 13:03:18 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b009c09')
jan 09 13:03:18  hass[484]: 2020-01-09 13:03:18 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b039c09')
jan 09 13:03:18  hass[484]: 2020-01-09 13:03:18 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b019c09')
jan 09 13:03:18  hass[484]: 2020-01-09 13:03:18 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b029c09')
jan 09 13:03:19  hass[484]: 2020-01-09 13:03:19 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b009c09')
jan 09 13:03:19  hass[484]: 2020-01-09 13:03:19 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b029c09')
jan 09 13:03:19  hass[484]: 2020-01-09 13:03:19 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b009c09')
jan 09 13:03:19  hass[484]: 2020-01-09 13:03:19 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b029c09')
jan 09 13:03:20  hass[484]: 2020-01-09 13:03:20 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b019c09')
jan 09 13:03:20  hass[484]: 2020-01-09 13:03:20 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b029c09')
jan 09 13:03:20  hass[484]: 2020-01-09 13:03:20 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b009c09')
jan 09 13:03:20  hass[484]: 2020-01-09 13:03:20 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b039c09')
jan 09 13:03:20  hass[484]: 2020-01-09 13:03:20 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b009c09')
jan 09 13:03:21  hass[484]: 2020-01-09 13:03:21 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b029c09')
jan 09 13:03:21  hass[484]: 2020-01-09 13:03:21 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b019c09')
jan 09 13:03:21  hass[484]: 2020-01-09 13:03:21 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b039c09')
jan 09 13:03:21  hass[484]: 2020-01-09 13:03:21 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b009c09')
jan 09 13:03:22  hass[484]: 2020-01-09 13:03:22 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b029c09')
jan 09 13:03:22  hass[484]: 2020-01-09 13:03:22 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b009c09')
jan 09 13:03:24  hass[484]: 2020-01-09 13:03:24 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b029c09')
jan 09 13:03:25  hass[484]: 2020-01-09 13:03:25 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b019909')
jan 09 13:03:31  hass[484]: 2020-01-09 13:03:31 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b009909')
jan 09 13:03:35  hass[484]: 2020-01-09 13:03:35 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b039909')
jan 09 13:03:39  hass[484]: 2020-01-09 13:03:39 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b009909')
jan 09 13:03:42  hass[484]: 2020-01-09 13:03:42 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b019909')
jan 09 13:03:44  hass[484]: 2020-01-09 13:03:44 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b029909')
jan 09 13:03:48  hass[484]: 2020-01-09 13:03:48 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b019909')
jan 09 13:03:51  hass[484]: 2020-01-09 13:03:51 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b009909')
jan 09 13:03:53  hass[484]: 2020-01-09 13:03:53 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b019909')
jan 09 13:03:56  hass[484]: 2020-01-09 13:03:56 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b029909')
jan 09 13:03:56  hass[484]: 2020-01-09 13:03:56 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b009909')
jan 09 13:04:00  hass[484]: 2020-01-09 13:04:00 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b039209')
jan 09 13:04:00  hass[484]: 2020-01-09 13:04:00 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b009209')
jan 09 13:05:35  hass[484]: 2020-01-09 13:05:35 WARNING (MainThread) [custom_components.plejd.light] Plejd ping errored: Not connected
jan 09 13:05:39  hass[484]: 2020-01-09 13:05:39 WARNING (MainThread) [custom_components.plejd.light] No plejd devices found
jan 09 13:10:40  hass[484]: 2020-01-09 13:10:40 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
jan 09 13:10:40  hass[484]: Traceback (most recent call last):
jan 09 13:10:40  hass[484]:   File "/home/homeassistant/.homeassistant/custom_components/plejd/light.py", line 399, in _ping
jan 09 13:10:40  hass[484]:     if(await plejd_ping(pi) == False):
jan 09 13:10:40  hass[484]:   File "/home/homeassistant/.homeassistant/custom_components/plejd/light.py", line 354, in plejd_ping
jan 09 13:10:40  hass[484]:     char = pi["characteristics"]["ping"]
jan 09 13:10:40  hass[484]: TypeError: 'NoneType' object is not subscriptable

Looking at the numbers byte 9 & 10 seems to be counting down. One explanation could be that it is presenting the remaining battery level (there are 2 lithium button cell batteries on the board). It even looks as it would be natural step down from the figures I got when I posted my testings i November here above "ea09" -> "a709". I have really not used the switch at all since November. But it doesn't totally work with that fact that once in the beginning of log You can see that the plejd platform re-connected and then the value started higher again ("a709" -> "ca09"). And the batteries are also ment to hold it's power for a very long time - aprox 200.000 clicks /15 years - so it seemed a bit odd that it was loosing power that fast - if its a linear scale, about 8% just during this small test. But I could be wrong of course, and the way we communicate with the switch might drain the batteries extremely fast?

Do you have any other thoughts on what byte 9 & 10 might stand for?

Also, as you can see by the end of the log after 13:04:00, it times out and looses the connectivity within HA. And pressing the switch again does not make a new connection between HA and the device to be set up. It is lost until I restart HA and once again initially presses the switches while plejd service is being set up.

So I did a couple of test on that as well. So far it looks like after 4 successful pings, each 5 minutes apart, i looses its connectivity. Within the first <20 minutes I can still press any switch and see the results. But the 6th ping seems always to fail. No matter how recently any switch was pressed. Here are some more logs showing that:

~ $ journalctl -f | grep plejd

=== Restart of Home Assistant Server ===

jan 09 16:33:55  hass[484]: 2020-01-09 16:33:55 INFO (SyncWorker_2) [homeassistant.loader] Loaded plejd from custom_components.plejd
jan 09 16:34:06  hass[484]: 2020-01-09 16:34:06 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for plejd which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant.
jan 09 16:34:07  hass[484]: 2020-01-09 16:34:07 INFO (MainThread) [homeassistant.components.light] Setting up light.plejd
jan 09 16:34:09  hass[484]: 2020-01-09 16:34:09 DEBUG (MainThread) [custom_components.plejd.light] Discovered plejd /org/bluez/hci0/dev_BC_57_A0_48_D7_62 with RSSI -70
jan 09 16:34:09  hass[484]: 2020-01-09 16:34:09 DEBUG (MainThread) [custom_components.plejd.light] Connecting to /org/bluez/hci0/dev_BC_57_A0_48_D7_62
jan 09 16:34:15  hass[484]: 2020-01-09 16:34:15 DEBUG (MainThread) [custom_components.plejd.light] No match for device '00' (b'00011000160b019509')
jan 09 16:34:15  hass[484]: 2020-01-09 16:34:15 DEBUG (MainThread) [custom_components.plejd.light] Successfully pinged with ff
jan 09 16:34:15  hass[484]: 2020-01-09 16:34:15 DEBUG (MainThread) [custom_components.plejd.light] Adding device 0 (kitchen)
jan 09 16:34:15  hass[484]: 2020-01-09 16:34:15 DEBUG (MainThread) [custom_components.plejd.light] All plejd setup completed
jan 09 16:34:15  hass[484]: 2020-01-09 16:34:15 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b019509')
jan 09 16:34:15  hass[484]: 2020-01-09 16:34:15 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b019509')
jan 09 16:34:15  hass[484]: 2020-01-09 16:34:15 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b019509')
jan 09 16:34:16  hass[484]: 2020-01-09 16:34:16 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b019509')
jan 09 16:34:16  hass[484]: 2020-01-09 16:34:16 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b019509')
jan 09 16:34:16  hass[484]: 2020-01-09 16:34:16 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b019509')
jan 09 16:34:17  hass[484]: 2020-01-09 16:34:17 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b019509')
jan 09 16:34:17  hass[484]: 2020-01-09 16:34:17 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b019509')
jan 09 16:34:17  hass[484]: 2020-01-09 16:34:17 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b019509')
jan 09 16:34:17  hass[484]: 2020-01-09 16:34:17 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b019509')
jan 09 16:34:17  hass[484]: 2020-01-09 16:34:17 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b019509')
jan 09 16:34:18  hass[484]: 2020-01-09 16:34:18 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b019509')
jan 09 16:34:18  hass[484]: 2020-01-09 16:34:18 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b019509')
jan 09 16:34:20  hass[484]: 2020-01-09 16:34:20 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b039509')
jan 09 16:34:21  hass[484]: 2020-01-09 16:34:21 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b039509')
jan 09 16:34:21  hass[484]: 2020-01-09 16:34:21 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b039509')
jan 09 16:34:21  hass[484]: 2020-01-09 16:34:21 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b019509')
jan 09 16:34:21  hass[484]: 2020-01-09 16:34:21 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b019509')
jan 09 16:34:21  hass[484]: 2020-01-09 16:34:21 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b029509')
jan 09 16:34:22  hass[484]: 2020-01-09 16:34:22 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b029509')
jan 09 16:34:22  hass[484]: 2020-01-09 16:34:22 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b019509')
jan 09 16:34:22  hass[484]: 2020-01-09 16:34:22 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b019509')
jan 09 16:34:22  hass[484]: 2020-01-09 16:34:22 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b039509')
jan 09 16:34:23  hass[484]: 2020-01-09 16:34:23 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b039509')
jan 09 16:34:23  hass[484]: 2020-01-09 16:34:23 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b039509')
jan 09 16:34:23  hass[484]: 2020-01-09 16:34:23 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b039509')
jan 09 16:39:16  hass[484]: 2020-01-09 16:39:16 DEBUG (MainThread) [custom_components.plejd.light] Successfully pinged with b8
jan 09 16:44:17  hass[484]: 2020-01-09 16:44:17 DEBUG (MainThread) [custom_components.plejd.light] Successfully pinged with e5
jan 09 16:49:18  hass[484]: 2020-01-09 16:49:18 DEBUG (MainThread) [custom_components.plejd.light] Successfully pinged with d0
jan 09 16:54:19  hass[484]: 2020-01-09 16:54:19 WARNING (MainThread) [custom_components.plejd.light] Plejd ping errored: Not connected
jan 09 16:54:21  hass[484]: 2020-01-09 16:54:21 WARNING (MainThread) [custom_components.plejd.light] No plejd devices found

=== Restart of Home Assistant Server ===

jan 09 16:57:12  hass[484]: 2020-01-09 16:57:12 INFO (SyncWorker_3) [homeassistant.loader] Loaded plejd from custom_components.plejd
jan 09 16:57:24  hass[484]: 2020-01-09 16:57:24 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for plejd which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant.
jan 09 16:57:24  hass[484]: 2020-01-09 16:57:24 INFO (MainThread) [homeassistant.components.light] Setting up light.plejd
jan 09 16:57:27  hass[484]: 2020-01-09 16:57:27 WARNING (MainThread) [custom_components.plejd.light] No plejd devices found
jan 09 16:57:27  hass[484]: 2020-01-09 16:57:27 WARNING (MainThread) [homeassistant.components.light] Platform plejd not ready yet. Retrying in 30 seconds.
jan 09 16:57:58  hass[484]: 2020-01-09 16:57:58 INFO (MainThread) [homeassistant.components.light] Setting up light.plejd
jan 09 16:58:00  hass[484]: 2020-01-09 16:58:00 DEBUG (MainThread) [custom_components.plejd.light] Discovered plejd /org/bluez/hci0/dev_BC_57_A0_48_D7_62 with RSSI -72
jan 09 16:58:00  hass[484]: 2020-01-09 16:58:00 DEBUG (MainThread) [custom_components.plejd.light] Connecting to /org/bluez/hci0/dev_BC_57_A0_48_D7_62
jan 09 16:58:06  hass[484]: 2020-01-09 16:58:06 DEBUG (MainThread) [custom_components.plejd.light] Successfully pinged with 16
jan 09 16:58:06  hass[484]: 2020-01-09 16:58:06 DEBUG (MainThread) [custom_components.plejd.light] Adding device 0 (kitchen)
jan 09 16:58:06  hass[484]: 2020-01-09 16:58:06 DEBUG (MainThread) [custom_components.plejd.light] All plejd setup completed
jan 09 17:03:07  hass[484]: 2020-01-09 17:03:07 DEBUG (MainThread) [custom_components.plejd.light] Successfully pinged with 89
jan 09 17:08:08  hass[484]: 2020-01-09 17:08:08 DEBUG (MainThread) [custom_components.plejd.light] Successfully pinged with 3d
jan 09 17:13:09  hass[484]: 2020-01-09 17:13:09 DEBUG (MainThread) [custom_components.plejd.light] Successfully pinged with fc
jan 09 17:18:10  hass[484]: 2020-01-09 17:18:10 WARNING (MainThread) [custom_components.plejd.light] Plejd ping errored: Not connected
jan 09 17:18:12  hass[484]: 2020-01-09 17:18:12 WARNING (MainThread) [custom_components.plejd.light] No plejd devices found

=== Restart of Home Assistant Server ===

jan 09 17:19:12  hass[484]: 2020-01-09 17:19:12 INFO (SyncWorker_0) [homeassistant.loader] Loaded plejd from custom_components.plejd
jan 09 17:19:22  hass[484]: 2020-01-09 17:19:22 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for plejd which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant.
jan 09 17:19:23  hass[484]: 2020-01-09 17:19:23 INFO (MainThread) [homeassistant.components.light] Setting up light.plejd
jan 09 17:19:26  hass[484]: 2020-01-09 17:19:26 DEBUG (MainThread) [custom_components.plejd.light] Discovered plejd /org/bluez/hci0/dev_BC_57_A0_48_D7_62 with RSSI -66
jan 09 17:19:26  hass[484]: 2020-01-09 17:19:26 DEBUG (MainThread) [custom_components.plejd.light] Connecting to /org/bluez/hci0/dev_BC_57_A0_48_D7_62
jan 09 17:19:32  hass[484]: 2020-01-09 17:19:32 DEBUG (MainThread) [custom_components.plejd.light] Successfully pinged with 22
jan 09 17:19:32  hass[484]: 2020-01-09 17:19:32 DEBUG (MainThread) [custom_components.plejd.light] Adding device 0 (kitchen)
jan 09 17:19:32  hass[484]: 2020-01-09 17:19:32 DEBUG (MainThread) [custom_components.plejd.light] All plejd setup completed
jan 09 17:24:33  hass[484]: 2020-01-09 17:24:33 DEBUG (MainThread) [custom_components.plejd.light] Successfully pinged with 07
jan 09 17:29:34  hass[484]: 2020-01-09 17:29:34 DEBUG (MainThread) [custom_components.plejd.light] Successfully pinged with 61
jan 09 17:34:35  hass[484]: 2020-01-09 17:34:35 DEBUG (MainThread) [custom_components.plejd.light] Successfully pinged with a5
jan 09 17:39:36  hass[484]: 2020-01-09 17:39:36 WARNING (MainThread) [custom_components.plejd.light] Plejd ping errored: Not connected
jan 09 17:39:40  hass[484]: 2020-01-09 17:39:40 WARNING (MainThread) [custom_components.plejd.light] No plejd devices found

=== Restart of Home Assistant Server ===

jan 09 17:40:43  hass[484]: 2020-01-09 17:40:43 INFO (SyncWorker_8) [homeassistant.loader] Loaded plejd from custom_components.plejd
jan 09 17:40:54  hass[484]: 2020-01-09 17:40:54 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for plejd which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant.
jan 09 17:40:54  hass[484]: 2020-01-09 17:40:54 INFO (MainThread) [homeassistant.components.light] Setting up light.plejd
jan 09 17:40:59  hass[484]: 2020-01-09 17:40:59 DEBUG (MainThread) [custom_components.plejd.light] Discovered plejd /org/bluez/hci0/dev_BC_57_A0_48_D7_62 with RSSI -63
jan 09 17:40:59  hass[484]: 2020-01-09 17:40:59 DEBUG (MainThread) [custom_components.plejd.light] Connecting to /org/bluez/hci0/dev_BC_57_A0_48_D7_62
jan 09 17:41:04  hass[484]: 2020-01-09 17:41:04 DEBUG (MainThread) [custom_components.plejd.light] Successfully pinged with d5
jan 09 17:41:04  hass[484]: 2020-01-09 17:41:04 DEBUG (MainThread) [custom_components.plejd.light] Adding device 0 (kitchen)
jan 09 17:41:04  hass[484]: 2020-01-09 17:41:04 DEBUG (MainThread) [custom_components.plejd.light] All plejd setup completed
jan 09 17:46:05  hass[484]: 2020-01-09 17:46:05 DEBUG (MainThread) [custom_components.plejd.light] Successfully pinged with 0d
jan 09 17:51:06  hass[484]: 2020-01-09 17:51:06 DEBUG (MainThread) [custom_components.plejd.light] Successfully pinged with 33
jan 09 17:56:07  hass[484]: 2020-01-09 17:56:07 DEBUG (MainThread) [custom_components.plejd.light] Successfully pinged with ef
jan 09 18:01:08  hass[484]: 2020-01-09 18:01:08 WARNING (MainThread) [custom_components.plejd.light] Plejd ping errored: Not connected
jan 09 18:01:10  hass[484]: 2020-01-09 18:01:10 WARNING (MainThread) [custom_components.plejd.light] No plejd devices found
jan 09 18:06:11  hass[484]:   File "/home/homeassistant/.homeassistant/custom_components/plejd/light.py", line 399, in _ping
jan 09 18:06:11  hass[484]:     if(await plejd_ping(pi) == False):
jan 09 18:06:11  hass[484]:   File "/home/homeassistant/.homeassistant/custom_components/plejd/light.py", line 354, in plejd_ping

=== Restart of Home Assistant Server ===

jan 09 18:40:48  hass[484]: 2020-01-09 18:40:48 INFO (SyncWorker_8) [homeassistant.loader] Loaded plejd from custom_components.plejd
jan 09 18:40:58  hass[484]: 2020-01-09 18:40:58 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for plejd which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant.
jan 09 18:40:58  hass[484]: 2020-01-09 18:40:58 INFO (MainThread) [homeassistant.components.light] Setting up light.plejd
jan 09 18:41:02  hass[484]: 2020-01-09 18:41:02 WARNING (MainThread) [custom_components.plejd.light] No plejd devices found
jan 09 18:41:02  hass[484]: 2020-01-09 18:41:02 WARNING (MainThread) [homeassistant.components.light] Platform plejd not ready yet. Retrying in 30 seconds.
jan 09 18:41:33  hass[484]: 2020-01-09 18:41:33 INFO (MainThread) [homeassistant.components.light] Setting up light.plejd
jan 09 18:41:35  hass[484]: 2020-01-09 18:41:35 WARNING (MainThread) [custom_components.plejd.light] No plejd devices found
jan 09 18:41:35  hass[484]: 2020-01-09 18:41:35 WARNING (MainThread) [homeassistant.components.light] Platform plejd not ready yet. Retrying in 60 seconds.
jan 09 18:42:36  hass[484]: 2020-01-09 18:42:36 INFO (MainThread) [homeassistant.components.light] Setting up light.plejd
jan 09 18:42:40  hass[484]: 2020-01-09 18:42:40 WARNING (MainThread) [custom_components.plejd.light] No plejd devices found
jan 09 18:42:40  hass[484]: 2020-01-09 18:42:40 WARNING (MainThread) [homeassistant.components.light] Platform plejd not ready yet. Retrying in 90 seconds.
jan 09 18:44:11  hass[484]: 2020-01-09 18:44:11 INFO (MainThread) [homeassistant.components.light] Setting up light.plejd
jan 09 18:44:13  hass[484]: 2020-01-09 18:44:13 DEBUG (MainThread) [custom_components.plejd.light] Discovered plejd /org/bluez/hci0/dev_BC_57_A0_48_D7_62 with RSSI -73
jan 09 18:44:13  hass[484]: 2020-01-09 18:44:13 DEBUG (MainThread) [custom_components.plejd.light] Connecting to /org/bluez/hci0/dev_BC_57_A0_48_D7_62
jan 09 18:44:19  hass[484]: 2020-01-09 18:44:19 DEBUG (MainThread) [custom_components.plejd.light] No match for device '00' (b'00011000160b028709')
jan 09 18:44:19  hass[484]: 2020-01-09 18:44:19 DEBUG (MainThread) [custom_components.plejd.light] Successfully pinged with 9e
jan 09 18:44:19  hass[484]: 2020-01-09 18:44:19 DEBUG (MainThread) [custom_components.plejd.light] Adding device 0 (kitchen)
jan 09 18:44:19  hass[484]: 2020-01-09 18:44:19 DEBUG (MainThread) [custom_components.plejd.light] All plejd setup completed
jan 09 18:44:19  hass[484]: 2020-01-09 18:44:19 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b028709')
jan 09 18:44:19  hass[484]: 2020-01-09 18:44:19 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b028709')
jan 09 18:44:20  hass[484]: 2020-01-09 18:44:20 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b028709')
jan 09 18:44:20  hass[484]: 2020-01-09 18:44:20 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b028709')
jan 09 18:44:20  hass[484]: 2020-01-09 18:44:20 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b028709')
jan 09 18:44:21  hass[484]: 2020-01-09 18:44:21 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b028709')
jan 09 18:44:21  hass[484]: 2020-01-09 18:44:21 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b028709')
jan 09 18:44:21  hass[484]: 2020-01-09 18:44:21 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b028709')
jan 09 18:44:21  hass[484]: 2020-01-09 18:44:21 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b028709')
jan 09 18:44:22  hass[484]: 2020-01-09 18:44:22 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b028709')
jan 09 18:49:20  hass[484]: 2020-01-09 18:49:20 DEBUG (MainThread) [custom_components.plejd.light] Successfully pinged with 8b
jan 09 18:54:21  hass[484]: 2020-01-09 18:54:21 DEBUG (MainThread) [custom_components.plejd.light] Successfully pinged with e9
jan 09 18:59:22  hass[484]: 2020-01-09 18:59:22 DEBUG (MainThread) [custom_components.plejd.light] Successfully pinged with d7
jan 09 19:04:23  hass[484]: 2020-01-09 19:04:23 WARNING (MainThread) [custom_components.plejd.light] Plejd ping errored: Not connected
jan 09 19:04:25  hass[484]: 2020-01-09 19:04:25 WARNING (MainThread) [custom_components.plejd.light] No plejd devices found
jan 09 19:09:26  hass[484]:   File "/home/homeassistant/.homeassistant/custom_components/plejd/light.py", line 399, in _ping
jan 09 19:09:26  hass[484]:     if(await plejd_ping(pi) == False):
jan 09 19:09:26  hass[484]:   File "/home/homeassistant/.homeassistant/custom_components/plejd/light.py", line 354, in plejd_ping

=== Restart of Home Assistant Server ===

jan 09 19:10:10  hass[484]: 2020-01-09 19:10:10 INFO (SyncWorker_3) [homeassistant.loader] Loaded plejd from custom_components.plejd
jan 09 19:10:21  hass[484]: 2020-01-09 19:10:21 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for plejd which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant.
jan 09 19:10:21  hass[484]: 2020-01-09 19:10:21 INFO (MainThread) [homeassistant.components.light] Setting up light.plejd
jan 09 19:10:24  hass[484]: 2020-01-09 19:10:24 DEBUG (MainThread) [custom_components.plejd.light] Discovered plejd /org/bluez/hci0/dev_BC_57_A0_48_D7_62 with RSSI -77
jan 09 19:10:24  hass[484]: 2020-01-09 19:10:24 DEBUG (MainThread) [custom_components.plejd.light] Connecting to /org/bluez/hci0/dev_BC_57_A0_48_D7_62
jan 09 19:10:28  hass[484]: 2020-01-09 19:10:28 DEBUG (MainThread) [custom_components.plejd.light] Successfully pinged with ea
jan 09 19:10:28  hass[484]: 2020-01-09 19:10:28 DEBUG (MainThread) [custom_components.plejd.light] Adding device 0 (kitchen)
jan 09 19:10:28  hass[484]: 2020-01-09 19:10:28 DEBUG (MainThread) [custom_components.plejd.light] All plejd setup completed
jan 09 19:12:07  hass[484]: 2020-01-09 19:12:07 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b01ae09')
jan 09 19:12:07  hass[484]: 2020-01-09 19:12:07 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b01ae09')
jan 09 19:12:08  hass[484]: 2020-01-09 19:12:08 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b01ae09')
jan 09 19:12:08  hass[484]: 2020-01-09 19:12:08 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b01ae09')
jan 09 19:15:29  hass[484]: 2020-01-09 19:15:29 DEBUG (MainThread) [custom_components.plejd.light] Successfully pinged with c2
jan 09 19:17:05  hass[484]: 2020-01-09 19:17:05 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b01ae09')
jan 09 19:17:05  hass[484]: 2020-01-09 19:17:05 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b01ae09')
jan 09 19:17:05  hass[484]: 2020-01-09 19:17:05 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b01ae09')
jan 09 19:17:06  hass[484]: 2020-01-09 19:17:06 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b01ae09')
jan 09 19:20:30  hass[484]: 2020-01-09 19:20:30 DEBUG (MainThread) [custom_components.plejd.light] Successfully pinged with db
jan 09 19:23:02  hass[484]: 2020-01-09 19:23:02 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b01ae09')
jan 09 19:23:02  hass[484]: 2020-01-09 19:23:02 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b01ae09')
jan 09 19:23:02  hass[484]: 2020-01-09 19:23:02 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b01ae09')
jan 09 19:23:03  hass[484]: 2020-01-09 19:23:03 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b01ae09')
jan 09 19:25:31  hass[484]: 2020-01-09 19:25:31 DEBUG (MainThread) [custom_components.plejd.light] Successfully pinged with 6f
jan 09 19:28:01  hass[484]: 2020-01-09 19:28:01 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b02ae09')
jan 09 19:28:01  hass[484]: 2020-01-09 19:28:01 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b02ae09')
jan 09 19:28:02  hass[484]: 2020-01-09 19:28:02 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b02ae09')
jan 09 19:28:02  hass[484]: 2020-01-09 19:28:02 DEBUG (MainThread) [custom_components.plejd.light] No match for command 'b'0016'' (b'00011000160b02ae09')
jan 09 19:30:32  hass[484]: 2020-01-09 19:30:32 WARNING (MainThread) [custom_components.plejd.light] Plejd ping errored: Not connected
jan 09 19:30:35  hass[484]: 2020-01-09 19:30:35 WARNING (MainThread) [custom_components.plejd.light] No plejd devices found
jan 09 19:35:36  hass[484]:   File "/home/homeassistant/.homeassistant/custom_components/plejd/light.py", line 399, in _ping
jan 09 19:35:36  hass[484]:     if(await plejd_ping(pi) == False):
jan 09 19:35:36  hass[484]:   File "/home/homeassistant/.homeassistant/custom_components/plejd/light.py", line 354, in plejd_ping

This also leads me into another question; right now I'm using your plejd LIGHT platform service and kind of backwards trying to get access to the plejd switch - and by the results so far I do believe it also should be possible in the end.

But the switch isn't really a light and thus it should have its own separate platform that hooks into switches integrations in HA. Right? I'm not that into coding in HA yet, but I guess the right thing would be to extract the bluetooth- and crypto-communictions part of light.py and put it in a separate file that is accessed from light.py. And then likewise create a sensor.py (or switch.py or whatever its called) as a switch platform and make sure that also accesses the same bluetooth- and crypto algorithms? And make sure they don't conflict with each other...

I do understand that this is quite a step to do - especially if you don't have access to the physical plejd switch yourself to play around with. But it really would make the path to a final and complete plejd-ha component I think!

What's your comment on this?

klali commented 4 years ago

So.. many things..

regarding the regression of a second bluetooth adapter, the dbus code will use the first adapter it finds, I guess this could be made configurable.

Keeping a connection to the switch is probably problematic, I think it goes to sleep after it's been pressed, so it's probably better to not try to keep a long connection to it, but rather something else.

No real thoughts about byte 9&10, they might be reverse, most data from plejd seems to be in big-endian. I guess they can just be ignorde and one can use heuristics if one should go up or down (just remember last direction).

Agreed on the thinking of light etc, that's how it should be integrated, split the common code of the platform, possibly out into a library even.

klali commented 4 years ago

If you're interested in the adapter problems, I just pushed a branch: https://github.com/klali/ha-plejd/tree/adapter_match

it allows you to add adapter to your config and specify a substring of the adapter you want to connect to (like hci0).

And on the topic of building this, you're right that I don't currently have a wph-01 (or any real interest in it), this makes it unlikely that I'll be building to much around it.

NonjSAme commented 4 years ago

Thanks for your quick replies! I really appreciate this!

I will certainly try the new adapter_match branch to see if that solves the conflict with flic buttons.

Regarding keeping connection with the switch, I think it is something else since It doesn't matter if I press the switch while pinging the device still works. It is ALWAYS after the 4th ping (>15 min) from the initial first ping the connection gets lost. No matter if I just the second before managed to successfully received information of pressed switch data.

Even though I'm not that familiar with HA platform design - and kind of a rusty programmer on top of that - I would still be happy to at least make a try to integrate the switch platform my self. I've looked briefly at the light.py code, but what part would be appropriate to split out as a library? How would one do that as best practice? Of course I wouldn't dream of asking you to help me doing it if its not of interest for you, but maybe you could point me into a direction?

klali commented 4 years ago

I would suspect that the timeouts have to do with the device going to sleep, it will be difficult to use it as a connection point due to battery issues. With more devices in a mesh it'll connect to something else instead.

I'll be happy to give advice and have opinions, there's several components in the home-assistant code where the logic is split over a base file and different parts. A first step on splitting like that and adding a switch part would be to put the PlejdLight class in light.py and the rest in __init__.py.

If we (for some value of we) would like to get this accepted into home-assistant proper the main logic has to be split out into a library.

jacobhallgren commented 4 years ago

+1 on this, would be great if we get support for this remote

bnordli commented 2 years ago

I have changed this custom_component to a full blown integration, including support for buttons and rotaries. I am still testing it out at home, but feel free to try out before I formally submit a PR: https://github.com/bnordli/ha-plejd/tree/to-integration

Note that this requires a top level plejd configuration, please see the new README.

dodg3r commented 2 years ago

I have changed this custom_component to a full blown integration, including support for buttons and rotaries. I am still testing it out at home, but feel free to try out before I formally submit a PR: https://github.com/bnordli/ha-plejd/tree/to-integration

Note that this requires a top level plejd configuration, please see the new README.

Hi.

How can I get in contact with you with some feedback?

bnordli commented 2 years ago

I have changed this custom_component to a full blown integration, including support for buttons and rotaries. I am still testing it out at home, but feel free to try out before I formally submit a PR: https://github.com/bnordli/ha-plejd/tree/to-integration Note that this requires a top level plejd configuration, please see the new README.

Hi.

How can I get in contact with you with some feedback?

I have now prepared this PR: https://github.com/klali/ha-plejd/pull/54 You can comment publicly in that PR or reach me on bnordli at gmail.