home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
74.18k stars 31.15k forks source link

After Update of ESPHome and flashing device with new FW it doesn't respond anymore #96278

Closed Freddyfux closed 1 year ago

Freddyfux commented 1 year ago

The problem

I have an issue with ESPHome after updating. image image image I have seen the breaking change in HA 2023.7 which concerns the ESPHome. I have enabled the service calls already. I am still able to compile/flash the FW to the ESP8266 and it shows me a connection but the sensors and controls are not available in HA. Hope someone can give me a hint to solve this problem.

What version of Home Assistant Core has the issue?

2023.7.1

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

ESPHome (2023.6.5)

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

esphome:
  name: wlan2uart  # Node name
  includes:
    - solar_tracker.h

esp8266:
  board: esp01_1m

# Enable logging
logger:
  baud_rate: 0 # 0 = Disable logging

# Enable Home Assistant API
api:
  encryption:
    key: !secret api_key_wlan2uart

ota:
  password: !secret ota_pwd_wlan2uart

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  #ap:
  #  ssid: "Wlan2Uart Fallback Hotspot"
  #  password: "Lk2ASkXYPRRv"

captive_portal:

switch:
  - platform: template #gpio
    name: Automatic
    id: Automatic
    #pin: 
    #  number: GPIO2
    #  inverted: false
    turn_on_action: #on_turn_on:         
      - homeassistant.service:
          service: esphome.wlan2uart_set_automatic
          data_template:
            data_id: "{{ (now().timestamp()*1000) | int % 65536 }}"
            offsetUp: "{{ states.input_number.solar_tracker_offset_up.state }}"
            offsetDown: "{{ states.input_number.solar_tracker_offset_down.state }}"
            offsetEast: "{{ states.input_number.solar_tracker_offset_east.state }}"
            offsetWest: "{{ states.input_number.solar_tracker_offset_west.state }}"
    turn_off_action: #on_turn_off:
      - homeassistant.service:
          service: esphome.wlan2uart_reset_automatic          
          #data:
          #  var1: 'val1'
  - platform: template
    name: Protect
    id: Protect
    turn_on_action:
      - homeassistant.service:
          service: esphome.wlan2uart_set_protect
          data_template:
            data_id: "{{ (now().timestamp()*1000) | int % 65536 }}"
    turn_off_action:
      - homeassistant.service:
          service: esphome.wlan2uart_reset_protect 
  - platform: template
    name: Remote
    id: Remote
    turn_on_action:
      - homeassistant.service:
          service: esphome.wlan2uart_set_remote
          data_template:
            data_id: "{{ (now().timestamp()*1000) | int % 65536 }}"
    turn_off_action:
      - homeassistant.service:
          service: esphome.wlan2uart_reset_remote 
  - platform: template
    name: Sunrise
    id: Sunrise
    turn_on_action:
      - homeassistant.service:
          service: esphome.wlan2uart_set_sunrise
          data_template:
            data_id: "{{ (now().timestamp()*1000) | int % 65536 }}"
    turn_off_action:
      - homeassistant.service:
          service: esphome.wlan2uart_reset_sunrise
  - platform: template
    name: Idle
    id: Idle
    turn_on_action:
      - homeassistant.service:
          service: esphome.wlan2uart_set_idle
          data_template:
            data_id: "{{ (now().timestamp()*1000) | int % 65536 }}"
    turn_off_action:
      - homeassistant.service:
          service: esphome.wlan2uart_reset_idle
  - platform: template
    name: SendData
    id: SendData
    turn_on_action:
      - homeassistant.service:
          service: esphome.wlan2uart_set_sendData
          data_template:
            data_id: "{{ (now().timestamp()*1000) | int % 65536 }}"
            direction: "{{ states.input_select.solar_tracker_direction.state }}"
            duration: "{{ states.input_number.solar_tracker_duration.state }}"

    turn_off_action:
      - homeassistant.service:
          service: esphome.wlan2uart_reset_sendData

uart:
  id: uart_bus
  tx_pin: GPIO1
  rx_pin: GPIO3
  baud_rate: 56000

#custom_component:
#- lambda: |-
#    auto solarTracker = new SolarTracker(id(uart_bus));
#    return {solarTracker};

text_sensor:
- platform: custom
  id: solarTracker
  lambda: |-
    auto solarTracker = new SolarTracker(id(uart_bus));
    App.register_component(solarTracker);
    return {solarTracker->mode, solarTracker->movement, solarTracker->uartBaudRate}; 
  #sensors:
  #- name: "My Custom Sensor"
  #  id: test
  text_sensors:
  - name: Mode
    id: mode
  - name: Movement
    id: movement
  - name: "Uart Baud Rate"
    id: uartBaudRate

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 1 year ago

Hey there @ottowinter, @jesserockz, @bdraco, mind taking a look at this issue as it has been labeled with an integration (esphome) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `esphome` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign esphome` Removes the current integration label and assignees on the issue, add the integration domain after the command.

(message by CodeOwnersMention)


esphome documentation esphome source (message by IssueLinks)

bdraco commented 1 year ago

Please continue at https://github.com/esphome/issues

Unfortunately there is no way to transfer this issue so you'll need to make a new one