Skip to content

Commit

Permalink
Add Yobiiq as Vendor and include SD-1001
Browse files Browse the repository at this point in the history
  • Loading branch information
dhakke committed Oct 30, 2024
1 parent 48c1eeb commit 6267d67
Show file tree
Hide file tree
Showing 9 changed files with 55 additions and 41 deletions.
13 changes: 13 additions & 0 deletions vendor/index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2102,3 +2102,16 @@ vendors:
website: https://www.infrafon.com/
social:
linkedin: https://de.linkedin.com/company/infrafon

- id: yobiiq
name: YOBIIQ B.V.
description: The best way to predict the future is by creating it. As an IoT Solutions Company, we develop smart solutions daily, tailored to your business and objectives. We serve as a full-service provider for Smart Environments and a distributor with in-house product development, offering comprehensive solutions for almost any requirement. Partner with us to drive your smart future forward.
logo: yobiiq_logo.svg
website: https://www.yobiiq.com
vendorID: 1045
ouis: ['FC48C9']
social:
linkedin: https://www.linkedin.com/company/yobiiq
facebook: https://www.facebook.com/yobiiq
twitter: yobiiq
github: Yobiiq-BV
2 changes: 1 addition & 1 deletion vendor/yobiiq/index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ profileIDs:
endDeviceID: 'sd-1001'
firmwareVersion: '1.0'
hardwareVersion: '1.0'
region: 'EU863-870'
region: 'EU863-870'
4 changes: 4 additions & 0 deletions vendor/yobiiq/sd-1001-codec.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# 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: sd-1001.js
8 changes: 1 addition & 7 deletions vendor/yobiiq/sd-1001-profile.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
# Vendor profile ID, can be freely issued by the vendor. NOTE: The vendor profile ID is different from the vendorID.
# The vendor Profile ID should be an incremental counter for every unique device listed in the vendor's folder.
# This vendor profile ID is also used on the QR code for LoRaWAN devices, see
# https://lora-alliance.org/wp-content/uploads/2020/11/TR005_LoRaWAN_Device_Identification_QR_Codes.pdf
vendorProfileID: 04154EB7

# LoRaWAN MAC version: 1.0, 1.0.1, 1.0.2, 1.0.3, 1.0.4 or 1.1
macVersion: '1.0.3'
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
Expand Down
40 changes: 20 additions & 20 deletions vendor/yobiiq/sd-1001.js
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
/**
* Codec for SD-1001 device : compatible with TTN, ChirpStack v4 and v3, etc...
* Release Date : 12 June 2023
* Update Date : 29 October 2024
* Update Date : 30 October 2024
*/

// Version Control
var VERSION_CONTROL = {
CODEC : {VERSION: "1.1.0", NAME: "CodecVersion"},
DEVICE: {MODEL : "SD-1001", NAME: "DeviceModel"},
PRODUCT: {CODE : "1002015", NAME: "ProductCode"},
MANUFACTURER: {COMPANY : "YOBIIQ", NAME: "Manufacturer"},
CODEC : {VERSION: "1.1.0", NAME: "codecVersion"},
DEVICE: {MODEL : "SD-1001", NAME: "deviceModel"},
PRODUCT: {CODE : "1002015", NAME: "productCode"},
MANUFACTURER: {COMPANY : "YOBIIQ B.V.", NAME: "manufacturer"},
}

// Configuration constants for device basic info
var CONFIG_INFO = {
FPORT : 50,
CHANNEL : parseInt("0xFF", 16),
TYPES : {
"0x09" : {SIZE : 2, NAME : "HardwareVersion", DIGIT: false},
"0x0A" : {SIZE : 2, NAME : "FirmwareVersion", DIGIT: false},
"0x16" : {SIZE : 5, NAME : "DeviceSerialNumber", DIGIT: true},
"0x0F" : {SIZE : 1, NAME : "DeviceClass",
"0x09" : {SIZE : 2, NAME : "hardwareVersion", DIGIT: false},
"0x0A" : {SIZE : 2, NAME : "firmwareVersion", DIGIT: false},
"0x16" : {SIZE : 5, NAME : "deviceSerialNumber", DIGIT: true},
"0x0F" : {SIZE : 1, NAME : "deviceClass",
VALUES : {
"0x00" : "Class A",
"0x01" : "Class B",
"0x02" : "Class C",
},
},
"0x0B" : {SIZE : 1, NAME : "PowerEvent",
"0x0B" : {SIZE : 1, NAME : "powerEvent",
VALUES : {
"0x00" : "AC Power Off",
"0x01" : "AC Power On",
Expand All @@ -43,32 +43,32 @@ var CONFIG_INFO = {
var CONFIG_DATA = {
FPORT : 8,
CHANNELS : {
"0x01" : {SIZE : 1, NAME : "BatteryLevelInPercentage",},
"0x02" : {SIZE : 1, NAME : "PowerEvent",
"0x01" : {SIZE : 1, NAME : "batteryLevelInPercentage",},
"0x02" : {SIZE : 1, NAME : "powerEvent",
VALUES : {
"0x00" : "AC Power Off",
"0x01" : "AC Power On",
},
},
"0x03" : {SIZE : 1, NAME : "LowBatteryAlarm",
"0x03" : {SIZE : 1, NAME : "lowBatteryAlarm",
VALUES : {
"0x00" : "Normal",
"0x01" : "Alarm",
},
},
"0x04" : {SIZE : 1, NAME : "FaultAlarm",
"0x04" : {SIZE : 1, NAME : "faultAlarm",
VALUES : {
"0x00" : "Normal",
"0x01" : "Alarm",
},
},
"0x05" : {SIZE : 1, NAME : "SmokeAlarm",
"0x05" : {SIZE : 1, NAME : "smokeAlarm",
VALUES : {
"0x00" : "Normal",
"0x01" : "Alarm",
},
},
"0x06" : {SIZE : 1, NAME : "InterconnectAlarm",
"0x06" : {SIZE : 1, NAME : "interconnectAlarm",
VALUES : {
"0x00" : "Normal",
"0x01" : "Alarm",
Expand Down Expand Up @@ -366,10 +366,10 @@ var CONFIG_DEVICE = {
PORT : 50,
CHANNEL : parseInt("0xFF", 16),
TYPES : {
"ReportingInterval" : {TYPE : parseInt("0x03", 16), SIZE : 2, MIN : 1, MAX : 65535,},
"SmokeDetector" : {TYPE : parseInt("0x00", 16), SIZE : 1, MIN : 0, MAX : 1,},
"SilenceBuzzer" : {TYPE : parseInt("0x0A", 16), SIZE : 2, MIN : 0, MAX : 65535,},
"ConfirmedUplink" : {TYPE : parseInt("0x01", 16), SIZE : 1, MIN : 0, MAX : 1,},
"reportingInterval" : {TYPE : parseInt("0x03", 16), SIZE : 2, MIN : 1, MAX : 65535,},
"smokeDetector" : {TYPE : parseInt("0x00", 16), SIZE : 1, MIN : 0, MAX : 1,},
"silenceBuzzer" : {TYPE : parseInt("0x0A", 16), SIZE : 2, MIN : 0, MAX : 65535,},
"confirmedUplink" : {TYPE : parseInt("0x01", 16), SIZE : 1, MIN : 0, MAX : 1,},
}
}

Expand Down
Binary file modified vendor/yobiiq/sd-1001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 changes: 15 additions & 13 deletions vendor/yobiiq/sd-1001.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: SD1000 - Smoke Detector
name: SD1001 - Smoke Detector
description: Interconnectable Smoke Detector

# Hardware versions (optional, use when you have revisions)
Expand Down Expand Up @@ -26,17 +26,11 @@ firmwareVersions:
# 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: example
# Identifier of the profile (lowercase, alphanumeric with dashes, max 36 characters)
id: sd-1000-profile
lorawanCertified: true
codec: sd-1000-codec

# Sensors that this device features (optional)
id: sd-1001-profile
lorawanCertified: false
codec: sd-1001-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,
Expand All @@ -45,6 +39,7 @@ firmwareVersions:
# 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.
sensors:
- smoke
- battery

# Battery information (optional)
Expand All @@ -57,4 +52,11 @@ productURL: https://yobiiq.com/products/smoke-detector/

# Photos
photos:
main: sd-1000.png # Image needs to have a transparent background
main: sd-1001.png # Image needs to have a transparent background

# Regulatory compliances (optional)
compliances:
safety:
- body: IEC
norm: EN
standard: 14604:2008
Binary file removed vendor/yobiiq/yobiiq-logo.png
Binary file not shown.
1 change: 1 addition & 0 deletions vendor/yobiiq/yobiiq_logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 6267d67

Please sign in to comment.