mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-28 13:16:32 +00:00
Add support for single wire LMT01
Add support for single wire LMT01 temperature Sensor by justifiably (#8713)
This commit is contained in:
parent
ec7bad1c5e
commit
934526244f
@ -77,6 +77,7 @@
|
|||||||
| USE_MAX31855 | - | - | - | - | x | - | - |
|
| USE_MAX31855 | - | - | - | - | x | - | - |
|
||||||
| USE_MAX31865 | - | - | - | - | - | - | - |
|
| USE_MAX31865 | - | - | - | - | - | - | - |
|
||||||
| USE_THERMOSTAT | - | - | - | - | - | - | - |
|
| USE_THERMOSTAT | - | - | - | - | - | - | - |
|
||||||
|
| USE_LMT01 | - | - | - | - | x | - | - |
|
||||||
| | | | | | | | |
|
| | | | | | | | |
|
||||||
| Feature or Sensor | minimal | lite | tasmota | knx | sensors | ir | display | Remarks
|
| Feature or Sensor | minimal | lite | tasmota | knx | sensors | ir | display | Remarks
|
||||||
| USE_I2C | - | - | x | x | x | - | x |
|
| USE_I2C | - | - | x | x | x | - | x |
|
||||||
|
@ -84,3 +84,4 @@ The following binary downloads have been compiled with ESP8266/Arduino library c
|
|||||||
- Add support for Energy sensor (Denky) for French Smart Metering meter provided by global Energy Providers, need a adaptater. See dedicated full [blog](http://hallard.me/category/tinfo/) about French teleinformation stuff
|
- Add support for Energy sensor (Denky) for French Smart Metering meter provided by global Energy Providers, need a adaptater. See dedicated full [blog](http://hallard.me/category/tinfo/) about French teleinformation stuff
|
||||||
- Add Library to be used for decoding Teleinfo (French Metering Smart Meter)
|
- Add Library to be used for decoding Teleinfo (French Metering Smart Meter)
|
||||||
- Add basic support for ESP32 ethernet adding commands ``Wifi 0/1`` and ``Ethernet 0/1`` both default ON
|
- Add basic support for ESP32 ethernet adding commands ``Wifi 0/1`` and ``Ethernet 0/1`` both default ON
|
||||||
|
- Add support for single wire LMT01 temperature Sensor by justifiably (#8713)
|
||||||
|
@ -4,8 +4,8 @@
|
|||||||
|
|
||||||
- Add command ``Module2`` to configure fallback module on fast reboot (#8464)
|
- Add command ``Module2`` to configure fallback module on fast reboot (#8464)
|
||||||
- Add support for Energy sensor (Denky) for French Smart Metering meter provided by global Energy Providers, need a adaptater. See dedicated full [blog](http://hallard.me/category/tinfo/) about French teleinformation stuff
|
- Add support for Energy sensor (Denky) for French Smart Metering meter provided by global Energy Providers, need a adaptater. See dedicated full [blog](http://hallard.me/category/tinfo/) about French teleinformation stuff
|
||||||
- Add Library to be used for decoding Teleinfo (French Metering Smart Meter)
|
- Add library to be used for decoding Teleinfo (French Metering Smart Meter)
|
||||||
|
- Add support for single wire LMT01 temperature Sensor by justifiably (#8713)
|
||||||
|
|
||||||
### 8.3.1.5 20200616
|
### 8.3.1.5 20200616
|
||||||
|
|
||||||
|
@ -587,8 +587,9 @@ void GetFeatures(void)
|
|||||||
#ifdef USE_TELEINFO
|
#ifdef USE_TELEINFO
|
||||||
feature6 |= 0x00040000; // xnrg_15_teleinfo.ino
|
feature6 |= 0x00040000; // xnrg_15_teleinfo.ino
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef USE_LMT01
|
||||||
// feature6 |= 0x00080000;
|
feature6 |= 0x00080000; // xsns_74_lmt01.ino
|
||||||
|
#endif
|
||||||
|
|
||||||
// feature6 |= 0x00100000;
|
// feature6 |= 0x00100000;
|
||||||
// feature6 |= 0x00200000;
|
// feature6 |= 0x00200000;
|
||||||
|
@ -452,6 +452,9 @@ const uint8_t kGpioNiceList[] PROGMEM = {
|
|||||||
GPIO_DSB, // Single wire DS18B20 or DS18S20
|
GPIO_DSB, // Single wire DS18B20 or DS18S20
|
||||||
GPIO_DSB_OUT, // Pseudo Single wire DS18B20 or DS18S20
|
GPIO_DSB_OUT, // Pseudo Single wire DS18B20 or DS18S20
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef USE_LMT01 // LMT01, count pulses on GPIO
|
||||||
|
GPIO_LMT01,
|
||||||
|
#endif
|
||||||
|
|
||||||
// Light
|
// Light
|
||||||
#ifdef USE_LIGHT
|
#ifdef USE_LIGHT
|
||||||
@ -698,9 +701,6 @@ const uint8_t kGpioNiceList[] PROGMEM = {
|
|||||||
GPIO_TELEINFO_RX,
|
GPIO_TELEINFO_RX,
|
||||||
GPIO_TELEINFO_ENABLE,
|
GPIO_TELEINFO_ENABLE,
|
||||||
#endif
|
#endif
|
||||||
#ifdef USE_LMT01 // LMT01, count pulses on GPIO
|
|
||||||
GPIO_LMT01,
|
|
||||||
#endif
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/********************************************************************************************/
|
/********************************************************************************************/
|
||||||
|
@ -226,7 +226,8 @@ const char kSensorNames[] PROGMEM =
|
|||||||
D_SENSOR_BL0940_RX "|"
|
D_SENSOR_BL0940_RX "|"
|
||||||
D_SENSOR_TCP_TXD "|" D_SENSOR_TCP_RXD "|"
|
D_SENSOR_TCP_TXD "|" D_SENSOR_TCP_RXD "|"
|
||||||
D_SENSOR_ETH_PHY_POWER "|" D_SENSOR_ETH_PHY_MDC "|" D_SENSOR_ETH_PHY_MDIO "|"
|
D_SENSOR_ETH_PHY_POWER "|" D_SENSOR_ETH_PHY_MDC "|" D_SENSOR_ETH_PHY_MDIO "|"
|
||||||
D_SENSOR_TELEINFO_RX "|" D_SENSOR_TELEINFO_ENABLE
|
D_SENSOR_TELEINFO_RX "|" D_SENSOR_TELEINFO_ENABLE "|"
|
||||||
|
D_SENSOR_LMT01_PULSE
|
||||||
;
|
;
|
||||||
|
|
||||||
const char kSensorNamesFixed[] PROGMEM =
|
const char kSensorNamesFixed[] PROGMEM =
|
||||||
@ -294,6 +295,9 @@ const uint16_t kGpioNiceList[] PROGMEM = {
|
|||||||
AGPIO(GPIO_DSB), // Single wire DS18B20 or DS18S20
|
AGPIO(GPIO_DSB), // Single wire DS18B20 or DS18S20
|
||||||
AGPIO(GPIO_DSB_OUT), // Pseudo Single wire DS18B20 or DS18S20
|
AGPIO(GPIO_DSB_OUT), // Pseudo Single wire DS18B20 or DS18S20
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef USE_LMT01
|
||||||
|
AGPIO(GPIO_LMT01), // LMT01, count pulses on GPIO
|
||||||
|
#endif
|
||||||
|
|
||||||
// Light
|
// Light
|
||||||
#ifdef USE_LIGHT
|
#ifdef USE_LIGHT
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
xns_74_lmt01.ino
|
xns_74_lmt01.ino - Support for single wire LMT01 Temperature Sensor
|
||||||
|
|
||||||
Copyright (C) 2020 Theo Arends, Justifiably
|
Copyright (C) 2020 Theo Arends, Justifiably
|
||||||
|
|
||||||
@ -23,7 +23,6 @@
|
|||||||
*
|
*
|
||||||
* Uses fragments of public domain code LMT01_Example.ino released by Texas Instruments, July 10th 2017.
|
* Uses fragments of public domain code LMT01_Example.ino released by Texas Instruments, July 10th 2017.
|
||||||
* See https://training.ti.com/how-interface-lmt01-temperature-sensor-arduino
|
* See https://training.ti.com/how-interface-lmt01-temperature-sensor-arduino
|
||||||
*
|
|
||||||
\*********************************************************************************************/
|
\*********************************************************************************************/
|
||||||
|
|
||||||
#define XSNS_74 74
|
#define XSNS_74 74
|
||||||
@ -88,14 +87,12 @@ int LMT01_getPulses(void) {
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void LMT01_Show(bool Json) {
|
void LMT01_Show(bool Json) {
|
||||||
char temp[33];
|
char temp[33];
|
||||||
dtostrfd(lmt01_temperature, Settings.flag2.temperature_resolution, temp);
|
dtostrfd(lmt01_temperature, Settings.flag2.temperature_resolution, temp);
|
||||||
|
|
||||||
if (Json) {
|
if (Json) {
|
||||||
ResponseAppend_P(PSTR(",\"%s\":{\"" D_JSON_TEMPERATURE "\":%s}"), \
|
ResponseAppend_P(JSON_SNS_TEMP, "LMT01", temp);
|
||||||
"LMT01", temp);
|
|
||||||
#ifdef USE_DOMOTICZ
|
#ifdef USE_DOMOTICZ
|
||||||
if (0 == tele_period) {
|
if (0 == tele_period) {
|
||||||
DomoticzSensor(DZ_TEMP, temp);
|
DomoticzSensor(DZ_TEMP, temp);
|
||||||
@ -113,7 +110,6 @@ void LMT01_Show(bool Json) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*********************************************************************************************\
|
/*********************************************************************************************\
|
||||||
* Interface
|
* Interface
|
||||||
\*********************************************************************************************/
|
\*********************************************************************************************/
|
||||||
|
@ -206,7 +206,7 @@ a_features = [[
|
|||||||
"USE_IAQ","USE_DISPLAY_SEVENSEG","USE_AS3935","USE_PING",
|
"USE_IAQ","USE_DISPLAY_SEVENSEG","USE_AS3935","USE_PING",
|
||||||
"USE_WINDMETER","USE_OPENTHERM","USE_THERMOSTAT","USE_VEML6075",
|
"USE_WINDMETER","USE_OPENTHERM","USE_THERMOSTAT","USE_VEML6075",
|
||||||
"USE_VEML7700","USE_MCP9808","USE_BL0940","USE_TELEGRAM",
|
"USE_VEML7700","USE_MCP9808","USE_BL0940","USE_TELEGRAM",
|
||||||
"USE_HP303B","USE_TCP_BRIDGE","USE_TELEINFO","",
|
"USE_HP303B","USE_TCP_BRIDGE","USE_TELEINFO","USE_LMT01",
|
||||||
"","","","",
|
"","","","",
|
||||||
"","","","",
|
"","","","",
|
||||||
"","","USE_ETHERNET","USE_WEBCAM"
|
"","","USE_ETHERNET","USE_WEBCAM"
|
||||||
@ -243,7 +243,7 @@ else:
|
|||||||
obj = json.load(fp)
|
obj = json.load(fp)
|
||||||
|
|
||||||
def StartDecode():
|
def StartDecode():
|
||||||
print ("\n*** decode-status.py v20200611 by Theo Arends and Jacek Ziolkowski ***")
|
print ("\n*** decode-status.py v20200617 by Theo Arends and Jacek Ziolkowski ***")
|
||||||
|
|
||||||
# print("Decoding\n{}".format(obj))
|
# print("Decoding\n{}".format(obj))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user