From e9998f0ce032912b944fd912c1a8f640223c517d Mon Sep 17 00:00:00 2001 From: gemu2015 Date: Fri, 8 Jan 2021 11:51:14 +0100 Subject: [PATCH] add device name var dvnm --- tasmota/xdrv_10_scripter.ino | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tasmota/xdrv_10_scripter.ino b/tasmota/xdrv_10_scripter.ino index 261904bd5..339aab26d 100755 --- a/tasmota/xdrv_10_scripter.ino +++ b/tasmota/xdrv_10_scripter.ino @@ -1913,6 +1913,10 @@ chknext: fvar = RtcTime.day_of_month; goto exit; } + if (!strncmp(vname, "dvnm", 4)) { + if (sp) strlcpy(sp, SettingsText(SET_DEVICENAME), glob_script_mem.max_ssize); + goto strexit; + } break; case 'e': if (!strncmp(vname, "epoch", 5)) { @@ -2367,6 +2371,7 @@ chknext: goto strexit; } break; + case 'g': if (!strncmp(vname, "gtmp", 4)) { fvar = TasmotaGlobal.temperature_celsius;