esphome-ble-controller icon indicating copy to clipboard operation
esphome-ble-controller copied to clipboard

Custom on/off values for the Switch component

Open sanyadez opened this issue 4 years ago • 6 comments

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?

sanyadez avatar Sep 04 '21 18:09 sanyadez

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.

wifwucite avatar Sep 05 '21 06:09 wifwucite

Esp should send those codes to the remote ble device.

sanyadez avatar Sep 05 '21 09:09 sanyadez

Hi @wifwucite, have you tried implement this case?

sanyadez avatar Sep 30 '21 13:09 sanyadez

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.

wifwucite avatar Oct 05 '21 17:10 wifwucite

@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.

sanyadez avatar Oct 06 '21 08:10 sanyadez

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

jascdk avatar Feb 24 '22 11:02 jascdk