Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Eve Energy 1EC0 - (list index out of range) #125

Closed
ypokhilko opened this issue Apr 2, 2019 · 15 comments
Closed

Eve Energy 1EC0 - (list index out of range) #125

ypokhilko opened this issue Apr 2, 2019 · 15 comments
Labels
BLE Transport Issues related to BLE based Accessory

Comments

@ypokhilko
Copy link

yuri@eee701:~$ python3 -m homekit.discover_ble

Name: Eve Energy 1EC0
MAC: ca:ec:e5:4c:4e:f8
Configuration number (cn): 1
Device ID (id): 17:63:4B:BA:33:9B
Compatible Version (cv): 2
Global State Number (s#): 2
Status Flags (sf): The accessory has not been paired with any controllers. (Flag: 1)
Category Identifier (ci): Outlet (Id: 7)

yuri@eee701:~$ python3 -m homekit.identify -m ca:ec:e5:4c:4e:f8

yuri@eee701:~$ python3 -m homekit.pair_ble -m ca:ec:e5:4c:4e:f8 -p 332-77-519 -f pairs.json -a udlinitel --log DEBUG
2019-04-02 11:01:21,989 pair_ble.py:0045 DEBUG Using adapter "hci0".
2019-04-02 11:01:21,995 pair_ble.py:0060 DEBUG start pairing
2019-04-02 11:01:22,062 manufacturer_data.py:0034 DEBUG manufacturer specific data: 10050318f52d07
2019-04-02 11:01:22,069 manufacturer_data.py:0034 DEBUG manufacturer specific data: 066d0117634bba339b070002000102
2019-04-02 11:01:22,070 manufacturer_data.py:0043 DEBUG advertising interval 6d
2019-04-02 11:01:22,078 manufacturer_data.py:0034 DEBUG manufacturer specific data: 09060301c0a800d0
2019-04-02 11:01:22,087 manufacturer_data.py:0034 DEBUG manufacturer specific data: 10050a18c4d876
2019-04-02 11:01:22,113 manufacturer_data.py:0034 DEBUG manufacturer specific data: 066d0117634bba339b070002000102
2019-04-02 11:01:22,114 manufacturer_data.py:0043 DEBUG advertising interval 6d
2019-04-02 11:01:22,116 controller.py:0371 DEBUG connecting to device
2019-04-02 11:01:24,200 controller.py:0373 DEBUG connected to device
2019-04-02 11:01:24,201 init.py:0501 DEBUG services: [<homekit.controller.ble_impl.gatt.Service object at 0xb5a7006c>, <homekit.controller.ble_impl.gatt.Service object at 0xb5ab7c0c>, <homekit.controller.ble_impl.gatt.Service object at 0xb5a7458c>, <homekit.controller.ble_impl.gatt.Service object at 0xb5a757ac>, <homekit.controller.ble_impl.gatt.Service object at 0xb5a757cc>, <homekit.controller.ble_impl.gatt.Service object at 0xb5a62ccc>]
2019-04-02 11:01:24,203 init.py:0506 DEBUG searched service: <homekit.controller.ble_impl.gatt.Service object at 0xb5a757cc>
2019-04-02 11:01:24,205 init.py:0515 DEBUG char: 00000050-0000-1000-8000-0026bb765291 pairing.pairings
2019-04-02 11:01:24,206 init.py:0515 DEBUG char: 0000004c-0000-1000-8000-0026bb765291 pairing.pair-setup
2019-04-02 11:01:24,328 init.py:0515 DEBUG char: 0000004f-0000-1000-8000-0026bb765291 pairing.features
2019-04-02 11:01:24,329 init.py:0515 DEBUG char: 0000004e-0000-1000-8000-0026bb765291 pairing.pair-verify
2019-04-02 11:01:24,330 init.py:0515 DEBUG char: e604e95d-a759-4817-87d3-aa005083a0d1 protocol.service-id
2019-04-02 11:01:24,332 init.py:0529 DEBUG searched char: <homekit.controller.ble_impl.gatt.Characteristic object at 0xb5a753ac> 118
2019-04-02 11:01:24,333 controller.py:0377 DEBUG setup char: <homekit.controller.ble_impl.gatt.Characteristic object at 0xb5a753ac> <homekit.controller.ble_impl.device.Device object at 0xb5ab7e4c>
2019-04-02 11:01:24,334 init.py:0111 DEBUG #1 ios -> accessory: send SRP start request
2019-04-02 11:01:24,334 tlv.py:0134 DEBUG sending [
6: (1 bytes) 0x01
0: (1 bytes) 0x01
]

2019-04-02 11:01:24,337 tlv.py:0117 DEBUG receiving [
6: (1 bytes) 0x01
0: (1 bytes) 0x01
]

2019-04-02 11:01:24,341 init.py:0536 DEBUG entering write function [
6: (1 bytes) 0x01
0: (1 bytes) 0x01
]

2019-04-02 11:01:24,344 tlv.py:0134 DEBUG sending [
9: (1 bytes) 0x01
1: (6 bytes) 0x060101000101
]

2019-04-02 11:01:24,348 init.py:0546 DEBUG sent 00026b76000b000901010106060101000101
2019-04-02 11:01:25,351 init.py:0551 DEBUG reading characteristic
2019-04-02 11:01:30,674 init.py:0559 DEBUG control field: 2, tid: 6b, status: 0, length: 413
2019-04-02 11:01:30,675 init.py:0567 DEBUG received 026b009d0101ff060102021001bb509d8b8c4bbd5755999dcf84bdde03ff48cc9ea87297f210353d95914995df794a4cee2f2ccfa640f5ac3dd98f8b2f60abcbafac34cfe43488d75e413fda83d2ed44f88e33560680929c3c119cb8bc534a6e87c200175ffe55c2b767797378ba5345aa616f26ef498426cee50efb2594165d7fa6df0050c4bbbfb131894b5415db540d13a56a2cca9f8c50cafb2db9d866f32b80c34f698dd88d9967ea01e3317f7f3efede61c27400552215063280be519aa8ae007dd090f0b9313330d6a2663cd4d28a1088215a2fe025245d8cd8c8b515521a994d09c2ec37bfc047c7378fed9724914b1e7da5d66511a09ce14e18f21b11d380d5e017019ac45cf8fd7282056758ebd093feaa755695d10cc7b6fb9f0381fa3451abc47f0fcf2134a48e6d62b109dec3cdffc66a97cff66823077804f9d8081502e1620b10bd5f57663a15c504d6c28f19fdb12c6b4967b93165031a17006711230cbc72fadd97592b3c0c0b3b5b0dad2dcc13162c51e0d989e07ab9a53d9588c6e0ce8078a37b7657649b48e30565d91282b3170ce1246f589efbed89d8ce
2019-04-02 11:01:30,676 init.py:0568 DEBUG decode 01ff060102021001bb509d8b8c4bbd5755999dcf84bdde03ff48cc9ea87297f210353d95914995df794a4cee2f2ccfa640f5ac3dd98f8b2f60abcbafac34cfe43488d75e413fda83d2ed44f88e33560680929c3c119cb8bc534a6e87c200175ffe55c2b767797378ba5345aa616f26ef498426cee50efb2594165d7fa6df0050c4bbbfb131894b5415db540d13a56a2cca9f8c50cafb2db9d866f32b80c34f698dd88d9967ea01e3317f7f3efede61c27400552215063280be519aa8ae007dd090f0b9313330d6a2663cd4d28a1088215a2fe025245d8cd8c8b515521a994d09c2ec37bfc047c7378fed9724914b1e7da5d66511a09ce14e18f21b11d380d5e017019ac45cf8fd7282056758ebd093feaa755695d10cc7b6fb9f0381fa3451abc47f0fcf2134a48e6d62b109dec3cdffc66a97cff66823077804f9d8081502e1620b10bd5f57663a15c504d6c28f19fdb12c6b4967b93165031a17006711230cbc72fadd97592b3c0c0b3b5b0dad2dcc13162c51e0d989e07ab9a53d9588c6e0ce8078a37b7657649b48e30565d91282b3170ce1246f589efbed89d8ce
2019-04-02 11:01:30,678 tlv.py:0117 DEBUG receiving [
1: (409 bytes) 0x060102021001bb509d8b8c4bbd5755999dcf84bdde03ff48cc9ea87297f210353d95914995df794a4cee2f2ccfa640f5ac3dd98f8b2f60abcbafac34cfe43488d75e413fda83d2ed44f88e33560680929c3c119cb8bc534a6e87c200175ffe55c2b767797378ba5345aa616f26ef498426cee50efb2594165d7fa6df0050c4bbbfb131894b5415db540d13a56a2cca9f8c50cafb2db9d866f32b80c34f698dd88d9967ea01e3317f7f3efede61c27400552215063280be519aa8ae007dd090f0b9313330d6a2663cd4d28a1088215a2fe025245d8cd8c8b515521a994d09c2ec37bfc047c7378fed9724914b1e7da5d66511a09ce14e18f21b11d380d5e017c45cf8fd7282056758ebd093feaa755695d10cc7b6fb9f0381fa3451abc47f0fcf2134a48e6d62b109dec3cdffc66a97cff66823077804f9d8081502e1620b10bd5f57663a15c504d6c28f19fdb12c6b4967b93165031a17006711230cbc72fadd97592b3c0c0b3b5b0dad2dcc13162c51e0d989e07ab9a53d9588c6e0ce8078a37b7657649b48e30565d91282b3170ce1246f589efbed89d8ce
]

2019-04-02 11:01:30,679 tlv.py:0117 DEBUG receiving [
6: (1 bytes) 0x02
2: (16 bytes) 0x01bb509d8b8c4bbd5755999dcf84bdde
3: (384 bytes) 0x48cc9ea87297f210353d95914995df794a4cee2f2ccfa640f5ac3dd98f8b2f60abcbafac34cfe43488d75e413fda83d2ed44f88e33560680929c3c119cb8bc534a6e87c200175ffe55c2b767797378ba5345aa616f26ef498426cee50efb2594165d7fa6df0050c4bbbfb131894b5415db540d13a56a2cca9f8c50cafb2db9d866f32b80c34f698dd88d9967ea01e3317f7f3efede61c27400552215063280be519aa8ae007dd090f0b9313330d6a2663cd4d28a1088215a2fe025245d8cd8c8b515521a994d09c2ec37bfc047c7378fed9724914b1e7da5d66511a09ce14e18f21b11d380d5e017c45cf8fd7282056758ebd093feaa755695d10cc7b6fb9ffa3451abc47f0fcf2134a48e6d62b109dec3cdffc66a97cff66823077804f9d8081502e1620b10bd5f57663a15c504d6c28f19fdb12c6b4967b93165031a17006711230cbc72fadd97592b3c0c0b3b5b0dad2dcc13162c51e0d989e07ab9a53d9588c6e0ce8078a37b7657649b48e30565d91282b3170ce1246f589efbed89d8ce
]

2019-04-02 11:01:30,681 init.py:0571 DEBUG leaving write function [
6: (1 bytes) 0x02
2: (16 bytes) 0x01bb509d8b8c4bbd5755999dcf84bdde
3: (384 bytes) 0x48cc9ea87297f210353d95914995df794a4cee2f2ccfa640f5ac3dd98f8b2f60abcbafac34cfe43488d75e413fda83d2ed44f88e33560680929c3c119cb8bc534a6e87c200175ffe55c2b767797378ba5345aa616f26ef498426cee50efb2594165d7fa6df0050c4bbbfb131894b5415db540d13a56a2cca9f8c50cafb2db9d866f32b80c34f698dd88d9967ea01e3317f7f3efede61c27400552215063280be519aa8ae007dd090f0b9313330d6a2663cd4d28a1088215a2fe025245d8cd8c8b515521a994d09c2ec37bfc047c7378fed9724914b1e7da5d66511a09ce14e18f21b11d380d5e017c45cf8fd7282056758ebd093feaa755695d10cc7b6fb9ffa3451abc47f0fcf2134a48e6d62b109dec3cdffc66a97cff66823077804f9d8081502e1620b10bd5f57663a15c504d6c28f19fdb12c6b4967b93165031a17006711230cbc72fadd97592b3c0c0b3b5b0dad2dcc13162c51e0d989e07ab9a53d9588c6e0ce8078a37b7657649b48e30565d91282b3170ce1246f589efbed89d8ce
]

2019-04-02 11:01:30,683 init.py:0123 DEBUG #3 ios -> accessory: send SRP verify request
2019-04-02 11:01:31,956 tlv.py:0134 DEBUG sending [
6: (1 bytes) 0x03
3: (384 bytes) 0xd5ceb729b968e86f9eab09939b98523c4345dc9195edd6272422994c3fb93599bb9a96ca92dd845a3f055e8e658804f6d73886848e9f397bb6522ff8d28f2381dafc4e6f214dc7b4b4bf20be8d75563663b753e5e4b462471290ca5431d32e5f8cb2d9f056e7b9eb7f1f97ca565a5c5692d6c0c5a338119c893dc07073dd56382ad415b2841bde0e0c194d1728dd1c5fce6e0c876612ca9c90387d0751949ea45420f8913fa33c05f0669887f978f0429c902193a4b67498dcd9ad4612b91af79ad1600a93a3893ef3a9cd790069b26d987035f6fc12c9a4c6fe9ce1917fec644128c5bce568c8963e3f625f0ad82de19d2c1ae4b582194eac896e6147126d61e0a633625001cc7e4821bd3b77d9428042e5fb958c30b8511787d457f6a44c8409eb8e1733fada3045e29d98c71f9759dd80482861e64971264182ad807790e53f66a8213798b149df82b150a1e5e5bd82c8bcded779416665effe33e8085fedce04ab3c34755e5893fe886dc98bf6f63f9b805ce43056cc2160db032f8feb4b
4: (64 bytes) 0x29d375e36702f737bf9efe526b210bfaf1f1d0aac9f99a0a039b1b35daaf685a47cfac4e6c86278745cd893752f1741acb760005f2096291ac28dfbe979cbfdd
]

2019-04-02 11:01:31,959 tlv.py:0117 DEBUG receiving [
6: (1 bytes) 0x03
3: (384 bytes) 0xd5ceb729b968e86f9eab09939b98523c4345dc9195edd6272422994c3fb93599bb9a96ca92dd845a3f055e8e658804f6d73886848e9f397bb6522ff8d28f2381dafc4e6f214dc7b4b4bf20be8d75563663b753e5e4b462471290ca5431d32e5f8cb2d9f056e7b9eb7f1f97ca565a5c5692d6c0c5a338119c893dc07073dd56382ad415b2841bde0e0c194d1728dd1c5fce6e0c876612ca9c90387d0751949ea45420f8913fa33c05f0669887f978f0429c902193a4b67498dcd9ad4612b91af79ad1600a93a3893ef3a9cd790069b26d987035f6fc12c9a4c6fe9ce1917fec644128c5bce568c8963e3f625f0ad82de19d2c1ae4b582194eac896e6147126d61e0a633625001cc7e4821bd3b77d9428042e5fb958c30b8511787d457f6a44c8409eb8e1733fada3045e29d98c71f9759dd80482861e64971264182ad807790e53f66a8213798b149df82b150a1e5e5bd82c8bcded779416665effe33e8085fedce04ab3c34755e5893fe886dc98bf6f63f9b805ce43056cc2160db032f8feb4b
4: (64 bytes) 0x29d375e36702f737bf9efe526b210bfaf1f1d0aac9f99a0a039b1b35daaf685a47cfac4e6c86278745cd893752f1741acb760005f2096291ac28dfbe979cbfdd
]

2019-04-02 11:01:31,960 init.py:0536 DEBUG entering write function [
6: (1 bytes) 0x03
3: (384 bytes) 0xd5ceb729b968e86f9eab09939b98523c4345dc9195edd6272422994c3fb93599bb9a96ca92dd845a3f055e8e658804f6d73886848e9f397bb6522ff8d28f2381dafc4e6f214dc7b4b4bf20be8d75563663b753e5e4b462471290ca5431d32e5f8cb2d9f056e7b9eb7f1f97ca565a5c5692d6c0c5a338119c893dc07073dd56382ad415b2841bde0e0c194d1728dd1c5fce6e0c876612ca9c90387d0751949ea45420f8913fa33c05f0669887f978f0429c902193a4b67498dcd9ad4612b91af79ad1600a93a3893ef3a9cd790069b26d987035f6fc12c9a4c6fe9ce1917fec644128c5bce568c8963e3f625f0ad82de19d2c1ae4b582194eac896e6147126d61e0a633625001cc7e4821bd3b77d9428042e5fb958c30b8511787d457f6a44c8409eb8e1733fada3045e29d98c71f9759dd80482861e64971264182ad807790e53f66a8213798b149df82b150a1e5e5bd82c8bcded779416665effe33e8085fedce04ab3c34755e5893fe886dc98bf6f63f9b805ce43056cc2160db032f8feb4b
4: (64 bytes) 0x29d375e36702f737bf9efe526b210bfaf1f1d0aac9f99a0a039b1b35daaf685a47cfac4e6c86278745cd893752f1741acb760005f2096291ac28dfbe979cbfdd
]

2019-04-02 11:01:31,962 tlv.py:0134 DEBUG sending [
9: (1 bytes) 0x01
1: (457 bytes) 0x06010303ffd5ceb729b968e86f9eab09939b98523c4345dc9195edd6272422994c3fb93599bb9a96ca92dd845a3f055e8e658804f6d73886848e9f397bb6522ff8d28f2381dafc4e6f214dc7b4b4bf20be8d75563663b753e5e4b462471290ca5431d32e5f8cb2d9f056e7b9eb7f1f97ca565a5c5692d6c0c5a338119c893dc07073dd56382ad415b2841bde0e0c194d1728dd1c5fce6e0c876612ca9c90387d0751949ea45420f8913fa33c05f0669887f978f0429c902193a4b67498dcd9ad4612b91af79ad1600a93a3893ef3a9cd790069b26d987035f6fc12c9a4c6fe9ce1917fec644128c5bce568c8963e3f625f0ad82de19d2c1ae4b582194eac896e6147126d038161e0a633625001cc7e4821bd3b77d9428042e5fb958c30b8511787d457f6a44c8409eb8e1733fada3045e29d98c71f9759dd80482861e64971264182ad807790e53f66a8213798b149df82b150a1e5e5bd82c8bcded779416665effe33e8085fedce04ab3c34755e5893fe886dc98bf6f63f9b805ce43056cc2160db032f8feb4b044029d375e36702f737bf9efe526b210bfaf1f1d0aac9f99a0a039b1b35daaf685a47cfac4e6c86278745cd893752f1741acb760005f2096291ac28dfbe979cbfdd
]

2019-04-02 11:01:31,964 init.py:0546 DEBUG sent 0002817600d00109010101ff06010303ffd5ceb729b968e86f9eab09939b98523c4345dc9195edd6272422994c3fb93599bb9a96ca92dd845a3f055e8e658804f6d73886848e9f397bb6522ff8d28f2381dafc4e6f214dc7b4b4bf20be8d75563663b753e5e4b462471290ca5431d32e5f8cb2d9f056e7b9eb7f1f97ca565a5c5692d6c0c5a338119c893dc07073dd56382ad415b2841bde0e0c194d1728dd1c5fce6e0c876612ca9c90387d0751949ea45420f8913fa33c05f0669887f978f0429c902193a4b67498dcd9ad4612b91af79ad1600a93a3893ef3a9cd790069b26d987035f6fc12c9a4c6fe9ce1917fec644128c5bce568c8963e3f625f0ad82de19d2c1ae4b582194eac8901ca6e6147126d038161e0a633625001cc7e4821bd3b77d9428042e5fb958c30b8511787d457f6a44c8409eb8e1733fada3045e29d98c71f9759dd80482861e64971264182ad807790e53f66a8213798b149df82b150a1e5e5bd82c8bcded779416665effe33e8085fedce04ab3c34755e5893fe886dc98bf6f63f9b805ce43056cc2160db032f8feb4b044029d375e36702f737bf9efe526b210bfaf1f1d0aac9f99a0a039b1b35daaf685a47cfac4e6c86278745cd893752f1741acb760005f2096291ac28dfbe979cbfdd
2019-04-02 11:01:32,969 init.py:0551 DEBUG reading characteristic
2019-04-02 11:01:48,226 init.py:0559 DEBUG control field: 2, tid: 81, status: 0, length: 507
2019-04-02 11:01:48,226 init.py:0567 DEBUG received 028100fb0101ff0cff0601040440ebf05ecfc6c246fafcd6b67687e18ea6a5555b4f5bb091af8c488473ed01ce572f3e5b5ec13c62dbd8a6acc4c730bbdce64f930f6f4d936504c5351eaab5b88305ff86fc8b40e1b3edb9c11bca4b49b25363ab7c8e9b07e9c62834a039ec5f93e6bdad6b8054e190839b4caed12a17541e62f55d3da2b8c99f2b1784e099c00ad6f92860ab060cf3ddf41d0d602d912d4507194616f32f8b536d4cdea667d80d77d5d037728ecce6cd1faa21f87d3a33f3e1a7614274a67b0a1001e9140de6684e09f0405bf6e7270614fe9cf4b532b00f34fd55696ccdc2b23d415a37f386074fb8e7929f023580b88ed74067319029693db36e96827c6c01f86fee0cf4644a851d152d3e999f41510835cece7a1d5d9154e7e9aa51b6ecf717053f88a091a87737e60bf2dbfe509aabd41429033bd0335e42ab1db4f9ce1260804c342e09f6ca6e20137105ff5ae7557e5d1ff1f055a109805fee06a0d0f9ca2fe54fe48577f164ebfbfbaa295236d40792b58c81210edf03f4c9b8d50d6db6e772482cfe7f67d08c5daf1b14d9442aab3745f3fb506012ae2453dc18629e2edd1786b1c9c3dbda41c14406ab88d1d98d33c90f7956c6aae38b724095761c8af96241a880de8cbb6b1fb593b7ae73011fb92901ec13ba5c308ac09ed628007ceae03470825bd932cdcf15c8826eef63026ea5626d5a1d65
2019-04-02 11:01:48,227 init.py:0568 DEBUG decode 01ff0cff0601040440ebf05ecfc6c246fafcd6b67687e18ea6a5555b4f5bb091af8c488473ed01ce572f3e5b5ec13c62dbd8a6acc4c730bbdce64f930f6f4d936504c5351eaab5b88305ff86fc8b40e1b3edb9c11bca4b49b25363ab7c8e9b07e9c62834a039ec5f93e6bdad6b8054e190839b4caed12a17541e62f55d3da2b8c99f2b1784e099c00ad6f92860ab060cf3ddf41d0d602d912d4507194616f32f8b536d4cdea667d80d77d5d037728ecce6cd1faa21f87d3a33f3e1a7614274a67b0a1001e9140de6684e09f0405bf6e7270614fe9cf4b532b00f34fd55696ccdc2b23d415a37f386074fb8e7929f023580b88ed74067319029693db36e96827c6c01f86fee0cf4644a851d152d3e999f41510835cece7a1d5d9154e7e9aa51b6ecf717053f88a091a87737e60bf2dbfe509aabd41429033bd0335e42ab1db4f9ce1260804c342e09f6ca6e20137105ff5ae7557e5d1ff1f055a109805fee06a0d0f9ca2fe54fe48577f164ebfbfbaa295236d40792b58c81210edf03f4c9b8d50d6db6e772482cfe7f67d08c5daf1b14d9442aab3745f3fb506012ae2453dc18629e2edd1786b1c9c3dbda41c14406ab88d1d98d33c90f7956c6aae38b724095761c8af96241a880de8cbb6b1fb593b7ae73011fb92901ec13ba5c308ac09ed628007ceae03470825bd932cdcf15c8826eef63026ea5626d5a1d65
2019-04-02 11:01:48,228 tlv.py:0117 DEBUG receiving [
1: (503 bytes) 0x0cff0601040440ebf05ecfc6c246fafcd6b67687e18ea6a5555b4f5bb091af8c488473ed01ce572f3e5b5ec13c62dbd8a6acc4c730bbdce64f930f6f4d936504c5351eaab5b88305ff86fc8b40e1b3edb9c11bca4b49b25363ab7c8e9b07e9c62834a039ec5f93e6bdad6b8054e190839b4caed12a17541e62f55d3da2b8c99f2b1784e099c00ad6f92860ab060cf3ddf41d0d602d912d4507194616f32f8b536d4cdea667d80d77d5d037728ecce6cd1faa21f87d3a33f3e1a7614274a67b0a1001e9140de6684e09f0405bf6e7270614fe9cf4b532b00f34fd55696ccdc2b23d415a37f386074fb8e7929f023580b88ed74067319029693db36e96827c6c6fee0cf4644a851d152d3e999f41510835cece7a1d5d9154e7e9aa51b6ecf717053f88a091a87737e60bf2dbfe509aabd41429033bd0335e42ab1db4f9ce1260804c342e09f6ca6e20137105ff5ae7557e5d1ff1f055a109805fee06a0d0f9ca2fe54fe48577f164ebfbfbaa295236d40792b58c81210edf03f4c9b8d50d6db6e772482cfe7f67d08c5daf1b14d9442aab3745f3fb506012ae2453dc18629e2edd1786b1c9c3dbda41c14406ab88d1d98d33c90f7956c6aae38b724095761c8af96241a880de8cbb6b1fb593b7ae73011fb92901ec13ba5c308ac09ed628007ceae03470825bd932cdcf15c8826eef63026ea5626d5a1d65
]

2019-04-02 11:01:48,228 tlv.py:0117 DEBUG receiving [
]

2019-04-02 11:01:48,230 init.py:0571 DEBUG leaving write function [
]

2019-04-02 11:01:48,231 init.py:0155 DEBUG #5 ios -> accessory: send SRP exchange request
list index out of range
2019-04-02 11:01:48,232 pair_ble.py:0068 DEBUG list index out of range
Traceback (most recent call last):
File "/home/yuri/.local/lib/python3.5/site-packages/homekit/pair_ble.py", line 61, in
controller.perform_pairing_ble(args.alias, args.mac, args.pin, args.adapter)
File "/home/yuri/.local/lib/python3.5/site-packages/homekit/controller/controller.py", line 380, in perform_pairing_ble
pairing = perform_pair_setup(pin, str(uuid.uuid4()), write_fun)
File "/home/yuri/.local/lib/python3.5/site-packages/homekit/protocol/init.py", line 159, in perform_pair_setup
assert response_tlv[0][0] == TLV.kTLVType_State and response_tlv[0][1] == TLV.M4,
IndexError: list index out of range
yuri@eee701:~$

@jlusiardi
Copy link
Owner

Hello @ypokhilko,
sorry that it took me a while. Which version of the project did you use? And can you upgrade to master?
Regards
Joachim

@ypokhilko
Copy link
Author

Hello Joachim! Thank you very much for your hard and very useful work
error.log
Upgraded to master. Same error... New output attached.
BTW. homebridge-ranger works fine with this device. Do you need any logs?
Thanks!
Yuri

@Jc2k
Copy link
Collaborator

Jc2k commented Apr 10, 2019

Very weird - the Eve Energy is the device I use when testing any of my BLE related pull requests. For me previously it was working very well. I haven't been doing much work on BLE specific stuff lately, so I will dig it out and make sure it still works with mine, but it will be a couple of days before I have the time.

Can you confirm your firmware version? It's possible i'm running an older one.

@jlusiardi
Copy link
Owner

@Jc2k i already thought about buying one myself. Glad you have one :)

@Jc2k
Copy link
Collaborator

Jc2k commented Apr 10, 2019

Haha I have an Eve Motion for when I have time to work on BLE events too ! And the Eve radiator valve thing.

@ypokhilko
Copy link
Author

Can you confirm your firmware version? It's possible i'm running an older one.

Eve Energy:
Firmware: 1.3.1 (466)

@jlusiardi jlusiardi added the BLE Transport Issues related to BLE based Accessory label Apr 15, 2019
@jlusiardi
Copy link
Owner

@ypokhilko can you provide the log produced by homebridge-ranger?

@ypokhilko
Copy link
Author

@ypokhilko can you provide the log produced by homebridge-ranger?

logs.zip

@jlusiardi
Copy link
Owner

To be honest, I have no clue other to get the hand on one of those things as well. But this may not be of any help because of the firmware version issues.

@Jc2k so you have Eve Energy as well. Different firmware on your side?

@ypokhilko did you reset the device to factory settings?

@Jc2k
Copy link
Collaborator

Jc2k commented May 4, 2019

Hi - sorry haven't had any time to look at bluetooth stuff for a bit.

Just quickly reset it and paired with my iphone and it is on version 1.2.2, so I guess something could have changed. The firmware update shows 1.2.6 (1128), seems that 1.3.1 is not available for my unit?

Will try and find time to test pairing and control etc with 1.2.6 and master but mine might be too old to be able to recreate it...

@slvwolf
Copy link

slvwolf commented Aug 2, 2019

Seeing precisely the same error on firmware version 1.3.1

@jlusiardi
Copy link
Owner

File "/home/yuri/.local/lib/python3.5/site-packages/homekit/protocol/init.py", line 159, in perform_pair_setup
assert response_tlv[0][0] == TLV.kTLVType_State and response_tlv[0][1] == TLV.M4,

Could you please try to print the response_tlv just before this line?

@slvwolf
Copy link

slvwolf commented Aug 4, 2019

At that point response_tlv is an empty list

2019-08-03 09:41:37,654 __init__.py:0118 DEBUG #3 ios -> accessory: send SRP verify request
2019-08-03 09:41:38,620 tlv.py:0134 DEBUG sending [
  6: (1 bytes/<class 'bytearray'>) 0x03
  3: (384 bytes/<class 'bytearray'>) 0x3cc13068af35f6a000f243b60aabf659f3ce0e2e20c0f01b2930788d56dcde72227a77ab6311b2bdcebf5c64b76178f6584aee0721f0e0c096bdfc1f435054a85a07bc783e840706b319adff6ce780f6eefbaf7787332d09284a727d55ef80da1c089f5e2d2258b5f0e05e6dbcdcb60d295a3ea1e104c01955c23cf318911ea5cfa6bf991d0747730f698e19fbe851c8dbd14636c00d2b72f7cc72fa0a502e8cd5c8b7cbb79df15a844fd7385eeb6939481dda3ba1752bda4829a5c04a89666d3a5c3d0b5e340b8668e49ef6112f217bb4ab41dbf7907e1ea36db98eb2256037ce82f6f394ad96dd82bb202f7d80b834359cdd11e3dfb5441393f3f729aae74a43b4a036a2cd5a2eb56fb5a59313a31f2deb25f33b9c3ca7313e6ebbfc9c93fca3e28c7cfb683493975ba628e423ae5f4112596d18ca3690f91124fa7f151f4757dd5cf71b94d57a26d8a78d0f9ae595166e4e680c1d92b41e85c410d2d0c08cda0e1ee13cc45f4276605d39652240e0e894a50234c04f7befadc9e60f45163d
  4: (64 bytes/<class 'bytearray'>) 0xfa72a1ebc8da2cf1679d7261fd9ca2b4710670997b782829346d5d3a38f53325a96bc7bac878296d6433246c7febb2fe37c58d7131acfa8a7206870a5c6e49bc
]

2019-08-03 09:41:38,621 tlv.py:0117 DEBUG receiving [
  6: (1 bytes/<class 'bytearray'>) 0x03
  3: (384 bytes/<class 'bytearray'>) 0x3cc13068af35f6a000f243b60aabf659f3ce0e2e20c0f01b2930788d56dcde72227a77ab6311b2bdcebf5c64b76178f6584aee0721f0e0c096bdfc1f435054a85a07bc783e840706b319adff6ce780f6eefbaf7787332d09284a727d55ef80da1c089f5e2d2258b5f0e05e6dbcdcb60d295a3ea1e104c01955c23cf318911ea5cfa6bf991d0747730f698e19fbe851c8dbd14636c00d2b72f7cc72fa0a502e8cd5c8b7cbb79df15a844fd7385eeb6939481dda3ba1752bda4829a5c04a89666d3a5c3d0b5e340b8668e49ef6112f217bb4ab41dbf7907e1ea36db98eb2256037ce82f6f394ad96dd82bb202f7d80b834359cdd11e3dfb5441393f3f729aae74a43b4a036a2cd5a2eb56fb5a59313a31f2deb25f33b9c3ca7313e6ebbfc9c93fca3e28c7cfb683493975ba628e423ae5f4112596d18ca3690f91124fa7f151f4757dd5cf71b94d57a26d8a78d0f9ae595166e4e680c1d92b41e85c410d2d0c08cda0e1ee13cc45f4276605d39652240e0e894a50234c04f7befadc9e60f45163d
  4: (64 bytes/<class 'bytearray'>) 0xfa72a1ebc8da2cf1679d7261fd9ca2b4710670997b782829346d5d3a38f53325a96bc7bac878296d6433246c7febb2fe37c58d7131acfa8a7206870a5c6e49bc
]

2019-08-03 09:41:38,622 __init__.py:0606 DEBUG entering write function [
  6: (1 bytes/<class 'bytearray'>) 0x03
  3: (384 bytes/<class 'bytearray'>) 0x3cc13068af35f6a000f243b60aabf659f3ce0e2e20c0f01b2930788d56dcde72227a77ab6311b2bdcebf5c64b76178f6584aee0721f0e0c096bdfc1f435054a85a07bc783e840706b319adff6ce780f6eefbaf7787332d09284a727d55ef80da1c089f5e2d2258b5f0e05e6dbcdcb60d295a3ea1e104c01955c23cf318911ea5cfa6bf991d0747730f698e19fbe851c8dbd14636c00d2b72f7cc72fa0a502e8cd5c8b7cbb79df15a844fd7385eeb6939481dda3ba1752bda4829a5c04a89666d3a5c3d0b5e340b8668e49ef6112f217bb4ab41dbf7907e1ea36db98eb2256037ce82f6f394ad96dd82bb202f7d80b834359cdd11e3dfb5441393f3f729aae74a43b4a036a2cd5a2eb56fb5a59313a31f2deb25f33b9c3ca7313e6ebbfc9c93fca3e28c7cfb683493975ba628e423ae5f4112596d18ca3690f91124fa7f151f4757dd5cf71b94d57a26d8a78d0f9ae595166e4e680c1d92b41e85c410d2d0c08cda0e1ee13cc45f4276605d39652240e0e894a50234c04f7befadc9e60f45163d
  4: (64 bytes/<class 'bytearray'>) 0xfa72a1ebc8da2cf1679d7261fd9ca2b4710670997b782829346d5d3a38f53325a96bc7bac878296d6433246c7febb2fe37c58d7131acfa8a7206870a5c6e49bc
]

2019-08-03 09:41:38,623 tlv.py:0134 DEBUG sending [
  9: (1 bytes/<class 'bytearray'>) 0x01
  1: (457 bytes/<class 'bytearray'>) 0x06010303ff3cc13068af35f6a000f243b60aabf659f3ce0e2e20c0f01b2930788d56dcde72227a77ab6311b2bdcebf5c64b76178f6584aee0721f0e0c096bdfc1f435054a85a07bc783e840706b319adff6ce780f6eefbaf7787332d09284a727d55ef80da1c089f5e2d2258b5f0e05e6dbcdcb60d295a3ea1e104c01955c23cf318911ea5cfa6bf991d0747730f698e19fbe851c8dbd14636c00d2b72f7cc72fa0a502e8cd5c8b7cbb79df15a844fd7385eeb6939481dda3ba1752bda4829a5c04a89666d3a5c3d0b5e340b8668e49ef6112f217bb4ab41dbf7907e1ea36db98eb2256037ce82f6f394ad96dd82bb202f7d80b834359cdd11e3dfb5441393f3f729aae703814a43b4a036a2cd5a2eb56fb5a59313a31f2deb25f33b9c3ca7313e6ebbfc9c93fca3e28c7cfb683493975ba628e423ae5f4112596d18ca3690f91124fa7f151f4757dd5cf71b94d57a26d8a78d0f9ae595166e4e680c1d92b41e85c410d2d0c08cda0e1ee13cc45f4276605d39652240e0e894a50234c04f7befadc9e60f45163d0440fa72a1ebc8da2cf1679d7261fd9ca2b4710670997b782829346d5d3a38f53325a96bc7bac878296d6433246c7febb2fe37c58d7131acfa8a7206870a5c6e49bc
]

2019-08-03 09:41:38,624 __init__.py:0616 DEBUG sent 00026d7600d00109010101ff06010303ff3cc13068af35f6a000f243b60aabf659f3ce0e2e20c0f01b2930788d56dcde72227a77ab6311b2bdcebf5c64b76178f6584aee0721f0e0c096bdfc1f435054a85a07bc783e840706b319adff6ce780f6eefbaf7787332d09284a727d55ef80da1c089f5e2d2258b5f0e05e6dbcdcb60d295a3ea1e104c01955c23cf318911ea5cfa6bf991d0747730f698e19fbe851c8dbd14636c00d2b72f7cc72fa0a502e8cd5c8b7cbb79df15a844fd7385eeb6939481dda3ba1752bda4829a5c04a89666d3a5c3d0b5e340b8668e49ef6112f217bb4ab41dbf7907e1ea36db98eb2256037ce82f6f394ad96dd82bb202f7d80b834359cdd11e3dfb544139301caf3f729aae703814a43b4a036a2cd5a2eb56fb5a59313a31f2deb25f33b9c3ca7313e6ebbfc9c93fca3e28c7cfb683493975ba628e423ae5f4112596d18ca3690f91124fa7f151f4757dd5cf71b94d57a26d8a78d0f9ae595166e4e680c1d92b41e85c410d2d0c08cda0e1ee13cc45f4276605d39652240e0e894a50234c04f7befadc9e60f45163d0440fa72a1ebc8da2cf1679d7261fd9ca2b4710670997b782829346d5d3a38f53325a96bc7bac878296d6433246c7febb2fe37c58d7131acfa8a7206870a5c6e49bc
2019-08-03 09:41:39,629 __init__.py:0621 DEBUG reading characteristic
2019-08-03 09:41:54,861 __init__.py:0629 DEBUG control field: 2, tid: 6d, status: 0, length: 507
2019-08-03 09:41:54,862 __init__.py:0637 DEBUG received 026d00fb0101ff0cff06010404404049f487de14cc39baea326c56ca51ad18707860b183302d40139ec3fa7977b02e6d71c51376c842ee5be8f9b0b2b5f8189c43321b99c4033c9b94fab2bfaa4405ff7c9bfc1d4828d2518f9dd7637c4460196f875ec9321f7dc9fb4c34fd48a5334c8ec32725449e0200fccf9bb9f788989d5da9398aec5a7e3f8289262091bdebeb31a58fcbe7cde2553a285078189671b0bfffa3afd320fcf9db9c6247e71ecffaeb20715de1262fc1815d1f0272f9b7f464de05c4fbad2b673fbe158b1ae6a5d6ae2fba8c0e6943797d5bbab98d29919ffa583362323b4b5aad25b066f1c2c368459f6491d977916b3ceb8f56d3fe586cc51645ed297101f8b6c80cf48c8adacd4bcba3c3349899afb0c88917e777f6cd48b79fdc8441e6c44680f8f90d99230a599d74cc3e8bbebc34f5d82cda4c918ccc09d41ede5bccaa84e5bbd1ec0c387f617e3a05ffee7f10d545a585ca68730a90c2e095388472dd7f243295683866e1143aaf0ac4a3a013d699ef34cea7fbd8ced1ef984f7bf49b3a1cd7202a5951d4f2bcded16b5d69f7dbf4d69262c0a6fc78486da5e844daefc57b487f51ffdafebee0e8ea826c90926eabd84ac01141fdb4cdc2d07eb6f1ece54fe6987e80e4d241fda8df2f0c48d1a8cbfd2c43ef4990d738459698b2c3a6bdf2e667ae4fa5c94c9b18b3520bcafbfa4f6018baf7241f
2019-08-03 09:41:54,863 __init__.py:0638 DEBUG decode 01ff0cff06010404404049f487de14cc39baea326c56ca51ad18707860b183302d40139ec3fa7977b02e6d71c51376c842ee5be8f9b0b2b5f8189c43321b99c4033c9b94fab2bfaa4405ff7c9bfc1d4828d2518f9dd7637c4460196f875ec9321f7dc9fb4c34fd48a5334c8ec32725449e0200fccf9bb9f788989d5da9398aec5a7e3f8289262091bdebeb31a58fcbe7cde2553a285078189671b0bfffa3afd320fcf9db9c6247e71ecffaeb20715de1262fc1815d1f0272f9b7f464de05c4fbad2b673fbe158b1ae6a5d6ae2fba8c0e6943797d5bbab98d29919ffa583362323b4b5aad25b066f1c2c368459f6491d977916b3ceb8f56d3fe586cc51645ed297101f8b6c80cf48c8adacd4bcba3c3349899afb0c88917e777f6cd48b79fdc8441e6c44680f8f90d99230a599d74cc3e8bbebc34f5d82cda4c918ccc09d41ede5bccaa84e5bbd1ec0c387f617e3a05ffee7f10d545a585ca68730a90c2e095388472dd7f243295683866e1143aaf0ac4a3a013d699ef34cea7fbd8ced1ef984f7bf49b3a1cd7202a5951d4f2bcded16b5d69f7dbf4d69262c0a6fc78486da5e844daefc57b487f51ffdafebee0e8ea826c90926eabd84ac01141fdb4cdc2d07eb6f1ece54fe6987e80e4d241fda8df2f0c48d1a8cbfd2c43ef4990d738459698b2c3a6bdf2e667ae4fa5c94c9b18b3520bcafbfa4f6018baf7241f
2019-08-03 09:41:54,865 tlv.py:0117 DEBUG receiving [
  1: (503 bytes/<class 'bytearray'>) 0x0cff06010404404049f487de14cc39baea326c56ca51ad18707860b183302d40139ec3fa7977b02e6d71c51376c842ee5be8f9b0b2b5f8189c43321b99c4033c9b94fab2bfaa4405ff7c9bfc1d4828d2518f9dd7637c4460196f875ec9321f7dc9fb4c34fd48a5334c8ec32725449e0200fccf9bb9f788989d5da9398aec5a7e3f8289262091bdebeb31a58fcbe7cde2553a285078189671b0bfffa3afd320fcf9db9c6247e71ecffaeb20715de1262fc1815d1f0272f9b7f464de05c4fbad2b673fbe158b1ae6a5d6ae2fba8c0e6943797d5bbab98d29919ffa583362323b4b5aad25b066f1c2c368459f6491d977916b3ceb8f56d3fe586cc51645ed2971b6c80cf48c8adacd4bcba3c3349899afb0c88917e777f6cd48b79fdc8441e6c44680f8f90d99230a599d74cc3e8bbebc34f5d82cda4c918ccc09d41ede5bccaa84e5bbd1ec0c387f617e3a05ffee7f10d545a585ca68730a90c2e095388472dd7f243295683866e1143aaf0ac4a3a013d699ef34cea7fbd8ced1ef984f7bf49b3a1cd7202a5951d4f2bcded16b5d69f7dbf4d69262c0a6fc78486da5e844daefc57b487f51ffdafebee0e8ea826c90926eabd84ac01141fdb4cdc2d07eb6f1ece54fe6987e80e4d241fda8df2f0c48d1a8cbfd2c43ef4990d738459698b2c3a6bdf2e667ae4fa5c94c9b18b3520bcafbfa4f6018baf7241f
]

2019-08-03 09:41:54,866 tlv.py:0117 DEBUG receiving [
]

2019-08-03 09:41:54,867 __init__.py:0641 DEBUG leaving write function [
]

2019-08-03 09:41:54,869 __init__.py:0169 DEBUG #5 ios -> accessory: send SRP exchange request
response_tlv: []
list index out of range
2019-08-03 09:41:54,869 pair_ble.py:0075 DEBUG list index out of range
Traceback (most recent call last):
  File "/home/pi/.local/lib/python3.5/site-packages/homekit/pair_ble.py", line 68, in <module>
    finish_pairing(pin_function())
  File "/home/pi/.local/lib/python3.5/site-packages/homekit/controller/controller.py", line 463, in finish_pairing
    pairing = perform_pair_setup_part2(pin, str(uuid.uuid4()), write_fun, salt, pub_key)
  File "/home/pi/.local/lib/python3.5/site-packages/homekit/protocol/__init__.py", line 173, in perform_pair_setup_part2
    assert response_tlv[0][0] == TLV.kTLVType_State and response_tlv[0][1] == TLV.M4, \
IndexError: list index out of range

@jlusiardi
Copy link
Owner

@ypokhilko , @slvwolf and @Jc2k: i would like to close this and move the issue to #170 because the issue is on more than your device

@jlusiardi
Copy link
Owner

Continued in #170!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BLE Transport Issues related to BLE based Accessory
Projects
None yet
Development

No branches or pull requests

4 participants