Created
December 21, 2019 20:26
-
-
Save phha/424e584eae355cb43aae0158a443ec2e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
substitutions: | |
device: optolink | |
name: Optolink | |
esphome: | |
name: ${device} | |
platform: ESP32 | |
board: nodemcu-32s | |
includes: | |
- optolink.hpp | |
libraries: | |
- VitoWiFi | |
custom_component: | |
- id: link | |
lambda: |- | |
auto link = new optolink(); | |
App.register_component(link); | |
return {link}; | |
sensor: | |
- platform: custom | |
lambda: |- | |
return {id(link)->sensor_outside_temp}; | |
sensors: | |
- name: ${name} outside temperature | |
unit_of_measurement: °C | |
accuracy_decimals: 1 | |
filters: | |
- multiply: 0.1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment