avbor / homeassistantconfig Goto Github PK
View Code? Open in Web Editor NEWMy Home Assistant Configuration. Feel free to :star: my repo if you found something useful here =)
Home Page: https://simple-ha.ru
License: The Unlicense
My Home Assistant Configuration. Feel free to :star: my repo if you found something useful here =)
Home Page: https://simple-ha.ru
License: The Unlicense
Hey man, thank you so much for making your configuration public, I was trying to integrate the daikin_ir.h file with esphome, i copied your smartir configuration, and I tried to compile the file, but I get an error;
In file included from src/main.cpp:54: src/daikin_ir_v2.h:11:5: error: 'sensor' does not name a type 11 | sensor::Sensor *sensor_{nullptr}; | ^~~~~~ src/daikin_ir_v2.h:13:21: error: 'sensor' has not been declared 13 | void set_sensor(sensor::Sensor *sensor) { this->sensor_ = sensor; } | ^~~~~~ src/daikin_ir_v2.h:13:36: error: expected ',' or '...' before '*' token 13 | void set_sensor(sensor::Sensor *sensor) { this->sensor_ = sensor; } | ^ src/daikin_ir_v2.h: In member function 'void DaikinAC::set_sensor(int)': src/daikin_ir_v2.h:13:53: error: 'class DaikinAC' has no member named 'sensor_' 13 | void set_sensor(sensor::Sensor *sensor) { this->sensor_ = sensor; } | ^~~~~~~ src/daikin_ir_v2.h:13:63: error: 'sensor' was not declared in this scope; did you mean 'Sensor'? 13 | void set_sensor(sensor::Sensor *sensor) { this->sensor_ = sensor; } | ^~~~~~ | Sensor src/daikin_ir_v2.h: In member function 'virtual void DaikinAC::setup()': src/daikin_ir_v2.h:17:17: error: 'class DaikinAC' has no member named 'sensor_' 17 | if (this->sensor_) { | ^~~~~~~ src/daikin_ir_v2.h:18:15: error: 'class DaikinAC' has no member named 'sensor_' 18 | this->sensor_->add_on_state_callback([this](float state) { | ^~~~~~~ src/daikin_ir_v2.h:22:43: error: 'class DaikinAC' has no member named 'sensor_' 22 | this->current_temperature = this->sensor_->state; | ^~~~~~~ src/daikin_ir_v2.h: In member function 'virtual esphome::climate::ClimateTraits DaikinAC::traits()': src/daikin_ir_v2.h:106:53: error: 'class DaikinAC' has no member named 'sensor_' 106 | traits.set_supports_current_temperature(this->sensor_ != nullptr); | ^~~~~~~ *** [/data/ac-cucina/.pioenvs/ac-cucina/src/main.cpp.o] Error 1
That's my configuration;
`
esphome:
name: ac-cucina
friendly_name: AC-Cucina
includes:
- include/daikin_ir_v2.h
libraries:
- IRremoteESP8266
esp8266:
board: esp01_1m
logger:
api:
encryption:
key:
ota:
password:
wifi:
ssid:
password:
ap:
ssid: "Ac-Cucina Fallback Hotspot"
password: "HrxpWj1hmHnY"
captive_portal:
remote_receiver:
id: ir_receiver
pin:
number: GPIO14
inverted: True
mode:
input: true
pullup: true
tolerance: 55%
dump: all
remote_transmitter:
id: ir_transmit
pin: GPIO4
carrier_duty_percent: 50%
climate:
platform: custom
lambda: |-
auto my_daikinac = new DaikinAC();
App.register_component(my_daikinac);
return {my_daikinac};
climates:
`
Would you be so kind as to give me a little help?
Thank you
errors happens while using this config:
https://github.com/avbor/HomeAssistantConfig/blob/master/lovelace/views/vi_radio_quality_gw3.yaml
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.