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

Add WILSEN.valve and .node #857

Merged
merged 2 commits into from
Dec 12, 2024
Merged
Show file tree
Hide file tree
Changes from all 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
2 changes: 2 additions & 0 deletions vendor/pepperl-fuchs/index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ endDevices:
# Unique identifier of the end device (lowercase, alphanumeric with dashes, max 36 characters).
- wilsen-sonic-level
- wilsen-sonic-distance
- wilsen-valve
- wilsen-node
80 changes: 80 additions & 0 deletions vendor/pepperl-fuchs/wilsen-node-codec.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
# 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: wilsen.js
# Examples (optional)
examples:
- description: Payload 1 contains sensor status, battery status and temperature
input:
fPort: 1
bytes: [3, 12, 4, 0, 6, 2, 1, 65, 174, 102, 102, 3, 81, 1, 36]
output:
data:
battery_vol: 3.6
payload: '030C040006020141AE666603510124'
sensor_1_status: 'No target detected'
sensor_2_status: 'No target detected'
sensor_status: 0
temp: 21.8
errors: []
warnings: []
- description: Payload 2 contains proximity in mm, amplitude, battery status, geo location and temperature
input:
fPort: 1
bytes: [3, 12, 4, 0, 6, 2, 1, 65, 174, 102, 102, 3, 81, 1, 36, 6, 80, 1, 2, 241, 198, 8, 6, 80, 2, 0, 125, 33, 179]
output:
data:
battery_vol: 3.6
latitude: 49.399304
longitude: 8.200627
payload: '030C040006020141AE66660351012406500102F1C608065002007D21B3'
sensor_1_status: 'No target detected'
sensor_2_status: 'No target detected'
sensor_status: 0
temp: 21.8
errors: []
warnings: []
- description: Payload 3 contains serial number, battery status and counter of LoRa transmission, GPS position determination and sensor measurments
input:
fPort: 1
bytes: [16, 42, 37, 52, 56, 48, 48, 48, 48, 48, 48, 54, 51, 57, 57, 57, 57, 4, 49, 1, 0, 158, 4, 49, 2, 0, 2, 6, 49, 4, 0, 0, 13, 47, 3, 81, 1, 36]
output:
data:
battery_vol: 3.6
gps_count: 2
lora_count: 158
payload: '102A253438303030303030363339393939043101009E043102000206310400000D2F03510124'
sensing_count: 3375
serial_nr: '48000000639999'
errors: []
warnings: []
# Downlink encoder encodes JSON object into a binary data downlink (optional)
# downlinkEncoder:
# fileName: wilsen.js
# examples:
# - description: Turn off BLE advertising
# input:
# data:
# led: green
# output:
# bytes: [1]
# fPort: 2
# - description: Invalid color
# input:
# data:
# led: blue
# output:
# errors:
# - invalid LED color

# Downlink decoder decodes the encoded downlink message (optional, must be symmetric with downlinkEncoder)
# downlinkDecoder:
# fileName: wilsen.js
# examples:
# - description: Turn green
# input:
# fPort: 2
# bytes: [1]
# output:
# data:
# led: green
Binary file added vendor/pepperl-fuchs/wilsen-node.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
165 changes: 165 additions & 0 deletions vendor/pepperl-fuchs/wilsen-node.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,165 @@
name: WILSEN.node
description: Wireless node sensor with LoRaWAN interface

# Hardware versions (optional, use when you have revisions)
hardwareVersions:
- version: '1.3.5'
numeric: 1

# Firmware versions (at least one is mandatory)
firmwareVersions:
- # Firmware version
version: '2.5.10'
numeric: 1
# Corresponding hardware versions (optional)
hardwareVersions:
- '1.3.5'

# LoRaWAN Device Profiles per region
# Supported regions are EU863-870, US902-928, AU915-928, AS923, CN779-787, EU433, CN470-510, KR920-923, IN865-867,
# RU864-870
profiles:
EU863-870:
# Optional identifier of the vendor of the profile. When you specify the vendorID, the profile is loaded from
# the vendorID's folder. This allows you to reuse profiles from module or LoRaWAN end device stack vendors.
# If vendorID is empty, the current vendor ID is used. In this example, the vendorID is the current vendor ID,
# which is verbose.
vendorID: pepperl-fuchs
# Identifier of the profile (lowercase, alphanumeric with dashes, max 36 characters)
id: wilsen-profile
lorawanCertified: false
codec: wilsen-node-codec

# Sensors that this device features (optional)
# Valid values are:
# 4-20 ma, accelerometer, altitude, analog input, auxiliary, barometer, battery, button, bvoc, co, co2, conductivity, current, digital input,
# digital output, dissolved oxygen, distance, dust, energy, gps, gyroscope, h2s, hall effect, humidity, iaq, infrared, leaf wetness, level,
# light, lightning, link, magnetometer, moisture, motion, nfc, no, no2, o3, occupancy, optical meter, particulate matter, ph, pir,
# pm2.5, pm10, potentiometer, power, precipitation, pressure, proximity, pulse count, pulse frequency, radar, rainfall, reed switch, rssi,
# sap flow, smart valve, smoke, snr, so2, solar radiation, sound, strain, surface temperature, switch, temperature, tilt, time, turbidity,
# tvoc, uv, vapor pressure, velocity, vibration, voltage, water potential, water, weight, wifi ssid, wind direction, wind speed.
sensors:
- proximity
- digital input
- switch
- occupancy
- gps
- temperature
- battery

# Additional radios that this device has (optional)
# Valid values are: ble, nfc, wifi, cellular.
additionalRadios:
- ble

# Dimensions in mm (optional)
# Use width, height, length and/or diameter
dimensions:
width: 182
length: 81
height: 71

# Weight in grams (optional)
weight: 600

# Battery information (optional)
battery:
replaceable: true
type: High capacity lithium battery 3.6 V, 13000 mAh

# Operating conditions (optional)
operatingConditions:
# Temperature (Celsius)
temperature:
min: -25
max: 70
# Relative humidity (fraction of 1)
relativeHumidity:
min: 0
max: 0

# IP rating (optional)
ipCode: IP67

# Key provisioning (optional)
# Valid values are: custom (user can configure keys), join server and manifest.
# keyProvisioning:
# - custom
# - join server

# Key programming (optional)
# Valid values are: bluetooth, nfc, wifi, serial (when the user has a serial interface to set the keys)
# and firmware (when the user should change the firmware to set the keys).
keyProgramming:
- bluetooth

# Key security (optional)
# Valid values are: none, read protected and secure element.
keySecurity: read protected

# Firmware programming (optional)
# Valid values are: serial (when the user has a serial interface to update the firmware), fuota lorawan (when the device
# supports LoRaWAN FUOTA via standard interfaces) and fuota other (other wireless update mechanism).
# firmwareProgramming:
# - serial
# - fuota lorawan

# Product and data sheet URLs (optional)
productURL: https://www.pepperl-fuchs.com/global/en/WILSEN-system.htm
dataSheetURL: https://www.pepperl-fuchs.com/global/en/4507.htm?searchterm=ws-ucc&start=0&rows=10&modifier=beginswith

# Commercial information
resellerURLs:
- name: 'Zenner International GmbH & Co. KG'
region:
- European Union
url: https://www.mz-connect.com/shop/search?sSearch=wilsen
msrp:
EUR: 349

# Photos
photos:
main: wilsen-node.jpg
other:
- wilsen-node.jpg

# Youtube or Vimeo Video (optional)
videos:
main: https://www.youtube.com/watch?v=TIwY34svRwA

# Regulatory compliances (optional)
compliances:
ElectromagneticConformityEMC:
- body: ETSI
norm: EN
standard: 301 489-1
version: 2.2.0
- body: ETSI
norm: EN
standard: 301 489-3
version: 2.1.1
- body: ETSI
norm: EN
standard: 301 489-17
version: 3.2.0
- body: ETSI
norm: EN
standard: 301 489-19
version: 2.1.0
radioEquipment:
- body: ETSI
norm: EN
standard: 300 220-2
version: 3.1.1
- body: ETSI
norm: EN
standard: 300 328
version: 2.1.1
- body: ETSI
norm: EN
standard: 303 413
version: 1.1.1
RoHS:
- body: DIN
norm: EN
standard: 50581
28 changes: 28 additions & 0 deletions vendor/pepperl-fuchs/wilsen-sonic-distance-codec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,19 @@ uplinkDecoder:
temp: 23.2
errors: []
warnings: []
- description: Payload 1 contains water body level in mm, amplitude, battery status and temperature
input:
fPort: 1
bytes: [4, 11, 8, 1, 80, 3, 11, 7, 255, 6, 2, 1, 65, 176, 204, 205, 3, 81, 1, 35]
output:
data:
amplitude: 255
battery_vol: 3.5
payload: '040B080150030B07FF06020141B0CCCD03510123'
temp: 22.1
water_body_level_mm: 336
errors: []
warnings: []
- description: Payload 2 contains proximity in mm, amplitude, battery status, geo location and temperature
input:
fPort: 1
Expand All @@ -32,6 +45,21 @@ uplinkDecoder:
temp: 23.2
errors: []
warnings: []
- description: Payload 2 contains water body level in mm, amplitude, battery status, geo location and temperature
input:
fPort: 1
bytes: [4, 11, 8, 1, 80, 3, 11, 7, 255, 6, 2, 1, 65, 176, 204, 205, 3, 81, 1, 35, 6, 80, 1, 2, 244, 0, 111, 6, 80, 2, 0, 129, 51, 109]
output:
data:
amplitude: 255
battery_vol: 3.5
latitude: 49.545327
longitude: 8.467309
payload: '040B080150030B07FF06020141B0CCCD0351012306500102F4006F0650020081336D'
temp: 22.1
water_body_level_mm: 336
errors: []
warnings: []
- description: Payload 3 contains serial number, battery status and counter of LoRa transmission, GPS position determination and ultra sonic measurments
input:
fPort: 1
Expand Down
Binary file modified vendor/pepperl-fuchs/wilsen-sonic-distance.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
38 changes: 32 additions & 6 deletions vendor/pepperl-fuchs/wilsen-sonic-distance.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ description: Wireless ultrasonic sensor with LoRaWAN interface
hardwareVersions:
- version: '1.3.3'
numeric: 1
- version: '1.3.5'
numeric: 2

# Firmware versions (at least one is mandatory)
firmwareVersions:
Expand All @@ -30,15 +32,39 @@ firmwareVersions:
lorawanCertified: false
codec: wilsen-sonic-distance-codec

- # Firmware version
version: '2.5.11'
numeric: 2
# Corresponding hardware versions (optional)
hardwareVersions:
- '1.3.3'
- '1.3.5'

# LoRaWAN Device Profiles per region
# Supported regions are EU863-870, US902-928, AU915-928, AS923, CN779-787, EU433, CN470-510, KR920-923, IN865-867,
# RU864-870
profiles:
EU863-870:
# Optional identifier of the vendor of the profile. When you specify the vendorID, the profile is loaded from
# the vendorID's folder. This allows you to reuse profiles from module or LoRaWAN end device stack vendors.
# If vendorID is empty, the current vendor ID is used. In this example, the vendorID is the current vendor ID,
# which is verbose.
vendorID: pepperl-fuchs
# Identifier of the profile (lowercase, alphanumeric with dashes, max 36 characters)
id: wilsen-profile
lorawanCertified: false
codec: wilsen-sonic-distance-codec

# Sensors that this device features (optional)
# Valid values are:
# 4-20 ma, accelerometer, altitude, analog input, auxiliary, barometer, battery, button, bvoc, co, co2, conductivity,
# current, digital input, dissolved oxygen, distance, dust, energy, gps, gyroscope, h2s, humidity, iaq, level, light,
# lightning, link, magnetometer, moisture, motion, no, no2, o3, particulate matter, ph, pir, pm2.5, pm10, potentiometer,
# power, precipitation, pressure, proximity, pulse count, pulse frequency, radar, rainfall, rssi, smart valve, snr, so2,
# solar radiation, sound, strain, surface temperature, temperature, tilt, time, tvoc, uv, vapor pressure, velocity,
# vibration, voltage, water potential, water, weight, wifi ssid, wind direction, wind speed.
# 4-20 ma, accelerometer, altitude, analog input, auxiliary, barometer, battery, button, bvoc, co, co2, conductivity, current, digital input,
# digital output, dissolved oxygen, distance, dust, energy, gps, gyroscope, h2s, hall effect, humidity, iaq, infrared, leaf wetness, level,
# light, lightning, link, magnetometer, moisture, motion, nfc, no, no2, o3, occupancy, optical meter, particulate matter, ph, pir,
# pm2.5, pm10, potentiometer, power, precipitation, pressure, proximity, pulse count, pulse frequency, radar, rainfall, reed switch, rssi,
# sap flow, smart valve, smoke, snr, so2, solar radiation, sound, strain, surface temperature, switch, temperature, tilt, time, turbidity,
# tvoc, uv, vapor pressure, velocity, vibration, voltage, water potential, water, weight, wifi ssid, wind direction, wind speed.
sensors:
- proximity
- distance
- gps
- temperature
Expand Down
Binary file modified vendor/pepperl-fuchs/wilsen-sonic-level.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading