climateguard / cg-anem Goto Github PK
View Code? Open in Web Editor NEWArduino library for thermoanemometer CG-Anem to simplify integration into compatible platforms.
License: GNU General Public License v3.0
Arduino library for thermoanemometer CG-Anem to simplify integration into compatible platforms.
License: GNU General Public License v3.0
Привет! Я не могу добавить устройство в ESPhome.
Скопировал в /esphome/cgAnem/ файлы cgAnem.cpp и cgAnem.h
Файл конфигурации esphome:
esphome:
name: esp32
friendly_name: ESP32
libraries:
- Wire
- "ClimateGuard CG Anem"
- Arduino
includes:
- cgAnem/cgAnem.h
- cgAnem/cgAnem.cpp
esp32:
board: esp32dev
framework:
type: arduino
i2c:
- id: bus_a
sda: 32
scl: 33
- id: bus_b
sda: 14
scl: 15
scan: true
# scan: true
......
sensor:
- platform: custom
lambda: |-
auto CGAnem = new CG_Anem(0x11);
App.register_component(CGAnem);
return {CGAnem->temperature,CGAnem->airConsumption,CGAnem->airflowRate};
sensors:
- name: "Temperatura"
id: CG_Anem_temperature
# accuracy_decimals: 0.1
unit_of_measurement: C
state_class: measurement
- name: "airConsumption"
id: airConsumption
# accuracy_decimals: 0.1
unit_of_measurement: m^3/hour
state_class: measurement
- name: "airflowRate"
id: airflowRate
# accuracy_decimals: 0.1
unit_of_measurement: m/s
state_class: measurement
Но так не работает. т. к. библиотека все же не предназначена для ESPhome.
Нашел подобный проект где человек переделал библиотеку, но сам не смогу переделать:
https://github.com/maaad/RadSens1v2
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.