andyb2000 / HACS-husqvarna_automower_ble

HACS custom component for husqvarna_automower_ble
11 stars 3 forks source link

ESP Home #25

Open rudgej opened 1 week ago

rudgej commented 1 week ago

I am running Sonoff NS Panels via ESP home https://github.com/Blackymas/NSPanel_HA_Blueprint

I have tried to add the bluetooth code on top of the existing code I have but get these errors

This is my code.

ubstitutions:

CHANGE ME START

device_name: "musicroom" wifi_ssid: "Automation" wifi_password: "&&&&&"

nextion_update_url: "http://homeassistant.local:8123/local/nspanel_eu.tft" # Optional for esp-idf framework

Add-on configuration (if needed)

heater_relay: "1" # Possible values: "1" or "2"

Customization area

My customization - Start
My customization - End

Core and optional configurations

packages: remote_package: url: https://github.com/Blackymas/NSPanel_HA_Blueprint ref: main files:

esp32: framework: type: esp-idf

# Set Nextion comms baud rate to 921600 bps

uart:

* the above is for the NS panels to work as a scene controller **

esp32_ble_tracker: scan_parameters: active: false continuous: false duration: 50sec

bluetooth_proxy: active: true cache_services: true

time:

I get the following errors on compile

/data/packages/566b10a3/esphome/nspanel_esphome_addon_upload_tft.yaml: In lambda function: /data/packages/566b10a3/esphome/nspanel_esphome_addon_upload_tft.yaml:240:7: error: 'ble_tracker' was not declared in this scope ble_tracker->dump_config(); ^ ~~~ Compiling .pioenvs/musicroom/bt/host/bluedroid/stack/hid/hidd_api.o /data/packages/566b10a3/esphome/nspanel_esphome_addon_upload_tft.yaml:244:31: error: 'ble_proxy' was not declared in this scope ble_proxy_active_mode = ble_proxy->has_active(); ^~~~~ /data/packages/566b10a3/esphome/nspanel_esphome_addon_upload_tft.yaml:265:9: error: 'ble_component' was not declared in this scope ble_component->disable(); ^ ~~~~~ /data/packages/566b10a3/esphome/nspanel_esphome_addon_upload_tft.yaml:265:9: note: suggested alternative: 'wifi_component' ble_component->disable(); ^ ~~~~~ wifi_component Compiling .pioenvs/musicroom/bt/host/bluedroid/stack/hid/hidd_conn.o Compiling .pioenvs/musicroom/bt/host/bluedroid/stack/hid/hidh_api.o Compiling .pioenvs/musicroom/bt/host/bluedroid/stack/hid/hidh_conn.o Compiling .pioenvs/musicroom/bt/host/bluedroid/stack/btm/btm_acl.o Compiling .pioenvs/musicroom/bt/host/bluedroid/stack/btm/btm_ble.o Compiling .pioenvs/musicroom/bt/host/bluedroi

Could you please suggest the required edit to allow it to work please?

Thank you

Jeremy

edwardtfn commented 1 week ago
andyb2000 commented 1 week ago

Unfortunately I don't recognise the NSPanel extra part to esp home here, is that a custom piece of hardware? If so then that may be causing some conflicts with the ble/bluetooth component. Thanks @edwardtfn for taking a look over at nspanel, that is probably the way forward here and drop a note back if you still have problems.