Code Monkey home page Code Monkey logo

mld18 / iobroker.valloxserial Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 1.0 547 KB

This is an ioBroker adapter. It is used to read settings and data as well as to change settings of Vallox ventilation units of type SE. I.e., units that are controlled electronically via the legacy Vallox RS-485 serial protocol.

License: MIT License

HTML 13.40% CSS 0.26% JavaScript 21.49% TypeScript 62.65% Shell 2.20%
iobroker iobroker-adapter iobrokeradapter kwl rs485 serial-communication vallox ventilation wohnraumlueftung

iobroker.valloxserial's People

Contributors

mld18 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

olfdb

iobroker.valloxserial's Issues

Missing "Flags 6" decode

The code 0x71 is missing in io-package.json leading to frequent warning "No mapping found for code 0x71. Datagram was 01 11 21 71 00 A4"

Here is the missing data

{
"_id": "Readings.Flags6",
"type": "state",
"common": {
"name": "Remotecontrol",
"type": "boolean",
"role": "indicator.remotecontrol",
"read": true,
"write": false,
"desc": "remotecontrol unit attached",
"custom": {
"fieldCodes": [
"0x71"
],
"fieldBitPattern": "0x10",
"encoding": "onOff"
}
}
},
{
"_id": "Readings.Flags6",
"type": "state",
"common": {
"name": "Fireplace switch",
"type": "boolean",
"role": "indicator.fireplaceswitch",
"read": true,
"write": false,
"desc": "fireplaceswitch activation",
"custom": {
"fieldCodes": [
"0x71"
],
"fieldBitPattern": "0x20",
"encoding": "onOff"
}
}
},
{
"_id": "Readings.Flags6",
"type": "state",
"common": {
"name": "Fireplace boost function",
"type": "boolean",
"role": "indicator.fireplcaeboostfunction",
"read": true,
"write": false,
"desc": "fireplcae boost activated",
"custom": {
"fieldCodes": [
"0x71"
],
"fieldBitPattern": "0x30",
"encoding": "onOff"
}
}
}

Error when no humidity sensor is connected

When no humidity sensor is connected there is an error

Unable to change state of Readings.humidity: Error: undefined is not a valid state value

Always return a value in decodeHumidity, e.g.

**
* Relative humidity values need to be according to the formula
* (value - 51) / 2.04 and it will result in a value between 0%
* and 100%.
* @param reading the encoded humidity value
*/
public static decodeHumidity(reading: number): number | undefined {
let result = (reading-51) / 2.04;
return ((result>=0) && (result<=100)) ? result : 0;
}

Enhancement: smartName for commands

Please add smartName for commands.

e.g.

"common": {
"name": "Set fan speed",
"type": "number",
"role": "level",
"desc": "Fan speed is discretely indicated by a level between 1 and 8",
"min": 0,
"max": 8,
"read": false,
"write": true,
"custom": {
"fieldCodes": [
"0x29"
],
"encoding": "fanSpeed",
"smartName": {
"de": "Lüftungsstufe",
"smartType": "THERMOSTAT"
}
},
"smartName": {
"de": "Lüftungsstufe",
"smartType": "THERMOSTAT"
}

},

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.