Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zigbee JSON Variable with more than 32 char not supported #10193

Closed
10 of 14 tasks
martin072 opened this issue Dec 19, 2020 · 1 comment
Closed
10 of 14 tasks

Zigbee JSON Variable with more than 32 char not supported #10193

martin072 opened this issue Dec 19, 2020 · 1 comment
Labels
enhancement Type - Enhancement that will be worked on fixed Result - The work on the issue has ended

Comments

@martin072
Copy link

PROBLEM DESCRIPTION

When using a scripting variable from zigbee like:
ZbReceived#0x9821#ZoneStatusChange
it is not read.

REQUESTED INFORMATION

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

  • Read the Contributing Guide and Policy and the Code of Conduct
  • Searched the problem in issues
  • Searched the problem in discussions
  • Searched the problem in the docs
  • Searched the problem in the chat
  • Device used (e.g., Sonoff Basic): Wemos D1 R1
  • Tasmota binary firmware version number used: 9.2.0
    • Pre-compiled
    • Self-compiled
  • Flashing tools used: Platform IO
  • Provide the output of command: Backlog Template; Module; GPIO 255:
  Configuration output here:
  20:07:36 MQT: home/sonoffs/stat/84:F3:EB:0C:44:70/RESULT = {"NAME":"Generic","GPIO":[1,1,1,1,1,1,1,1,1,1,1,1,1,1],"FLAG":0,"BASE":18}
20:07:36 Event: 2.00
20:07:36 MQT: home/sonoffs/stat/84:F3:EB:0C:44:70/RESULT = {"Module":{"0":"Generic"}}
20:07:36 Event: 2.00
20:07:36 MQT: home/sonoffs/stat/84:F3:EB:0C:44:70/RESULT = {"GPIO0":{"0":"None"},"GPIO1":{"3584":"Zigbee Rx"},"GPIO2":{"0":"None"},"GPIO3":{"3552":"Zigbee Tx"},"GPIO4":{"0":"None"},"GPIO5":{"0":"None"},"GPIO9":{"0":"None"},"GPIO10":{"0":"None"},"GPIO12":{"0":"None"},"GPIO13":{"0":"None"},"GPIO14":{"0":"None"},"GPIO15":{"0":"None"},"GPIO16":{"0":"None"},"GPIO17":{"0":"None"}}}

  • If using rules, provide the output of this command: Backlog Rule1; Rule2; Rule3:
  Rules output here:

  • Provide the output of this command: Status 0:
  STATUS 0 output here:
20:08:14 MQT: home/sonoffs/stat/84:F3:EB:0C:44:70/STATUS = {"Status":{"Module":0,"DeviceName":"Tasmota Zigbee","FriendlyName":["Tasmota Zigbee"],"Topic":"84:F3:EB:0C:44:70","ButtonTopic":"0","Power":0,"PowerOnState":3,"LedState":1,"LedMask":"FFFF","SaveData":1,"SaveState":1,"SwitchTopic":"0","SwitchMode":[0,0,0,0,0,0,0,0],"ButtonRetain":0,"SwitchRetain":0,"SensorRetain":0,"PowerRetain":0}}
20:08:14 MQT: home/sonoffs/stat/84:F3:EB:0C:44:70/STATUS1 = {"StatusPRM":{"Baudrate":115200,"SerialConfig":"8N1","GroupTopic":"tasmotas","OtaUrl":"http://ota.tasmota.com/tasmota/release/tasmota.bin.gz","RestartReason":"Software/System restart","Uptime":"0T00:37:06","StartupUTC":"2020-12-19T18:31:08","Sleep":50,"CfgHolder":4617,"BootCount":29,"BCResetTime":"2020-12-17T21:10:07","SaveCount":60,"SaveAddress":"3F8000"}}
20:08:14 MQT: home/sonoffs/stat/84:F3:EB:0C:44:70/STATUS2 = {"StatusFWR":{"Version":"9.2.0(tasmota)","BuildDateTime":"2020-12-19T15:56:06","Boot":31,"Core":"2_7_4_9","SDK":"2.2.2-dev(38a443e)","CpuFrequency":80,"Hardware":"ESP8266EX","CR":"424/699"}}
20:08:15 MQT: home/sonoffs/stat/84:F3:EB:0C:44:70/STATUS3 = {"StatusLOG":{"SerialLog":0,"WebLog":2,"MqttLog":0,"SysLog":0,"LogHost":"","LogPort":514,"SSId":["UPC233367",""],"TelePeriod":300,"Resolution":"558180C0","SetOption":["00008009","2805C8000100060000005A00000000000000","00000000","00006000","00000000"]}}
20:08:15 MQT: home/sonoffs/stat/84:F3:EB:0C:44:70/STATUS4 = {"StatusMEM":{"ProgramSize":710,"Free":3364,"Heap":17,"ProgramFlashSize":4096,"FlashSize":4096,"FlashChipId":"1640EF","FlashFrequency":40,"FlashMode":3,"Features":["00000809","87CA8587","046D8001","000004CF","050002C4","C000F981","00004004","00001000"],"Drivers":"1,2,3,4,5,6,8,9,10,12,16,17,22,23,24,27,29,30,35,37,45","Sensors":"1,2,3,4,5,6,9,31,45"}}
20:08:15 MQT: home/sonoffs/stat/84:F3:EB:0C:44:70/STATUS5 = {"StatusNET":{"Hostname":"84:F3:EB:0C:44:70-1136","IPAddress":"192.168.2.127","Gateway":"192.168.2.1","Subnetmask":"255.255.255.0","DNSServer":"8.8.4.4","Mac":"84:F3:EB:0C:44:70","Webserver":2,"WifiConfig":4,"WifiPower":17.0}}
20:08:15 MQT: home/sonoffs/stat/84:F3:EB:0C:44:70/STATUS6 = {"StatusMQT":{"MqttHost":"192.168.2.2","MqttPort":1883,"MqttClientMask":"DVES_%06X","MqttClient":"DVES_0C4470","MqttUser":"DVES_USER","MqttCount":1,"MAX_PACKET_SIZE":1200,"KEEPALIVE":30}}
20:08:15 MQT: home/sonoffs/stat/84:F3:EB:0C:44:70/STATUS7 = {"StatusTIM":{"UTC":"2020-12-19T19:08:15","Local":"2020-12-19T20:08:15","StartDST":"2020-03-29T02:00:00","EndDST":"2020-10-25T03:00:00","Timezone":"+01:00","Sunrise":"08:40","Sunset":"16:54"}}
20:08:15 MQT: home/sonoffs/stat/84:F3:EB:0C:44:70/STATUS10 = {"StatusSNS":{"Time":"2020-12-19T20:08:15"}}
20:08:15 MQT: home/sonoffs/stat/84:F3:EB:0C:44:70/STATUS11 = {"StatusSTS":{"Time":"2020-12-19T20:08:15","Uptime":"0T00:37:07","UptimeSec":2227,"Heap":17,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":1,"Wifi":{"AP":1,"SSId":"UPC233367","BSSId":"DE:0D:17:AD:89:74","Channel":5,"RSSI":72,"Signal":-64,"LinkCount":1,"Downtime":"0T00:00:05"}}}
  • Set weblog to 4 and then, when you experience your issue, provide the output of the Console log:
  Console output here:

TO REPRODUCE

Use any variable with more than 32 characters

EXPECTED BEHAVIOUR

Some zigbee variables are longer than 32 characters, and would be nice if they are supported

SCREENSHOTS

If applicable, add screenshots to help explain your problem.

ADDITIONAL CONTEXT

Probleem seems to be fixed when changing to following lines of code in xddv_10_scripter.ino:

Line 1587
char vname[32]; -> char vname[64];

Line 1716
char jvname[32]; -> char jvname[64];

(Please, remember to close the issue when the problem has been addressed)

@arendst
Copy link
Owner

arendst commented Dec 20, 2020

Quick fix is using SO100 1 to remove ZbReceived# from trigger.

arendst added a commit that referenced this issue Dec 20, 2020
Fix Scripter JSON variable lenght issue (#10193)
@arendst arendst added enhancement Type - Enhancement that will be worked on fixed Result - The work on the issue has ended labels Dec 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Type - Enhancement that will be worked on fixed Result - The work on the issue has ended
Projects
None yet
Development

No branches or pull requests

3 participants