mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-29 05:36:39 +00:00
Update D20.be (#23722)
Whoops: Forgot to add Battery Voltage to MQTT originally
This commit is contained in:
parent
48c482d169
commit
44a137773d
@ -34,10 +34,12 @@ class LwDecoDrgD20
|
||||
## SENSOR DATA ##
|
||||
if 2 == FPort && Bytes.size() == 11
|
||||
last_seen = tasmota.rtc('local')
|
||||
|
||||
var mode=(Bytes[6] & 0x7C)>>2
|
||||
|
||||
if 3==mode
|
||||
battery = (Bytes[0]<<8 | Bytes[1])/1000
|
||||
data.insert("BattV", battery)
|
||||
battery_last_seen = tasmota.rtc('local')
|
||||
|
||||
# 0x07FF = 2047 = no temp sensor
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user