Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Board for window contact sensors
#11
(01-14-2024, 10:55 AM)admin Wrote: 1. install home assistant on your server.
2. install ESPHome addon on home assistant
3. create controller in ESPHome, just copy our yaml file
4. download firmware by USB-Serial port.
here is video tour for ESPHome beginner: https://www.youtube.com/playlist?list=PL...w6S3y9YM2V

@admin thank you very much for the explaination. Today I have done the installation like you wrote. What should I say - it worked straight away :-)

But I still have two question:

1) I installed it with that code instead of the LAN-Code:

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

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Esphome-Web-*****"
    password: "***********"

When I want to switch to a connection via LAN, am I right that I have to replace the above code by this one?

Code:
# Example configuration entry
ethernet:
  type: LAN8720
  mdc_pin: GPIO23
  mdio_pin: GPIO18
  clk_mode: GPIO17_OUT
  phy_addr: 0

  # Optional manual IP
  manual_ip:
    static_ip: 192.168.1.198
    gateway: 192.168.1.1
    subnet: 255.255.255.0


2) If I decide to leave the connection via Wifi, is it also possible to set a static IP? Can I eventually copy "manual ip" part from the LAN-code to the Wifi-code?

Thank you in advance!
Reply
#12
1. Yes , you are right, suggest to use DHCP, just delete manual_ip commands:
# Optional manual IP
# manual_ip:
# static_ip: 192.168.1.198
# gateway: 192.168.1.1
# subnet: 255.255.255.0

2. Yes, you are right.
Reply
#13
(01-20-2024, 11:52 PM)admin Wrote: 1. Yes , you are right, suggest to use DHCP, just delete manual_ip commands:
  # Optional manual IP
#  manual_ip:
#  static_ip: 192.168.1.198
#    gateway: 192.168.1.1
#    subnet: 255.255.255.0

2. Yes, you are right.

Today I changed the code from Wifi to LAN. It works perfect but I have one problem.
When I disconnect the LAN-cable it still shows up as online (Home Assistant -> ESPHome). Is that normal? With Wifi it was directly shown as not available.
Reply
#14
home assistant need sometime for update state.
Reply
#15
(01-27-2024, 12:50 AM)admin Wrote: home assistant need sometime for update state.

Thank you very much for your really great support. At the weekend I have installed the board and all windows sensors. The switch from Wifi to LAN was very easy and all works really good. Also the integration via ESPHome in Home Assistant and the programming in Home Assistant was not to hard, so that I can see all windows now.
Reply
#16
ok, good.
Reply


Forum Jump:


Users browsing this thread: