Repository navigation
0.9.0 - API change for stick - #55
Merged
Merged
Conversation
Codecov Report
@@ Coverage Diff @@
## main #55 +/- ##
=======================================
Coverage 96.28% 96.28%
=======================================
Files 4 4
Lines 1588 1588
=======================================
Hits 1529 1529
Misses 59 59
Continue to review full report at Codecov.
|
CoMPaTech
reviewed
Dec 31, 2020
|
|
||
| env: | ||
| CACHE_VERSION: 1 | ||
| CACHE_VERSION: 2 |
Member
There was a problem hiding this comment.
Let's double check on merge as one of the other PRs has this set as well
CoMPaTech
reviewed
Dec 31, 2020
| def _process_sense_report(self, message): | ||
| """ process sense report message to extract current temperature and humidity values """ | ||
| """process sense report message to extract current temperature and humidity values.""" | ||
| if message.temperature.value != 65535: |
Member
There was a problem hiding this comment.
Maybe start with a return, loosening on complexity?
if message.temperature == 65535 or ...humidity == :
return
CoMPaTech
reviewed
Dec 31, 2020
CoMPaTech
reviewed
Dec 31, 2020
CoMPaTech
reviewed
Dec 31, 2020
CoMPaTech
reviewed
Dec 31, 2020
| if self._plugwise_nodes.get(mac): | ||
| self._plugwise_nodes[mac].message_for_node(message) | ||
| return True | ||
| if discover: |
Member
There was a problem hiding this comment.
If not discover return false (returning early)
CoMPaTech
reviewed
Dec 31, 2020
brefra
force-pushed
the
refactor_stick_api
branch
from
January 11, 2021 19:39
cb01bf4 to
4852972
Compare
bouwew
reviewed
Jan 17, 2021
brefra
marked this pull request as ready for review
January 23, 2021 13:01
This reverts commit 9b3239a.
brefra
force-pushed
the
refactor_stick_api
branch
from
January 23, 2021 19:52
bb31d23 to
6e9e962
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR is based on #53, so that one needs to be merged first.
The old methods are still available but will give a deprecate warning
devices(dict) - All discovered and supported plugwise devices with the MAC address as their keyjoined_nodes(integer) - Total number of registered nodes at Plugwise Circle+mac(string) - The MAC address of the USB-Sticknetwork_state(boolean) - The state (on-line/off-line) of the Plugwise network.network_id(integer) - The ID of the Plugwise network.port(string) - The port connection stringavailable(boolean) - The current network availability state of the devicebattery_powered(boolean) - Indicates if device is battery poweredfeatures(tuple) - List of supported attribute IDsfirmware_version(string) - Firmware version device is runninghardware_model(string) - Hardware model namehardware_version(string) - Hardware version of devicelast_update(datetime) - Date/time stamp of last received update from devicemac(string) - MAC address of devicemeasures_power(boolean) - Indicates if device supports power measurementname(string) - Name of device based om hardware model and MAC addressping(integer) - Network roundtrip time in millisecondsrssi_in(DBm) - Inbound RSSI levelrssi_out(DBm) - Outbound RSSI level based on the received inbound RSSI level of the neighbor nodemotion(boolean) - Current detection state of motion.humidity(integer) - Last reported humidity value.temperature(integer) - Last reported temperature value.current_power_usage(float) - Current power usage (Watts) during the last secondcurrent_power_usage_8_sec(float) - Current power usage (Watts) during the last 8 secondspower_consumption_current_hour(float) - Total power consumption (kWh) this running hourpower_consumption_previous_hour(float) - Total power consumption (kWh) during the previous hourpower_consumption_today(float) - Total power consumption (kWh) of todaypower_consumption_yesterday(float) - Total power consumption (kWh) during yesterdaypower_production_current_hour(float) - Total power production (kWh) this hourrelay_state(boolean) - State of the output power relay. Setting this property will operate the relayswitch(boolean) - Last reported state of switch