Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
206 commits
Select commit Hold shift + click to select a range
cc6b623
Change active_device detection
bouwew Jan 4, 2022
1a65e8e
Fix two active_device asserts
bouwew Jan 4, 2022
4426e5d
Try increase scope
bouwew Jan 4, 2022
dd1f694
Fix ident and comments
bouwew Jan 4, 2022
6698e7b
Fix two more active_device asserts
bouwew Jan 4, 2022
979b27b
Bump to v0.16.1a0
bouwew Jan 4, 2022
bc9d1b5
Add missing _heater_id for on-off device
bouwew Jan 4, 2022
8c49ba5
Bump to a1
bouwew Jan 4, 2022
681fcff
Selected should always be a string
bouwew Jan 2, 2022
e90d23a
Update userdata to match the assert to add
bouwew Jan 2, 2022
2595a40
Update test-asserts and add an extra
bouwew Jan 2, 2022
18998dc
Available should also not be empty list, update _schemas_legacy()
bouwew Jan 2, 2022
6097839
Add brackets
bouwew Jan 2, 2022
0286de6
Add guarding for selected
bouwew Jan 2, 2022
04b2ffe
Available also not empty for non-legacy
bouwew Jan 2, 2022
ad213de
Update determine_selected()
bouwew Jan 2, 2022
ec4fa02
Add guarding
bouwew Jan 2, 2022
c263999
Not needed for legacy Anna, handled via DEVICE_MEASUREMENTS
bouwew Jan 3, 2022
7949466
Change devicenames to OpenTherm and OnOff
bouwew Jan 5, 2022
9607ed0
Update Changelog
bouwew Jan 5, 2022
0bc9fcb
Update Changelog
bouwew Jan 5, 2022
c40772e
Bump to a2
bouwew Jan 5, 2022
e4d1717
Update finding schema info
bouwew Jan 5, 2022
6e9dd37
Revert determine_selected() removal
bouwew Jan 6, 2022
0ff18bc
Add _schemas_anna() function
bouwew Jan 6, 2022
02e2666
Revert _last_active_schema() removal
bouwew Jan 6, 2022
8fcbc89
_last_active_schema(): return the correct output for Adam
bouwew Jan 6, 2022
71d50d2
Revert back to calling _last_active_schema()
bouwew Jan 6, 2022
491d5fb
Improve comment
bouwew Jan 6, 2022
82b03a5
Move inits down
bouwew Jan 6, 2022
e1e1bf9
Correct and cleanup
bouwew Jan 6, 2022
8aade8e
Updated assert matching the result resulting from the updates
bouwew Jan 6, 2022
69a63ee
Bump to a3
bouwew Jan 6, 2022
564301e
Cleanup, improve comments
bouwew Jan 6, 2022
0196853
Remove "None" entry when rule_ids are found
bouwew Jan 6, 2022
644a7ad
Use common inits
bouwew Jan 6, 2022
de78aa5
Improve
bouwew Jan 6, 2022
52869f9
Bump to a4
bouwew Jan 6, 2022
8cc9fe0
Add determination of more Core climate attributes
bouwew Jan 7, 2022
ab9e23a
Add TODO
bouwew Jan 7, 2022
b346139
Add 2nd TODO
bouwew Jan 7, 2022
b031a92
Replace "presets" by "preset_temperature"
bouwew Jan 7, 2022
5a258a0
Fix typos
bouwew Jan 7, 2022
643629e
Use get()
bouwew Jan 7, 2022
af5d3cd
Guard for no active preset
bouwew Jan 7, 2022
4f196dd
Update preset-related testcases
bouwew Jan 7, 2022
fc86d03
Improve order in output
bouwew Jan 7, 2022
bace03d
Bump to a5
bouwew Jan 7, 2022
d3dae71
Revert adding preset_temperature, removing presets
bouwew Jan 7, 2022
abc4c53
Update related testcases
bouwew Jan 7, 2022
d644d55
Bump to a6
bouwew Jan 7, 2022
8020f45
Add set_schedule_state_anna() function, start updating set_schedule_s…
bouwew Jan 7, 2022
78aea8b
Also extend _rule_ids_by_name(), cleanup comments
bouwew Jan 7, 2022
ad964ba
Improve set_schedule_state()
bouwew Jan 7, 2022
b06a662
Bump to a7
bouwew Jan 7, 2022
9b2f6aa
Correct function-name
bouwew Jan 7, 2022
33d68a0
Update set_schedule_state() toggling the location_id
bouwew Jan 10, 2022
255636b
Bump to a8
bouwew Jan 10, 2022
d9b68ad
Update _schemas(), schemas_schedule_temp()
bouwew Jan 10, 2022
957e0d1
Adapt userdata: adapt = true, loc_id is not present for a deselected …
bouwew Jan 11, 2022
0b32503
Userdata: anna_v4 adapt other schema to the new format too
bouwew Jan 11, 2022
b848998
Bump to a9
bouwew Jan 11, 2022
14a2cb4
Update adam_plus_anna_new userdata
bouwew Jan 11, 2022
70cc4c1
Test: update relevant asserts
bouwew Jan 11, 2022
37f1129
Rework schemas_schedule_temp()
bouwew Jan 11, 2022
5a59b1b
Match id's to updated userdata
bouwew Jan 11, 2022
16be966
Remove backups
bouwew Jan 11, 2022
b837273
Bump to a10
bouwew Jan 11, 2022
f262846
Add debug logging
bouwew Jan 11, 2022
0ad806b
Bump to a11
bouwew Jan 11, 2022
6b19d92
Move heating_state to the newly introduced OnOff device
bouwew Jan 12, 2022
18dd797
Adapt related testcases
bouwew Jan 12, 2022
ae9c821
Remove temporary logging
bouwew Jan 12, 2022
d5433ee
Bump to a12
bouwew Jan 12, 2022
1dad1a2
Make sure cooling_active is always provided via heater-central
bouwew Jan 12, 2022
7f40f4c
Correct the related testasserts
bouwew Jan 12, 2022
cb8803d
Correct cooling_active detection for Anna
bouwew Jan 12, 2022
e0ff539
Use the local outdoor temp value for turning cooling on/off
bouwew Jan 12, 2022
0751ab2
Revert "Lower Anna temperature to trigger a cooling_active change"
bouwew Dec 29, 2021
890d46e
Test: remove cooling_active preset
bouwew Jan 12, 2022
d3fbe32
Add pragma: no cover for 2 edge-cases
bouwew Jan 12, 2022
f0cd8f5
Re-enable device_test preset, lower outdoor temp
bouwew Jan 12, 2022
24ca97f
Add comment to clarify the use of the preset
bouwew Jan 12, 2022
bb33476
Overwrite cooling_active as the last action
bouwew Jan 12, 2022
fd368f8
Add guarding
bouwew Jan 12, 2022
d08ca76
Better guarding
bouwew Jan 12, 2022
a17922f
Revert delete - Adam - cooling_active
bouwew Jan 12, 2022
cc40396
Update assert value
bouwew Jan 12, 2022
714e8c2
Change userdata to trigger a cooling-switch-off
bouwew Jan 13, 2022
d960657
Change preset
bouwew Jan 13, 2022
b95448f
Change testing order - part 1
bouwew Jan 13, 2022
9a01b00
Change testing order - part 2
bouwew Jan 13, 2022
6a6c328
Remove no longer used code, optimize
bouwew Jan 13, 2022
bb82c90
Optimize code
bouwew Jan 13, 2022
9862e59
Correct state from "auto" to "on"
bouwew Jan 13, 2022
0698e03
Add pragma: no cover
bouwew Jan 13, 2022
7d7b6a9
Test: revert anna_heatpump cooling-active case
bouwew Jan 13, 2022
6c10178
Test: revert anna_heatpump_cooling case
bouwew Jan 13, 2022
0cfd5c6
Remove input-check
bouwew Jan 13, 2022
753a894
Bump to a13
bouwew Jan 13, 2022
671f193
Simplify schemas_schedule_temp()
bouwew Jan 13, 2022
8b935c4
Update function descriptions
bouwew Jan 13, 2022
4be94b4
Remove left-over development message
bouwew Jan 13, 2022
5eb7511
Update comments
bouwew Jan 13, 2022
85a24f6
Anna v42 without working test
CoMPaTech Jan 11, 2022
5b068a1
Cleanup, still not working test
CoMPaTech Jan 11, 2022
d8957a9
Rebased
CoMPaTech Jan 11, 2022
9b73b11
Rework schema handling with newer firmware (and prevent edge-case)
CoMPaTech Jan 12, 2022
5935d3f
Changelog
CoMPaTech Jan 12, 2022
cd1204e
Add missing raise
CoMPaTech Jan 13, 2022
d9bc0dd
Fix single preset schema, leave out non-schemas
CoMPaTech Jan 13, 2022
808b6ed
Just warn, dont Bark
CoMPaTech Jan 13, 2022
58ad691
Return when the schedule is empty
bouwew Jan 14, 2022
a97c91a
Schedule_temp is None means no valid schedule found
bouwew Jan 14, 2022
a6ee6ee
Adapt related test assert
bouwew Jan 14, 2022
5bf3021
Translate status for legacy_anna
bouwew Jan 14, 2022
81abffc
Add last_active schedule info as output to _schemas()
bouwew Jan 14, 2022
bfa5941
Bump to a14
bouwew Jan 14, 2022
9e26437
Add testcases to cover missed issue
bouwew Jan 14, 2022
2d460d7
Logging
bouwew Jan 14, 2022
83f8f69
Guard for empty schedule
bouwew Jan 14, 2022
16c0f21
More guarding
bouwew Jan 14, 2022
ff08ccc
Clear available and selected
bouwew Jan 14, 2022
0614a87
Clear logging
bouwew Jan 14, 2022
56339f5
Test: also cover schedule_temperature = None
bouwew Jan 14, 2022
11e2c75
Improvements
bouwew Jan 14, 2022
1ac051c
Remove no longer needed check, move message
bouwew Jan 14, 2022
d00153f
Don't output empty available
bouwew Jan 14, 2022
cb451ec
Also clear last_active
bouwew Jan 14, 2022
d30572f
Optimize
bouwew Jan 15, 2022
afbd7b7
Remove HOI-logging
bouwew Jan 15, 2022
43f15ba
Fully update legacy_anna asserts
bouwew Jan 15, 2022
091f818
Move full updates
bouwew Jan 15, 2022
8daee07
Correct assert
bouwew Jan 15, 2022
069fdd7
Fix schedule_temp None-assert
bouwew Jan 15, 2022
e9f1e2c
One more fix
bouwew Jan 15, 2022
19564a7
Rea-dd guarding for selected
bouwew Jan 15, 2022
beb243b
Add more full updates
bouwew Jan 15, 2022
a1aa4cf
More full updates
bouwew Jan 15, 2022
04b389c
More full updates
bouwew Jan 15, 2022
0b7d439
Clean up comments
bouwew Jan 15, 2022
a446c22
Bump to a15
bouwew Jan 15, 2022
baeb49e
Revert "Re-add guarding for selected"
bouwew Jan 15, 2022
0038734
Fix test assert
bouwew Jan 15, 2022
e5d2f1a
Bump to a16
bouwew Jan 15, 2022
0d29093
Optimize
bouwew Jan 15, 2022
6cbe750
Update CHANGELOG
bouwew Jan 17, 2022
b4badc9
Bump to release version v0.16.1
bouwew Jan 17, 2022
8b2fa9c
Improve _last_active_schema()
bouwew Jan 18, 2022
c174c93
fixup: anna42 Python code reformatted using Black
Jan 18, 2022
b2fdbb4
Compare to "None"
bouwew Jan 18, 2022
9e09b7f
Add assert to the latest changes
bouwew Jan 18, 2022
be60a76
Update more asserts
bouwew Jan 18, 2022
d75ed58
More testing needed: bump to a17
bouwew Jan 18, 2022
d549a5b
Consistent use of None, rename var and function
bouwew Jan 18, 2022
0cb942f
Fw42: set Test-schema active - for better testcoverage
bouwew Jan 18, 2022
8bec2d8
Add pragma: no cover
bouwew Jan 18, 2022
7185bb7
Add one more pragma: no cover + explanation
bouwew Jan 18, 2022
e171feb
Add debug-logging
bouwew Jan 18, 2022
d3e73e3
Bump to a18
bouwew Jan 18, 2022
346923a
Remove logging, don't include a space in data
bouwew Jan 19, 2022
cdc77fc
Bump to a19
bouwew Jan 19, 2022
2131e71
Change content-type for method = put
bouwew Jan 19, 2022
f74830c
Bump to a20
bouwew Jan 19, 2022
8534761
Change from template id to template tag
bouwew Jan 19, 2022
53b6710
Bump to a21
bouwew Jan 19, 2022
266db7a
Add support for http-patch, revert to text/xml content-type
bouwew Jan 23, 2022
8a116e2
set_schedule_state: replace put by patch and adapt data
bouwew Jan 23, 2022
bea1512
Bump to a22
bouwew Jan 23, 2022
2d059e3
Revert adding PATCH, not supported
bouwew Jan 23, 2022
8a3cec2
revert back to put, patch is not supported
bouwew Jan 23, 2022
95aefd4
Fix typo
bouwew Jan 23, 2022
a58e083
Bump to a23
bouwew Jan 23, 2022
5c0dfa7
Revert quote-changes
bouwew Jan 23, 2022
eecd003
Improve code
bouwew Jan 23, 2022
7e05b0d
Legacy-Stretch: search for network_coordinator
bouwew Jan 23, 2022
a4e49c0
Use master_controller, points to the network in use
bouwew Jan 23, 2022
d0da9bc
Simplify search key, don't assign gateway_id
bouwew Jan 24, 2022
681be33
Line up creating gateways for legacy devices
bouwew Jan 24, 2022
d919125
Stretches: match gateway_id to previous code-changes
bouwew Jan 24, 2022
b492983
Optimize
bouwew Jan 24, 2022
1bc9d8f
Bump to a24
bouwew Jan 24, 2022
d909780
Bump CACHE_VERSION
bouwew Jan 24, 2022
6f9537b
Revert
CoMPaTech Jan 24, 2022
afcef2d
Include commit checks
CoMPaTech Jan 24, 2022
5515fa7
Satisfy pytest-asyncio > 0.17
CoMPaTech Jan 24, 2022
81f1330
Mimic local install
CoMPaTech Jan 24, 2022
258451f
Defer install to pycache
CoMPaTech Jan 24, 2022
d7aa8e2
Defer install to pycache
CoMPaTech Jan 24, 2022
41c2951
Defer install to pycache - fix pre-commit
CoMPaTech Jan 24, 2022
efc99aa
Reset/bump cache and minor version just to ensure the entire flow works
CoMPaTech Jan 25, 2022
7cc77d8
Add check for presence of domain_objects xml-data
bouwew Jan 25, 2022
8e31245
fixup: anna42_stretch27 Python code reformatted using Black
Jan 25, 2022
c727114
Remove unused import
bouwew Jan 25, 2022
8e3ea2a
Define DOMAIN_OBJECTS as global
bouwew Jan 25, 2022
c8e9600
Add stretch_v23 userdata without domain_objects
bouwew Jan 25, 2022
4655beb
Add corresponding testcase
bouwew Jan 25, 2022
5e42c91
Move stretch_v23_no_do to the end
bouwew Jan 25, 2022
5952e89
Load data from direct_objects as well
bouwew Jan 25, 2022
22cf8a4
Real stretch v27 no_domain data added
CoMPaTech Jan 26, 2022
377eec6
Stub
CoMPaTech Jan 26, 2022
24fc9bf
Fix mixup between system and system_status (at least for stretch)
CoMPaTech Jan 26, 2022
c559d58
working stretch no_domain, fallout in p1
CoMPaTech Jan 26, 2022
77d149f
Rework testing to optimal
CoMPaTech Jan 26, 2022
97c335f
Use correct /system/status without xml extension
CoMPaTech Jan 26, 2022
7b6e456
Bump version
CoMPaTech Jan 26, 2022
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
9 changes: 6 additions & 3 deletions .github/workflows/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
name: Latest commit

env:
CACHE_VERSION: 16
CACHE_VERSION: 1
DEFAULT_PYTHON: "3.9"
PRE_COMMIT_HOME: ~/.cache/pre-commit

Expand Down Expand Up @@ -49,7 +49,7 @@ jobs:
python -m venv venv
. venv/bin/activate
pip install -U pip setuptools wheel
pip install -r requirements_test.txt
pip install -r requirements_test.txt -r requirements_commit.txt
- name: Restore pre-commit environment from cache
id: cache-precommit
uses: actions/cache@v2
Expand Down Expand Up @@ -195,7 +195,10 @@ jobs:
python -m venv venv
. venv/bin/activate
pip install -U pip setuptools wheel
pip install -r requirements_test.txt
#pip install -r requirements_test.txt
# 20220124 Mimic setup_test.sh
pip install --upgrade -r requirements_test.txt -c https://raw.githubusercontent.com/home-assistant/core/dev/homeassistant/package_constraints.txt -r https://raw.githubusercontent.com/home-assistant/core/dev/requirements_test.txt -r https://raw.githubusercontent.com/home-assistant/core/dev/requirements_test_pre_commit.txt
pip install --upgrade pytest-asyncio

pytest:
runs-on: ubuntu-latest
Expand Down
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Changelog

# v0.16.1 - Smile - various updates:
- BREAKING: Change active device detecting, detect both OpenTherm (replace Auxiliary) and OnOff (new) heating and cooling devices.
- Add Adam v3.6.4 (beta) and Anna firmware 4.2 support (representation and switching on/off of a schedule has changed)
- Anna: Fix cooling_active prediction
- Schedules: always show `available_schemas` and `selected_schema`, also with "None" available and/or selected
- Cleanup and optimize code
- Adapt and improve testcode
- Support stretch without domain_data (firmware 2.7)

# v0.16.0 - Smile - Change output format, allowing full use of Core DataUpdateCoordintor in plugwise-beta
- Change from list- to dict-format for binary_sensors, sensors and switches
- Provide gateway-devices for Legacy Anna and Stretch
Expand Down
2 changes: 1 addition & 1 deletion plugwise/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Plugwise module."""

__version__ = "0.16.0"
__version__ = "0.16.1a27"

from plugwise.smile import Smile
from plugwise.stick import Stick
3 changes: 2 additions & 1 deletion plugwise/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,13 +356,14 @@
### Smile constants ###

APPLIANCES = "/core/appliances"
DIRECT_OBJECTS = "/core/direct_objects"
DOMAIN_OBJECTS = "/core/domain_objects"
LOCATIONS = "/core/locations"
MODULES = "/core/modules"
NOTIFICATIONS = "/core/notifications"
RULES = "/core/rules"
SYSTEM = "/system"
STATUS = "/system/status.xml"
STATUS = "/system/status"

ATTR_TYPE = "type"
DEFAULT_TIMEOUT = 30
Expand Down
Loading