gemu2015 / Sonoff-Tasmota

Tasmota Fork TCS34725,PN532_i2,ccc1101 Moritz support,m5stack 4,7 epaper, hotplug drivers
GNU General Public License v3.0
24 stars 19 forks source link

Events with 2 # not supported #19

Closed JumpmanJunior closed 4 years ago

JumpmanJunior commented 4 years ago

ISSUE DESCRIPTION - TROUBLESHOOTING

In my T section I am assigning sensor values to variables which I then use for logging to SD card. This is working for example without problems with a connect AM2301 sensor.

>T
temp=AM2301#Temperature

But I also want to use Zigbee sensors with Zigbee2Tasmota. For a door contact sensor I have for example the following assignment:

>T
door=Zbreceived#0x5A85#Power

But this is not working. No value is assigned. I assume that this is because of the two #. These events were introduced in Tasmota lately according to the change log: rule triggers on one level deeper using syntax with two #

REQUESTED INFORMATION

Make sure these boxes are checked before submitting your issue. Thank you

FAILURE TO COMPLETE THE REQUESTED INFORMATION WILL RESULT IN YOUR ISSUE BEING CLOSED

21:51:59 RSL: stat/tasmota/RESULT = {"NAME":"Generic","GPIO":[255,255,255,255,255,255,255,255,255,255,255,255,255],"FLAG":15,"BASE":18}
21:51:59 RSL: stat/tasmota/RESULT = {"Module":{"18":"Generic"}}
21:51:59 RSL: stat/tasmota/RESULT = {"GPIO0":{"2":"AM2301"},"GPIO1":{"166":"Zigbee Rx"},"GPIO2":{"0":"None"},"GPIO3":{"165":"Zigbee Tx"},"GPIO4":{"5":"I2C SCL"},"GPIO5":{"6":"I2C SDA"},"GPIO12":{"0":"None"},"GPIO13":{"0":"None"},"GPIO14":{"0":"None"},"GPIO15":{"0":"None"},"GPIO16":{"0":"None"}}

21:52:57 RSL: stat/tasmota/STATUS = {"Status":{"Module":18,"FriendlyName":["Kellersensor"],"Topic":"tasmota","ButtonTopic":"0","Power":1,"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}} 21:52:57 RSL: stat/tasmota/STATUS1 = {"StatusPRM":{"Baudrate":115200,"SerialConfig":"8N1","GroupTopic":"tasmotas","OtaUrl":"http://thehackbox.org/tasmota/release/tasmota.bin","RestartReason":"External System","Uptime":"0T00:06:18","StartupUTC":"2020-03-12T20:46:39","Sleep":50,"CfgHolder":4617,"BootCount":50,"BCResetTime":"2020-03-12T20:22:57","SaveCount":102,"SaveAddress":"F7000"}} 21:52:57 RSL: stat/tasmota/STATUS2 = {"StatusFWR":{"Version":"8.1.0.10(tasmota)","BuildDateTime":"2020.03.12 20:32:11","Boot":31,"Core":"STAGE","SDK":"2.2.2-dev(38a443e)","Hardware":"ESP8266EX","CR":"353/699"}} 21:52:57 RSL: stat/tasmota/STATUS3 = {"StatusLOG":{"SerialLog":2,"WebLog":2,"MqttLog":0,"SysLog":0,"LogHost":"","LogPort":514,"SSId":["LNW",""],"TelePeriod":300,"Resolution":"558180C0","SetOption":["00008009","2805C8000100060000005A00000000000000","00000000","00000000"]}} 21:52:57 RSL: stat/tasmota/STATUS4 = {"StatusMEM":{"ProgramSize":592,"Free":408,"Heap":14,"ProgramFlashSize":4096,"FlashSize":4096,"FlashChipId":"1640C8","FlashMode":3,"Features":["00000407","87A82187","04480121","000000CD","010017C0","C0008800","00000004"],"Drivers":"1,2,3,4,8,9,10,13,23,29,30,35,37","Sensors":"1,2,3,5,6,33"}} 21:52:57 RSL: stat/tasmota/STATUS5 = {"StatusNET":{"Hostname":"Kellersensor","IPAddress":"192.168.4.119","Gateway":"192.168.4.1","Subnetmask":"255.255.255.0","DNSServer":"192.168.4.1","Mac":"BC:DD:C2:01:8E:5B","Webserver":2,"WifiConfig":4,"WifiPower":17.0}} 21:52:57 RSL: stat/tasmota/STATUS6 = {"StatusMQT":{"MqttHost":"","MqttPort":1883,"MqttClientMask":"DVES_%06X","MqttClient":"DVES_018E5B","MqttUser":"DVES_USER","MqttCount":0,"MAX_PACKET_SIZE":1200,"KEEPALIVE":30}} 21:52:57 RSL: stat/tasmota/STATUS7 = {"StatusTIM":{"UTC":"2020-03-12T20:52:57","Local":"2020-03-12T21:52:57","StartDST":"2020-03-29T02:00:00","EndDST":"2020-10-25T03:00:00","Timezone":"+01:00","Sunrise":"07:08","Sunset":"18:51"}} 21:52:57 RSL: stat/tasmota/STATUS10 = {"StatusSNS":{"Time":"2020-03-12T21:52:57","AM2301":{"Temperature":22.9,"Humidity":57.0},"TempUnit":"C"}} 21:52:57 RSL: stat/tasmota/STATUS11 = {"StatusSTS":{"Time":"2020-03-12T21:52:57","Uptime":"0T00:06:18","UptimeSec":378,"Heap":14,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":0,"POWER":"ON","Wifi":{"AP":1,"SSId":"LNW","BSSId":"C8:0E:14:6B:30:54","Channel":6,"RSSI":100,"Signal":-31,"LinkCount":1,"Downtime":"0T00:00:06"}}}



- [ ] Provide the output of the Console log output when you experience your issue; if applicable:
  _(Please use_ ``weblog 4`` _for more debug information)_

**(Please, remember to close the issue when the problem has been addressed)**
JumpmanJunior commented 4 years ago

Not a bug. Zigbee reports to the E section and not to the T section. See also issue https://github.com/arendst/Tasmota/issues/8017 and pull request https://github.com/tasmota/docs/pull/234.