Comments (12)
Поскольку в форматирование вы ещё не научились, выглядит так, что у вас с отступами в .yaml проблема. Вашего файла мы не видим, поэтому тут только к телепатам.
from esphome-opentherm.
substitutions:
devicename: opentherm_basic
upper_devicename: Opentherm Basic
esphome:
name: $devicename
platformio_options:
lib_deps:
- ihormelnyk/OpenTherm Library @ 1.1.3
includes:
- esphome-opentherm/
esp8266:
board: d1_mini
# Enable logging
logger:
# Enable Home Assistant API
api:
ota:
wifi:
ssid: INTERNET
password: "********"
ap:
ssid: "${devicename} Fallback"
password: "********"
captive_portal:
custom_component:
- lambda: |-
auto opentherm = new OpenthermComponent();
return {opentherm};
components:
- id: opentherm
output:
- platform: custom
type: float
lambda: |-
OpenthermComponent *openthermComp = (OpenthermComponent*) id(opentherm);
auto opentherm_pid_output = new OpenthermFloatOutput();
openthermComp->set_pid_output(opentherm_pid_output);
App.register_component(opentherm_pid_output);
return {opentherm_pid_output};
outputs:
id: pid_output
sensor:
- platform: custom
lambda: |-
OpenthermComponent *openthermComp = (OpenthermComponent*) id(opentherm);
return {
openthermComp->boiler_temperature,
openthermComp->external_temperature_sensor,
openthermComp->return_temperature_sensor,
openthermComp->pressure_sensor,
openthermComp->modulation_sensor,
openthermComp->heating_target_temperature_sensor
};
sensors:
- name: "Boiler Temperature"
unit_of_measurement: °C
accuracy_decimals: 1
- name: "External Temperature"
unit_of_measurement: °C
accuracy_decimals: 0
- name: "Return Temperature"
unit_of_measurement: °C
accuracy_decimals: 1
- name: "Heating Water Pressure"
unit_of_measurement: hPa
accuracy_decimals: 1
- name: "Boiler Modulation"
unit_of_measurement: "%"
accuracy_decimals: 0
- name: "Heating Target Temperature"
unit_of_measurement: °C
accuracy_decimals: 1
- platform: homeassistant
id: temperature_sensor
entity_id: sensor.lywsd03mmc_temperature
name: "Actual temperature"
unit_of_measurement: °C
- platform: template
id: temperature_sensor_interval
name: "Actual temperature interval"
lambda: |-
return id(temperature_sensor).state;
update_interval: 1s
- platform: pid
name: "PID Climate Result"
type: RESULT
- platform: pid
name: "PID Climate HEAT"
type: HEAT
- platform: pid
name: "PID Climate ERROR"
type: ERROR
binary_sensor:
- platform: custom
lambda: |-
OpenthermComponent *openthermComp = (OpenthermComponent*) id(opentherm);
return {openthermComp->flame};
binary_sensors:
- name: "Flame"
#device_class: heat
switch:
- platform: custom
lambda: |-
OpenthermComponent *openthermComp = (OpenthermComponent*) id(opentherm);
return {openthermComp->thermostatSwitch};
switches:
name: "Disable PID"
- platform: template
name: "PID Climate Autotune"
turn_on_action:
- climate.pid.autotune: pid_climate
climate:
- platform: custom
lambda: |-
OpenthermComponent *openthermComp = (OpenthermComponent*) id(opentherm);
return {
openthermComp->hotWaterClimate,
openthermComp->heatingWaterClimate
};
climates:
- id: hot_water
name: "Hot water"
- id: heating_water
name: "Heating water"
- platform: pid
id: pid_climate
name: "PID Climate Controller"
visual:
min_temperature: 16 °C
max_temperature: 28 °C
temperature_step: 0.5 °C
sensor: temperature_sensor_interval
default_target_temperature: 20°C
heat_output: pid_output
control_parameters:
kp: 0.38197
ki: 0.01012
kd: 3.60387
from esphome-opentherm.
Извините Chupaka
from esphome-opentherm.
opentherm.zip
сенсор sensor.lywsd03mmc_temperature, немного не тот файл прикрепил, в этом стандартный.
from esphome-opentherm.
from esphome-opentherm.
Я склонировал содержимое этой репы, скачал и распаковал поверху ваш архив с opentherm.yaml, запустил docker run --rm -v "${PWD}":/config esphome/esphome compile opentherm.yaml
- и всё отлично собралось. Чтобы не было warning'ов про ICACHE_RAM_ATTR, надо версию ihormelnyk/OpenTherm Library
поднять с 1.1.3 до 1.1.4 - я там их пофиксил. И сейчас сюда PR создам, в локальных файлах тоже встречается... Но это косметика.
from esphome-opentherm.
Попробовал собрать на 2022.8.0 - тоже всё хорошо собралось. У вас какая версия ESPHome?
from esphome-opentherm.
2022.12.8
from esphome-opentherm.
Павел пожалуйста, можете скомпилировать файл? а то я уже и библиотеку 1.1.4 указал и на
IRAM_ATTR поменял, та же ошибка.
ЯМЛ прикрепил с актуальными данными. Заранее благодарю. [email protected]
opentherm.zip
from esphome-opentherm.
Так вы docker установите - и компилируйте той командой, что я написал...
Вот папка с итоговыми файлами, но не знаю, чем она вам поможет. Лучше научиться собирать самому.
opentherm_basic.tar.gz
from esphome-opentherm.
Так вы docker установите - и компилируйте той командой, что я написал...
Вот папка с итоговыми файлами, но не знаю, чем она вам поможет. Лучше научиться собирать самому. opentherm_basic.tar.gz
Спасибо, я стараюсь учиться, просто ситуация такая отвалился DS18b20 искал способы прикрутить пока другой, чет странно вот проверил свой соноф перешить, все нормально. Как я понял командой через терминал.
from esphome-opentherm.
@ZHNovell если вопрос снят - закройте, пожалуйста, issue.
from esphome-opentherm.
Related Issues (20)
- Does not remember the last state after a reboot HOT 2
- Hot water pressure -1 HOT 2
- the pump is still running
- Trying to contribute... But compile issue HOT 1
- Error while compiling; simple fix HOT 2
- noob starting out: nothing shows up HOT 7
- Add missing sensors HOT 6
- Feature Request - Opentherm GATEWAY functionality HOT 9
- OpenTherm.h: No such file or directory HOT 3
- Task watchdog got triggered
- Info
- Viessmann - long time for an operation HOT 2
- does this one work as a climate or can I also use it as a switch only?
- Climate Preset HOT 1
- OpenTherm blocking communication with HASS (Error getting initial data for [IP]: Timeout waiting for response for <class 'api_pb2.ListEntitiesRequest'> after 60.0s) HOT 1
- Outdoor temperature and heating curve
- making it read only? HOT 1
- System does not boot - stuck in boot loop HOT 1
- Custom component took a long time HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esphome-opentherm.