# Homeyduino icm Ajax alarmsysteem

**URL:** <https://community.homey.app/t/homeyduino-icm-ajax-alarmsysteem/131425>\
**Category:** 🇳🇱 Nederlands (Dutch)\
**Tags:** app, homey-pro\
**Created:** [February 23, 2025, 7:31pm UTC](https://community.homey.app/t/homeyduino-icm-ajax-alarmsysteem/131425 "2025-02-23T19:31:19Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [March 7, 2025, 8:38pm UTC](https://community.homey.app/t/homeyduino-icm-ajax-alarmsysteem/131425/7 "2025-03-07T20:38:17Z")

</div>

Waar loop je vast?

In jouw code mis ik het _ **ota** _ password of de Home Assistant API encryption key  
(Ben benieuwd hoe je 'm dan in Home Assistant hebt toegevoegd)

Voorbeeld:

```auto
esphome:
  name: "presence-badkamer"
  friendly_name: "Presence Badkamer"
  includes:
    - uart_read_line_sensor_ld2410v3.h
  on_boot:
    priority: -100
    then:
      - script.execute: get_config

esp32:
  board: esp32-s2-saola-1
  framework:
    type: arduino

# Enable logging
logger:
  baud_rate: 0
  logs:
    sensor: INFO # DEBUG level with uart_target_output = overload!
    binary_sensor: INFO
    text_sensor: INFO

# Enable Home Assistant API
api:
  encryption:
    key: "XQxxxxxxxxxxxxxxXQ="

ota: 
  - platform: esphome 
    password: "99xxxxxxxxxxxxx99" 
    #num_attempts: 3 
    #safe_mode: none

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password
  #use_address: 192.168.1.10
  # Manual IP if needed
  #manual_ip: 
    #static_ip: 192.168.1.150
    #gateway: 192.168.1.1
    #subnet: 255.255.255.0

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Presence Badkamer Hotspot"
    password: "kfxxxxxxxxxxyz"

substitutions:
  device_name: dev-sensor

web_server:
  port: 80
  version: 2
  include_internal: true
  ota: false

captive_portal:

uart:
  id: uart_bus
  tx_pin:
    number: GPIO18
  rx_pin:
    number: GPIO33
  baud_rate: 256000
  parity: NONE
  stop_bits: 1

sensor:
  - platform: dht
    pin: GPIO9
    temperature:
      name: "Temperature"
      id: temperature
      filters:
        - offset: -1.0
        - sliding_window_moving_average:
            window_size: 10
            send_every: 10
    humidity:
      name: "Humidity"
      id: humidity
      filters:
        - sliding_window_moving_average:
            window_size: 10
            send_every: 10
    update_interval: 10s
    model: DHT11

```

Als je het IP adres van het ESP bordje weet, kun je hem toevoegen aan Homey als nieuw apparaat:

> [@\[HOW-TO\]\[Pro\] Using ESPhome devices - no additional hardware](https://community.homey.app/t/how-to-pro-using-esphome-devices-no-additional-hardware/90258/1):
>
> - On Homey, to _ **add or edit** _ a ESPhome device, always start with the “add new device” and select ‘ESPhome’ to start the _ **wizard** _
> - Pick what you’d like to do:
> - 
> - Configure a new physical device
> 
> - 
> - Update an existing physical device

---

_[View the full topic](https://community.homey.app/t/homeyduino-icm-ajax-alarmsysteem/131425)._
