You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
e.g. `LoRaWanDecoder1 LHT52` associates node 1 with the `LHT52.be` decoder file
74
74
- `BrRestart` to restart Berry
75
75
76
-
## Write your own Device Decoder file ##
76
+
## Write your own Device Decoder file ##
77
77
1. Find the JavaScript (*.js) decoder file for your device from [TTN Device Decoder database](https://github.com/TheThingsNetwork/lorawan-devices/tree/master/vendor)
78
78
Alternatively, find the manufacturer's datasheet/User Guide/User Manual/etc. to learn the syntax of the _Raw Data Payload_
79
79
2. Edit [LwDecoderSample.be](https://github.com/arendst/Tasmota/tree/master/tasmota/berry/lorawan/decoders/LwDecoderSample.be) to decode the _Raw Data Payload_
80
80
3. Rename `LwDecoderSample.be` to `<DeviceName>.be` where `<DeviceName>` matches your device name.
81
81
4. Copy `<DeviceName>.be` to the _Tasmota File System_.
82
82
5. Test
83
83
- `load("<DeviceName>.be")` from the Berry Scripting Console, looking for any reported errors.
84
-
- Execute this Tasmota console command: `LoRaWanDecoder<x> <DeviceName>`
84
+
- Execute this Tasmota console command: `LoRaWanDecoder<x> <DeviceName>`
85
85
- Wait for your device to send raw Data Payloads to your Tasmota installation, and confirm `LwDecoded` MQTT messages are received, and the values are correct:
86
86
87
87
6. Submit a [PR](https://github.com/arendst/Tasmota/pulls) to share your new decoder with the Tasmota community.
0 commit comments