-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Temperature, temperature/humidity, magnetic decoding Co-authored-by: Florian <[email protected]>
- Loading branch information
1 parent
0c9dc6f
commit fca4da8
Showing
12 changed files
with
255 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Sensor Easy Door/Window sensor | ||
|
||
|Model Id|[SE_MAG](https://github.com/theengs/decoder/blob/development/src/devices/SE_MAG_json.h)| | ||
|-|-| | ||
|Brand|Sensor Easy| | ||
|Model|Sensor Easy Door/Window Pro| | ||
|Short Description|Indoor/Outdoor Magnetic sensor| | ||
|Communication|BLE broadcast| | ||
|Frequency|2.4Ghz| | ||
|Power Source|embedded| | ||
|Exchanged Data|open, battery, volt| | ||
|Encrypted|No| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Sensor Easy Thermometer and Hygrometer Pro | ||
|
||
|Model Id|[SE_RHT](https://github.com/theengs/decoder/blob/development/src/devices/SE_RHT_json.h)| | ||
|-|-| | ||
|Brand|Sensor Easy| | ||
|Model|Sensor Easy Temperature and Humidity Pro| | ||
|Short Description|Indoor/Outdoor Thermometer| | ||
|Communication|BLE broadcast| | ||
|Frequency|2.4Ghz| | ||
|Power Source|embedded| | ||
|Exchanged Data|temperature, humidity, battery, volt| | ||
|Encrypted|No| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Sensor Easy Thermometer | ||
|
||
|Model Id|[SE_TEMP](https://github.com/theengs/decoder/blob/development/src/devices/SE_TEMP_json.h)| | ||
|-|-| | ||
|Brand|Sensor Easy| | ||
|Model|Sensor Easy Temperature| | ||
|Short Description|Indoor/Outdoor Thermometer| | ||
|Communication|BLE broadcast| | ||
|Frequency|2.4Ghz| | ||
|Power Source|embedded| | ||
|Exchanged Data|temperature, battery, volt| | ||
|Encrypted|No| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Sensor Easy Thermometer Pro | ||
|
||
|Model Id|[SE_TEMP](https://github.com/theengs/decoder/blob/development/src/devices/SE_TEMP_json.h)| | ||
|-|-| | ||
|Brand|Sensor Easy| | ||
|Model|Sensor Easy Temperature Pro| | ||
|Short Description|Indoor/Outdoor Thermometer| | ||
|Communication|BLE broadcast| | ||
|Frequency|2.4Ghz| | ||
|Power Source|embedded| | ||
|Exchanged Data|temperature, battery, volt| | ||
|Encrypted|No| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Sensor Easy Thermometer External Probe Pro | ||
|
||
|Model Id|[SE_TPROBE](https://github.com/theengs/decoder/blob/development/src/devices/SE_TPROBE_json.h)| | ||
|-|-| | ||
|Brand|Sensor Easy| | ||
|Model|Sensor Easy Temperature External Probe Pro| | ||
|Short Description|Indoor/Outdoor Thermometer| | ||
|Communication|BLE broadcast| | ||
|Frequency|2.4Ghz| | ||
|Power Source|embedded| | ||
|Exchanged Data|temperature, battery, volt| | ||
|Encrypted|No| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
const char* _SE_MAG_json = "{\"brand\":\"Sensor Easy\",\"model\":\"SE MAG\",\"model_id\":\"SE_MAG\",\"tag\":\"0404\",\"condition\":[\"servicedata\",\"=\",4,\"&\",\"uuid\",\"index\",0,\"2a06\",\"&\",\"name\",\"index\",1,\" MAG\"],\"properties\":{\"open\":{\"decoder\":[\"bit_static_value\",\"servicedata\",1,0,true,false]},\"volt\":{\"condition\":[\"manufacturerdata\",\"=\",10,\"index\",4,\"f2\"],\"decoder\":[\"value_from_hex_data\",\"manufacturerdata\",6,4,true,false],\"post_proc\":[\"/\",1000]}}}"; | ||
|
||
/* | ||
R""""( | ||
{ | ||
"brand":"Sensor Easy", | ||
"model":"SE MAG", | ||
"model_id":"SE_MAG", | ||
"tag":"0404", | ||
"condition":["servicedata", "=", 4, "&", "uuid", "index", 0, "2a06","&", "name", "index", 1, " MAG"], | ||
"properties":{ | ||
"open":{ | ||
"decoder":["bit_static_value", "servicedata", 1, 0, true, false] | ||
}, | ||
"volt":{ | ||
"condition":["manufacturerdata", "=", 10,"index", 4, "f2"], | ||
"decoder":["value_from_hex_data", "manufacturerdata", 6, 4, true, false], | ||
"post_proc":["/", 1000] | ||
} | ||
} | ||
})""""; | ||
*/ | ||
|
||
const char* _SE_MAG_json_props = "{\"properties\":{\"open\":{\"unit\":\"status\",\"name\":\"door\"},\"volt\":{\"unit\":\"V\",\"name\":\"voltage\"}}}"; | ||
|
||
/* | ||
R""""( | ||
{ | ||
"properties": { | ||
"open":{ | ||
"unit":"status", | ||
"name":"door" | ||
}, | ||
"volt": { | ||
"unit": "V", | ||
"name": "voltage" | ||
} | ||
} | ||
})""""; | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#include "common_props.h" | ||
|
||
const char* _SE_RHT_json = "{\"brand\":\"Sensor Easy\",\"model\":\"SE RHT\",\"model_id\":\"SE_RHT\",\"tag\":\"01\",\"condition\":[\"name\",\"index\",1,\" RHT \",\"&\",\"uuid\",\"index\",0,\"2a6e\",\"|\",\"uuid\",\"index\",0,\"2a6f\"],\"properties\":{\"tempc\":{\"condition\":[\"servicedata\",\"=\",4],\"decoder\":[\"value_from_hex_data\",\"servicedata\",0,4,true,true],\"post_proc\":[\"/\",100]},\"hum\":{\"condition\":[\"servicedata\",\"=\",2],\"decoder\":[\"value_from_hex_data\",\"servicedata\",0,2,true,true]},\"volt\":{\"condition\":[\"manufacturerdata\",\"=\",10,\"index\",4,\"f2\"],\"decoder\":[\"value_from_hex_data\",\"manufacturerdata\",6,4,true,false],\"post_proc\":[\"/\",1000]}}}"; | ||
|
||
/*R""""( | ||
{ | ||
"brand":"Sensor Easy", | ||
"model":"SE RHT", | ||
"model_id":"SE_RHT", | ||
"tag":"01", | ||
"condition":["name", "index", 1, " RHT ","&", "uuid", "index", 0, "2a6e","|", "uuid", "index", 0, "2a6f"], | ||
"properties":{ | ||
"tempc":{ | ||
"condition":["servicedata", "=", 4], | ||
"decoder":["value_from_hex_data", "servicedata", 0, 4, true, true], | ||
"post_proc":["/", 100] | ||
}, | ||
"hum":{ | ||
"condition":["servicedata", "=", 2], | ||
"decoder":["value_from_hex_data", "servicedata", 0, 2, true, true] | ||
}, | ||
"volt":{ | ||
"condition":["manufacturerdata", "=", 10,"index", 4, "f2"], | ||
"decoder":["value_from_hex_data", "manufacturerdata", 6, 4, true, false], | ||
"post_proc":["/", 1000] | ||
} | ||
} | ||
})"""";*/ | ||
|
||
const char* _SE_RHT_json_props = _common_BVTH_props; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
const char* _SE_TEMP_json = "{\"brand\":\"Sensor Easy\",\"model\":\"SE TEMP\",\"model_id\":\"SE_TEMP\",\"tag\":\"01\",\"condition\":[\"servicedata\",\"=\",4,\"&\",\"uuid\",\"index\",0,\"2a6e\",\"&\",\"name\",\"index\",1,\" T \"],\"properties\":{\"tempc\":{\"decoder\":[\"value_from_hex_data\",\"servicedata\",0,4,true,true],\"post_proc\":[\"/\",100]},\"volt\":{\"condition\":[\"manufacturerdata\",\"=\",10,\"index\",4,\"f2\"],\"decoder\":[\"value_from_hex_data\",\"manufacturerdata\",6,4,true,false],\"post_proc\":[\"/\",1000]}}}"; | ||
|
||
/*R""""( | ||
{ | ||
"brand":"Sensor Easy", | ||
"model":"SE TEMP", | ||
"model_id":"SE_TEMP", | ||
"tag":"01", | ||
"condition":["servicedata", "=", 4, "&", "uuid", "index", 0, "2a6e","&", "name", "index", 1, " T "], | ||
"properties":{ | ||
"tempc":{ | ||
"decoder":["value_from_hex_data", "servicedata", 0, 4, true, true], | ||
"post_proc":["/", 100] | ||
}, | ||
"volt":{ | ||
"condition":["manufacturerdata", "=", 10,"index", 4, "f2"], | ||
"decoder":["value_from_hex_data", "manufacturerdata", 6, 4, true, false], | ||
"post_proc":["/", 1000] | ||
} | ||
} | ||
})""""; | ||
*/ | ||
const char* _SE_TEMP_json_props = "{\"properties\":{\"tempc\":{\"unit\":\"°C\",\"name\":\"temperature\"},\"volt\":{\"unit\":\"V\",\"name\":\"voltage\"}}}"; | ||
|
||
/*R""""( | ||
{ | ||
"properties": { | ||
"tempc": { | ||
"unit": "°C", | ||
"name": "temperature" | ||
}, | ||
"volt": { | ||
"unit": "V", | ||
"name": "voltage" | ||
} | ||
} | ||
})"""";*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
const char* _SE_TPROBE_json = "{\"brand\":\"Sensor Easy\",\"model\":\"SE TEMP PROBE\",\"model_id\":\"SE_TPROBE\",\"tag\":\"01\",\"condition\":[\"servicedata\",\"=\",4,\"&\",\"uuid\",\"index\",0,\"2a6e\",\"&\",\"name\",\"index\",1,\" TPROBE\"],\"properties\":{\"tempc\":{\"decoder\":[\"value_from_hex_data\",\"servicedata\",0,4,true,true],\"post_proc\":[\"/\",100]},\"volt\":{\"condition\":[\"manufacturerdata\",\"=\",10,\"index\",4,\"f2\"],\"decoder\":[\"value_from_hex_data\",\"manufacturerdata\",6,4,true,false],\"post_proc\":[\"/\",1000]}}}"; | ||
|
||
/*R""""( | ||
{ | ||
"brand":"Sensor Easy", | ||
"model":"SE TEMP PROBE", | ||
"model_id":"SE_TPROBE", | ||
"tag":"01", | ||
"condition":["servicedata", "=", 4, "&", "uuid", "index", 0, "2a6e","&", "name", "index", 1, " TPROBE"], | ||
"properties":{ | ||
"tempc":{ | ||
"decoder":["value_from_hex_data", "servicedata", 0, 4, true, true], | ||
"post_proc":["/", 100] | ||
}, | ||
"volt":{ | ||
"condition":["manufacturerdata", "=", 10,"index", 4, "f2"], | ||
"decoder":["value_from_hex_data", "manufacturerdata", 6, 4, true, false], | ||
"post_proc":["/", 1000] | ||
} | ||
} | ||
})""""; | ||
*/ | ||
const char* _SE_TPROBE_json_props = "{\"properties\":{\"tempc\":{\"unit\":\"°C\",\"name\":\"temperature\"},\"volt\":{\"unit\":\"V\",\"name\":\"voltage\"}}}"; | ||
|
||
/*R""""( | ||
{ | ||
"properties": { | ||
"tempc": { | ||
"unit": "°C", | ||
"name": "temperature" | ||
}, | ||
"volt": { | ||
"unit": "V", | ||
"name": "voltage" | ||
} | ||
} | ||
})"""";*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters