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”}
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}}'