{"id":16237477,"url":"https://github.com/homespan/tempsensori2c","last_synced_at":"2025-03-19T15:31:14.948Z","repository":{"id":104535280,"uuid":"384998741","full_name":"HomeSpan/TempSensorI2C","owner":"HomeSpan","description":"Streams temperature readings from an I2C Analog Devices ADT7410 to HomeKit using HomeSpan","archived":false,"fork":false,"pushed_at":"2022-01-03T14:57:58.000Z","size":18,"stargazers_count":17,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-17T08:45:41.406Z","etag":null,"topics":["arduino-sketch","esp32","home-automation","homekit","homespan","temperature-sensor"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/HomeSpan.png","metadata":{"files":{"readme":"docs/README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-07-11T16:29:28.000Z","updated_at":"2025-02-11T13:35:03.000Z","dependencies_parsed_at":null,"dependency_job_id":"5e52fb6b-bd2c-4568-a385-8606ace45538","html_url":"https://github.com/HomeSpan/TempSensorI2C","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HomeSpan%2FTempSensorI2C","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HomeSpan%2FTempSensorI2C/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HomeSpan%2FTempSensorI2C/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HomeSpan%2FTempSensorI2C/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HomeSpan","download_url":"https://codeload.github.com/HomeSpan/TempSensorI2C/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244453858,"owners_count":20455290,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["arduino-sketch","esp32","home-automation","homekit","homespan","temperature-sensor"],"created_at":"2024-10-10T13:35:46.254Z","updated_at":"2025-03-19T15:31:14.942Z","avatar_url":"https://github.com/HomeSpan.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TempSensorI2C - A HomeSpan Project\n\nTempSensorI2C is a working example of how to use the I2C protocol to capture temperature readings from an Analog Device ADT7410 high-resolution temperature sensor and stream them to HomeKit.  Built using the [HomeSpan](https://github.com/HomeSpan/HomeSpan) HomeKit Library, TempSensorI2C is designed to run on an ESP32 device as an Arduino sketch.  \n\nHardware used for this project:\n\n* An ESP32 board, such as the [Adafruit HUZZAH32 – ESP32 Feather Board](https://www.adafruit.com/product/3405)\n* An Analog Device ADT7410 Temperature Sensor, such as the [Adafruit ADT7410 Breakout Board](https://www.adafruit.com/product/4089)\n\n## Overview\n\nThis simple HomeSpan sketch illustrates how the standard Arduino I2C library `Wire.h` can be used to capture temperature readings from an ADT7410 temperature sensor and stream them to HomeKit.   The sketch:\n* implements a single HomeKit *Accessory* containing a HomeKit *TemperatureSensor Service*;\n* captures samples from the ADT7410 every 5 seconds;\n* sends updates to HomeKit only if the temperature has changed by more than 0.5 Celsius; and\n* is easily modified to accomodate up to 4 ADT7410 sensors, each with their own unique I2C address.\n\n## Connections\n\nThe connections below provide for I2C communicaiton between the ESP32 and the ADT7410 using the 7410's default address of 0x48:\n\n|ADT7410|ESP32|\n|-------|-----|\n|VIN|3V|\n|GND|GND|\n|SDA|SDA|\n|SCL|SCL|\n|A0|unused|\n|A1|unused|\n|INT|unused|\n|CT|unused|\n\n---\n\n### Feedback or Questions?\n\nPlease consider adding to the [Discussion Board](https://github.com/HomeSpan/HomeSpan/discussions), or email me directly at [homespan@icloud.com](mailto:homespan@icloud.com).\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhomespan%2Ftempsensori2c","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhomespan%2Ftempsensori2c","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhomespan%2Ftempsensori2c/lists"}