Site Tools


en:domotique:garagebox

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:domotique:garagebox [2025/02/11 17:15] – [Adding a LTR390] kodeinen:domotique:garagebox [2025/02/18 14:21] (current) – [Résultats] kodein
Line 1: Line 1:
-FIXME **This page is not fully translated, yet. Please help completing the translation.**\\ //(remove this paragraph once the translation is finished)// 
- 
 ====== Why I want home automation for my separate garages too ====== ====== Why I want home automation for my separate garages too ======
 As William would say : //"Why not ?"// LOL As William would say : //"Why not ?"// LOL
Line 165: Line 163:
 After using the right address : After using the right address :
 <gallery center&nocrop&400x400&lightbox>:domotique:esphome:prinscreen_test001_0002.png Module is shown in Home Assistant, this time values are displayed.</gallery> <gallery center&nocrop&400x400&lightbox>:domotique:esphome:prinscreen_test001_0002.png Module is shown in Home Assistant, this time values are displayed.</gallery>
-Great success! (I'm making a note)+Huge success! (I'm making a note here) 
  
-==== Improvements ==== 
-I'll probably have to calibrate sensor readings. Pressure seems okay but there seem to be discrepancies in the temperature and humidity compared to a nearby zigbee sensor. 
  
 ==== Adding a LTR390 ==== ==== Adding a LTR390 ====
Line 184: Line 181:
 <gallery center&nocrop&400x400&lightbox>:domotique:esphome:test001_wiring_002.png Schematics of the wiring of the LTR390 on the previous wiring</gallery> <gallery center&nocrop&400x400&lightbox>:domotique:esphome:test001_wiring_002.png Schematics of the wiring of the LTR390 on the previous wiring</gallery>
 And it just works. And it just works.
- +<gallery center&nocrop&400x400&lightbox>:domotique:esphome:photo001.jpg Prototype wired and running | Wiring is messy : wrong wire colors, some of them far too long and ESP straddling two breadboards >.> </gallery>
 ==== Addind a LD2420 ==== ==== Addind a LD2420 ====
 This radar isn't harder to wire than the previous two devices : This radar isn't harder to wire than the previous two devices :
Line 191: Line 187:
   * GND on GND   * GND on GND
   * RX on TX0 ESP   * RX on TX0 ESP
-  * OT2 or OT1 (depending on the LD2420 firmware version) on RX0 ESP+  * OT1 on RX0 ESP (on older LD2420 firmware TX may be on OT2)
  
-Then you need to initialize the UART.  +Then you need to initialize the UART. Since we already use an UART for logs, you have to keep them from mixing up
-<code yaml>uart: +<code yaml>logger: 
-  tx_pin: GPIO01 +  id: logz 
-  rx_pin: GPIO03+[…] 
 +uart: 
 +  tx_pin: GPIO17 
 +  rx_pin: GPIO16
   baud_rate: 115200   baud_rate: 115200
 +  id: radar
 </code> </code>
-The rest of the code isn't complex but there are a lot of parameters so it's quite lengthier than the previous devices. +That prevents from getting logs on the sensor channel and inversely.\\ 
-<code yaml>ld2420:+I'd rather define UART speed myself than hope the default is the good setting. As for the OT2 pin, if your LD2420 is on older firmware you may need to set it to 256000.
  
-text_sensor: +The rest of the code isn't complex but there are a lot of parameters so it's quite lengthier than the previous devices. Moreover it's the default code I found on ESPHome website I did no change on it. So as of now, I'll only put what I change in the code to prevent having boring large slabs of code everywhere.
-  - platform: ld2420 +
-    fw_version: +
-      name: LD2420 Firmware+
  
-sensor: +So, with all this the sensor works surprisingly well. Let me be clear, distance readings are all over the place. But even if the PCB is facing the ceiling it detects me everywhere in the room. I had to go out of the room and move away from the door opening to be undetected.\\ 
-  - platform: ld2420 +I guess in an open space like in front of the garage and with a well calibrated sensor it should return more accurate readings.
-    moving_distance: +
-      name : Moving Distance+
  
-binary_sensor: +==== Automation ====
-  - platform: ld2420 +
-    has_target: +
-      name: Presence+
  
-select: 
-  - platform: ld2420 
-    operating_mode: 
-      name: Operating Mode 
-number: 
-  - platform: ld2420 
-    presence_timeout: 
-      name: Detection Presence Timeout 
-    min_gate_distance: 
-      name: Detection Gate Minimum 
-    max_gate_distance: 
-      name: Detection Gate Maximum 
- 
-    gate_select: 
-      name: Select Gate to Set 
-    still_threshold: 
-      name: Set Still Threshold Value 
-    move_threshold: 
-      name: Set Move Threshold Value 
- 
-    gate_move_sensitivity: 
-      name: Move Calibration Sensitivity Factor 
-    gate_still_sensitivity: 
-      name: Still Calibration Sensitivity Factor 
-</code> 
 ===== Now the same using zigbee ===== ===== Now the same using zigbee =====
 I want to evaluate how harder it would be to make the same device using "classic" code and zigbee communication. I want to evaluate how harder it would be to make the same device using "classic" code and zigbee communication.
 Because most of my current devices are using that radio communications, so it would be great to keep going with it. Because most of my current devices are using that radio communications, so it would be great to keep going with it.
en/domotique/garagebox.1739294119.txt.gz · Last modified: by kodein