Git Product home page Git Product logo

Comments (12)

Chupaka avatar Chupaka commented on September 22, 2024

Поскольку в форматирование вы ещё не научились, выглядит так, что у вас с отступами в .yaml проблема. Вашего файла мы не видим, поэтому тут только к телепатам.

from esphome-opentherm.

ZHNovell avatar ZHNovell commented on September 22, 2024

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.

ZHNovell avatar ZHNovell commented on September 22, 2024

Извините Chupaka

from esphome-opentherm.

ZHNovell avatar ZHNovell commented on September 22, 2024

opentherm.zip
сенсор sensor.lywsd03mmc_temperature, немного не тот файл прикрепил, в этом стандартный.

from esphome-opentherm.

ZHNovell avatar ZHNovell commented on September 22, 2024

Расположение файлов:
Clip2Net Menu_230206212902
Clip2Net Menu_230206212835

from esphome-opentherm.

Chupaka avatar Chupaka commented on September 22, 2024

Я склонировал содержимое этой репы, скачал и распаковал поверху ваш архив с 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.

Chupaka avatar Chupaka commented on September 22, 2024

Попробовал собрать на 2022.8.0 - тоже всё хорошо собралось. У вас какая версия ESPHome?

from esphome-opentherm.

ZHNovell avatar ZHNovell commented on September 22, 2024

2022.12.8

from esphome-opentherm.

ZHNovell avatar ZHNovell commented on September 22, 2024

Павел пожалуйста, можете скомпилировать файл? а то я уже и библиотеку 1.1.4 указал и на
IRAM_ATTR поменял, та же ошибка.
ЯМЛ прикрепил с актуальными данными. Заранее благодарю. [email protected]
opentherm.zip

from esphome-opentherm.

Chupaka avatar Chupaka commented on September 22, 2024

Так вы docker установите - и компилируйте той командой, что я написал...

Вот папка с итоговыми файлами, но не знаю, чем она вам поможет. Лучше научиться собирать самому.
opentherm_basic.tar.gz

from esphome-opentherm.

ZHNovell avatar ZHNovell commented on September 22, 2024

Так вы docker установите - и компилируйте той командой, что я написал...

Вот папка с итоговыми файлами, но не знаю, чем она вам поможет. Лучше научиться собирать самому. opentherm_basic.tar.gz

Спасибо, я стараюсь учиться, просто ситуация такая отвалился DS18b20 искал способы прикрутить пока другой, чет странно вот проверил свой соноф перешить, все нормально. Как я понял командой через терминал.

from esphome-opentherm.

Chupaka avatar Chupaka commented on September 22, 2024

@ZHNovell если вопрос снят - закройте, пожалуйста, issue.

from esphome-opentherm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.