Comments (3)
Hello, You are right there is not thermostat, there is only sensor
But i have creared another example with library changes
https://github.com/Yurik72/ESPHap/tree/master/examples/EspHap_ThermostatControl
Unfortunatelly , due to the time Without testing a logic, could you please test and work on that. I will appreciate a pull request if neccessary
from esphap.
Hello. I checked your example for the thermostat. Set const char* thing_api_key= "11112222"; when you try to connect the thermostat via iphone, an error appears on the phone screen (the Accessory does not meet the requirements), after 1 attempt, the accessory is no longer visible to the iphone, you have to do erase_flash and download the program again. At the time of connection, the log shows Verification successful, secure session established, but the phone can't display the accessory. Can you help me figure it out? I attached the serial monitor log.
12:35:05.553 -> TLT-GRUP
12:35:06.168 -> ..
12:35:06.686 -> IP address:
12:35:06.686 -> 192.168.10.20
12:35:06.686 -> Free heap: 204704
12:35:06.686 -> init_hap_storage>>> HomeKit: init_storage_ex size 0x581
12:35:06.686 -> >>> Home Integration: hap_services added chararacteristic 0: 00000023-0000-1000-8000-0026BB765291
12:35:06.686 -> >>> Home Integration: hap_services added chararacteristic 1: 00000011-0000-1000-8000-0026BB765291
12:35:06.686 -> >>> Home Integration: hap_services added chararacteristic 2: 00000011-0000-1000-8000-0026BB765291
12:35:06.686 -> >>> Home Integration: hap_services added chararacteristic 3: 00000035-0000-1000-8000-0026BB765291
12:35:06.733 -> >>> Home Integration: hap_services added chararacteristic 4: 00000036-0000-1000-8000-0026BB765291
12:35:06.733 -> >>> Home Integration: hap_services added chararacteristic 5: 0000000F-0000-1000-8000-0026BB765291
12:35:06.733 -> >>> Home Integration: hap_services added chararacteristic 6: 00000033-0000-1000-8000-0026BB765291
12:35:06.733 -> >>> Home Integration: hap_services added chararacteristic 7: 0000000D-0000-1000-8000-0026BB765291
12:35:06.733 -> >>> Home Integration: hap_services added chararacteristic 8: 00000012-0000-1000-8000-0026BB765291
12:35:06.733 -> >>> Home Integration: hap_services added chararacteristic 9: 00000010-0000-1000-8000-0026BB765291
12:35:06.779 -> >>> Home Integration: homekit_is_paired 0
12:35:06.779 -> >>> HomeKit: Starting server
12:35:06.779 -> >>> HomeKit: Using existing accessory ID: FE:A3:29:15:7A:DC
12:35:06.779 -> >>> HomeKit: Configuring mDNS
12:35:07.247 -> Setting web server
12:35:07.388 -> Web site http://192.168.10.20
12:35:07.388 -> File system http://192.168.10.20/browse
12:35:07.388 -> Update http://192.168.10.20/update
12:35:07.481 -> Tempnan Hum:nan
12:35:07.481 -> Set default temp 20
12:35:07.481 -> Set default hum 50
12:35:07.481 -> sendToThingspeak start
12:35:07.481 -> https://www.borneland.com/sensor/post/
12:35:07.481 -> [HTTP] Begin https://www.borneland.com/sensor/post/
12:35:07.481 -> http begin start connection www.borneland.com
12:35:07.481 -> [HTTP] Start connection www.borneland.com443
12:35:08.847 -> http finish connection
12:35:09.034 -> writeToStream
12:35:09.034 -> processing _transferEncoding:0
12:35:09.034 -> postString api_key=tPmAT5Ab3j7F9&chip_id=14661474&temp=20.00&hum=50.00
12:35:09.034 -> http code returns 200
12:35:09.034 -> http code response string(4) "POST"
12:35:09.034 -> ---post content---array(0) {
12:35:09.034 -> }
12:35:09.034 ->
12:35:12.514 -> Tempnan Hum:nan
12:35:12.514 -> Set default temp 20
12:35:12.514 -> Set default hum 50
12:35:17.584 -> Tempnan Hum:nan
12:35:17.584 -> Set default temp 20
12:35:17.584 -> Set default hum 50
12:35:31.465 -> >>> HomeKit: Got new client connection: 57
12:35:31.465 -> >>> HomeKit: [Client 57] Pair Setup
12:35:31.465 -> >>> HomeKit: [Client 57] Pair Setup Step 1/3
12:35:31.465 -> >>> HomeKit: [Client 57] new pairing content
12:35:31.465 -> >>> HomeKit: started crypto
12:35:31.465 -> >>> HomeKit: Free heap: 172172
12:35:32.776 -> Tempnan Hum:nan
12:35:32.776 -> Set default temp 20
12:35:32.776 -> Set default hum 50
12:35:32.962 -> >>> HomeKit: Calculating public key len=384
12:35:33.755 -> >>> HomeKit: Calculating public key result 0
12:35:33.755 -> >>> HomeKit: [Client 57] send_tlv_response
12:35:33.755 -> >>> HomeKit: [Client 57] send_tlv_response done
12:35:36.567 -> >>> HomeKit: [Client 57] Pair Setup
12:35:36.567 -> >>> HomeKit: [Client 57] Pair Setup Step 2/3
12:35:37.841 -> Tempnan Hum:nan
12:35:37.841 -> Set default temp 20
12:35:37.841 -> Set default hum 50
12:35:39.210 -> >>> HomeKit: [Client 57] Pair Setup
12:35:39.210 -> >>> HomeKit: [Client 57] Pair Setup Step 3/3
12:35:39.775 -> >>> HomeKit: Added pairing with F4BA4965-2501-4223-984D-95742773E51D
12:35:39.822 -> >>> HomeKit: Configuring mDNS
12:35:39.822 -> >>> HomeKit: [Client 57] Successfully paired
12:35:39.869 -> >>> HomeKit: [Client 57] Closing client connection
12:35:39.869 -> >>> HomeKit: Got new client connection: 58
12:35:39.869 -> >>> HomeKit: [Client 58] Pair Verify Step 1/2
12:35:39.962 -> >>> HomeKit: [Client 58] Pair Verify Step 2/2
12:35:39.962 -> >>> HomeKit: [Client 58] Found pairing with F4BA4965-2501-4223-984D-95742773E51D
12:35:40.008 -> >>> HomeKit: [Client 58] Verification successful, secure session established
12:35:40.008 -> >>> HomeKit: [Client 58] Get Accessories
12:35:40.101 -> >>> HomeKit: [Client 58] Closing client connection
12:35:42.928 -> Tempnan Hum:nan
12:35:42.928 -> Set default temp 20
12:35:42.928 -> Set default hum 50
from esphap.
Hi, sorry for my mistakes, As i mentioned there is no time to test, hovewer I carefully check and correct library. You can see last changes done by the commit 35efcc7
Hint, you don't need to erase a flash. See my instruction. you just need to delete file pair.dat, using internal browser and device will be ready to pair again
from esphap.
Related Issues (20)
- Naming Issue on Multiple Accessories
- ESP32 stucks on "HomeKit: Configuring mDNS" HOT 2
- Notify not working on ios 16 beta HOT 1
- Multiple LEDs
- Pairing issue HOT 2
- Defining limits (min_value, max_value, min_step, unit, format, etc ...) HOT 4
- Cooler + Heater : How to ? HOT 1
- SLAT do not show up on HomeKit after pairing HOT 1
- Setting initial values for FLOAT type HOT 2
- NAME characteristics showing on IOS just at time of pairing and then ESP name HOT 2
- error unknown type name 'curve25519_key'
- Quick question - not an issue
- Compilation failed for ESP32C3
- Compilation Error HOT 1
- Regarding the issue with iPhone version 16.5。
- Compilation error in ESPHap_Button HOT 2
- All devices "No response" under iOS 16.6 HOT 2
- Pair Setup Step 3/3 : InstructionFetchError OR LoadProhibited when having >24 characteristics loaded HOT 3
- 8 accessories initialized force the 1st one to be considered as a Hub/HomeBridge HOT 13
- What is related to "context" in accessory/service definition ?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esphap.