Skip to content

geniusled/ESPHome-LM75A-Temperature-Sensor-Component

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LM75A Temperature Sensor Component for ESPHome

How to install from Home assistant web browser

Requirements:
- ESPHome addon installed
- File editor addon installed
- Downloaded ESPHome-LM75A-Temperature-Sensor-Component github repo
  1. using ESPHome Create project: my_project_name

  2. using File Editor addon, go to path homeassistant/esphome/

  3. upload LM75A.cpp file to the same folder as my_project_name.yaml.

  4. upload LM75A.h file to the same folder as my_project_name.yaml.

  5. Edit my_project.yaml file.

Add includes subsection of esphome.

esphome:
  includes:
    - LM75A.h
    - LM75A.cpp

Add I2C and sensor sections to end of file.

i2c:
  - id: bus_a
    sda: 4
    scl: 5
    scan: True
sensor:    
  - platform: custom
    lambda: |-
     auto lm75a = new LM75A();
     App.register_component(lm75a);
     return {lm75a};
    sensors:
      name: "LM75A Temperature"
      unit_of_measurement: °C
      accuracy_decimals: 1
  1. on the top left corner, click Install

  2. enjoy

How to connect the sensor

License

This project is under MIT license. This means you can use it as you want (just don't delete the library header).

Original Project

It is a modified Arduino-LM75A-Temperature-Sensor-Library project by QuentinCG.

About

I2C LM75A Temperature Sensor Component for ESPHome

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 100.0%