wifwucite / esphome-ble-controller

Bluetooth Low Energy (BLE) controller for ESPHome
MIT License
114 stars 23 forks source link

Custom on/off values for the Switch component #6

Open sanyadez opened 3 years ago

sanyadez commented 3 years ago

I have few very strange BLE sockets. I've parsed on/off commands and them looks like 0x0f06030001000005ffff - on 0x0f06030000000004ffff - off

This is hex values. Can I use your library to control this sockets?

wifwucite commented 3 years ago

Hi, First I need to understand your use case correctly. Are you saying you want to send 0x0f06030001000005ffff/0x0f06030000000004ffff from another device to the ESP32 to switch something on or off? Or should the ESP32 send these values to the other device? So the direction of communication is important to know for me.

sanyadez commented 3 years ago

Esp should send those codes to the remote ble device.

sanyadez commented 3 years ago

Hi @wifwucite, have you tried implement this case?

wifwucite commented 3 years ago

Hi, I have not worked on it yet. As I said before I would like to understand your use case first: Are you saying you want to send 0x0f06030001000005ffff/0x0f06030000000004ffff from another device to the ESP32 to switch something on or off? Or should the ESP32 send these values to the other device? So the direction of communication is important to know for me.

sanyadez commented 3 years ago

@wifwucite would be great to use this component to control another devices. In my case need to connect to the custon ble device and write value to from ESP to the remote device.

jascdk commented 2 years ago

@wifwucite Any news on this issue ? I could use the same