AS3935 Franklin Lightning sensor with TASMOTA MQTT Things and Items - Help me?

I implemented the project with the AS3935 lightning sensor and now wanted to know what the names of the things and items that come from Tasmota during a thunderstorm are called. Without a thunderstorm I don’t see this data in the MQTT.

THINGS:

	Thing mqtt:topic:as3925 "AS3935" (mqtt:broker:myBroker)  {
	Channels:
		//Type number : as_nois		[ stateTopic="tele/as3935/SENSOR", transformationPattern="JSONPATH:$.AS3935.x" ]
		Type number : as_distance	[ stateTopic="tele/as3935/SENSOR", transformationPattern="JSONPATH:$.AS3935.Distance" ]
		Type number : as_energ		[ stateTopic="tele/as3935/SENSOR", transformationPattern="JSONPATH:$.AS3935.Energy" ]
		//Type number : as_gain		[ stateTopic="tele/as3935/SENSOR", transformationPattern="JSONPATH:$.AS3935.x" ]
		//Type number : as_disturb	[ stateTopic="tele/as3935/SENSOR", transformationPattern="JSONPATH:$.AS3935.x" ]
		//Type number : as_uvrms	[ stateTopic="tele/as3935/SENSOR", transformationPattern="JSONPATH:$.AS3935.x" ]
}

ITEMS:

//AS3935 Blitzsensor

Number as3935_Distance “Gewitter Entfernung [%s]” (gTasmota) {channel=“mqtt:topic:as3935:Distance”}
Number as3935_Energy “Gewitter Energie[%s]” (gTasmota) {channel=“mqtt:topic:as3935:Energy”}

My problem is with the “x” behind AS3945.

Have a look at an example message at https://github.com/arendst/Tasmota/pull/8130#issuecomment-634920931

AS3935settings
22:17:43 MQT: stat/sonoff/RESULT = {"AS3935":{"Gain":"Outdoors","NFfloor":1,"uVrms":630,"Tunecaps":15,"MinNumLight":1,"Rejektion":5,"Wdthreshold":2,"MinNFstage":6,"NFAutoTime":4,"DisturberAutoTime":1,"Disturber":"On","NFauto":"Off","Disturberauto":"On","NFautomax":"On","Mqttlightevent":"On"}}
1 Like

You can also poll mqtt explorer or the tasmota tasmota console it will show the topics being published.

here the values from the sensor are missing

Things:

	Thing mqtt:topic:as3925 "AS3935" (mqtt:broker:myBroker)  {
	Channels:
		Type number : as_nois		[ stateTopic="tele/as3935/SENSOR", transformationPattern="JSONPATH:$.AS3935.NFfloor" ]
		Type number : as_distance	[ stateTopic="tele/as3935/SENSOR", transformationPattern="JSONPATH:$.AS3935.Distance" ]
		Type number : as_energ		[ stateTopic="tele/as3935/SENSOR", transformationPattern="JSONPATH:$.AS3935.Energy" ]
		Type number : as_gain		[ stateTopic="tele/as3935/SENSOR", transformationPattern="JSONPATH:$.AS3935.Gain" ]
		Type number : as_disturb	[ stateTopic="tele/as3935/SENSOR", transformationPattern="JSONPATH:$.AS3935.Disturber" ]
		Type number : as_uvrms		[ stateTopic="tele/as3935/SENSOR", transformationPattern="JSONPATH:$.AS3935.uVrms" ]
}

Items:

Number as3935_Noise				"Gewitter Noise [%s]"		<energy>		(gTasmota)		{channel="mqtt:topic:as3935:as_nois"}	
Number as3935_Distance			"Gewitter Entfernung [%s]"	<energy>		(gTasmota)		{channel="mqtt:topic:as3935:as_distance"}
Number as3935_Energy			"Gewitter Energie [%s]"		<energy>		(gTasmota)		{channel="mqtt:topic:as3935:as_energ"}		
Number as3935_Gain				"Gewitter Verstärkung [%s]"	<energy>		(gTasmota)		{channel="mqtt:topic:as3935:as_gain"}	
Number as3935_Disturb			"Gewitter Störung [%s]"		<energy>		(gTasmota)		{channel="mqtt:topic:as3935:as_disturb"}
Number as3935_uVrms				"Gewitter µVrms [%s]"		<energy>		(gTasmota)		{channel="mqtt:topic:as3935:as_uvrms"}

Errorlog:

2020-10-12 09:44:51.190 [WARN ] [t.generic.ChannelStateTransformation] - Executing the JSONPATH-transformation failed: Invalid path '$.AS3935.uVrms' in '{"Time":"2020-10-12T08:44:51","AS3935":{"Event":0,"Distance":0,"Energy":0,"Stage":9}}'

2020-10-12 09:44:51.207 [WARN ] [t.generic.ChannelStateTransformation] - Executing the JSONPATH-transformation failed: Invalid path '$.AS3935.Disturber' in '{"Time":"2020-10-12T08:44:51","AS3935":{"Event":0,"Distance":0,"Energy":0,"Stage":9}}'

2020-10-12 09:44:51.212 [WARN ] [t.generic.ChannelStateTransformation] - Executing the JSONPATH-transformation failed: Invalid path '$.AS3935.NFfloor' in '{"Time":"2020-10-12T08:44:51","AS3935":{"Event":0,"Distance":0,"Energy":0,"Stage":9}}'

2020-10-12 09:44:51.217 [WARN ] [t.generic.ChannelStateTransformation] - Executing the JSONPATH-transformation failed: Invalid path '$.AS3935.Gain' in '{"Time":"2020-10-12T08:44:51","AS3935":{"Event":0,"Distance":0,"Energy":0,"Stage":9}}'