arendst / Tasmota

Alternative firmware for ESP8266 and ESP32 based devices with easy configuration using webUI, OTA updates, automation using timers or rules, expandability and entirely local control over MQTT, HTTP, Serial or KNX. Full documentation at
https://tasmota.github.io/docs
GNU General Public License v3.0
21.7k stars 4.72k forks source link

14.x: doesnt respect negative values on tuya device #21588

Open g6094199 opened 3 weeks ago

g6094199 commented 3 weeks ago

PROBLEM DESCRIPTION

the GUI shows garbage values while the tuya mcu sends negative values. in the screenshot the raw value is -10 but the GUI shows 4294967286. there seems to be some misunderstandig of the 1st digit. this seems to be an error on current and power interpretation.

REQUESTED INFORMATION

Make sure your have performed every step and checked the applicable boxes before submitting your issue. Thank you!

- [ ] Provide the output of this command: `Status 0`:
```lua
  STATUS 0 output here:

16:39:39.903 CMD: Grp 0, Cmd 'STATUS', Idx 1, Len 1, Pld 0, Data '0'
16:39:39.909 RSL: STATUS = {"Status":{"Module":0,"DeviceName":"Tasmota","FriendlyName":["Tasmota"],"Topic":"tasmota_A1377A","ButtonTopic":"0","Power":"1","PowerLock":"0","PowerOnState":3,"LedState":1,"LedMask":"FFFF","SaveData":1,"SaveState":1,"SwitchTopic":"0","SwitchMode":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],"ButtonRetain":0,"SwitchRetain":0,"SensorRetain":0,"PowerRetain":0,"InfoRetain":0,"StateRetain":0,"StatusRetain":0}}
16:39:39.916 RSL: STATUS1 = {"StatusPRM":{"Baudrate":9600,"SerialConfig":"8N1","GroupTopic":"tasmotas","OtaUrl":"http://ota.tasmota.com/tasmota/release/tasmota.bin.gz","RestartReason":"External System","Uptime":"0T00:14:54","StartupUTC":"2024-06-07T15:24:45","Sleep":50,"CfgHolder":4617,"BootCount":35,"BCResetTime":"2024-05-08T15:18:44","SaveCount":115,"SaveAddress":"F8000"}}
16:39:39.921 RSL: STATUS2 = {"StatusFWR":{"Version":"14.1.0(release-tasmota)","BuildDateTime":"2024-06-03T11:53:14","Boot":31,"Core":"2_7_6","SDK":"2.2.2-dev(38a443e)","CpuFrequency":80,"Hardware":"ESP8266EX","CR":"383/699"}}
16:39:39.926 RSL: STATUS3 = {"StatusLOG":{"SerialLog":0,"WebLog":4,"MqttLog":0,"SysLog":0,"LogHost":"","LogPort":514,"SSId":["PHI Guest","djnet"],"TelePeriod":300,"Resolution":"558B80C0","SetOption":["00008009","2805C80001000600003C5A0A192800000000","00400088","00006000","00004000","00000000"]}}
16:39:39.940 RSL: STATUS4 = {"StatusMEM":{"ProgramSize":647,"Free":356,"Heap":23,"ProgramFlashSize":1024,"FlashSize":2048,"FlashChipId":"154068","FlashFrequency":40,"FlashMode":"DOUT","Features":["0809","8F9AC787","04368001","000000CF","010013C0","C000F981","00004004","00001000","54000020","00000080","00000000"],"Drivers":"1,2,3,!4,!5,!6,7,!8,9,10,12,16,!18,!19,!20,!21,!22,!24,26,!27,29,!30,!35,!37,!45,62,!68","Sensors":"1,2,3,4,5,6","I2CDriver":"7"}}
16:39:39.946 RSL: STATUS5 = {"StatusNET":{"Hostname":"HIKING-DTS238-7","IPAddress":"192.168.123.100","Gateway":"192.168.123.1","Subnetmask":"255.255.255.0","DNSServer1":"1.1.1.1","DNSServer2":"0.0.0.0","Mac":"30:83:98:A1:37:7A","Webserver":2,"HTTP_API":1,"WifiConfig":4,"WifiPower":17.0}}
16:39:39.951 RSL: STATUS6 = {"StatusMQT":{"MqttHost":"","MqttPort":1883,"MqttClientMask":"DVES_%06X","MqttClient":"DVES_A1377A","MqttUser":"DVES_USER","MqttCount":0,"MAX_PACKET_SIZE":1200,"KEEPALIVE":30,"SOCKET_TIMEOUT":4}}
16:39:39.958 RSL: STATUS7 = {"StatusTIM":{"UTC":"2024-06-07T15:39:39Z","Local":"2024-06-07T16:39:39","StartDST":"2024-03-31T02:00:00","EndDST":"2024-10-27T03:00:00","Timezone":"+01:00","Sunrise":"04:47","Sunset":"20:50"}}
16:39:39.962 RSL: STATUS9 = {"StatusPTH":{"PowerDelta":[0,0,0],"PowerLow":0,"PowerHigh":0,"VoltageLow":0,"VoltageHigh":0,"CurrentLow":0,"CurrentHigh":0}}
16:39:39.970 RSL: STATUS10 = {"StatusSNS":{"Time":"2024-06-07T16:39:39","ENERGY":{"TotalStartTime":"2024-05-17T00:00:00","Total":42949.723,"Yesterday":21474.836,"Today":21474.836,"Power":0.0,"ApparentPower":0.0,"ReactivePower":0.0,"Factor":0.00,"Voltage":232.3,"Current":0.000}}}
16:39:39.977 RSL: STATUS11 = {"StatusSTS":{"Time":"2024-06-07T16:39:39","Uptime":"0T00:14:54","UptimeSec":894,"Heap":23,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":0,"POWER":"ON","Wifi":{"AP":1,"SSId":"PHI Guest","BSSId":"E2:79:C9:0A:49:2F","Channel":5,"Mode":"11n","RSSI":80,"Signal":-60,"LinkCount":1,"Downtime":"0T00:00:04"}}}
16:39:43.056 DMP: 55 AA 03 07 00 08 12 02 00 04 FF FF FF F6 1C
16:39:43.059 {"TuyaReceived":{"Data":"55AA0307000812020004FFFFFFF61C"

SCREENSHOTS

grafik

github-actions[bot] commented 1 day ago

This issue has been automatically marked as stale because it hasn't any activity in last few weeks. It will be closed if no further activity occurs. Thank you for your contributions.