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

watteco vendor recreation, th device added to test devices addition. #675

Merged
merged 3 commits into from
Oct 4, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions vendor/index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1977,3 +1977,7 @@ vendors:
description: Open Boat Projects is a platform on which water sports enthusiasts present their self-constructed DIY projects around boating. The focus is on the idea of open source and open hardware as well as the exchange of ideas.
website: https://open-boat-projects.org
logo: obp_logo.png

- id: watteco
name: WATTECO
vendorID: 296
5 changes: 5 additions & 0 deletions vendor/watteco/index.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# This example contains just one end device: windsensor. It is referenced here in the index.

endDevices:
# Unique identifier of the end device (lowercase, alphanumeric with dashes, max 36 characters)
- th-sensor
301 changes: 301 additions & 0 deletions vendor/watteco/th-sensor-codec.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,301 @@
# Uplink decoder decodes binary data uplink into a JSON object (optional)
# For documentation on writing encoders and decoders, see: https://thethingsstack.io/integrations/payload-formatters/javascript/
uplinkDecoder:
fileName: th-sensor.js
# Examples (optional)
# examples:
# [
# {
# "type": "uplink",
# "description": "uplink standard report containing temperature value | payload:110A04020000290B89",
# "input": {
# "bytes": [
# 17,
# 10,
# 4,
# 2,
# 0,
# 0,
# 41,
# 11,
# 137
# ],
# "fPort": 125,
# "recvTime": "2023-07-19T07:51:31.598957793Z"
# },
# "output": {
# "data": [{
# "variable": "temperature",
# "value": 29.53,
# "date": "2023-07-19T07:51:31.598957793Z"
# }],
# "warnings": [""]
# }
# },
# {
# "type": "uplink",
# "description": "uplink standard report containing 2 short threshold alarms on temperature value | payload:118A0402000029075590B0B1",
# "input": {
# "bytes": [
# 17, 138, 4, 2, 0,
# 0, 41, 7, 85, 144,
# 176, 177
# ],
# "fPort": 125,
# "recvTime": "2023-07-19T07:51:25.508306410Z"
# },
# "output": {
# "data": [
# {
# "variable": "temperature",
# "value": 18.77,
# "date": "2023-07-19T07:51:25.508306410Z"
# }
# ],
# "warnings":
# [
# "alarm, criterion_index: 0, mode: threshold, crossing: fall",
# "alarm, criterion_index: 1, mode: threshold, crossing: fall"
# ]
#
# }
# },
# {
# "type": "uplink",
# "description": "uplink standard report containing 3 long threshold alarms on temperature value | payload:118a0402000029010ea0b008fc000001b10834000001b207d0000001",
# "input": {
# "bytes": [
# 17, 138, 4, 2, 0, 0, 41, 1,
# 14, 160, 176, 8, 252, 0, 0, 1,
# 177, 8, 52, 0, 0, 1, 178, 7,
# 208, 0, 0, 1
# ],
# "fPort": 125,
# "recvTime": "2023-07-19T07:51:25.508306410Z"
# },
# "output":{
# "data": [
# {
# "variable": "temperature",
# "value": 2.7,
# "date": "2023-07-19T07:51:25.508306410Z"
# }
# ],
# "warnings": [
# "alarm, criterion_index: 0, mode: threshold, crossing: fall, value: 23, gap: 0, occurences: 1",
# "alarm, criterion_index: 1, mode: threshold, crossing: fall, value: 21, gap: 0, occurences: 1",
# "alarm, criterion_index: 2, mode: threshold, crossing: fall, value: 20, gap: 0, occurences: 1"
# ]
#
# }
#
# },
# {
# "type": "uplink",
# "description": "uplink standard report containing a long delta alarm on temperature value | payload:118A04020000290B35A0C80014",
# "input": {
# "bytes": [
# 17, 138, 4, 2, 0, 0,
# 41, 11, 53, 160, 200, 0,
# 20
# ],
# "fPort": 125,
# "recvTime": "2023-07-19T07:51:25.508306410Z"
# },
# "output": {
# "data": [
# {
# "variable": "temperature",
# "value": 28.69,
# "date": "2023-07-19T07:51:25.508306410Z"
# }
# ],
# "warnings": [ "alarm, criterion_index: 0, mode: delta, value: 0.2" ]
# }
# },
# {
# "type": "uplink",
# "description": "uplink standard report containing humidity value | payload:110A04050000210E89",
# "input": {
# "bytes": [
# 17,
# 10,
# 4,
# 5,
# 0,
# 0,
# 33,
# 14,
# 137
# ],
# "fPort": 125,
# "recvTime": "2023-07-19T07:51:25.508306410Z"
# },
# "output": {
# "data": [{
# "variable": "humidity",
# "value": 37.21,
# "date": "2023-07-19T07:51:25.508306410Z"
# }],
# "warnings": [
# ""
# ]
# }
# },
# {
# "type": "uplink",
# "description": "uplink standard report containing state of case | payload:110A000F00551001",
# "input": {
# "bytes": [
# 17,
# 10,
# 0,
# 15,
# 0,
# 85,
# 16,
# 1
# ],
# "fPort": 125,
# "recvTime": "2023-07-19T07:51:25.508306410Z"
# },
# "output": {
# "data": [{
# "variable": "violation_detection",
# "value": true,
# "date": "2023-07-19T07:51:25.508306410Z"
# }],
# "warnings": [
# ""
# ]
# }
# },
# {
# "type": "uplink",
# "description": "uplink standard report containing number of pulse detection on input 1 | payload:110A000F04022300000000",
# "input": {
# "bytes": [
# 17,
# 10,
# 0,
# 15,
# 4,
# 2,
# 35,
# 0,
# 0,
# 0,
# 0
# ],
# "fPort": 125,
# "recvTime": "2023-07-19T07:51:25.508306410Z"
# },
# "output": {
# "data": [
# {
# "variable": "index",
# "value": 0,
# "date": "2023-07-19T07:51:25.508306410Z"
# }
# ],
# "warnings": [""]
# }
# },
# {
# "type": "uplink",
# "description": "uplink standard report containing cmdID 0x07 response for temperature cluster | payload:1107040200800000",
# "input": {
# "bytes": [
# 17, 7, 4, 2,
# 0, 128, 0, 0
# ],
# "fPort": 125,
# "recvTime": "2023-07-19T07:51:25.508306410Z"
# },
# "output": {
# "data": {
# "report": "standard",
# "endpoint": 0,
# "cmdID": "0x07",
# "clustID": "0x0402",
# "attID": "0x0000",
# "status": 0,
# "report_parameters": {
# "new_mode_configuration": "1",
# "cause_request": "none",
# "secured_if_alarm": "0",
# "secured": "0",
# "no_hearde_port": "0",
# "batch": "0"
# }
# },
# "warnings": [ "" ]
# }
# },
# {
# "type": "uplink",
# "description": "uplink of read current value on cluster 0x0402 | payload:11010402000000290992",
# "input": {
# "bytes": [
# 17, 1, 4, 2, 0,
# 0, 0, 41, 9, 146
# ],
# "fPort": 125,
# "recvTime": "2023-07-19T07:51:25.508306410Z"
# }
# ,
# "output": {
# "data": [{
# "variable": "temperature",
# "value": 24.5,
# "date": "2023-07-19T07:51:25.508306410Z"
# }],
# "warnings": [ "" ]
# }
# },
# {
# "type": "uplink",
# "description": "uplink containing a batch of values | payload:362100808098c31ecb824d7b07ba3d",
# "input": {
# "bytes": [
# 54,
# 33,
# 0,
# 128,
# 128,
# 152,
# 195,
# 30,
# 203,
# 130,
# 77,
# 123,
# 7,
# 186,
# 61
# ],
# "fPort": 125,
# "recvTime": "2023-07-18T12:19:53.243Z"
# },
# "output": {
# "data": [
# {
# "variable": "temperature",
# "value": 28.7,
# "date": "2023-07-18T12:19:53.243Z"
# },
# {
# "variable": "humidity",
# "value": 37,
# "date": "2023-07-18T12:19:53.243Z"
# },
# {
# "variable": "battery_voltage",
# "value": 3.707,
# "date": "2023-07-18T12:19:52.243Z"
# }
# ],
# "warnings": [""]
# }
# }
# ]
52 changes: 52 additions & 0 deletions vendor/watteco/th-sensor-profile.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# Vendor profile ID, can be freely issued by the vendor
# This vendor profile ID is also used on the QR code for LoRaWAN devices, see
# https://lora-alliance.org/sites/default/files/2020-10/LoRa_Alliance_Vendor_ID_for_QR_Code.pdf
vendorProfileID: 296

# LoRaWAN MAC version: 1.0, 1.0.1, 1.0.2, 1.0.3, 1.0.4 or 1.1
macVersion: 1.0.2
# LoRaWAN Regional Parameters version. Values depend on the LoRaWAN version:
# 1.0: TS001-1.0
# 1.0.1: TS001-1.0.1
# 1.0.2: RP001-1.0.2 or RP001-1.0.2-RevB
# 1.0.3: RP001-1.0.3-RevA
# 1.0.4: RP002-1.0.0 or RP002-1.0.1
# 1.1: RP001-1.1-RevA or RP001-1.1-RevB
regionalParametersVersion: RP001-1.0.2-RevB

# Whether the end device supports join (OTAA) or not (ABP)
supportsJoin: true
# If your device is an ABP device (supportsJoin is false), uncomment the following fields:
# RX1 delay
#rx1Delay: 5
# RX1 data rate offset
#rx1DataRateOffset: 0
# RX2 data rate index
#rx2DataRateIndex: 0
# RX2 frequency (MHz)
#rx2Frequency: 869.525
# Factory preset frequencies (MHz)
#factoryPresetFrequencies: [868.1, 868.3, 868.5, 867.1, 867.3, 867.5, 867.7, 867.9]

# Maximum EIRP
maxEIRP: 16
# Whether the end device supports 32-bit frame counters
supports32bitFCnt: true

# Whether the end device supports class B
supportsClassB: false
# If your device supports class B, uncomment the following fields:
# Maximum delay for the end device to answer a MAC request or confirmed downlink frame (seconds)
#classBTimeout: 60
# Ping slot period (seconds)
#pingSlotPeriod: 128
# Ping slot data rate index
#pingSlotDataRateIndex: 0
# Ping slot frequency (MHz). Set to 0 if the band supports ping slot frequency hopping.
#pingSlotFrequency: 869.525

# Whether the end device supports class C
supportsClassC: false
# If your device supports class C, uncomment the following fields:
# Maximum delay for the end device to answer a MAC request or confirmed downlink frame (seconds)
#classCTimeout: 60
Binary file added vendor/watteco/th-sensor.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions vendor/watteco/th-sensor.js

Large diffs are not rendered by default.

Loading