Reconnect MagicHome

i used a magichome controller in my old home to light up my desktop.
now after some time a want to use it again.
but my network has changed i it will connect to 192.168.2.110 but i’m now using 192.168.2.0 range.
i have been able te get it in the esphome addon but can’t change the settings or add it in home assistant using integrations.

when i try to use integrations i get a error that there is no api in the config but i have a back-up file from a older esphome and there is a api in the congif.

when i try to push a now config i get:

In file included from src/esphome/components/api/api_connection.h:7:0,
                 from src/esphome/components/api/api_connection.cpp:1:
src/esphome/components/api/api_server.h:19:25: fatal error: ESPAsyncTCP.h: No such file or directory

*********************************************************************
* Looking for ESPAsyncTCP.h dependency? Check our library registry!
*
* CLI  > platformio lib search "header:ESPAsyncTCP.h"
* Web  > https://platformio.org/lib/search?query=header:ESPAsyncTCP.h
*
*********************************************************************

 #include <ESPAsyncTCP.h>
                         ^
compilation terminated.
*** [/data/desktop/.pioenvs/desktop/src/esphome/components/api/api_connection.cpp.o] Error 1
In file included from src/esphome/components/api/api_server.cpp:1:0:
src/esphome/components/api/api_server.h:19:25: fatal error: ESPAsyncTCP.h: No such file or directory

The IP address range you mentioned is in the same subnet, so I don’t see why it wouldn’t work.

The face that you say you can see it in ESPHome is a good sign.

What happens when you look on the LOGS from ESPHome?

Also, would be useful to share the YAML that you have.

LOGS:
INFO Reading configuration /config/esphome/keukenblad.yaml... WARNING The esphomeyaml section has been renamed to esphome in 1.11.0. Please replace 'esphomeyaml:' in your configuration with 'esphome:'. INFO Starting log output from 192.168.2.110 using esphome API INFO Connecting to 192.168.2.110:6053 (192.168.2.110) WARNING Initial connection failed. The ESP might not be connected to WiFi yet (Error connecting to 192.168.2.110: [Errno 113] No route to host). Re-Trying in 1 seconds INFO Connecting to 192.168.2.110:6053 (192.168.2.110)

Yaml:

esphomeyaml:
  name: desktop
  platform: ESP8266
  board: esp8285

wifi:
  ssid: /
  password: /
  manual_ip:
   static_ip: 192.168.2.110
   gateway: 192.168.2.254
   subnet: 255.255.255.0

light:
  - platform: rgbw
    name: "desktop"
    red: red
    green: green
    blue: blue
    white: white
    effects:
      # Use default parameters:
      - random:
      # Customize parameters
      - random:
          name: "My Slow Random Effect"
          transition_length: 30s
          update_interval: 30s
      - random:
          name: "My Fast Random Effect"
          transition_length: 4s
          update_interval: 5s
      - strobe:
          name: Strobe Effect With Custom Values
          colors:
            - state: True
              brightness: 100%
              red: 100%
              green: 90%
              blue: 0%
              duration: 500ms
            - state: False
              duration: 250ms
            - state: True
              brightness: 100%
              red: 0%
              green: 100%
              blue: 0%
              duration: 500ms
              
#remote_receiver:
#  pin: GPIO4
#  dump: all

binary_sensor:
  - platform: status
    name: 'Desktop Led status'
    
output:
  - platform: esp8266_pwm
    pin: GPIO12
    frequency: 1000 Hz
    id: red
  - platform: esp8266_pwm
    pin: GPIO5
    frequency: 1000 Hz
    id: green
  - platform: esp8266_pwm
    pin: GPIO15
    frequency: 1000 Hz
    id: blue
  - platform: esp8266_pwm
    pin: GPIO13
    frequency: 1000 Hz
    id: white
# Enable logging
logger:
  level: DEBUG

# Enable Home Assistant API
api:
  password: '/'

ota:
  password: '/'


And your Magic Home controller is connected to the WiFi at that address?
And your gateway is correct? (192.168.2.254)

I see it connected in my network.
But the gateway is not the right one.
Also I see it light green up in esp home.
Yes I see it online at 193.168.2.1

This is the yaml that was uploaded in my home

Hmmm all seems a bit odd.

If you have manually set the gateway in the esp previously but it is now wrong, but it is still showing as online, something doesn’t seem right.

I would suggest pulling it out, and reflashing it with the correct details.

I personally don’t set IP addresses in the ESP and do it on the router instead.