I stumbled onto your work because I would like very simple control of my Infinity Controller 67 from my home automation system. Iām not an HA user, I mainly use Smartthings, Sharptools and other IOT connected devices. Any thoughts on how I could use your commands in my environment? BTW, as others have stated, Infinity should just provide some sort of API or even IFTTT for this).
they wont ive been in contact with their help department and a programmer they both say they dont want it to be done and want only their own proprietary software to be able to run their systems
i explained to them what we were doing here and how its home automation that were not trying to steal their work we are trying to make it work with ours and it would actually be better if they made their own home assistant integration so people could use it the way they want to.
basically told to go sit in the corner and deal with it even after explaining that it will only hurt them by nt being on the side of changeā¦still dont care , its mor about profit and money for them then it is to be for the customer experience which i personally find sadā¦
so to your question
write a shell script and run it on your platform? i dont know what smart things is but im assuming another form of home assistant. so test your boundaries and see where you could fit something such as this
your really looking to use some script to bluetoothctl into the ACINFINITY ble protocols ā¦ not too hard right : )
Thanks for the help. I donāt have much bluetooth experience, but Iād really like to control my controller 67 through my home automation, specifically the fan speed control. Iām using a PI device (linux) and have been able to connect to the controller using bluetoothctl, but Iām not sure what values I need to send via gatt. Iām also not opposed to getting the Controller 69, but they are sold out right now. Iāve included what I see so far. Any insight on how I need to attack this would be appreciated.
[ACI-UniversalController]# info DA:6E:91:88:26:2C
Device DA:6E:91:88:26:2C (random)
Name: ACI-UniversalController
Alias: ACI-UniversalController
Paired: no
Trusted: yes
Blocked: no
Connected: yes
LegacyPairing: no
UUID: Generic Access Profile (00001800-0000-1000-8000-00805f9b34fb)
UUID: Generic Attribute Profile (00001801-0000-1000-8000-00805f9b34fb)
UUID: Device Information (0000180a-0000-1000-8000-00805f9b34fb)
UUID: Nordic Semiconductor ASA (0000fe59-0000-1000-8000-00805f9b34fb)
UUID: Vendor specific (70d51000-2c7f-4e75-ae8a-d758951ce4e0)
ManufacturerData Key: 0x0902
ManufacturerData Value:
da 6e 91 88 26 2c 4e 37 4c 4e 48 00 01 08 09 13 .n..&,N7LNH.....
0c 44 04 00 00 00 00 00 00 00 00 .D.........
(from gatt)
# list-attributes
Primary Service
/org/bluez/hci0/dev_DA_6E_91_88_26_2C/service000a
00001801-0000-1000-8000-00805f9b34fb
Generic Attribute Profile
Characteristic
/org/bluez/hci0/dev_DA_6E_91_88_26_2C/service000a/char000b
00002a05-0000-1000-8000-00805f9b34fb
Service Changed
Descriptor
/org/bluez/hci0/dev_DA_6E_91_88_26_2C/service000a/char000b/desc000d
00002902-0000-1000-8000-00805f9b34fb
Client Characteristic Configuration
Primary Service
/org/bluez/hci0/dev_DA_6E_91_88_26_2C/service000e
0000180a-0000-1000-8000-00805f9b34fb
Device Information
Characteristic
/org/bluez/hci0/dev_DA_6E_91_88_26_2C/service000e/char000f
00002a29-0000-1000-8000-00805f9b34fb
Manufacturer Name String
Characteristic
/org/bluez/hci0/dev_DA_6E_91_88_26_2C/service000e/char0011
00002a24-0000-1000-8000-00805f9b34fb
Model Number String
Characteristic
/org/bluez/hci0/dev_DA_6E_91_88_26_2C/service000e/char0013
00002a27-0000-1000-8000-00805f9b34fb
Hardware Revision String
Characteristic
/org/bluez/hci0/dev_DA_6E_91_88_26_2C/service000e/char0015
00002a26-0000-1000-8000-00805f9b34fb
Firmware Revision String
Characteristic
/org/bluez/hci0/dev_DA_6E_91_88_26_2C/service000e/char0017
00002a28-0000-1000-8000-00805f9b34fb
Software Revision String
Characteristic
/org/bluez/hci0/dev_DA_6E_91_88_26_2C/service000e/char0019
00002a23-0000-1000-8000-00805f9b34fb
System ID
Primary Service
/org/bluez/hci0/dev_DA_6E_91_88_26_2C/service001b
70d51000-2c7f-4e75-ae8a-d758951ce4e0
Vendor specific
Characteristic
/org/bluez/hci0/dev_DA_6E_91_88_26_2C/service001b/char001c
70d51001-2c7f-4e75-ae8a-d758951ce4e0
Vendor specific
Characteristic
/org/bluez/hci0/dev_DA_6E_91_88_26_2C/service001b/char001e
70d51002-2c7f-4e75-ae8a-d758951ce4e0
Vendor specific
Descriptor
/org/bluez/hci0/dev_DA_6E_91_88_26_2C/service001b/char001e/desc0020
00002902-0000-1000-8000-00805f9b34fb
Client Characteristic Configuration
Primary Service
/org/bluez/hci0/dev_DA_6E_91_88_26_2C/service0021
0000fe59-0000-1000-8000-00805f9b34fb
Nordic Semiconductor ASA
Characteristic
/org/bluez/hci0/dev_DA_6E_91_88_26_2C/service0021/char0022
8ec90003-f315-4f60-9fb8-838830daea50
Vendor specific
Descriptor
/org/bluez/hci0/dev_DA_6E_91_88_26_2C/service0021/char0022/desc0024
00002902-0000-1000-8000-00805f9b34fb
Client Characteristic Configuration
Looks like things are working. I did swap the gatt and list-attributes commands because I believe thatās the correct order? Hereās what I get:
pi@raspberrypi:~ $ expect infinity.sh
spawn bluetoothctl
Agent registered
[ACI-UniversalController]# connect DA:6E:91:88:26:2C
Attempting to connect to DA:6E:91:88:26:2C
Connection successful
[ACI-UniversalController]# menu gatt
Menu gatt:
Available commands:
list-attributes [dev] List attributes
select-attribute <attribute/UUID> Select attribute
attribute-info [attribute/UUID] Select attribute
read [offset] Read attribute value
write <data=xx xx ā¦> [offset] Write attribute value
acquire-write Acquire Write file descriptor
release-write Release Write file descriptor
acquire-notify Acquire Notify file descriptor
release-notify Release Notify file descriptor
notify <on/off> Notify attribute value
register-application [UUID ā¦] Register profile to connect
unregister-application Unregister profile
register-service Register application service.
unregister-service <UUID/object> Unregister application service
register-includes Register as Included service in.
unregister-includes Unregister Included service.
register-characteristic <Flags=read,write,notifyā¦> Register application characteristic
unregister-characteristic <UUID/object> Unregister application characteristic
register-descriptor <Flags=read,writeā¦> Register application descriptor
unregister-descriptor <UUID/object> Unregister application descriptor
back Return to main menu
version Display version
quit Quit program
exit Quit program
help Display help about this program
export Print evironment variables
[ACI-UniversalController]# list-attributes
Primary Service
/org/bluez/hci0/dev_DA_6E_91_88_26_2C/service0021
0000fe59-0000-1000-8000-00805f9b34fb
Nordic Semiconductor ASA
Characteristic
/org/bluez/hci0/dev_DA_6E_91_88_26_2C/service0021/char0022
8ec90003-f315-4f60-9fb8-838830daea50
Vendor specific
Descriptor
/org/bluez/hci0/dev_DA_6E_91_88_26_2C/service0021/char0022/desc0024
00002902-0000-1000-8000-00805f9b34fb
Client Characteristic Configuration
Primary Service
/org/bluez/hci0/dev_DA_6E_91_88_26_2C/service001b
70d51000-2c7f-4e75-ae8a-d758951ce4e0
Vendor specific
Characteristic
/org/bluez/hci0/dev_DA_6E_91_88_26_2C/service001b/char001e
70d51002-2c7f-4e75-ae8a-d758951ce4e0
Vendor specific
Descriptor
/org/bluez/hci0/dev_DA_6E_91_88_26_2C/service001b/char001e/desc0020
00002902-0000-1000-8000-00805f9b34fb
Client Characteristic Configuration
Characteristic
/org/bluez/hci0/dev_DA_6E_91_88_26_2C/service001b/char001c
70d51001-2c7f-4e75-ae8a-d758951ce4e0
Vendor specific
Primary Service
/org/bluez/hci0/dev_DA_6E_91_88_26_2C/service000e
0000180a-0000-1000-8000-00805f9b34fb
Device Information
Characteristic
/org/bluez/hci0/dev_DA_6E_91_88_26_2C/service000e/char0019
00002a23-0000-1000-8000-00805f9b34fb
System ID
Characteristic
/org/bluez/hci0/dev_DA_6E_91_88_26_2C/service000e/char0017
00002a28-0000-1000-8000-00805f9b34fb
Software Revision String
Characteristic
/org/bluez/hci0/dev_DA_6E_91_88_26_2C/service000e/char0015
00002a26-0000-1000-8000-00805f9b34fb
Firmware Revision String
Characteristic
/org/bluez/hci0/dev_DA_6E_91_88_26_2C/service000e/char0013
00002a27-0000-1000-8000-00805f9b34fb
Hardware Revision String
Characteristic
/org/bluez/hci0/dev_DA_6E_91_88_26_2C/service000e/char0011
00002a24-0000-1000-8000-00805f9b34fb
Model Number String
Characteristic
/org/bluez/hci0/dev_DA_6E_91_88_26_2C/service000e/char000f
00002a29-0000-1000-8000-00805f9b34fb
Manufacturer Name String
Primary Service
/org/bluez/hci0/dev_DA_6E_91_88_26_2C/service000a
00001801-0000-1000-8000-00805f9b34fb
Generic Attribute Profile
Characteristic
/org/bluez/hci0/dev_DA_6E_91_88_26_2C/service000a/char000b
00002a05-0000-1000-8000-00805f9b34fb
Service Changed
Descriptor
/org/bluez/hci0/dev_DA_6E_91_88_26_2C/service000a/char000b/desc000d
00002902-0000-1000-8000-00805f9b34fb
Client Characteristic Configuration
har001eiversalController]# select-attribute /org/bluez/hci0/dev_DA_6E_91_88_26_2C/service001b/ch
[ACI-UniversalController:/service001b/char001e]# notify on
[CHG] Attribute /org/bluez/hci0/dev_DA_6E_91_88_26_2C/service001b/char001e Notifying: yes
Notify started
88_26_2C/service001b/char001cvice001b/char001e]# select-attribute /org/bluez/hci0/dev_DA_6E_91_8
0x00 0x03 0x10 0x01 0x02 0x12 0x01 0x08 0x2b 0x3b"ite "0xa5 0x00 0x00 0x06 0x00 0x67 0x02 0xd8
Attempting to write /org/bluez/hci0/dev_DA_6E_91_88_26_2C/service001b/char001c
[ACI-UniversalController:/service001b/char001c]# quit
pi@raspberrypi:~ $
It was already on at speed 4, but went to speed 8 after running the script. I hadnāt noticed because the fan is in another room. Very cool! Looking through some of your earlier posts is the ā8ā in the command (send āwrite ā0xa5 0x00 0x00 0x06 0x00 0x67 0x02 0xd8 0x00 0x03 0x10 0x01 0x02 0x12 0x01 0x08 0x2b 0x3bā\rā) setting the speed?
Nice work. Iād like to get this working as well, but I donāt have the same attribute you used (ā¦service002e/char0032). I tried all of the attributes from my list (see my previous post), but nothing worked. I have the bluetooth controller, are you using the wifi controller? Any ideas on how to investigate?
That works for me, thanks. You may have already figured this out, but the reported speed appears to be in the 5th data pair of the second line. I set the speed to 0, 1 ,2 and this was the data.
Sorry for such a simple question but the 69 pro controller is supporting both Bluetooth and wireless. Is the MAC address for the 802.11 wireless or the BT? If BT, how do you obtain it ?