Releases: ssalonen/openhab1-addons
modbus-timeout-pr-2016-09-07
See openhab#4627
modbus-error-detection-pr-2016-08-08
See issue openhab#4552 in openhab
New slave configuration parameter postundefinedonreaderror
(default false
) to emit Undefined whenever read fails.
pooling-pr-20160517-rebase-utc-fix
Same as dynamodb-pr-v1-rebased-2016-07-16 but with 9e6adab (timezone fix)
Precompiled version of dynamodb persistence addon for openhab 1
Docs: https://github.com/openhab/openhab/wiki/Amazon-DynamoDB-Persistence
PR: openhab#4542
dynamodb-pr-v1-rebased-2016-07-16
Same as dynamodb-pr-v1 but rebased against upstream master @ 2016-07-16
Precompiled version of dynamodb persistence addon for openhab 1
Docs: https://github.com/openhab/openhab/wiki/Amazon-DynamoDB-Persistence
PR: openhab#4542
DynamoDB openhab persistence addon
Precompiled version of dynamodb persistence addon for openhab 1
Docs: https://github.com/openhab/openhab/wiki/Amazon-DynamoDB-Persistence
serial-reconnect-v1
Test version of modbus binding which re-configures serial port after every transaction
Not really working.
modbus-pooling-pr
See openhab#4226
This corresponds to the rebased version done 2016-05-17
DynamoDB persistence addon preview version v0.1
PLEASE NOTE THAT THIS IS OLD VERSION SEE PULL REQUEST FOR UP-TO-DATE VERSION
Preview version of DynamoDB persistence addon for openhab. Currently supports only storing value (no querying).
Disclaimer: Please note that the Amazon services might cost you something. I take no responsibility what happens to your amazon account with this addon, please use with your own risk!
- Sign up for Amazon AWS
- Create user for openhab with IAM
2.a Services -> IAM -> Users -> Create new Users -> (User names: openhab, keep Generate an access key for each user checked) -> Create
2.b. Show User Security Credentials and store record the keys - Configure user policy to have access for dynamodb
3.a. Open Services -> IAM -> Policies
3.b. Check AmazonDynamoDBFullAccess and click Policy actions -> Attach
3.c. Check the user created in step 2 and click Attach policy - configure openhab using openhab.cfg:
ini dynamodb:accessKey=foo dynamodb:secretKey=bar dynamodb:region=eu-west-1
Finally, configure addon as other persistence addons using dynamodb.persist file.
The read & write capacity default to 1 for minimum costs. You can override them with readCapacityUnits
and writeCapacityUnits
configuration parameters.
The persistence plugin creates all the necessary dynamodb tables to store the items. Currently we have several tables, one for each item type (string, integer, date, and bigdecimal)
modbus-pooling-pr (old)
Refer to https://github.com/ssalonen/openhab/releases/tag/pooling-pr-20160517-rebase for the updated (2016-05-17) version
modbus-pooling-test-version-6
Changes
functionality
- TCP modbus: configurable re-connection period. Default remains the same: connection is still disconnected after every transaction
- serial end points: end points are considered same if they have the same port name. Previously other parameters mattered (e.g. baud rate)
- interpretation of inter transaction delay change: now we ensure certain duration between response and the next request. Before we ensured certain duration between consecutive requests (even though slave response might have just ended).
code
- rebased codebase
- merged with modbus binding test suite
- heavy documentation
logging
- warn level logging if several modbus slaves have same endpoint but different parameters
- info level log of parsing results in the beginning
Example TCP configuration (poll 5ms, 100ms delay between transactions)
modbus:poll=5
modbus:tcp.slave1.connection=192.168.1.100:502:100
modbus:tcp.slave1.type=holding
modbus:tcp.slave1.length=3
modbus:tcp.slave2.connection=192.168.1.100:502:100
modbus:tcp.slave2.type=holding
modbus:tcp.slave2.length=2
modbus:tcp.slave3.connection=192.168.1.100:502:100
modbus:tcp.slave3.type=holding
modbus:tcp.slave3.length=2
Example serial configuration (poll 5ms, 280ms read timeout, 100ms delay between transactions)
modbus:poll=5
#agsBus-Master
modbus:serial.agsBusMasterHolding.connection=/dev/ttyS0:38400:8:none:1:rtu:280:100
modbus:serial.agsBusMasterHolding.id=247
modbus:serial.agsBusMasterHolding.start=42
modbus:serial.agsBusMasterHolding.length=14
modbus:serial.agsBusMasterHolding.type=holding