aronsky / esphome-components

Custom components for ESPHome
MIT License
38 stars 33 forks source link

Lamp pairing - how? #15

Open pery777 opened 3 months ago

pery777 commented 3 months ago

Hi, I installed the script on the ESP32 board and added it to Home Assistant. And... how to start pairing with the lamp? I turn on the lamp and press the pairing button on the remote control. How to enable pairing in ESPHOME?

my code:

esphome:
  name: sypialnia
  friendly_name: sypialnia
  platformio_options:
    board_build.flash_mode: dio

esp32:
  board: esp32dev
  framework:
    type: arduino

# Enable logging
logger:

# Enable Home Assistant API
api:
  encryption:
    key: "3t8cl3APajbfQqOx+s0km9+Ffdr4qj0+DcxxxxxMWEc="

ota:
  password: "2ea2a0a4ac63a554d20e5xxx91994dea"

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Sypialnia Fallback Hotspot"
    password: "zJ2lQxxxxeOU"

captive_portal:

external_components:
  # shorthand
  source: github://aronsky/esphome-components

light:
  - platform: lampsmart_pro_light
    name: Kitchen Light
    duration: 1000
    default_transition_length: 0s

Przechwytywanie

Przechwytywanie1

I will be grateful for any help.

aronsky commented 3 months ago

You don't need to use the remote control. You should go to the developer options in Home Assistant, and call the pair service of this component. More detailed instructions are in the readme and in other similar issues in the repo.

On Thu, 13 Jun 2024, 19:48 pery777, @.***> wrote:

Hi, I installed the script on the ESP32 board and added it to Home Assistant. And... how to start pairing with the lamp? I turn on the lamp and press the pairing button on the remote control. How to enable pairing in ESPHOME?

my code:

esphome: name: sypialnia friendly_name: sypialnia platformio_options: board_build.flash_mode: dio

esp32: board: esp32dev framework: type: arduino

Enable logging

logger:

Enable Home Assistant API

api: encryption: key: "3t8cl3APajbfQqOx+s0km9+Ffdr4qj0+DcxxxxxMWEc="

ota: password: "2ea2a0a4ac63a554d20e5xxx91994dea"

wifi: ssid: !secret wifi_ssid password: !secret wifi_password

Enable fallback hotspot (captive portal) in case wifi connection fails

ap: ssid: "Sypialnia Fallback Hotspot" password: "zJ2lQxxxxeOU"

captive_portal:

external_components:

shorthand

source: github://aronsky/esphome-components

light:

  • platform: lampsmart_pro_light name: Kitchen Light duration: 1000 default_transition_length: 0s

Przechwytywanie.PNG (view on web) https://github.com/aronsky/esphome-components/assets/31364138/18c8b907-b96f-4a33-9ea4-9c1e5797fc0f

Przechwytywanie1.PNG (view on web) https://github.com/aronsky/esphome-components/assets/31364138/25a06952-8922-44d0-a10a-684b96345896

I will be grateful for any help.

— Reply to this email directly, view it on GitHub https://github.com/aronsky/esphome-components/issues/15, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABD52DGLSFRSWYM6JUA5SW3ZHHEM3AVCNFSM6AAAAABJIY4T5WVHI2DSMVQWIX3LMV43ASLTON2WKOZSGM2TCNRQHEYTIMY . You are receiving this because you are subscribed to this thread.Message ID: @.***>

pery777 commented 3 months ago

I've been looking for how to enable pairing/finding the lamp in Home Assistant for several hours now :(

aronsky commented 3 months ago

In the sidebar of Home Assistant, click on "Developer tools". Then open the "Services" tab in the screen that appears. Look for a service named "esphome.ble_lightspair****", and call it. That's it (do it after powering on the light, when you'd normally use the "pair" button on the remote).

aronsky commented 3 months ago

Also, as I mentioned - there is an explanation in another issue. Please use the search feature.

https://github.com/aronsky/esphome-components/issues/14#issuecomment-2150857964