ebw44 / esphome-inkbird-ith-2pb Goto Github PK
View Code? Open in Web Editor NEWLicense: GNU General Public License v3.0
License: GNU General Public License v3.0
There is a template of ESPhome project with such features at esphome-project-template
I am not a software developper so I apologize in advance.
I read an re-re-read the instruction but I cannot get the temperature from the IHT-2PB using and ESP32 development board. From the log I can see that I can connect for a while before disconnecting and getting error message. The temperature never gets reported to home assistant.
Here is my yaml file
esphome:
name: esphome-thermostat
friendly_name: esphome thermostat
esp32:
board: esp32doit-devkit-v1
framework:
type: esp-idf
logger:
api:
encryption:
key: "uLfai8cGoNlB4Vc9DacskJP2OumT18+ZZPG4rJPNQp4="
ota:
password: "935077bb3315c2ac089c23d3a0126477"
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
ap:
ssid: "Esphome-Thermostat"
password: "iemMwhXKzPTT"
captive_portal:
<<: !include Inkbird_IHT_2PB.yaml
Here are the logs.
INFO ESPHome 2023.12.9
INFO Reading configuration /config/esphome-thermostat.yaml...
INFO Starting log output from 192.168.2.134 using esphome API
INFO Successfully connected to esphome-thermostat @ 192.168.2.134 in 0.010s
INFO Successful handshake with esphome-thermostat @ 192.168.2.134 in 0.198s
[22:43:05][I][app:102]: ESPHome version 2023.12.9 compiled on Feb 4 2024, 21:34:27
[22:43:05][C][wifi:573]: WiFi:
[22:43:05][C][wifi:405]: Local MAC: E4:65:B8:12:BB:88
[22:43:05][C][wifi:410]: SSID: [redacted]
[22:43:05][C][wifi:411]: IP Address: 192.168.2.134
[22:43:05][C][wifi:413]: BSSID: [redacted]
[22:43:05][C][wifi:414]: Hostname: 'esphome-thermostat'
[22:43:05][C][wifi:416]: Signal strength: -13 dB ▂▄▆█
[22:43:05][C][wifi:420]: Channel: 6
[22:43:05][C][wifi:421]: Subnet: 255.255.255.0
[22:43:05][C][wifi:422]: Gateway: 192.168.2.1
[22:43:05][C][wifi:423]: DNS1: 192.168.2.1
[22:43:05][C][wifi:424]: DNS2: 207.164.234.193
[22:43:05][C][logger:439]: Logger:
[22:43:05][C][logger:440]: Level: DEBUG
[22:43:05][C][logger:441]: Log Baud Rate: 115200
[22:43:05][C][logger:443]: Hardware UART: UART0
[22:43:05][C][template.binary_sensor:028]: Template Binary Sensor 'Inkbird IHT-2PB connected'
[22:43:05][C][template.sensor:022]: Template Sensor 'Inkbird IHT-2PB probe manual'
[22:43:05][C][template.sensor:022]: Device Class: 'temperature'
[22:43:05][C][template.sensor:022]: State Class: 'measurement'
[22:43:05][C][template.sensor:022]: Unit of Measurement: '°C'
[22:43:05][C][template.sensor:022]: Accuracy Decimals: 1
[22:43:05][C][template.sensor:022]: Icon: 'mdi:thermometer-probe'
[22:43:05][C][template.sensor:023]: Update Interval: 60.0s
[22:43:06][C][template.sensor:022]: Template Sensor 'Inkbird IHT-2PB probe 1'
[22:43:06][C][template.sensor:022]: Device Class: 'temperature'
[22:43:06][C][template.sensor:022]: State Class: 'measurement'
[22:43:06][C][template.sensor:022]: Unit of Measurement: '°C'
[22:43:06][C][template.sensor:022]: Accuracy Decimals: 1
[22:43:06][C][template.sensor:022]: Icon: 'mdi:thermometer-probe'
[22:43:06][C][template.sensor:023]: Update Interval: 60.0s
[22:43:06][C][template.sensor:022]: Template Sensor 'Inkbird IHT-2PB probe 2'
[22:43:06][C][template.sensor:022]: Device Class: 'temperature'
[22:43:06][C][template.sensor:022]: State Class: 'measurement'
[22:43:06][C][template.sensor:022]: Unit of Measurement: '°C'
[22:43:06][C][template.sensor:022]: Accuracy Decimals: 1
[22:43:06][C][template.sensor:022]: Icon: 'mdi:thermometer-probe'
[22:43:06][C][template.sensor:023]: Update Interval: 60.0s
[22:43:06][C][bluetooth_proxy:088]: Bluetooth Proxy:
[22:43:06][C][bluetooth_proxy:089]: Active: YES
[22:43:06][C][ble_switch:068]: BLE Client Switch 'Inkbird IHT-2PB enable'
[22:43:06][C][ble_switch:070]: Icon: 'mdi:bluetooth'
[22:43:06][C][ble_switch:091]: Restore Mode: always OFF
[22:43:06][C][ble_sensor:017]: BLE Sensor 'Inkbird IHT-2PB last probe data'
[22:43:06][C][ble_sensor:017]: State Class: ''
[22:43:06][C][ble_sensor:017]: Unit of Measurement: ''
[22:43:06][C][ble_sensor:017]: Accuracy Decimals: 0
[22:43:06][C][ble_sensor:018]: MAC address : 62:00:A1:2F:4F:35
[22:43:06][C][ble_sensor:019]: Service UUID : 0000FFE0-0000-1000-8000-00805F9B34FB
[22:43:06][C][ble_sensor:020]: Characteristic UUID: 0000FFE4-0000-1000-8000-00805F9B34FB
[22:43:06][C][ble_sensor:021]: Descriptor UUID : 00000000-0000-0000-0000-000000000000
[22:43:06][C][ble_sensor:022]: Notifications : YES
[22:43:06][C][ble_sensor:023]: Update Interval: 60.0s
[22:43:06][C][esp32_ble:374]: ESP32 BLE:
[22:43:06][C][esp32_ble:376]: MAC address: E4:65:B8:12:BB:8A
[22:43:06][C][esp32_ble:377]: IO Capability: none
[22:43:06][C][esp32_ble_tracker:645]: BLE Tracker:
[22:43:06][C][esp32_ble_tracker:646]: Scan Duration: 300 s
[22:43:06][C][esp32_ble_tracker:647]: Scan Interval: 1100.0 ms
[22:43:06][C][esp32_ble_tracker:648]: Scan Window: 1100.0 ms
[22:43:06][C][esp32_ble_tracker:649]: Scan Type: ACTIVE
[22:43:06][C][esp32_ble_tracker:650]: Continuous Scanning: True
[22:43:06][C][ble_client:027]: BLE Client:
[22:43:06][C][ble_client:028]: Address: 62:00:A1:2F:4F:35
[22:43:06][C][captive_portal:088]: Captive Portal:
[22:43:06][C][mdns:115]: mDNS:
[22:43:06][C][mdns:116]: Hostname: esphome-thermostat
[22:43:06][C][ota:097]: Over-The-Air Updates:
[22:43:06][C][ota:098]: Address: esphome-thermostat.local:3232
[22:43:06][C][ota:101]: Using Password.
[22:43:06][C][api:139]: API Server:
[22:43:06][C][api:140]: Address: esphome-thermostat.local:6053
[22:43:06][C][api:142]: Using noise encryption: YES
[22:43:38][W][ble_sensor:080]: Error reading char at handle 21, status=2
[22:43:40][D][esp-idf:000]: W (121264) BT_APPL: gattc_conn_cb: if=3 st=0 id=3 rsn=0x13
[22:43:40][D][esp-idf:000]: W (121271) BT_APPL: gattc_conn_cb: if=4 st=0 id=4 rsn=0x13
[22:43:40][D][esp-idf:000]: W (121274) BT_APPL: gattc_conn_cb: if=5 st=0 id=5 rsn=0x13
[22:43:40][D][esp-idf:000]: W (121275) BT_APPL: gattc_conn_cb: if=6 st=0 id=6 rsn=0x13
[22:43:40][D][esp-idf:000]: W (121278) BT_HCI: hcif disc complete: hdl 0x0, rsn 0x13
[22:43:40][D][ble_client.automation:069]: Disconnected from 62:00:A1:2F:4F:35
[22:43:40][D][ble_client.automation:069]: Disconnected from 62:00:A1:2F:4F:35
[22:43:40][W][ble_sensor:037]: [Inkbird IHT-2PB last probe data] Disconnected!
[22:43:40][D][sensor:094]: 'Inkbird IHT-2PB last probe data': Sending state nan with 0 decimals of accuracy
[22:43:40][D][ble_client_lambda:026]: Disconnected from BLE device
[22:43:40][D][binary_sensor:036]: 'Inkbird IHT-2PB connected': Sending state OFF
[22:43:57][D][esp32_ble_client:053]: [0] [62:00:A1:2F:4F:35] Found device
[22:43:57][D][esp32_ble_tracker:215]: Pausing scan to make connection...
[22:43:57][I][esp32_ble_client:069]: [0] [62:00:A1:2F:4F:35] 0x00 Attempting BLE connection
[22:43:58][D][ble_client.automation:050]: Connection established with 62:00:A1:2F:4F:35
[22:43:58][D][ble_client.automation:050]: Connection established with 62:00:A1:2F:4F:35
[22:43:58][I][ble_sensor:031]: [Inkbird IHT-2PB last probe data] Connected successfully!
[22:43:58][I][esp32_ble_client:201]: [0] [62:00:A1:2F:4F:35] Connected
[22:43:58][D][ble_client_lambda:016]: Connected to BLE device
[22:43:58][D][binary_sensor:036]: 'Inkbird IHT-2PB connected': Sending state ON
[22:43:58][D][ble_client.automation:063]: Found characteristic 0000FFE9-0000-1000-8000-00805F9B34FB on device 62:00:A1:2F:4F:35
[22:43:58][D][ble_client.automation:063]: Found characteristic 0000FFE4-0000-1000-8000-00805F9B34FB on device 62:00:A1:2F:4F:35
[22:43:58][D][esp32_ble_tracker:266]: Starting scan...
[22:44:37][W][ble_sensor:080]: Error reading char at handle 21, status=2
[22:44:44][D][esp-idf:000]: W (185379) BT_APPL: gattc_conn_cb: if=3 st=0 id=3 rsn=0x13
[22:44:44][D][esp-idf:000]: W (185384) BT_APPL: gattc_conn_cb: if=4 st=0 id=4 rsn=0x13
[22:44:44][D][esp-idf:000]: W (185387) BT_APPL: gattc_conn_cb: if=5 st=0 id=5 rsn=0x13
[22:44:44][D][esp-idf:000]: W (185388) BT_APPL: gattc_conn_cb: if=6 st=0 id=6 rsn=0x13
[22:44:44][D][esp-idf:000]: W (185392) BT_HCI: hcif disc complete: hdl 0x0, rsn 0x13
[22:44:44][D][ble_client.automation:069]: Disconnected from 62:00:A1:2F:4F:35
[22:44:44][D][ble_client.automation:069]: Disconnected from 62:00:A1:2F:4F:35
[22:44:44][W][ble_sensor:037]: [Inkbird IHT-2PB last probe data] Disconnected!
[22:44:44][D][sensor:094]: 'Inkbird IHT-2PB last probe data': Sending state nan with 0 decimals of accuracy
[22:44:44][D][ble_client_lambda:026]: Disconnected from BLE device
[22:44:44][D][binary_sensor:036]: 'Inkbird IHT-2PB connected': Sending state OFF
[22:45:00][D][esp32_ble_client:053]: [0] [62:00:A1:2F:4F:35] Found device
[22:45:00][D][esp32_ble_tracker:215]: Pausing scan to make connection...
[22:45:00][I][esp32_ble_client:069]: [0] [62:00:A1:2F:4F:35] 0x00 Attempting BLE connection
[22:45:01][D][ble_client.automation:050]: Connection established with 62:00:A1:2F:4F:35
[22:45:01][D][ble_client.automation:050]: Connection established with 62:00:A1:2F:4F:35
[22:45:01][I][ble_sensor:031]: [Inkbird IHT-2PB last probe data] Connected successfully!
[22:45:01][I][esp32_ble_client:201]: [0] [62:00:A1:2F:4F:35] Connected
[22:45:01][D][ble_client_lambda:016]: Connected to BLE device
[22:45:01][D][binary_sensor:036]: 'Inkbird IHT-2PB connected': Sending state ON
[22:45:01][D][ble_client.automation:063]: Found characteristic 0000FFE9-0000-1000-8000-00805F9B34FB on device 62:00:A1:2F:4F:35
[22:45:01][D][ble_client.automation:063]: Found characteristic 0000FFE4-0000-1000-8000-00805F9B34FB on device 62:00:A1:2F:4F:35
[22:45:01][D][esp32_ble_tracker:266]: Starting scan...
Thanks for any help you can provide.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.