mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-23 18:56:38 +00:00
Merge pull request #11359 from ascillato/patch-2
Add Support for multiple VL53L0X I2C Laser Distance Sensors
This commit is contained in:
commit
7b046aa992
@ -28,7 +28,7 @@
|
|||||||
* Use online command StateText to translate ON, OFF, HOLD and TOGGLE.
|
* Use online command StateText to translate ON, OFF, HOLD and TOGGLE.
|
||||||
* Use online command Prefix to translate cmnd, stat and tele.
|
* Use online command Prefix to translate cmnd, stat and tele.
|
||||||
*
|
*
|
||||||
* Updated until v9.2.0.4
|
* Updated until v9.3.1.1
|
||||||
\*********************************************************************/
|
\*********************************************************************/
|
||||||
|
|
||||||
//#define LANGUAGE_MODULE_NAME // Enable to display "Module Generic" (ie Spanish), Disable to display "Generic Module" (ie English)
|
//#define LANGUAGE_MODULE_NAME // Enable to display "Module Generic" (ie Spanish), Disable to display "Generic Module" (ie English)
|
||||||
@ -797,7 +797,10 @@
|
|||||||
#define D_SENSOR_WIEGAND_D1 "Wiegand D1"
|
#define D_SENSOR_WIEGAND_D1 "Wiegand D1"
|
||||||
#define D_SENSOR_NEOPOOL_TX "NeoPool Tx"
|
#define D_SENSOR_NEOPOOL_TX "NeoPool Tx"
|
||||||
#define D_SENSOR_NEOPOOL_RX "NeoPool Rx"
|
#define D_SENSOR_NEOPOOL_RX "NeoPool Rx"
|
||||||
|
#define D_SENSOR_VL53L0X_XSHUT "VL53L0X XSHUT"
|
||||||
|
#define D_NEW_ADDRESS "Setting address to"
|
||||||
|
#define D_OUT_OF_RANGE "Out of Range"
|
||||||
|
#define D_SENSOR_DETECTED "detected"
|
||||||
|
|
||||||
// Units
|
// Units
|
||||||
#define D_UNIT_AMPERE "A"
|
#define D_UNIT_AMPERE "A"
|
||||||
|
@ -28,7 +28,7 @@
|
|||||||
* Use online command StateText to translate ON, OFF, HOLD and TOGGLE.
|
* Use online command StateText to translate ON, OFF, HOLD and TOGGLE.
|
||||||
* Use online command Prefix to translate cmnd, stat and tele.
|
* Use online command Prefix to translate cmnd, stat and tele.
|
||||||
*
|
*
|
||||||
* Updated until v8.2.0.6
|
* Updated until v9.3.1.1
|
||||||
\*********************************************************************/
|
\*********************************************************************/
|
||||||
|
|
||||||
//#define LANGUAGE_MODULE_NAME // Enable to display "Module Generic" (ie Spanish), Disable to display "Generic Module" (ie English)
|
//#define LANGUAGE_MODULE_NAME // Enable to display "Module Generic" (ie Spanish), Disable to display "Generic Module" (ie English)
|
||||||
@ -796,7 +796,10 @@
|
|||||||
#define D_SENSOR_WIEGAND_D1 "Wiegand D1"
|
#define D_SENSOR_WIEGAND_D1 "Wiegand D1"
|
||||||
#define D_SENSOR_NEOPOOL_TX "NeoPool Tx"
|
#define D_SENSOR_NEOPOOL_TX "NeoPool Tx"
|
||||||
#define D_SENSOR_NEOPOOL_RX "NeoPool Rx"
|
#define D_SENSOR_NEOPOOL_RX "NeoPool Rx"
|
||||||
|
#define D_SENSOR_VL53L0X_XSHUT "VL53L0X XSHUT"
|
||||||
|
#define D_NEW_ADDRESS "Setting address to"
|
||||||
|
#define D_OUT_OF_RANGE "Out of Range"
|
||||||
|
#define D_SENSOR_DETECTED "detected"
|
||||||
|
|
||||||
// Units
|
// Units
|
||||||
#define D_UNIT_AMPERE "A"
|
#define D_UNIT_AMPERE "A"
|
||||||
|
@ -28,7 +28,7 @@
|
|||||||
* Use online command StateText to translate ON, OFF, HOLD and TOGGLE.
|
* Use online command StateText to translate ON, OFF, HOLD and TOGGLE.
|
||||||
* Use online command Prefix to translate cmnd, stat and tele.
|
* Use online command Prefix to translate cmnd, stat and tele.
|
||||||
*
|
*
|
||||||
* Updated until v6.5.0.9
|
* Updated until v9.3.1.1
|
||||||
\*********************************************************************/
|
\*********************************************************************/
|
||||||
|
|
||||||
//#define LANGUAGE_MODULE_NAME // Enable to display "Module Generic" (ie Spanish), Disable to display "Generic Module" (ie English)
|
//#define LANGUAGE_MODULE_NAME // Enable to display "Module Generic" (ie Spanish), Disable to display "Generic Module" (ie English)
|
||||||
@ -797,7 +797,10 @@
|
|||||||
#define D_SENSOR_WIEGAND_D1 "Wiegand D1"
|
#define D_SENSOR_WIEGAND_D1 "Wiegand D1"
|
||||||
#define D_SENSOR_NEOPOOL_TX "NeoPool Tx"
|
#define D_SENSOR_NEOPOOL_TX "NeoPool Tx"
|
||||||
#define D_SENSOR_NEOPOOL_RX "NeoPool Rx"
|
#define D_SENSOR_NEOPOOL_RX "NeoPool Rx"
|
||||||
|
#define D_SENSOR_VL53L0X_XSHUT "VL53L0X XSHUT"
|
||||||
|
#define D_NEW_ADDRESS "Setting address to"
|
||||||
|
#define D_OUT_OF_RANGE "Out of Range"
|
||||||
|
#define D_SENSOR_DETECTED "detected"
|
||||||
|
|
||||||
// Units
|
// Units
|
||||||
#define D_UNIT_AMPERE "A"
|
#define D_UNIT_AMPERE "A"
|
||||||
|
@ -28,7 +28,7 @@
|
|||||||
* Use online command StateText to translate ON, OFF, HOLD and TOGGLE.
|
* Use online command StateText to translate ON, OFF, HOLD and TOGGLE.
|
||||||
* Use online command Prefix to translate cmnd, stat and tele.
|
* Use online command Prefix to translate cmnd, stat and tele.
|
||||||
*
|
*
|
||||||
* Updated until v9.2.0.3
|
* Updated until v9.3.1.1
|
||||||
\*********************************************************************/
|
\*********************************************************************/
|
||||||
|
|
||||||
//#define LANGUAGE_MODULE_NAME // Enable to display "Module Generic" (ie Spanish), Disable to display "Generic Module" (ie English)
|
//#define LANGUAGE_MODULE_NAME // Enable to display "Module Generic" (ie Spanish), Disable to display "Generic Module" (ie English)
|
||||||
@ -797,7 +797,10 @@
|
|||||||
#define D_SENSOR_WIEGAND_D1 "Wiegand D1"
|
#define D_SENSOR_WIEGAND_D1 "Wiegand D1"
|
||||||
#define D_SENSOR_NEOPOOL_TX "NeoPool Tx"
|
#define D_SENSOR_NEOPOOL_TX "NeoPool Tx"
|
||||||
#define D_SENSOR_NEOPOOL_RX "NeoPool Rx"
|
#define D_SENSOR_NEOPOOL_RX "NeoPool Rx"
|
||||||
|
#define D_SENSOR_VL53L0X_XSHUT "VL53L0X XSHUT"
|
||||||
|
#define D_NEW_ADDRESS "Setting address to"
|
||||||
|
#define D_OUT_OF_RANGE "Out of Range"
|
||||||
|
#define D_SENSOR_DETECTED "detected"
|
||||||
|
|
||||||
// Units
|
// Units
|
||||||
#define D_UNIT_AMPERE "A"
|
#define D_UNIT_AMPERE "A"
|
||||||
|
@ -28,7 +28,7 @@
|
|||||||
* Use online command StateText to translate ON, OFF, HOLD and TOGGLE.
|
* Use online command StateText to translate ON, OFF, HOLD and TOGGLE.
|
||||||
* Use online command Prefix to translate cmnd, stat and tele.
|
* Use online command Prefix to translate cmnd, stat and tele.
|
||||||
*
|
*
|
||||||
* Updated until v6.5.0
|
* Updated until v9.3.1.1
|
||||||
\*********************************************************************/
|
\*********************************************************************/
|
||||||
|
|
||||||
#define LANGUAGE_MODULE_NAME // Enable to display "Module Generic" (ie Spanish), Disable to display "Generic Module" (ie English)
|
#define LANGUAGE_MODULE_NAME // Enable to display "Module Generic" (ie Spanish), Disable to display "Generic Module" (ie English)
|
||||||
@ -797,7 +797,10 @@
|
|||||||
#define D_SENSOR_WIEGAND_D1 "Wiegand D1"
|
#define D_SENSOR_WIEGAND_D1 "Wiegand D1"
|
||||||
#define D_SENSOR_NEOPOOL_TX "NeoPool Tx"
|
#define D_SENSOR_NEOPOOL_TX "NeoPool Tx"
|
||||||
#define D_SENSOR_NEOPOOL_RX "NeoPool Rx"
|
#define D_SENSOR_NEOPOOL_RX "NeoPool Rx"
|
||||||
|
#define D_SENSOR_VL53L0X_XSHUT "VL53L0X XSHUT"
|
||||||
|
#define D_NEW_ADDRESS "Setting address to"
|
||||||
|
#define D_OUT_OF_RANGE "Out of Range"
|
||||||
|
#define D_SENSOR_DETECTED "detected"
|
||||||
|
|
||||||
// Units
|
// Units
|
||||||
#define D_UNIT_AMPERE "A"
|
#define D_UNIT_AMPERE "A"
|
||||||
|
@ -28,7 +28,7 @@
|
|||||||
* Use online command StateText to translate ON, OFF, HOLD and TOGGLE.
|
* Use online command StateText to translate ON, OFF, HOLD and TOGGLE.
|
||||||
* Use online command Prefix to translate cmnd, stat and tele.
|
* Use online command Prefix to translate cmnd, stat and tele.
|
||||||
*
|
*
|
||||||
* Updated until v8.0.0.0
|
* Updated until v9.3.1.1
|
||||||
\*********************************************************************/
|
\*********************************************************************/
|
||||||
|
|
||||||
//#define LANGUAGE_MODULE_NAME // Enable to display "Module Generic" (ie Spanish), Disable to display "Generic Module" (ie English)
|
//#define LANGUAGE_MODULE_NAME // Enable to display "Module Generic" (ie Spanish), Disable to display "Generic Module" (ie English)
|
||||||
@ -797,7 +797,10 @@
|
|||||||
#define D_SENSOR_WIEGAND_D1 "Wiegand D1"
|
#define D_SENSOR_WIEGAND_D1 "Wiegand D1"
|
||||||
#define D_SENSOR_NEOPOOL_TX "NeoPool Tx"
|
#define D_SENSOR_NEOPOOL_TX "NeoPool Tx"
|
||||||
#define D_SENSOR_NEOPOOL_RX "NeoPool Rx"
|
#define D_SENSOR_NEOPOOL_RX "NeoPool Rx"
|
||||||
|
#define D_SENSOR_VL53L0X_XSHUT "VL53L0X XSHUT"
|
||||||
|
#define D_NEW_ADDRESS "Setting address to"
|
||||||
|
#define D_OUT_OF_RANGE "Out of Range"
|
||||||
|
#define D_SENSOR_DETECTED "detected"
|
||||||
|
|
||||||
// Units
|
// Units
|
||||||
#define D_UNIT_AMPERE "A"
|
#define D_UNIT_AMPERE "A"
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
es-ES.h - localization for Spanish - Spain for Tasmota
|
es-ES.h - localization for Spanish - Spain for Tasmota (translation also valid for all latinamerica)
|
||||||
|
|
||||||
Copyright (C) 2021 Adrian Scillato
|
Copyright (C) 2021 Adrian Scillato
|
||||||
|
|
||||||
@ -28,7 +28,7 @@
|
|||||||
* Use online command StateText to translate ON, OFF, HOLD and TOGGLE.
|
* Use online command StateText to translate ON, OFF, HOLD and TOGGLE.
|
||||||
* Use online command Prefix to translate cmnd, stat and tele.
|
* Use online command Prefix to translate cmnd, stat and tele.
|
||||||
*
|
*
|
||||||
* Updated until v9.2.0.3
|
* Updated until v9.3.1.1
|
||||||
\*********************************************************************/
|
\*********************************************************************/
|
||||||
|
|
||||||
#define LANGUAGE_MODULE_NAME // Enable to display "Module Generic" (ie Spanish), Disable to display "Generic Module" (ie English)
|
#define LANGUAGE_MODULE_NAME // Enable to display "Module Generic" (ie Spanish), Disable to display "Generic Module" (ie English)
|
||||||
@ -797,7 +797,10 @@
|
|||||||
#define D_SENSOR_WIEGAND_D1 "Wiegand D1"
|
#define D_SENSOR_WIEGAND_D1 "Wiegand D1"
|
||||||
#define D_SENSOR_NEOPOOL_TX "NeoPool Tx"
|
#define D_SENSOR_NEOPOOL_TX "NeoPool Tx"
|
||||||
#define D_SENSOR_NEOPOOL_RX "NeoPool Rx"
|
#define D_SENSOR_NEOPOOL_RX "NeoPool Rx"
|
||||||
|
#define D_SENSOR_VL53L0X_XSHUT "VL53L0X XSHUT"
|
||||||
|
#define D_NEW_ADDRESS "Cambiando dirección a"
|
||||||
|
#define D_OUT_OF_RANGE "Fuera de Rango"
|
||||||
|
#define D_SENSOR_DETECTED "detectado"
|
||||||
|
|
||||||
// Units
|
// Units
|
||||||
#define D_UNIT_AMPERE "A"
|
#define D_UNIT_AMPERE "A"
|
||||||
|
@ -1,14 +1,18 @@
|
|||||||
/*
|
/*
|
||||||
fr-FR.h - localization for French - France for Tasmota
|
fr-FR.h - localization for French - France for Tasmota
|
||||||
|
|
||||||
Copyright (C) 2021 Olivier Francais
|
Copyright (C) 2021 Olivier Francais
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
the Free Software Foundation, either version 3 of the License, or
|
||||||
(at your option) any later version.
|
(at your option) any later version.
|
||||||
|
|
||||||
This program is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful,
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
GNU General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
@ -24,7 +28,7 @@
|
|||||||
* Use online command StateText to translate ON, OFF, HOLD and TOGGLE.
|
* Use online command StateText to translate ON, OFF, HOLD and TOGGLE.
|
||||||
* Use online command Prefix to translate cmnd, stat and tele.
|
* Use online command Prefix to translate cmnd, stat and tele.
|
||||||
*
|
*
|
||||||
* Updated until v9.2.0.3
|
* Updated until v9.3.1.1
|
||||||
\*********************************************************************/
|
\*********************************************************************/
|
||||||
|
|
||||||
#define LANGUAGE_MODULE_NAME // Enable to display "Module Generic" (ie Spanish), Disable to display "Generic Module" (ie English)
|
#define LANGUAGE_MODULE_NAME // Enable to display "Module Generic" (ie Spanish), Disable to display "Generic Module" (ie English)
|
||||||
@ -793,7 +797,10 @@
|
|||||||
#define D_SENSOR_WIEGAND_D1 "Wiegand D1"
|
#define D_SENSOR_WIEGAND_D1 "Wiegand D1"
|
||||||
#define D_SENSOR_NEOPOOL_TX "NeoPool Tx"
|
#define D_SENSOR_NEOPOOL_TX "NeoPool Tx"
|
||||||
#define D_SENSOR_NEOPOOL_RX "NeoPool Rx"
|
#define D_SENSOR_NEOPOOL_RX "NeoPool Rx"
|
||||||
|
#define D_SENSOR_VL53L0X_XSHUT "VL53L0X XSHUT"
|
||||||
|
#define D_NEW_ADDRESS "Setting address to"
|
||||||
|
#define D_OUT_OF_RANGE "Out of Range"
|
||||||
|
#define D_SENSOR_DETECTED "detected"
|
||||||
|
|
||||||
// Units
|
// Units
|
||||||
#define D_UNIT_AMPERE "A"
|
#define D_UNIT_AMPERE "A"
|
||||||
|
@ -28,7 +28,7 @@
|
|||||||
* Use online command StateText to translate ON, OFF, HOLD and TOGGLE.
|
* Use online command StateText to translate ON, OFF, HOLD and TOGGLE.
|
||||||
* Use online command Prefix to translate cmnd, stat and tele.
|
* Use online command Prefix to translate cmnd, stat and tele.
|
||||||
*
|
*
|
||||||
* Updated until v9.2.0.4
|
* Updated until v9.3.1.1
|
||||||
\*********************************************************************/
|
\*********************************************************************/
|
||||||
|
|
||||||
//#define LANGUAGE_MODULE_NAME // Enable to display "Module Generic" (ie Spanish), Disable to display "Generic Module" (ie English)
|
//#define LANGUAGE_MODULE_NAME // Enable to display "Module Generic" (ie Spanish), Disable to display "Generic Module" (ie English)
|
||||||
@ -797,7 +797,10 @@
|
|||||||
#define D_SENSOR_WIEGAND_D1 "Wiegand D1"
|
#define D_SENSOR_WIEGAND_D1 "Wiegand D1"
|
||||||
#define D_SENSOR_NEOPOOL_TX "NeoPool Tx"
|
#define D_SENSOR_NEOPOOL_TX "NeoPool Tx"
|
||||||
#define D_SENSOR_NEOPOOL_RX "NeoPool Rx"
|
#define D_SENSOR_NEOPOOL_RX "NeoPool Rx"
|
||||||
|
#define D_SENSOR_VL53L0X_XSHUT "VL53L0X XSHUT"
|
||||||
|
#define D_NEW_ADDRESS "Setting address to"
|
||||||
|
#define D_OUT_OF_RANGE "Out of Range"
|
||||||
|
#define D_SENSOR_DETECTED "detected"
|
||||||
|
|
||||||
// Units
|
// Units
|
||||||
#define D_UNIT_AMPERE "A"
|
#define D_UNIT_AMPERE "A"
|
||||||
|
@ -28,7 +28,7 @@
|
|||||||
* Use online command StateText to translate ON, OFF, HOLD and TOGGLE.
|
* Use online command StateText to translate ON, OFF, HOLD and TOGGLE.
|
||||||
* Use online command Prefix to translate cmnd, stat and tele.
|
* Use online command Prefix to translate cmnd, stat and tele.
|
||||||
*
|
*
|
||||||
* Updated until v5.14.0b
|
* Updated until v9.3.1.1
|
||||||
\*********************************************************************/
|
\*********************************************************************/
|
||||||
|
|
||||||
//#define LANGUAGE_MODULE_NAME // Enable to display "Module Generic" (ie Spanish), Disable to display "Generic Module" (ie English)
|
//#define LANGUAGE_MODULE_NAME // Enable to display "Module Generic" (ie Spanish), Disable to display "Generic Module" (ie English)
|
||||||
@ -797,7 +797,10 @@
|
|||||||
#define D_SENSOR_WIEGAND_D1 "Wiegand D1"
|
#define D_SENSOR_WIEGAND_D1 "Wiegand D1"
|
||||||
#define D_SENSOR_NEOPOOL_TX "NeoPool Tx"
|
#define D_SENSOR_NEOPOOL_TX "NeoPool Tx"
|
||||||
#define D_SENSOR_NEOPOOL_RX "NeoPool Rx"
|
#define D_SENSOR_NEOPOOL_RX "NeoPool Rx"
|
||||||
|
#define D_SENSOR_VL53L0X_XSHUT "VL53L0X XSHUT"
|
||||||
|
#define D_NEW_ADDRESS "Setting address to"
|
||||||
|
#define D_OUT_OF_RANGE "Out of Range"
|
||||||
|
#define D_SENSOR_DETECTED "detected"
|
||||||
|
|
||||||
// Units
|
// Units
|
||||||
#define D_UNIT_AMPERE "A"
|
#define D_UNIT_AMPERE "A"
|
||||||
|
@ -28,7 +28,7 @@
|
|||||||
* Use online command StateText to translate ON, OFF, HOLD and TOGGLE.
|
* Use online command StateText to translate ON, OFF, HOLD and TOGGLE.
|
||||||
* Use online command Prefix to translate cmnd, stat and tele.
|
* Use online command Prefix to translate cmnd, stat and tele.
|
||||||
*
|
*
|
||||||
* Updated until v5.12.0e
|
* Updated until v9.3.1.1
|
||||||
\*********************************************************************/
|
\*********************************************************************/
|
||||||
|
|
||||||
//#define LANGUAGE_MODULE_NAME // Enable to display "Module Generic" (ie Spanish), Disable to display "Generic Module" (ie English)
|
//#define LANGUAGE_MODULE_NAME // Enable to display "Module Generic" (ie Spanish), Disable to display "Generic Module" (ie English)
|
||||||
@ -797,7 +797,10 @@
|
|||||||
#define D_SENSOR_WIEGAND_D1 "Wiegand D1"
|
#define D_SENSOR_WIEGAND_D1 "Wiegand D1"
|
||||||
#define D_SENSOR_NEOPOOL_TX "NeoPool Tx"
|
#define D_SENSOR_NEOPOOL_TX "NeoPool Tx"
|
||||||
#define D_SENSOR_NEOPOOL_RX "NeoPool Rx"
|
#define D_SENSOR_NEOPOOL_RX "NeoPool Rx"
|
||||||
|
#define D_SENSOR_VL53L0X_XSHUT "VL53L0X XSHUT"
|
||||||
|
#define D_NEW_ADDRESS "Setting address to"
|
||||||
|
#define D_OUT_OF_RANGE "Out of Range"
|
||||||
|
#define D_SENSOR_DETECTED "detected"
|
||||||
|
|
||||||
// Units
|
// Units
|
||||||
#define D_UNIT_AMPERE "A"
|
#define D_UNIT_AMPERE "A"
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
it-IT.h - localization for Italian - Italy for Tasmota
|
it-IT.h - localization for Italian - Italy for Tasmota
|
||||||
|
|
||||||
Copyright (C) 2021 Gennaro Tortone - some mods by Antonio Fragola - Updated by bovirus - rev. 03.03.2021
|
Copyright (C) 2021 Gennaro Tortone, Antonio Fragola, Bovirus and Adrian Scillato
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
@ -28,7 +28,7 @@
|
|||||||
* Use online command StateText to translate ON, OFF, HOLD and TOGGLE.
|
* Use online command StateText to translate ON, OFF, HOLD and TOGGLE.
|
||||||
* Use online command Prefix to translate cmnd, stat and tele.
|
* Use online command Prefix to translate cmnd, stat and tele.
|
||||||
*
|
*
|
||||||
* Updated until v6.0.0a
|
* Updated until v9.3.1.1
|
||||||
\*********************************************************************/
|
\*********************************************************************/
|
||||||
|
|
||||||
#define LANGUAGE_MODULE_NAME // Enable to display "Module Generic" (ie Spanish), Disable to display "Generic Module" (ie English)
|
#define LANGUAGE_MODULE_NAME // Enable to display "Module Generic" (ie Spanish), Disable to display "Generic Module" (ie English)
|
||||||
@ -797,6 +797,10 @@
|
|||||||
#define D_SENSOR_WIEGAND_D1 "Wiegand - D1"
|
#define D_SENSOR_WIEGAND_D1 "Wiegand - D1"
|
||||||
#define D_SENSOR_NEOPOOL_TX "NeoPool - TX"
|
#define D_SENSOR_NEOPOOL_TX "NeoPool - TX"
|
||||||
#define D_SENSOR_NEOPOOL_RX "NeoPool - RX"
|
#define D_SENSOR_NEOPOOL_RX "NeoPool - RX"
|
||||||
|
#define D_SENSOR_VL53L0X_XSHUT "VL53L0X XSHUT"
|
||||||
|
#define D_NEW_ADDRESS "Cambio di indirizzo a"
|
||||||
|
#define D_OUT_OF_RANGE "Fuori dal limite"
|
||||||
|
#define D_SENSOR_DETECTED "rilevato"
|
||||||
|
|
||||||
// Units
|
// Units
|
||||||
#define D_UNIT_AMPERE "A"
|
#define D_UNIT_AMPERE "A"
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
ko-KO.h - localization for Korean - Korean for Tasmota
|
ko-KO.h - localization for Korean - Korean for Tasmota
|
||||||
|
|
||||||
Copyright (C) 2021 Theo Arends (translated by NyaamZ)
|
Copyright (C) 2021 NyaamZ
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
@ -28,7 +28,7 @@
|
|||||||
* Use online command StateText to translate ON, OFF, HOLD and TOGGLE.
|
* Use online command StateText to translate ON, OFF, HOLD and TOGGLE.
|
||||||
* Use online command Prefix to translate cmnd, stat and tele.
|
* Use online command Prefix to translate cmnd, stat and tele.
|
||||||
*
|
*
|
||||||
* Updated until v6.2.1.11
|
* Updated until v9.3.1.1
|
||||||
\*********************************************************************/
|
\*********************************************************************/
|
||||||
|
|
||||||
//#define LANGUAGE_MODULE_NAME // Enable to display "Module Generic" (ie Spanish), Disable to display "Generic Module" (ie English)
|
//#define LANGUAGE_MODULE_NAME // Enable to display "Module Generic" (ie Spanish), Disable to display "Generic Module" (ie English)
|
||||||
@ -797,7 +797,10 @@
|
|||||||
#define D_SENSOR_WIEGAND_D1 "Wiegand D1"
|
#define D_SENSOR_WIEGAND_D1 "Wiegand D1"
|
||||||
#define D_SENSOR_NEOPOOL_TX "NeoPool Tx"
|
#define D_SENSOR_NEOPOOL_TX "NeoPool Tx"
|
||||||
#define D_SENSOR_NEOPOOL_RX "NeoPool Rx"
|
#define D_SENSOR_NEOPOOL_RX "NeoPool Rx"
|
||||||
|
#define D_SENSOR_VL53L0X_XSHUT "VL53L0X XSHUT"
|
||||||
|
#define D_NEW_ADDRESS "Setting address to"
|
||||||
|
#define D_OUT_OF_RANGE "Out of Range"
|
||||||
|
#define D_SENSOR_DETECTED "detected"
|
||||||
|
|
||||||
// Units
|
// Units
|
||||||
#define D_UNIT_AMPERE "A"
|
#define D_UNIT_AMPERE "A"
|
||||||
|
@ -28,7 +28,7 @@
|
|||||||
* Use online command StateText to translate ON, OFF, HOLD and TOGGLE.
|
* Use online command StateText to translate ON, OFF, HOLD and TOGGLE.
|
||||||
* Use online command Prefix to translate cmnd, stat and tele.
|
* Use online command Prefix to translate cmnd, stat and tele.
|
||||||
*
|
*
|
||||||
* Updated until v9.2.0.4
|
* Updated until v9.3.1.1
|
||||||
\*********************************************************************/
|
\*********************************************************************/
|
||||||
|
|
||||||
//#define LANGUAGE_MODULE_NAME // Enable to display "Module Generic" (ie Spanish), Disable to display "Generic Module" (ie English)
|
//#define LANGUAGE_MODULE_NAME // Enable to display "Module Generic" (ie Spanish), Disable to display "Generic Module" (ie English)
|
||||||
@ -797,7 +797,10 @@
|
|||||||
#define D_SENSOR_WIEGAND_D1 "Wiegand D1"
|
#define D_SENSOR_WIEGAND_D1 "Wiegand D1"
|
||||||
#define D_SENSOR_NEOPOOL_TX "NeoPool Tx"
|
#define D_SENSOR_NEOPOOL_TX "NeoPool Tx"
|
||||||
#define D_SENSOR_NEOPOOL_RX "NeoPool Rx"
|
#define D_SENSOR_NEOPOOL_RX "NeoPool Rx"
|
||||||
|
#define D_SENSOR_VL53L0X_XSHUT "VL53L0X XSHUT"
|
||||||
|
#define D_NEW_ADDRESS "Setting address to"
|
||||||
|
#define D_OUT_OF_RANGE "Out of Range"
|
||||||
|
#define D_SENSOR_DETECTED "detected"
|
||||||
|
|
||||||
// Units
|
// Units
|
||||||
#define D_UNIT_AMPERE "A"
|
#define D_UNIT_AMPERE "A"
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
pl-PL-d.h - localization for Polish with diacritics - Poland for Tasmota
|
pl-PL-d.h - localization for Polish with diacritics - Poland for Tasmota
|
||||||
|
|
||||||
Copyright (C) 2021 Theo Arends (translated by roblad - Robert L., upgraded by R. Turala)
|
Copyright (C) 2021 Roblad (Robert L.) and R. Turala
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
@ -28,7 +28,7 @@
|
|||||||
* Use online command StateText to translate ON, OFF, HOLD and TOGGLE.
|
* Use online command StateText to translate ON, OFF, HOLD and TOGGLE.
|
||||||
* Use online command Prefix to translate cmnd, stat and tele.
|
* Use online command Prefix to translate cmnd, stat and tele.
|
||||||
*
|
*
|
||||||
* Updated until v5.12.0d
|
* Updated until v9.3.1.1
|
||||||
\*********************************************************************/
|
\*********************************************************************/
|
||||||
|
|
||||||
//#define LANGUAGE_MODULE_NAME // Enable to display "Module Generic" (ie Spanish), Disable to display "Generic Module" (ie English)
|
//#define LANGUAGE_MODULE_NAME // Enable to display "Module Generic" (ie Spanish), Disable to display "Generic Module" (ie English)
|
||||||
@ -797,7 +797,10 @@
|
|||||||
#define D_SENSOR_WIEGAND_D1 "Wiegand D1"
|
#define D_SENSOR_WIEGAND_D1 "Wiegand D1"
|
||||||
#define D_SENSOR_NEOPOOL_TX "NeoPool Tx"
|
#define D_SENSOR_NEOPOOL_TX "NeoPool Tx"
|
||||||
#define D_SENSOR_NEOPOOL_RX "NeoPool Rx"
|
#define D_SENSOR_NEOPOOL_RX "NeoPool Rx"
|
||||||
|
#define D_SENSOR_VL53L0X_XSHUT "VL53L0X XSHUT"
|
||||||
|
#define D_NEW_ADDRESS "Setting address to"
|
||||||
|
#define D_OUT_OF_RANGE "Out of Range"
|
||||||
|
#define D_SENSOR_DETECTED "detected"
|
||||||
|
|
||||||
// Units
|
// Units
|
||||||
#define D_UNIT_AMPERE "A"
|
#define D_UNIT_AMPERE "A"
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
pt-BR.h - localization for Portuguese - Brazil for Tasmota
|
pt-BR.h - localization for Portuguese - Brazil for Tasmota
|
||||||
|
|
||||||
Copyright (C) 2021 Fabiano Bovo
|
Copyright (C) 2021 Fabiano Bovo and Adrian Scillato
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
@ -28,7 +28,7 @@
|
|||||||
* Use online command StateText to translate ON, OFF, HOLD and TOGGLE.
|
* Use online command StateText to translate ON, OFF, HOLD and TOGGLE.
|
||||||
* Use online command Prefix to translate cmnd, stat and tele.
|
* Use online command Prefix to translate cmnd, stat and tele.
|
||||||
*
|
*
|
||||||
* Updated until v7.0.0.1
|
* Updated until v9.3.1.1
|
||||||
\*********************************************************************/
|
\*********************************************************************/
|
||||||
|
|
||||||
#define LANGUAGE_MODULE_NAME // Enable to display "Module Generic" (ie Spanish), Disable to display "Generic Module" (ie English)
|
#define LANGUAGE_MODULE_NAME // Enable to display "Module Generic" (ie Spanish), Disable to display "Generic Module" (ie English)
|
||||||
@ -797,7 +797,10 @@
|
|||||||
#define D_SENSOR_WIEGAND_D1 "Wiegand D1"
|
#define D_SENSOR_WIEGAND_D1 "Wiegand D1"
|
||||||
#define D_SENSOR_NEOPOOL_TX "NeoPool Tx"
|
#define D_SENSOR_NEOPOOL_TX "NeoPool Tx"
|
||||||
#define D_SENSOR_NEOPOOL_RX "NeoPool Rx"
|
#define D_SENSOR_NEOPOOL_RX "NeoPool Rx"
|
||||||
|
#define D_SENSOR_VL53L0X_XSHUT "VL53L0X XSHUT"
|
||||||
|
#define D_NEW_ADDRESS "Mudança de endereço para"
|
||||||
|
#define D_OUT_OF_RANGE "Fora de Alcance"
|
||||||
|
#define D_SENSOR_DETECTED "detectou"
|
||||||
|
|
||||||
// Units
|
// Units
|
||||||
#define D_UNIT_AMPERE "A"
|
#define D_UNIT_AMPERE "A"
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
pt-PT.h - localization for Portuguese - Portugal for Tasmota
|
pt-PT.h - localization for Portuguese - Portugal for Tasmota
|
||||||
|
|
||||||
Copyright (C) 2021 Paulo Paiva
|
Copyright (C) 2021 Paulo Paiva and Adrian Scillato
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
@ -28,7 +28,7 @@
|
|||||||
* Use online command StateText to translate ON, OFF, HOLD and TOGGLE.
|
* Use online command StateText to translate ON, OFF, HOLD and TOGGLE.
|
||||||
* Use online command Prefix to translate cmnd, stat and tele.
|
* Use online command Prefix to translate cmnd, stat and tele.
|
||||||
*
|
*
|
||||||
* Updated until v7.0.0.1
|
* Updated until v9.3.1.1
|
||||||
\*********************************************************************/
|
\*********************************************************************/
|
||||||
|
|
||||||
#define LANGUAGE_MODULE_NAME // Enable to display "Module Generic" (ie Spanish), Disable to display "Generic Module" (ie English)
|
#define LANGUAGE_MODULE_NAME // Enable to display "Module Generic" (ie Spanish), Disable to display "Generic Module" (ie English)
|
||||||
@ -797,7 +797,10 @@
|
|||||||
#define D_SENSOR_WIEGAND_D1 "Wiegand D1"
|
#define D_SENSOR_WIEGAND_D1 "Wiegand D1"
|
||||||
#define D_SENSOR_NEOPOOL_TX "NeoPool Tx"
|
#define D_SENSOR_NEOPOOL_TX "NeoPool Tx"
|
||||||
#define D_SENSOR_NEOPOOL_RX "NeoPool Rx"
|
#define D_SENSOR_NEOPOOL_RX "NeoPool Rx"
|
||||||
|
#define D_SENSOR_VL53L0X_XSHUT "VL53L0X XSHUT"
|
||||||
|
#define D_NEW_ADDRESS "Mudança de endereço para"
|
||||||
|
#define D_OUT_OF_RANGE "Fora de Alcance"
|
||||||
|
#define D_SENSOR_DETECTED "detectou"
|
||||||
|
|
||||||
// Units
|
// Units
|
||||||
#define D_UNIT_AMPERE "A"
|
#define D_UNIT_AMPERE "A"
|
||||||
|
@ -28,7 +28,7 @@
|
|||||||
* Use online command StateText to translate ON, OFF, HOLD and TOGGLE.
|
* Use online command StateText to translate ON, OFF, HOLD and TOGGLE.
|
||||||
* Use online command Prefix to translate cmnd, stat and tele.
|
* Use online command Prefix to translate cmnd, stat and tele.
|
||||||
*
|
*
|
||||||
* Updated until v8.1.0.10
|
* Updated until v9.3.1.1
|
||||||
\*********************************************************************/
|
\*********************************************************************/
|
||||||
|
|
||||||
//#define LANGUAGE_MODULE_NAME // Enable to display "Module Generic" (ie Spanish), Disable to display "Generic Module" (ie English)
|
//#define LANGUAGE_MODULE_NAME // Enable to display "Module Generic" (ie Spanish), Disable to display "Generic Module" (ie English)
|
||||||
@ -797,7 +797,10 @@
|
|||||||
#define D_SENSOR_WIEGAND_D1 "Wiegand D1"
|
#define D_SENSOR_WIEGAND_D1 "Wiegand D1"
|
||||||
#define D_SENSOR_NEOPOOL_TX "NeoPool Tx"
|
#define D_SENSOR_NEOPOOL_TX "NeoPool Tx"
|
||||||
#define D_SENSOR_NEOPOOL_RX "NeoPool Rx"
|
#define D_SENSOR_NEOPOOL_RX "NeoPool Rx"
|
||||||
|
#define D_SENSOR_VL53L0X_XSHUT "VL53L0X XSHUT"
|
||||||
|
#define D_NEW_ADDRESS "Setting address to"
|
||||||
|
#define D_OUT_OF_RANGE "Out of Range"
|
||||||
|
#define D_SENSOR_DETECTED "detected"
|
||||||
|
|
||||||
// Units
|
// Units
|
||||||
#define D_UNIT_AMPERE "A"
|
#define D_UNIT_AMPERE "A"
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
ru-RU.h - localization for Russian - Rissia for Tasmota
|
ru-RU.h - localization for Russian - Russia for Tasmota
|
||||||
|
|
||||||
Copyright (C) 2021 Theo Arends / roman-vn
|
Copyright (C) 2021 Roman-vn
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
@ -28,7 +28,7 @@
|
|||||||
* Use online command StateText to translate ON, OFF, HOLD and TOGGLE.
|
* Use online command StateText to translate ON, OFF, HOLD and TOGGLE.
|
||||||
* Use online command Prefix to translate cmnd, stat and tele.
|
* Use online command Prefix to translate cmnd, stat and tele.
|
||||||
*
|
*
|
||||||
* Updated until v5.12.0b
|
* Updated until v9.3.1.1
|
||||||
\*********************************************************************/
|
\*********************************************************************/
|
||||||
|
|
||||||
//#define LANGUAGE_MODULE_NAME // Enable to display "Module Generic" (ie Spanish), Disable to display "Generic Module" (ie English)
|
//#define LANGUAGE_MODULE_NAME // Enable to display "Module Generic" (ie Spanish), Disable to display "Generic Module" (ie English)
|
||||||
@ -797,7 +797,10 @@
|
|||||||
#define D_SENSOR_WIEGAND_D1 "Wiegand D1"
|
#define D_SENSOR_WIEGAND_D1 "Wiegand D1"
|
||||||
#define D_SENSOR_NEOPOOL_TX "NeoPool Tx"
|
#define D_SENSOR_NEOPOOL_TX "NeoPool Tx"
|
||||||
#define D_SENSOR_NEOPOOL_RX "NeoPool Rx"
|
#define D_SENSOR_NEOPOOL_RX "NeoPool Rx"
|
||||||
|
#define D_SENSOR_VL53L0X_XSHUT "VL53L0X XSHUT"
|
||||||
|
#define D_NEW_ADDRESS "Setting address to"
|
||||||
|
#define D_OUT_OF_RANGE "Out of Range"
|
||||||
|
#define D_SENSOR_DETECTED "detected"
|
||||||
|
|
||||||
// Units
|
// Units
|
||||||
#define D_UNIT_AMPERE "А"
|
#define D_UNIT_AMPERE "А"
|
||||||
|
@ -28,7 +28,7 @@
|
|||||||
* Use online command StateText to translate ON, OFF, HOLD and TOGGLE.
|
* Use online command StateText to translate ON, OFF, HOLD and TOGGLE.
|
||||||
* Use online command Prefix to translate cmnd, stat and tele.
|
* Use online command Prefix to translate cmnd, stat and tele.
|
||||||
*
|
*
|
||||||
* Updated until v6.2.1.14
|
* Updated until v9.3.1.1
|
||||||
\*********************************************************************/
|
\*********************************************************************/
|
||||||
|
|
||||||
//#define LANGUAGE_MODULE_NAME // Enable to display "Module Generic" (ie Spanish), Disable to display "Generic Module" (ie English)
|
//#define LANGUAGE_MODULE_NAME // Enable to display "Module Generic" (ie Spanish), Disable to display "Generic Module" (ie English)
|
||||||
@ -797,7 +797,10 @@
|
|||||||
#define D_SENSOR_WIEGAND_D1 "Wiegand D1"
|
#define D_SENSOR_WIEGAND_D1 "Wiegand D1"
|
||||||
#define D_SENSOR_NEOPOOL_TX "NeoPool Tx"
|
#define D_SENSOR_NEOPOOL_TX "NeoPool Tx"
|
||||||
#define D_SENSOR_NEOPOOL_RX "NeoPool Rx"
|
#define D_SENSOR_NEOPOOL_RX "NeoPool Rx"
|
||||||
|
#define D_SENSOR_VL53L0X_XSHUT "VL53L0X XSHUT"
|
||||||
|
#define D_NEW_ADDRESS "Setting address to"
|
||||||
|
#define D_OUT_OF_RANGE "Out of Range"
|
||||||
|
#define D_SENSOR_DETECTED "detected"
|
||||||
|
|
||||||
// Units
|
// Units
|
||||||
#define D_UNIT_AMPERE "A"
|
#define D_UNIT_AMPERE "A"
|
||||||
|
@ -28,7 +28,7 @@
|
|||||||
* Use online command StateText to translate ON, OFF, HOLD and TOGGLE.
|
* Use online command StateText to translate ON, OFF, HOLD and TOGGLE.
|
||||||
* Use online command Prefix to translate cmnd, stat and tele.
|
* Use online command Prefix to translate cmnd, stat and tele.
|
||||||
*
|
*
|
||||||
* Updated until v6.2.1.11
|
* Updated until v9.3.1.1
|
||||||
\*********************************************************************/
|
\*********************************************************************/
|
||||||
|
|
||||||
//#define LANGUAGE_MODULE_NAME // Enable to display "Module Generic" (ie Spanish), Disable to display "Generic Module" (ie English)
|
//#define LANGUAGE_MODULE_NAME // Enable to display "Module Generic" (ie Spanish), Disable to display "Generic Module" (ie English)
|
||||||
@ -797,7 +797,10 @@
|
|||||||
#define D_SENSOR_WIEGAND_D1 "Wiegand D1"
|
#define D_SENSOR_WIEGAND_D1 "Wiegand D1"
|
||||||
#define D_SENSOR_NEOPOOL_TX "NeoPool Tx"
|
#define D_SENSOR_NEOPOOL_TX "NeoPool Tx"
|
||||||
#define D_SENSOR_NEOPOOL_RX "NeoPool Rx"
|
#define D_SENSOR_NEOPOOL_RX "NeoPool Rx"
|
||||||
|
#define D_SENSOR_VL53L0X_XSHUT "VL53L0X XSHUT"
|
||||||
|
#define D_NEW_ADDRESS "Setting address to"
|
||||||
|
#define D_OUT_OF_RANGE "Out of Range"
|
||||||
|
#define D_SENSOR_DETECTED "detected"
|
||||||
|
|
||||||
// Units
|
// Units
|
||||||
#define D_UNIT_AMPERE "A"
|
#define D_UNIT_AMPERE "A"
|
||||||
|
@ -28,7 +28,7 @@
|
|||||||
* Use online command StateText to translate ON, OFF, HOLD and TOGGLE.
|
* Use online command StateText to translate ON, OFF, HOLD and TOGGLE.
|
||||||
* Use online command Prefix to translate cmnd, stat and tele.
|
* Use online command Prefix to translate cmnd, stat and tele.
|
||||||
*
|
*
|
||||||
* Updated until v6.1.1
|
* Updated until v9.3.1.1
|
||||||
\*********************************************************************/
|
\*********************************************************************/
|
||||||
|
|
||||||
//#define LANGUAGE_MODULE_NAME // Enable to display "Module Generic" (ie Spanish), Disable to display "Generic Module" (ie English)
|
//#define LANGUAGE_MODULE_NAME // Enable to display "Module Generic" (ie Spanish), Disable to display "Generic Module" (ie English)
|
||||||
@ -797,7 +797,10 @@
|
|||||||
#define D_SENSOR_WIEGAND_D1 "Wiegand D1"
|
#define D_SENSOR_WIEGAND_D1 "Wiegand D1"
|
||||||
#define D_SENSOR_NEOPOOL_TX "NeoPool Tx"
|
#define D_SENSOR_NEOPOOL_TX "NeoPool Tx"
|
||||||
#define D_SENSOR_NEOPOOL_RX "NeoPool Rx"
|
#define D_SENSOR_NEOPOOL_RX "NeoPool Rx"
|
||||||
|
#define D_SENSOR_VL53L0X_XSHUT "VL53L0X XSHUT"
|
||||||
|
#define D_NEW_ADDRESS "Setting address to"
|
||||||
|
#define D_OUT_OF_RANGE "Out of Range"
|
||||||
|
#define D_SENSOR_DETECTED "detected"
|
||||||
|
|
||||||
// Units
|
// Units
|
||||||
#define D_UNIT_AMPERE "A"
|
#define D_UNIT_AMPERE "A"
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
uk-UA.h - localization for Ukrainian - Ukraine for Tasmota
|
uk-UA.h - localization for Ukrainian - Ukraine for Tasmota
|
||||||
|
|
||||||
Copyright (C) 2021 Theo Arends / vadym-adik
|
Copyright (C) 2021 Vadym-adik
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
@ -28,7 +28,7 @@
|
|||||||
* Use online command StateText to translate ON, OFF, HOLD and TOGGLE.
|
* Use online command StateText to translate ON, OFF, HOLD and TOGGLE.
|
||||||
* Use online command Prefix to translate cmnd, stat and tele.
|
* Use online command Prefix to translate cmnd, stat and tele.
|
||||||
*
|
*
|
||||||
* Updated until v5.14.0a
|
* Updated until v9.3.1.1
|
||||||
\*********************************************************************/
|
\*********************************************************************/
|
||||||
|
|
||||||
//#define LANGUAGE_MODULE_NAME // Enable to display "Module Generic" (ie Spanish), Disable to display "Generic Module" (ie English)
|
//#define LANGUAGE_MODULE_NAME // Enable to display "Module Generic" (ie Spanish), Disable to display "Generic Module" (ie English)
|
||||||
@ -797,7 +797,10 @@
|
|||||||
#define D_SENSOR_WIEGAND_D1 "Wiegand D1"
|
#define D_SENSOR_WIEGAND_D1 "Wiegand D1"
|
||||||
#define D_SENSOR_NEOPOOL_TX "NeoPool Tx"
|
#define D_SENSOR_NEOPOOL_TX "NeoPool Tx"
|
||||||
#define D_SENSOR_NEOPOOL_RX "NeoPool Rx"
|
#define D_SENSOR_NEOPOOL_RX "NeoPool Rx"
|
||||||
|
#define D_SENSOR_VL53L0X_XSHUT "VL53L0X XSHUT"
|
||||||
|
#define D_NEW_ADDRESS "Setting address to"
|
||||||
|
#define D_OUT_OF_RANGE "Out of Range"
|
||||||
|
#define D_SENSOR_DETECTED "detected"
|
||||||
|
|
||||||
// Units
|
// Units
|
||||||
#define D_UNIT_AMPERE "А"
|
#define D_UNIT_AMPERE "А"
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
vi-VN.h - localization for Vietnam for Tasmota
|
vi-VN.h - localization for Vietnam for Tasmota
|
||||||
|
|
||||||
Copyright (C) 2021 translateb by Tâm.NT
|
Copyright (C) 2021 Tâm.NT
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
@ -28,7 +28,7 @@
|
|||||||
* Use online command StateText to translate ON, OFF, HOLD and TOGGLE.
|
* Use online command StateText to translate ON, OFF, HOLD and TOGGLE.
|
||||||
* Use online command Prefix to translate cmnd, stat and tele.
|
* Use online command Prefix to translate cmnd, stat and tele.
|
||||||
*
|
*
|
||||||
* Updated until v9.0.0.1
|
* Updated until v9.3.1.1
|
||||||
\*********************************************************************/
|
\*********************************************************************/
|
||||||
|
|
||||||
//#define LANGUAGE_MODULE_NAME // Enable to display "Module Generic" (ie Spanish), Disable to display "Generic Module" (ie English)
|
//#define LANGUAGE_MODULE_NAME // Enable to display "Module Generic" (ie Spanish), Disable to display "Generic Module" (ie English)
|
||||||
@ -797,7 +797,10 @@
|
|||||||
#define D_SENSOR_WIEGAND_D1 "Wiegand D1"
|
#define D_SENSOR_WIEGAND_D1 "Wiegand D1"
|
||||||
#define D_SENSOR_NEOPOOL_TX "NeoPool Tx"
|
#define D_SENSOR_NEOPOOL_TX "NeoPool Tx"
|
||||||
#define D_SENSOR_NEOPOOL_RX "NeoPool Rx"
|
#define D_SENSOR_NEOPOOL_RX "NeoPool Rx"
|
||||||
|
#define D_SENSOR_VL53L0X_XSHUT "VL53L0X XSHUT"
|
||||||
|
#define D_NEW_ADDRESS "Setting address to"
|
||||||
|
#define D_OUT_OF_RANGE "Out of Range"
|
||||||
|
#define D_SENSOR_DETECTED "detected"
|
||||||
|
|
||||||
// Units
|
// Units
|
||||||
#define D_UNIT_AMPERE "A"
|
#define D_UNIT_AMPERE "A"
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
zh-CN.h - localization for Chinese (Simplified) - China for Tasmota
|
zh-CN.h - localization for Chinese (Simplified) - China for Tasmota
|
||||||
|
|
||||||
Copyright (C) 2021 Theo Arends (translated by killadm)
|
Copyright (C) 2021 Killadm
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
@ -28,7 +28,7 @@
|
|||||||
* Use online command StateText to translate ON, OFF, HOLD and TOGGLE.
|
* Use online command StateText to translate ON, OFF, HOLD and TOGGLE.
|
||||||
* Use online command Prefix to translate cmnd, stat and tele.
|
* Use online command Prefix to translate cmnd, stat and tele.
|
||||||
*
|
*
|
||||||
* Updated until v5.14.0b
|
* Updated until v9.3.1.1
|
||||||
\*********************************************************************/
|
\*********************************************************************/
|
||||||
|
|
||||||
//#define LANGUAGE_MODULE_NAME // Enable to display "Module Generic" (ie Spanish), Disable to display "Generic Module" (ie English)
|
//#define LANGUAGE_MODULE_NAME // Enable to display "Module Generic" (ie Spanish), Disable to display "Generic Module" (ie English)
|
||||||
@ -797,7 +797,10 @@
|
|||||||
#define D_SENSOR_WIEGAND_D1 "Wiegand D1"
|
#define D_SENSOR_WIEGAND_D1 "Wiegand D1"
|
||||||
#define D_SENSOR_NEOPOOL_TX "NeoPool Tx"
|
#define D_SENSOR_NEOPOOL_TX "NeoPool Tx"
|
||||||
#define D_SENSOR_NEOPOOL_RX "NeoPool Rx"
|
#define D_SENSOR_NEOPOOL_RX "NeoPool Rx"
|
||||||
|
#define D_SENSOR_VL53L0X_XSHUT "VL53L0X XSHUT"
|
||||||
|
#define D_NEW_ADDRESS "Setting address to"
|
||||||
|
#define D_OUT_OF_RANGE "Out of Range"
|
||||||
|
#define D_SENSOR_DETECTED "detected"
|
||||||
|
|
||||||
// Units
|
// Units
|
||||||
#define D_UNIT_AMPERE "安"
|
#define D_UNIT_AMPERE "安"
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
zh-TW.h - localization for Chinese (Traditional) - Taiwan for Tasmota
|
zh-TW.h - localization for Chinese (Traditional) - Taiwan for Tasmota
|
||||||
|
|
||||||
Copyright (C) 2021 Theo Arends (translated by dannydu)
|
Copyright (C) 2021 Dannydu
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
@ -28,7 +28,7 @@
|
|||||||
* Use online command StateText to translate ON, OFF, HOLD and TOGGLE.
|
* Use online command StateText to translate ON, OFF, HOLD and TOGGLE.
|
||||||
* Use online command Prefix to translate cmnd, stat and tele.
|
* Use online command Prefix to translate cmnd, stat and tele.
|
||||||
*
|
*
|
||||||
* Updated until v5.12.0d
|
* Updated until v9.3.1.1
|
||||||
\*********************************************************************/
|
\*********************************************************************/
|
||||||
|
|
||||||
//#define LANGUAGE_MODULE_NAME // Enable to display "Module Generic" (ie Spanish), Disable to display "Generic Module" (ie English)
|
//#define LANGUAGE_MODULE_NAME // Enable to display "Module Generic" (ie Spanish), Disable to display "Generic Module" (ie English)
|
||||||
@ -797,7 +797,10 @@
|
|||||||
#define D_SENSOR_WIEGAND_D1 "Wiegand D1"
|
#define D_SENSOR_WIEGAND_D1 "Wiegand D1"
|
||||||
#define D_SENSOR_NEOPOOL_TX "NeoPool Tx"
|
#define D_SENSOR_NEOPOOL_TX "NeoPool Tx"
|
||||||
#define D_SENSOR_NEOPOOL_RX "NeoPool Rx"
|
#define D_SENSOR_NEOPOOL_RX "NeoPool Rx"
|
||||||
|
#define D_SENSOR_VL53L0X_XSHUT "VL53L0X XSHUT"
|
||||||
|
#define D_NEW_ADDRESS "Setting address to"
|
||||||
|
#define D_OUT_OF_RANGE "Out of Range"
|
||||||
|
#define D_SENSOR_DETECTED "detected"
|
||||||
|
|
||||||
// Units
|
// Units
|
||||||
#define D_UNIT_AMPERE "安培"
|
#define D_UNIT_AMPERE "安培"
|
||||||
|
@ -83,6 +83,7 @@ const uint8_t MAX_SHUTTER_KEYS = 4; // Max number of shutter keys or but
|
|||||||
const uint8_t MAX_PCF8574 = 4; // Max number of PCF8574 devices
|
const uint8_t MAX_PCF8574 = 4; // Max number of PCF8574 devices
|
||||||
const uint8_t MAX_RULE_SETS = 3; // Max number of rule sets of size 512 characters
|
const uint8_t MAX_RULE_SETS = 3; // Max number of rule sets of size 512 characters
|
||||||
const uint16_t MAX_RULE_SIZE = 512; // Max number of characters in rules
|
const uint16_t MAX_RULE_SIZE = 512; // Max number of characters in rules
|
||||||
|
const uint16_t VL53L0X_MAX_SENSORS = 8; // Max number of VL53L0X sensors
|
||||||
|
|
||||||
#ifdef ESP32
|
#ifdef ESP32
|
||||||
const uint8_t MAX_I2C = 2; // Max number of I2C controllers (ESP32 = 2)
|
const uint8_t MAX_I2C = 2; // Max number of I2C controllers (ESP32 = 2)
|
||||||
|
@ -154,6 +154,7 @@ enum UserSelectablePins {
|
|||||||
GPIO_SSD1351_DC,
|
GPIO_SSD1351_DC,
|
||||||
GPIO_XPT2046_CS, // XPT2046 SPI Chip Select
|
GPIO_XPT2046_CS, // XPT2046 SPI Chip Select
|
||||||
GPIO_CSE7761_TX, GPIO_CSE7761_RX, // CSE7761 Serial interface (Dual R3)
|
GPIO_CSE7761_TX, GPIO_CSE7761_RX, // CSE7761 Serial interface (Dual R3)
|
||||||
|
GPIO_VL53L0X_XSHUT1, // VL53L0X_XSHUT (the max number of sensors is VL53L0X_MAX_SENSORS)- Used when connecting multiple VL53L0X
|
||||||
GPIO_SENSOR_END };
|
GPIO_SENSOR_END };
|
||||||
|
|
||||||
enum ProgramSelectablePins {
|
enum ProgramSelectablePins {
|
||||||
@ -328,6 +329,7 @@ const char kSensorNames[] PROGMEM =
|
|||||||
D_SENSOR_SSD1351_DC "|"
|
D_SENSOR_SSD1351_DC "|"
|
||||||
D_SENSOR_XPT2046_CS "|"
|
D_SENSOR_XPT2046_CS "|"
|
||||||
D_SENSOR_CSE7761_TX "|" D_SENSOR_CSE7761_RX "|"
|
D_SENSOR_CSE7761_TX "|" D_SENSOR_CSE7761_RX "|"
|
||||||
|
D_SENSOR_VL53L0X_XSHUT "|"
|
||||||
;
|
;
|
||||||
|
|
||||||
const char kSensorNamesFixed[] PROGMEM =
|
const char kSensorNamesFixed[] PROGMEM =
|
||||||
@ -781,6 +783,10 @@ const uint16_t kGpioNiceList[] PROGMEM = {
|
|||||||
AGPIO(GPIO_PROJECTOR_CTRL_TX), // LCD/DLP Projector Serial Control
|
AGPIO(GPIO_PROJECTOR_CTRL_TX), // LCD/DLP Projector Serial Control
|
||||||
AGPIO(GPIO_PROJECTOR_CTRL_RX), // LCD/DLP Projector Serial Control
|
AGPIO(GPIO_PROJECTOR_CTRL_RX), // LCD/DLP Projector Serial Control
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef USE_VL53L0X
|
||||||
|
AGPIO(GPIO_VL53L0X_XSHUT1) + VL53L0X_MAX_SENSORS, // When using multiple VL53L0X.
|
||||||
|
#endif
|
||||||
|
|
||||||
/*-------------------------------------------------------------------------------------------*\
|
/*-------------------------------------------------------------------------------------------*\
|
||||||
* ESP32 specifics
|
* ESP32 specifics
|
||||||
\*-------------------------------------------------------------------------------------------*/
|
\*-------------------------------------------------------------------------------------------*/
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
xsns_45_vl53l0x.ino - VL53L0X time of flight sensor support for Tasmota
|
xsns_45_vl53l0x.ino - VL53L0X time of flight multiple sensors support for Tasmota
|
||||||
|
|
||||||
Copyright (C) 2021 Theo Arends and Gerhard Mutz
|
Copyright (C) 2021 Theo Arends, Gerhard Mutz and Adrian Scillato
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
@ -23,105 +23,216 @@
|
|||||||
* VL53L0x time of flight sensor
|
* VL53L0x time of flight sensor
|
||||||
*
|
*
|
||||||
* I2C Addres: 0x29
|
* I2C Addres: 0x29
|
||||||
|
*********************************************************************************************
|
||||||
|
*
|
||||||
|
* Note: When using multiple VL53L0X, it is required to also wire the XSHUT pin of all those sensors
|
||||||
|
* in order to let Tasmota change by software the I2C address of those and give them an unique address
|
||||||
|
* for operation. The sensor don't save its address, so this procedure of changing its address is needed
|
||||||
|
* to be performed every restart. The Addresses used for this are 120 (0x78) to 127 (0x7F). In the I2c
|
||||||
|
* Standard (https://i2cdevices.org/addresses) those addresses are used by the PCA9685, so take into
|
||||||
|
* account they won't work together.
|
||||||
|
*
|
||||||
|
* The default value of VL53L0X_MAX_SENSORS is set in the file tasmota.h
|
||||||
|
* Changing that is backwards incompatible - Max supported devices by this driver are 8
|
||||||
|
*
|
||||||
|
**********************************************************************************************
|
||||||
|
*
|
||||||
|
* How to install this sensor: https://www.st.com/resource/en/datasheet/vl53l0x.pdf
|
||||||
|
*
|
||||||
|
* If you are going to use long I2C wires read this:
|
||||||
|
* https://hackaday.com/2017/02/08/taking-the-leap-off-board-an-introduction-to-i2c-over-long-wires/
|
||||||
|
*
|
||||||
\*********************************************************************************************/
|
\*********************************************************************************************/
|
||||||
|
|
||||||
#define XSNS_45 45
|
#define XSNS_45 45
|
||||||
#define XI2C_31 31 // See I2CDEVICES.md
|
#define XI2C_31 31 // See I2CDEVICES.md
|
||||||
|
|
||||||
|
// Uncomment this line to use long range mode. This
|
||||||
|
// increases the sensitivity of the sensor and extends its
|
||||||
|
// potential range, but increases the likelihood of getting
|
||||||
|
// an inaccurate reading because of reflections from objects
|
||||||
|
// other than the intended target. It works best in dark
|
||||||
|
// conditions.
|
||||||
|
|
||||||
|
//#define VL53L0X_LONG_RANGE
|
||||||
|
|
||||||
|
// Uncomment ONE of these two lines to get
|
||||||
|
// - higher speed at the cost of lower accuracy OR
|
||||||
|
// - higher accuracy at the cost of lower speed
|
||||||
|
|
||||||
|
//#define VL53L0X_HIGH_SPEED
|
||||||
|
//#define VL53L0X_HIGH_ACCURACY
|
||||||
|
|
||||||
#define USE_VL_MEDIAN
|
#define USE_VL_MEDIAN
|
||||||
#define USE_VL_MEDIAN_SIZE 5 // Odd number of samples median detection
|
#define USE_VL_MEDIAN_SIZE 5 // Odd number of samples median detection
|
||||||
|
|
||||||
#include <Wire.h>
|
#include <Wire.h>
|
||||||
#include "VL53L0X.h"
|
#include "VL53L0X.h"
|
||||||
VL53L0X sensor;
|
|
||||||
|
|
||||||
|
VL53L0X sensor[VL53L0X_MAX_SENSORS];
|
||||||
struct {
|
struct {
|
||||||
uint16_t distance;
|
uint16_t distance;
|
||||||
uint16_t distance_prev;
|
uint16_t distance_prev;
|
||||||
uint16_t buffer[5];
|
uint16_t buffer[5];
|
||||||
uint8_t ready = 0;
|
uint8_t ready = 0;
|
||||||
uint8_t index;
|
uint8_t index;
|
||||||
} Vl53l0x;
|
} Vl53l0x[VL53L0X_MAX_SENSORS];
|
||||||
|
|
||||||
|
bool xshut = false;
|
||||||
|
bool VL53L0X_detected = false;
|
||||||
|
|
||||||
/********************************************************************************************/
|
/********************************************************************************************/
|
||||||
|
|
||||||
void Vl53l0Detect(void) {
|
void Vl53l0Detect(void) {
|
||||||
if (!I2cSetDevice(0x29)) { return; }
|
|
||||||
if (!sensor.init()) { return; }
|
|
||||||
|
|
||||||
I2cSetActiveFound(sensor.getAddress(), "VL53L0X");
|
for (uint32_t i = 0; i < VL53L0X_MAX_SENSORS; i++) {
|
||||||
|
if (PinUsed(GPIO_VL53L0X_XSHUT1, i)) {
|
||||||
|
pinMode(Pin(GPIO_VL53L0X_XSHUT1, i), OUTPUT);
|
||||||
|
digitalWrite(Pin(GPIO_VL53L0X_XSHUT1, i), i==0 ? 1 : 0);
|
||||||
|
xshut = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
sensor.setTimeout(500);
|
for (uint32_t i = 0; i < VL53L0X_MAX_SENSORS; i++) {
|
||||||
|
if (PinUsed(GPIO_VL53L0X_XSHUT1, i) || (!xshut)) {
|
||||||
|
if (xshut) { pinMode(Pin(GPIO_VL53L0X_XSHUT1, i), INPUT); delay(1); }
|
||||||
|
if (!I2cSetDevice(0x29) && !I2cSetDevice((uint8_t)(120+i))) { return; } // Detection for unconfigured OR configured sensor
|
||||||
|
if (sensor[i].init()) {
|
||||||
|
if (xshut) { sensor[i].setAddress((uint8_t)(120+i)); }
|
||||||
|
uint8_t addr = sensor[i].getAddress();
|
||||||
|
if (xshut) {
|
||||||
|
I2cSetActive(addr);
|
||||||
|
AddLog(LOG_LEVEL_DEBUG, PSTR(D_LOG_I2C D_SENSOR " VL53L0X %d " D_SENSOR_DETECTED " - " D_NEW_ADDRESS " 0x%02X"), i+1, addr);
|
||||||
|
} else {
|
||||||
|
I2cSetActiveFound(addr, "VL53L0X");
|
||||||
|
}
|
||||||
|
sensor[i].setTimeout(500);
|
||||||
|
|
||||||
// Start continuous back-to-back mode (take readings as
|
#if defined VL53L0X_LONG_RANGE
|
||||||
// fast as possible). To use continuous timed mode
|
// lower the return signal rate limit (default is 0.25 MCPS)
|
||||||
// instead, provide a desired inter-measurement period in
|
sensor[i].setSignalRateLimit(0.1);
|
||||||
// ms (e.g. sensor.startContinuous(100)).
|
// increase laser pulse periods (defaults are 14 and 10 PCLKs)
|
||||||
sensor.startContinuous();
|
sensor[i].setVcselPulsePeriod(VL53L0X::VcselPeriodPreRange, 18);
|
||||||
Vl53l0x.ready = 1;
|
sensor[i].setVcselPulsePeriod(VL53L0X::VcselPeriodFinalRange, 14);
|
||||||
|
#endif
|
||||||
|
#if defined VL53L0X_HIGH_SPEED
|
||||||
|
// reduce timing budget to 20 ms (default is about 33 ms)
|
||||||
|
sensor[i].setMeasurementTimingBudget(20000);
|
||||||
|
#elif defined VL53L0X_HIGH_ACCURACY
|
||||||
|
// increase timing budget to 200 ms
|
||||||
|
sensor[i].setMeasurementTimingBudget(200000);
|
||||||
|
#endif
|
||||||
|
// Start continuous back-to-back mode (take readings as
|
||||||
|
// fast as possible). To use continuous timed mode
|
||||||
|
// instead, provide a desired inter-measurement period in
|
||||||
|
// ms (e.g. sensor.startContinuous(100)).
|
||||||
|
sensor[i].startContinuous();
|
||||||
|
|
||||||
Vl53l0x.index = 0;
|
Vl53l0x[i].ready = 1;
|
||||||
|
Vl53l0x[i].index = 0;
|
||||||
|
VL53L0X_detected = true;
|
||||||
|
if (!xshut) { break; }
|
||||||
|
} else {
|
||||||
|
AddLog(LOG_LEVEL_DEBUG, PSTR(D_LOG_I2C D_SENSOR " VL53L0X %d - " D_FAILED_TO_START), i+1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void Vl53l0Every_250MSecond(void) {
|
void Vl53l0Every_250MSecond(void) {
|
||||||
uint16_t dist = sensor.readRangeContinuousMillimeters();
|
for (uint32_t i = 0; i < VL53L0X_MAX_SENSORS; i++) {
|
||||||
if ((0 == dist) || (dist > 2000)) {
|
if (PinUsed(GPIO_VL53L0X_XSHUT1, i) || (!xshut)) {
|
||||||
dist = 9999;
|
uint16_t dist = sensor[i].readRangeContinuousMillimeters();
|
||||||
}
|
if ((0 == dist) || (dist > 2200)) {
|
||||||
|
dist = 9999;
|
||||||
|
}
|
||||||
|
|
||||||
#ifdef USE_VL_MEDIAN
|
#ifdef USE_VL_MEDIAN
|
||||||
// store in ring buffer
|
// store in ring buffer
|
||||||
Vl53l0x.buffer[Vl53l0x.index] = dist;
|
Vl53l0x[i].buffer[Vl53l0x[i].index] = dist;
|
||||||
Vl53l0x.index++;
|
Vl53l0x[i].index++;
|
||||||
if (Vl53l0x.index >= USE_VL_MEDIAN_SIZE) {
|
if (Vl53l0x[i].index >= USE_VL_MEDIAN_SIZE) {
|
||||||
Vl53l0x.index = 0;
|
Vl53l0x[i].index = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
// sort list and take median
|
// sort list and take median
|
||||||
uint16_t tbuff[USE_VL_MEDIAN_SIZE];
|
uint16_t tbuff[USE_VL_MEDIAN_SIZE];
|
||||||
memmove(tbuff, Vl53l0x.buffer, sizeof(tbuff));
|
memmove(tbuff, Vl53l0x[i].buffer, sizeof(tbuff));
|
||||||
uint16_t tmp;
|
uint16_t tmp;
|
||||||
uint8_t flag;
|
uint8_t flag;
|
||||||
for (uint32_t ocnt = 0; ocnt < USE_VL_MEDIAN_SIZE; ocnt++) {
|
for (uint32_t ocnt = 0; ocnt < USE_VL_MEDIAN_SIZE; ocnt++) {
|
||||||
flag = 0;
|
flag = 0;
|
||||||
for (uint32_t count = 0; count < USE_VL_MEDIAN_SIZE -1; count++) {
|
for (uint32_t count = 0; count < USE_VL_MEDIAN_SIZE -1; count++) {
|
||||||
if (tbuff[count] > tbuff[count +1]) {
|
if (tbuff[count] > tbuff[count +1]) {
|
||||||
tmp = tbuff[count];
|
tmp = tbuff[count];
|
||||||
tbuff[count] = tbuff[count +1];
|
tbuff[count] = tbuff[count +1];
|
||||||
tbuff[count +1] = tmp;
|
tbuff[count +1] = tmp;
|
||||||
flag = 1;
|
flag = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!flag) { break; }
|
if (!flag) { break; }
|
||||||
}
|
}
|
||||||
Vl53l0x.distance = tbuff[(USE_VL_MEDIAN_SIZE -1) / 2];
|
Vl53l0x[i].distance = tbuff[(USE_VL_MEDIAN_SIZE -1) / 2];
|
||||||
#else
|
#else
|
||||||
Vl53l0x.distance = dist;
|
Vl53l0x[i].distance = dist;
|
||||||
#endif
|
#endif
|
||||||
|
}
|
||||||
|
if (!xshut) { break; }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef USE_DOMOTICZ
|
#ifdef USE_DOMOTICZ
|
||||||
void Vl53l0Every_Second(void) {
|
void Vl53l0Every_Second(void) {
|
||||||
if (abs(Vl53l0x.distance - Vl53l0x.distance_prev) > 8) {
|
if (abs(Vl53l0x[0].distance - Vl53l0x[0].distance_prev) > 8) {
|
||||||
Vl53l0x.distance_prev = Vl53l0x.distance;
|
Vl53l0x[0].distance_prev = Vl53l0x[0].distance;
|
||||||
DomoticzSensor(DZ_ILLUMINANCE, Vl53l0x.distance);
|
DomoticzSensor(DZ_ILLUMINANCE, Vl53l0x[0].distance);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif // USE_DOMOTICZ
|
#endif // USE_DOMOTICZ
|
||||||
|
|
||||||
void Vl53l0Show(boolean json) {
|
void Vl53l0Show(boolean json) {
|
||||||
if (json) {
|
for (uint32_t i = 0; i < VL53L0X_MAX_SENSORS; i++) {
|
||||||
ResponseAppend_P(PSTR(",\"VL53L0X\":{\"" D_JSON_DISTANCE "\":%d}"), Vl53l0x.distance);
|
if (PinUsed(GPIO_VL53L0X_XSHUT1, i) || (!xshut)) {
|
||||||
|
if (json) {
|
||||||
|
if (Vl53l0x[i].distance == 9999) {
|
||||||
|
if (xshut) {
|
||||||
|
ResponseAppend_P(PSTR(",\"VL53L0X_%d\":{\"" D_JSON_DISTANCE "\":null}"), i+1);
|
||||||
|
} else {
|
||||||
|
ResponseAppend_P(PSTR(",\"VL53L0X\":{\"" D_JSON_DISTANCE "\":null}")); // For backwards compatibility when not using XSHUT GPIOs
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
if (xshut) {
|
||||||
|
ResponseAppend_P(PSTR(",\"VL53L0X_%d\":{\"" D_JSON_DISTANCE "\":%d}"), i+1, Vl53l0x[i].distance);
|
||||||
|
} else {
|
||||||
|
ResponseAppend_P(PSTR(",\"VL53L0X\":{\"" D_JSON_DISTANCE "\":%d}"), Vl53l0x[i].distance); // For backwards compatibility when not using XSHUT GPIOs
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#ifdef USE_WEBSERVER
|
||||||
|
} else {
|
||||||
|
if (Vl53l0x[i].distance == 9999) {
|
||||||
|
if (xshut) {
|
||||||
|
WSContentSend_PD("{s}%s_%d " D_DISTANCE "{m}%s {e}", PSTR("VL53L0X"), i+1, PSTR(D_OUT_OF_RANGE));
|
||||||
|
} else {
|
||||||
|
WSContentSend_PD("{s}%s " D_DISTANCE "{m}%s {e}", PSTR("VL53L0X"), PSTR(D_OUT_OF_RANGE)); // For backwards compatibility when not using XSHUT GPIOs
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
if (xshut) {
|
||||||
|
WSContentSend_PD("{s}%s_%d " D_DISTANCE "{m}%d " D_UNIT_MILLIMETER "{e}", PSTR("VL53L0X"), i+1, Vl53l0x[i].distance);
|
||||||
|
} else {
|
||||||
|
WSContentSend_PD(HTTP_SNS_DISTANCE, PSTR("VL53L0X"), Vl53l0x[i].distance); // For backwards compatibility when not using XSHUT GPIOs
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (sensor[i].timeoutOccurred()) { AddLog(LOG_LEVEL_DEBUG, PSTR(D_LOG_I2C D_TIMEOUT_WAITING_FOR D_SENSOR " VL53L0X %d"), i+1); }
|
||||||
|
if (!xshut) { break; }
|
||||||
|
}
|
||||||
#ifdef USE_DOMOTICZ
|
#ifdef USE_DOMOTICZ
|
||||||
if (0 == TasmotaGlobal.tele_period) {
|
if ((json) && (0 == TasmotaGlobal.tele_period)){
|
||||||
DomoticzSensor(DZ_ILLUMINANCE, Vl53l0x.distance);
|
DomoticzSensor(DZ_ILLUMINANCE, Vl53l0x[0].distance);
|
||||||
}
|
}
|
||||||
#endif // USE_DOMOTICZ
|
#endif // USE_DOMOTICZ
|
||||||
#ifdef USE_WEBSERVER
|
|
||||||
} else {
|
|
||||||
WSContentSend_PD(HTTP_SNS_DISTANCE, PSTR("VL53L0X"), Vl53l0x.distance);
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*********************************************************************************************\
|
/*********************************************************************************************\
|
||||||
@ -136,7 +247,7 @@ bool Xsns45(byte function) {
|
|||||||
if (FUNC_INIT == function) {
|
if (FUNC_INIT == function) {
|
||||||
Vl53l0Detect();
|
Vl53l0Detect();
|
||||||
}
|
}
|
||||||
else if (Vl53l0x.ready) {
|
else if (VL53L0X_detected) {
|
||||||
switch (function) {
|
switch (function) {
|
||||||
case FUNC_EVERY_250_MSECOND:
|
case FUNC_EVERY_250_MSECOND:
|
||||||
Vl53l0Every_250MSecond();
|
Vl53l0Every_250MSecond();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user