Skip to content
This repository has been archived by the owner on Aug 30, 2024. It is now read-only.

rfxtrx updates #6

Open
wants to merge 237 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
237 commits
Select commit Hold shift + click to select a range
846e22c
Rename README.txt to README.md
Feb 7, 2015
f40bed2
Update README.md
Feb 7, 2015
895a5db
Integration with ha
Danielhiversen Feb 23, 2015
09e201e
Working with home assistent
Jun 7, 2015
945e2b7
Update setup.py
Jul 23, 2015
f65442b
Update setup.py
Jul 23, 2015
0e88243
Update setup.py
Jul 24, 2015
ec7a1aa
Updated example, deleted old files
Aug 2, 2015
642857d
Fix herited __repr__ function
badele Sep 25, 2015
f238e33
Callback all RFXtrxEvent event type
badele Sep 25, 2015
7257cd6
Store the latest radio packet
badele Oct 2, 2015
deeb336
Merge pull request #1 from badele/chacon
Oct 3, 2015
56ba3f0
Update README.md
Oct 5, 2015
2fd0491
Update setup.py
Oct 6, 2015
0bdf496
Bugfix Raingauge not defined. Wrong naming.
turbokongen Jan 26, 2016
c6f5e92
Merge pull request #1 from turbokongen/turbokongen-patch-1
turbokongen Jan 26, 2016
815d08c
Added extra properties to control packets
Feb 4, 2016
ab5d79d
bug fix
Feb 4, 2016
67607ac
Update lowlevel.py
Feb 5, 2016
68634c9
Merge pull request #2 from turbokongen/turbokongen-patch-1
Feb 5, 2016
4860718
work in progress
Feb 5, 2016
7c63f34
Update lowlevel.py
Feb 5, 2016
23f7c29
refactor cmd_string
Feb 5, 2016
252b90d
Update README.md
Feb 5, 2016
15336f3
Support for Energy monitors
turbokongen Feb 5, 2016
131872b
refactor cmd_string
Feb 5, 2016
ae3f0cb
refactor cmd_string
Feb 5, 2016
54174c6
Merge pull request #3 from turbokongen/master
Feb 5, 2016
359439a
Wrong calculation
turbokongen Feb 5, 2016
7aef4fc
Merge pull request #4 from turbokongen/Energy
Feb 6, 2016
b350926
Update setup.py
Feb 6, 2016
e459838
Merge pull request #5 from Danielhiversen/cmd_string
Feb 6, 2016
bc3682e
Added chime protocol
jacobtomlinson Feb 9, 2016
88dd9f9
Added dockerfile for easy execution
jacobtomlinson Feb 9, 2016
8e48fa4
Prints events and can specify rfxcom device in arg
jacobtomlinson Feb 9, 2016
80ec6b9
Merge pull request #7 from jacobtomlinson/receive-example
Feb 9, 2016
6fb5a3c
Merge pull request #8 from jacobtomlinson/docker
Feb 9, 2016
04e7101
Merge pull request #6 from jacobtomlinson/add-chime
Feb 9, 2016
b413795
Support for Security1 Class
turbokongen Feb 9, 2016
208ff74
Merge pull request #9 from turbokongen/master
Feb 10, 2016
bb3e679
Update setup.py
Feb 10, 2016
64fc969
Revert "Support for Security1 Class"
jacobtomlinson Feb 10, 2016
6868fd6
Merge pull request #10 from Danielhiversen/revert-9-master
Feb 10, 2016
ef36e68
Support for Security1 Class
turbokongen Feb 9, 2016
7aba6a7
Better handling of sensor ID
turbokongen Feb 10, 2016
f0068a7
prep for pypi upload
sdague Feb 11, 2016
854b3a9
Add in MANIFEST.in
sdague Feb 11, 2016
6c08bcb
Merge pull request #12 from Danielhiversen/pypi
Feb 11, 2016
5553906
Merge pull request #11 from turbokongen/master
Feb 11, 2016
c9b2c29
Update setup.py
Feb 11, 2016
c3b12d8
Readd LightingDevice class
Feb 11, 2016
7dcc155
Merge pull request #13 from Danielhiversen/LightSwitch
Feb 11, 2016
a4d035e
Initial tests
Feb 24, 2016
6ceee99
tox.ini
Feb 24, 2016
c534f6c
Working on tests
Feb 24, 2016
249281b
revert setup
Feb 24, 2016
c3f30d1
Merge branch 'master' into test
Feb 24, 2016
f423a49
Adding auto testing
Feb 24, 2016
ec3eb4e
add coveragerc
Feb 25, 2016
f0921ae
updated readme
Feb 25, 2016
8d37195
Adding more tests
Feb 26, 2016
6da9a16
Bug in caculation of totalwatts
Feb 26, 2016
c066709
Adding tests
Feb 26, 2016
9a763c7
Merge pull request #14 from Danielhiversen/test
Mar 1, 2016
217f283
version 0.5
Mar 1, 2016
0803737
Refactor tests
Mar 2, 2016
fb7f566
Merge branch 'test'
Mar 2, 2016
e3ae0ec
fix style issue
Mar 2, 2016
5faf398
Try to find the path to the rfxtrx device
Mar 2, 2016
ee5e921
style fix
Mar 2, 2016
55f6ec7
style fix
Mar 2, 2016
1202e8d
finding device
Mar 2, 2016
769a1db
Added close connection
Mar 8, 2016
03cf3af
close connection
Mar 8, 2016
6b84751
push to pypi
Mar 8, 2016
301cc56
Update setup.py
Mar 9, 2016
8c7887a
Fix closing thread
Mar 12, 2016
50b8509
version 0.6.5
Mar 13, 2016
eddd10b
Merge pull request #17 from Danielhiversen/slowtests
Mar 13, 2016
755b13c
Added send_open, send_close and send_stop Lighting5 commands
jacobtomlinson May 9, 2016
75016f7
Added tests
jacobtomlinson May 9, 2016
309ae48
Merge pull request #18 from jacobtomlinson/master
Danielhiversen May 10, 2016
1468cf5
Increment version
jacobtomlinson May 10, 2016
7d90938
Test for known rollershutter
jacobtomlinson May 10, 2016
5963a72
Merge pull request #20 from jacobtomlinson/is_rollershutter
Danielhiversen May 10, 2016
c28c850
Merge pull request #19 from jacobtomlinson/master
Danielhiversen May 10, 2016
b10496f
Update README.rst
Danielhiversen May 10, 2016
7765aba
Fix thread error when shutting down
Danielhiversen May 12, 2016
070fa71
Update __init__.py
Danielhiversen May 12, 2016
e9c3b5a
Fix total power usage calculation in Energy meter
arnoo May 18, 2016
985d749
Merge pull request #21 from arnoo/fix_elec2
Danielhiversen May 19, 2016
e6e3900
CM180i Energy meter support
arnoo May 18, 2016
51498a8
Add complete chain tests for CM180i support
arnoo May 19, 2016
272c20c
Merge pull request #22 from arnoo/elec4
Danielhiversen May 27, 2016
29d4f67
Support for RFY protocol
samriley May 22, 2016
728c293
Merge pull request #23 from samriley/feature/rfy
Danielhiversen May 29, 2016
b4300eb
Release 0.8.0
samriley May 31, 2016
c5c9385
Merge pull request #24 from samriley/release
Danielhiversen Jun 1, 2016
59e8d5b
Add support for lighting4
Jul 3, 2016
8f91f01
fix test for lighting4
Jul 3, 2016
58330cc
style fix
Jul 3, 2016
3f5db53
style fix
Jul 3, 2016
4303f37
format of lighting4 cmnd_string
Jul 4, 2016
bf419d3
Update __init__.py
Danielhiversen Jul 4, 2016
2a46202
Update lowlevel.py
Danielhiversen Jul 4, 2016
28cc866
Merge pull request #25 from Danielhiversen/lighting4
Danielhiversen Jul 8, 2016
c935915
Update setup.py
Danielhiversen Jul 11, 2016
c2f605a
Merge pull request #26 from Danielhiversen/v0.9
Danielhiversen Jul 11, 2016
2a948ae
Add commands to Lighting4 class
turbokongen Aug 10, 2016
b7e9efa
Merge pull request #27 from turbokongen/master
Danielhiversen Aug 11, 2016
99bbb82
Update setup.py
Danielhiversen Aug 11, 2016
bacd7d5
Update lowlevel.py
Danielhiversen Aug 11, 2016
a177610
Update setup.py
Danielhiversen Aug 11, 2016
3678eac
Added support for RFXMeter. Only the datapacket (packettype 0000) is …
keigezellig Aug 20, 2016
1c28189
Merge pull request #28 from keigezellig/master
Danielhiversen Aug 22, 2016
4069390
Made RfxMeter a subclass of SensorPacket and updated _init_.py. Also …
keigezellig Aug 23, 2016
f013abb
Removed some debug comment
keigezellig Aug 23, 2016
a3a76e0
Renamed 'Value' to 'Counter value' (according to the spec)'
keigezellig Aug 24, 2016
4f5b951
Merge pull request #29 from keigezellig/master
Danielhiversen Aug 25, 2016
f93886e
Update setup.py
Danielhiversen Aug 25, 2016
7c91d50
Support ELEC1 protocol - OWL CM113 / Electrisave / cent-a-meter
jfautley Sep 22, 2016
05ffb58
Merge pull request #30 from jfautley/elec1-support
Danielhiversen Sep 23, 2016
a43f759
Update setup.py
Danielhiversen Sep 23, 2016
cc5aca0
send dummy data once
Sep 27, 2016
eeb4dd4
Merge pull request #31 from Danielhiversen/test
Danielhiversen Sep 27, 2016
6b2de02
Update setup.py
Danielhiversen Sep 27, 2016
bcdf052
Revert "send dummy data once"
Danielhiversen Sep 30, 2016
ed80fde
Merge pull request #32 from Danielhiversen/revert-31-test
Danielhiversen Sep 30, 2016
bae375c
Revert "Revert "send dummy data once""
Danielhiversen Sep 30, 2016
5b393fe
Merge pull request #33 from Danielhiversen/revert-32-revert-31-test
Danielhiversen Sep 30, 2016
bd177a0
Keep raw packet around in SensorEvent
sdague Oct 11, 2016
3544c31
Merge pull request #34 from sdague/raw_packet
Danielhiversen Oct 13, 2016
3d23810
Add ASA blinds support (#36)
timt1961 Dec 18, 2016
ad2aa4f
Add support for ProMAX/IT switches (#35)
erikmouw Dec 19, 2016
eadab01
Update setup.py
Danielhiversen Dec 19, 2016
4ffd640
tool_pytest (#37)
Danielhiversen Jan 4, 2017
fe9c241
[WIP] Support bbq (#38)
Danielhiversen Jan 19, 2017
60bd50e
Update setup.py
Danielhiversen Jan 19, 2017
371d54f
travis
Jan 19, 2017
29f1dc9
Merge branch 'master' of github.com:Danielhiversen/pyRFXtrx
Jan 19, 2017
b3b96d8
python36 (#40)
Danielhiversen Jan 19, 2017
3bc4286
Nightly (#45)
Danielhiversen Jan 31, 2017
bd55021
Adding RollerTrol support (#44)
HerbDavisY2K Feb 1, 2017
5b97935
0.16
Danielhiversen Feb 1, 2017
fe276ce
Type error fix (#46)
Danielhiversen Feb 2, 2017
993366d
0.16.1
Danielhiversen Feb 2, 2017
e25ed00
Added ELEC5 paket type (#48)
diplix Feb 11, 2017
24cf346
Update setup.py
Danielhiversen Feb 11, 2017
4e3f4e6
Fix calc. of temperaturess from TFA wind sensor (#51)
NateRobinsonS Apr 19, 2017
9cf164e
style fix
Apr 19, 2017
34f3552
style fix
Apr 19, 2017
5f0b126
style fix
Apr 19, 2017
8c43694
Merge pull request #52 from Danielhiversen/style
Danielhiversen Apr 19, 2017
821be0a
Update setup.py
Danielhiversen Apr 24, 2017
bf15198
Add reconnection mechanism in read loop (#55)
DB-CL May 13, 2017
d9214cc
Added UV (UVN800) packet type (#56)
lunar-consultancy Jun 22, 2017
787d2ad
Update setup.py
Danielhiversen Jul 13, 2017
dbaee6d
Event callback (#60)
Danielhiversen Aug 25, 2017
b4158ac
This adds lighting 4 support (#61)
bmesuere Sep 4, 2017
0d28da3
Update setup.py
Danielhiversen Sep 4, 2017
925411f
Mode setting (#62)
ypollart Sep 14, 2017
9be8445
Update __init__.py
Danielhiversen Sep 20, 2017
6428cab
Update setup.py
Danielhiversen Oct 26, 2017
975ea47
Fix style: E722 do not use bare except (#65)
Danielhiversen Oct 26, 2017
5ec43ac
Update setup.py
Danielhiversen Oct 26, 2017
830a8e4
Adding support for temp rain sensor (WS-1200) (#66)
k3xman Nov 7, 2017
29f520e
Update subtypes (#67)
turbokongen Nov 19, 2017
1c95277
Make sure data object is defined
Danielhiversen Nov 27, 2017
879c2e9
Update setup.py
Danielhiversen Mar 26, 2018
b9356bb
Implemented dimming support for Lighting3 (#70)
bosundmark Apr 20, 2018
3827f23
Fix style (#71)
Danielhiversen Apr 21, 2018
0721231
0.22.1
Danielhiversen Apr 21, 2018
fefde97
Update Rollertrol (#72)
HerbDavisY2K May 3, 2018
1064acb
Fix pylint and disable python2. Only python3 support from now (#74)
Danielhiversen Sep 4, 2018
4d9f397
Add support for disable/enable sun automation (#73)
dakesson Sep 4, 2018
1909fa5
style
Danielhiversen Sep 4, 2018
5b5ca71
Update README.rst
Danielhiversen Sep 5, 2018
df50186
Update setup.py
Danielhiversen Sep 5, 2018
5906310
Style (#86)
Danielhiversen Jul 28, 2019
bba53a9
Adds network to pyRFXtrx (#85)
barrystaes Jul 29, 2019
28e739d
0.24.0
Danielhiversen Jul 29, 2019
10d70e8
Style (#88)
Danielhiversen Oct 6, 2019
5d262fc
Revert " Update Rollertrol (#72)" (#87)
Danielhiversen Jan 2, 2020
b572ad0
0.25.0
Danielhiversen Jan 2, 2020
ab83094
Update setup.py
Danielhiversen Apr 13, 2020
d923be8
Make sure transport is shutdown from same thread that runs it (#97)
elupus Jul 14, 2020
afb0cde
Support control of chime devices (#96)
elupus Jul 23, 2020
69c9413
Wind corrections (#98)
elupus Jul 25, 2020
8bd847c
Drop debug argument and rely on normal logging functions (#99)
elupus Jul 28, 2020
ea2c066
Add some parsing of Rfy commands (#100)
elupus Sep 2, 2020
b2d6e0d
0.26.0
Danielhiversen Sep 9, 2020
ced32a2
Clean up some old deprecated style (#104)
elupus Sep 24, 2020
c2294a7
Don't try to deploy each an every matrix build (#105)
elupus Sep 24, 2020
2aab982
Remove deployement (#107)
Danielhiversen Sep 24, 2020
7a72675
Create python-publish.yml (#106)
Danielhiversen Sep 24, 2020
71e6c29
Update python-publish.yml
Danielhiversen Sep 24, 2020
af428e1
Wind corrections (#108)
elupus Sep 25, 2020
bf4f373
Let lowlevel code parse packet types so we can create types (#109)
elupus Sep 26, 2020
fd67e9a
Create release-drafter.yml
Danielhiversen Sep 28, 2020
e0d87d3
Expose a commands list (#110)
elupus Sep 28, 2020
e7804a1
Chime devices don't have battery information (#115)
elupus Oct 17, 2020
3f00f82
Cartelectronic Linky and Encoder functions (#117)
tipi85 Dec 16, 2020
e67f6d2
Add commands for Rfy venetian blinds tilt control (#119)
dzukero Dec 16, 2020
e1d2304
0.26.1
Danielhiversen Dec 17, 2020
9e951f0
Fix send command for Lightning4 (#120)
RobBie1221 Feb 28, 2021
bae8186
Add security device and make chime a standard command (#116)
elupus Apr 28, 2021
8d8e791
Add rain sensors support (#121)
elupus Apr 30, 2021
f001440
0.27.0
Danielhiversen Apr 30, 2021
b866417
Adding devices to RollerTrol (#124)
tuxick Aug 22, 2021
66146fa
Ignore packets with invalid length (#123)
mbrrg Aug 22, 2021
e2aa299
Fix bug in sock.recv (#127)
rhpijnacker Jan 18, 2022
7435645
0.27.1
Danielhiversen Jan 18, 2022
8423555
Delete release-drafter.yml
Danielhiversen Jan 18, 2022
0ed84ec
Cleanup tests and linting (#131)
Jamstah Mar 1, 2022
707210b
Add parsing for undecoded messages (#132)
Jamstah Mar 1, 2022
bf43848
Switch TFA rain sensor value (#133)
elupus Mar 1, 2022
9bce697
Gh actions for test and lint (#135)
Jamstah Mar 1, 2022
541e469
Support parsing TIC (#136)
elupus Mar 1, 2022
25c4311
0.28.0
Danielhiversen Mar 1, 2022
4342d0e
Lint go green now (#137)
Jamstah Mar 7, 2022
09de54e
Add friendly names for tic (#138)
elupus Apr 19, 2022
c61c8c0
Support for sending Funkbus commands (#139)
AlainH Apr 19, 2022
1f4357b
Update Funkbus command names; Add Funkbus parse tests (#140)
AlainH Apr 27, 2022
212d7af
0.29.0
Danielhiversen May 14, 2022
02a41ee
Fix invalid RSSI byte used for TIC parsing. (#142)
elupus Jun 28, 2022
a2445eb
0.29.1
Danielhiversen Jun 28, 2022
0a43196
Switch to full length rfy commands (#141)
elupus Jun 28, 2022
1074173
0.29.2
Danielhiversen Jun 28, 2022
1412ff6
Support historic Rfy packet lenghts (#143)
elupus Jun 30, 2022
48a02bd
0.30.0
Danielhiversen Jun 30, 2022
c7ab26a
Fix closing network transport (#147)
rhpijnacker Feb 16, 2023
d5122c3
0.30.1
Danielhiversen Feb 16, 2023
17c8feb
Rework transport to leave re-connect to user (#150)
elupus Feb 25, 2024
caba852
0.31.0
Danielhiversen Feb 25, 2024
dbff7d9
Shutdown network transport (#153)
rhpijnacker Apr 9, 2024
3ec3b59
Avoid forwarding objects in values (#154)
elupus Apr 24, 2024
770ba40
Update to 0.31.1
elupus Apr 24, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[run]
source = RFXtrx

[report]
# Regexes for lines to exclude from consideration
exclude_lines =
# Have to re-enable the standard pragma
pragma: no cover

# Don't complain about missing debug-only code:
def __repr__

# Don't complain if tests don't hit defensive assertion code:
raise AssertionError
raise NotImplementedError
2 changes: 2 additions & 0 deletions .coveralls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
service_name: travis-pro
repo_token: aydGEftUBLbUoSTGsSUHdyvHHj9NC4ykd
30 changes: 30 additions & 0 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# This workflows will upload a Python Package using Twine when a release is created
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
name: Upload Python Package

on:
release:
types: [created]

jobs:
deploy:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build and publish
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist bdist_wheel
twine upload dist/*
25 changes: 25 additions & 0 deletions .github/workflows/test-and-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Python package

on:
- push
- pull_request

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10']

steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install tox tox-gh-actions
- name: Test with tox
run: tox
24 changes: 24 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
sudo: false
matrix:
fast_finish: true
include:
- python: '3.4'
env: TOXENV=py34
- python: '3.5'
env: TOXENV=py35
- python: '3.6'
env: TOXENV=py36
- python: '3.5'
env: TOXENV=lint
- python: "nightly"
env: TOXENV=py36

allow_failures:
- python: 'nightly'
cache:
directories:
- "$HOME/.cache/pip"
install: pip install -U tox coveralls
language: python
script: tox
after_success: coveralls
16 changes: 16 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM python:3.4

RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app

COPY requirements.txt requirements.txt
RUN pip3 install --no-cache-dir -r requirements.txt

# Copy source
COPY . .

RUN python setup.py install

ENTRYPOINT [ "python" ]

CMD [ "examples/receive.py" ]
13 changes: 11 additions & 2 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,2 +1,11 @@
include COPYING.txt
include README.txt
include AUTHORS.rst
include CONTRIBUTING.rst
include HISTORY.rst
include LICENSE
include README.rst

recursive-include tests *
recursive-exclude * __pycache__
recursive-exclude * *.py[co]

recursive-include docs *.rst conf.py Makefile make.bat
40 changes: 15 additions & 25 deletions README.txt → README.rst
Original file line number Diff line number Diff line change
@@ -1,43 +1,25 @@
========
pyRFXtrx
========
==========
pyRFXtrx |Build Status| |Coverage Status|
==========

A Python library to communicate with the RFXtrx family of devices
from http://www.rfxcom.com/

See https://github.com/woudt/pyRFXtrx for the latest version.
from http://www.rfxcom.com/. Works with http://www.home-assistant.io


Using
=====

Install pySerial first::
$ sudo easy_install -U pyserial
Instally via pip

::
$ pip install -U pyRFXtrx

After that, see the examples in the examples directory


Developers
==========

To run the test scripts::
$ ./test_run.sh

To run the test scripts for all supported Python versions (requires a proper
environment, with all Python versions (2.6, 2.7, 3.1, 3.2 and 3.3) installed)::
$ doctest/all_versions.sh

Run pylint and pep8 checks on the source code:
$ sudo easy_install -U pep8 logilab-common logilab-astng pylint
$ ./lint_run.sh


Licensing
=========

Copyright (C) 2012 Edwin Woudt <[email protected]>

pyRFXtrx is free software: you can redistribute it and/or modify it
under the terms of the GNU Lesser General Public License as published
by the Free Software Foundation, either version 3 of the License, or
Expand All @@ -51,3 +33,11 @@ GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with pyRFXtrx. See the file COPYING.txt in the distribution.
If not, see <http://www.gnu.org/licenses/>.


.. |Build Status| image:: https://travis-ci.org/Danielhiversen/pyRFXtrx.svg?branch=master
:target: https://travis-ci.org/Danielhiversen/pyRFXtrx
.. |Coverage Status| image:: https://img.shields.io/coveralls/Danielhiversen/pyRFXtrx.svg
:target: https://coveralls.io/r/Danielhiversen/pyRFXtrx?branch=master


Loading