Smart Home Automation Forum
Board for window contact sensors - Printable Version

+- Smart Home Automation Forum (https://www.kincony.com/forum)
+-- Forum: Technical Support (https://www.kincony.com/forum/forumdisplay.php?fid=1)
+--- Forum: Development (https://www.kincony.com/forum/forumdisplay.php?fid=4)
+--- Thread: Board for window contact sensors (/showthread.php?tid=3800)

Pages: 1 2


RE: Board for window contact sensors - threadstone - 01-20-2024

(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=PLQUWhE_6LeOQHyqaxkpndeTw6S3y9YM2V

@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!


RE: Board for window contact sensors - admin - 01-20-2024

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.


RE: Board for window contact sensors - threadstone - 01-26-2024

(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.


RE: Board for window contact sensors - admin - 01-27-2024

home assistant need sometime for update state.


RE: Board for window contact sensors - threadstone - 01-29-2024

(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.


RE: Board for window contact sensors - admin - 01-29-2024

ok, good.