Skip to content

Commit

Permalink
Fixes raw data parsing for some devices
Browse files Browse the repository at this point in the history
  • Loading branch information
Apollon77 committed Jan 3, 2025
1 parent c9a47ec commit 2fec1fe
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ Send the log with reference to the generated GitHub issue to iobroker@fischer-ka
* (@Apollon77) Tries to reduce memory usage by only loading Schema definitions when needed and giving memory free afterwards
* (@Apollon77) More schema information were added/updated
* (@Apollon77) Added enhanced logic for AC/DC states and generalized it for more devices
* (@Apollon77) Fixes raw data parsing for some devices

### 3.16.0 (2024-08-15)
* js-controller 5.0 is now required at least
Expand Down
7 changes: 2 additions & 5 deletions io-package.json
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,7 @@
"enabled": true,
"extIcon": "https://raw.githubusercontent.com/Apollon77/ioBroker.tuya/master/admin/tuya.png",
"keywords": [
"Tuya",
"switch",
"smarthome",
"iobroker"
"Tuya"
],
"readme": "https://github.com/Apollon77/ioBroker.tuya/blob/master/README.md",
"loglevel": "info",
Expand All @@ -151,7 +148,7 @@
"singletonHost": true,
"dependencies": [
{
"js-controller": ">=5.0.0"
"js-controller": ">=5.0.19"
}
],
"globalDependencies": [
Expand Down
4 changes: 4 additions & 0 deletions lib/mapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,10 @@ function getObjectsForSchema(schema, schemaExt, dpNames) {
}
}
break;
case 'raw':
common.type = 'string';
common.encoding = 'base64';
break;
default:
common.type = 'string';
}
Expand Down

0 comments on commit 2fec1fe

Please sign in to comment.