This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
en:domotique:garagebox [2025/02/11 17:15] – [Adding a LTR390] kodein | en: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& | <gallery center& | ||
- | 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& | <gallery center& | ||
And it just works. | And it just works. | ||
- | + | <gallery center& | |
==== 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 | + | * OT1 on RX0 ESP (on older LD2420 firmware |
- | 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> | + | <code yaml>logger: |
- | tx_pin: | + | id: logz |
- | rx_pin: | + | […] |
+ | uart: | ||
+ | tx_pin: | ||
+ | rx_pin: | ||
baud_rate: 115200 | baud_rate: 115200 | ||
+ | id: radar | ||
</ | </ | ||
- | The rest of the code isn't complex but there are a lot of parameters so it's quite lengthier | + | That prevents from getting logs on the sensor channel and inversely.\\ |
- | <code yaml> | + | I'd rather define UART speed myself |
- | 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 |
- | - 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 | ||
- | </ | ||
===== 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 " | I want to evaluate how harder it would be to make the same device using " | ||
Because most of my current devices are using that radio communications, | Because most of my current devices are using that radio communications, |