Hi,
I said I would get back with my experiences of trying to connect via a Synology VM.
I have added a 5m USB cable to my system but I am still unable to connect to the
SMA inverter. The Synology virtual machine appears to be working ok as far as the bluetooth dongle goes.
VM: Synology DSM7.1
Home Assistant 2022.8.7
Supervisor 2022.08.3
Operating System 8.5
Frontend 20220802.0 - latest
SbfSPOT 2022.8.4
I start up the VM and go to hardware and search for bluetooth.
BUSNUM: '002'
DEVNAME: /dev/bus/usb/002/002
DEVNUM: '002'
DEVPATH: /devices/pci0000:00/0000:00:04.0/usb2/2-1
DEVTYPE: usb_device
DRIVER: usb
ID_BUS: usb
ID_MODEL: Bluetooth_Radio
ID_MODEL_ENC: Bluetooth\x20Radio
ID_MODEL_ID: '8771'
ID_PATH: pci-0000:00:04.0-usb-0:1
ID_PATH_TAG: pci-0000_00_04_0-usb-0_1
ID_REVISION: '0200'
ID_SERIAL: Realtek_Bluetooth_Radio_00E04C239987
ID_SERIAL_SHORT: 00E04C239987
ID_USB_INTERFACES: ':e00101:'
ID_VENDOR: Realtek
ID_VENDOR_ENC: Realtek
ID_VENDOR_ID: 0bda
MAJOR: '189'
MINOR: '129'
PRODUCT: bda/8771/200
SUBSYSTEM: usb
TYPE: 224/1/1
USEC_INITIALIZED: '2899765'
This is the log from sbfSPOT
s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
services-up: info: copying legacy longrun sbfspot (no readiness notification)
s6-rc: info: service legacy-services successfully started
[17:09:03] INFO:
[17:09:03] INFO: Linux 5.15.60 #1 SMP Tue Aug 16 12:26:36 UTC 2022 x86_64
[17:09:03] INFO:
[17:09:03] INFO:
[17:09:03] INFO: [Host Bluetooth MAC Address] Controller 00:E0:4C:9E:CF:03 homeassistant [default]
[17:09:03] INFO:
[17:09:06] INFO:
[17:09:06] INFO:
[17:09:06] INFO: || Generating Bluetooth Configs ||
[17:09:06] INFO: || /usr/bin/sbfspot/SBFspot.cfg ||
[17:09:06] INFO: || /usr/bin/sbfspot/SBFspotUpload.cfg ||
[17:09:06] INFO:
[17:09:06] INFO: [Starting SBFspotUpload]
[17:09:06] INFO: [Starting cron in foreground]
SBFspot V3.9.5
Yet another tool to read power production of SMA solar inverters
(c) 2012-2022, SBF (GitHub - SBFspot/SBFspot: Yet another tool to read power production of SMA® solar/battery inverters)
Compiled for Linux (LE) 64 bit with MySQL support
Commandline Args: -v -ad0 -am0 -mqtt -finq
Reading config ‘/usr/bin/sbfspot/SBFspot.cfg’
Sun Aug 28 17:09:36 2022: INFO: Starting…
sunrise: 06:15
sunset : 17:33
Connecting to 00:80:25:15:44:C0 (1/10)
Connecting to 00:80:25:15:44:C0 (2/10)
Connecting to 00:80:25:15:44:C0 (3/10)
Connecting to 00:80:25:15:44:C0 (4/10)
Connecting to 00:80:25:15:44:C0 (5/10)
Connecting to 00:80:25:15:44:C0 (6/10)
Connecting to 00:80:25:15:44:C0 (7/10)
Connecting to 00:80:25:15:44:C0 (8/10)
Connecting to 00:80:25:15:44:C0 (9/10)
Connecting to 00:80:25:15:44:C0 (10/10)
Sun Aug 28 17:09:45 2022: CRITICAL: bthConnect() returned -1
Sun Aug 28 17:09:45 2022: INFO: Done.
SBFspot V3.9.5
Yet another tool to read power production of SMA solar inverters
(c) 2012-2022, SBF (GitHub - SBFspot/SBFspot: Yet another tool to read power production of SMA® solar/battery inverters)
Compiled for Linux (LE) 64 bit with MySQL support
Commandline Args: -v -ad1 -am0 -ae0 -mqtt
Reading config ‘/usr/bin/sbfspot/SBFspot.cfg’
Sun Aug 28 17:10:00 2022: INFO: Starting…
SBFspotUploadDaemon Version 3.0.1
Loglevel=2
LogDir=/data/sbfspot/log/
sunrise: 06:15
sunset : 17:33
Connecting to 00:80:25:15:44:C0 (1/10)
Connecting to 00:80:25:15:44:C0 (2/10)
Connecting to 00:80:25:15:44:C0 (3/10)
Connecting to 00:80:25:15:44:C0 (4/10)
Connecting to 00:80:25:15:44:C0 (5/10)
Connecting to 00:80:25:15:44:C0 (6/10)
Connecting to 00:80:25:15:44:C0 (7/10)
Connecting to 00:80:25:15:44:C0 (8/10)
Connecting to 00:80:25:15:44:C0 (9/10)
Connecting to 00:80:25:15:44:C0 (10/10)
Sun Aug 28 17:10:09 2022: CRITICAL: bthConnect() returned -1
Sun Aug 28 17:10:09 2022: INFO: Done.
[17:10:45] INFO: [SBFspot Upload Log Latest] [17:10:06.592] INFO: Starting Daemon…
Obviously no connection
Finally YAML setup
Connection_Type: Bluetooth
BTAddress: 00:80:25:15:44:C0
Password: “!secret SMA-Home-User-Password”
LocalBTAddress: “00:00:00:00:00:00”
IP_Address: 255.255.255.255
MIS_Enabled: 0
Plantname: Home-SMA
OutputPath: /data/sbfspot/%Y
OutputPathEvents: /data/sbfspot/%Y/events
Latitude: -30.5036
Longitude: 151.6523
CalculateMissingSpotValues: 1
DateTimeFormat: “%d/%m/%Y %H:%M:%S”
DateFormat: “%d/%m/%Y”
DecimalPoint: comma
TimeFormat: “%H:%M:%S”
SynchTime: 0
SynchTimeLow: 1
SynchTimeHigh: 3600
SunRSOffset: 900
Locale: en-US
Timezone: Australia/Sydney
BTConnectRetries: 10
CSV_Export: 0
CSV_ExtendedHeader: 1
CSV_Header: 1
CSV_SaveZeroPower: 1
CSV_Delimiter: semicolon
CSV_Spot_TimeSource: Inverter
CSV_Spot_WebboxHeader: 0
SQL_Database: SBFspot
SQL_Hostname: core-mariadb
SQL_Port: “3306”
SQL_Username: “!secret sbfspot-mariadb-user”
SQL_Password: “!secret sbfspot-mariadb-password”
MQTT_Publisher: /usr/bin/mosquitto_pub
MQTT_Host: core-mosquitto
MQTT_Port: “1883”
MQTT_Topic: homeassistant/sbfspot_{plantname}/sbfspot_{serial}
MQTT_ItemFormat: “"{key}": {value}”
MQTT_ItemDelimiter: comma
MQTT_PublisherArgs: “!secret sbfspot-mqtt-publisherargs”
MQTT_Data: >-
Timestamp,SunRise,SunSet,InvSerial,InvName,InvTime,InvStatus,InvTemperature,InvGridRelay,EToday,ETotal,GridFreq,PACTot,UDC1,UDC2,IDC1,IDC2,PDC1,PDC2
PVoutput_SID: “2100334356:92105”
PVoutput_Key: “!secret PVoutput_Key_API”
LogDir: /data/sbfspot/log/
LogLevel: info
MQTT_ENABLE: “1”
I tried it with the local BT address both filled in and blank. Same result. The bluetooth connection is also showing up in the bluetooth configuration in Home Assistant as “hci0”
Still working on my Pi.
Laurie