Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.52 #9131

Merged
merged 94 commits into from
Aug 26, 2017
Merged

0.52 #9131

merged 94 commits into from
Aug 26, 2017

Conversation

balloob
Copy link
Member

@balloob balloob commented Aug 25, 2017

Although the summer is in full progress, the development hasn't stalled. This release brings bug fixes, clean ups and another 8 new integrations. On top of that we are also introducing a new script editor!

To use the scripts editor, create a new file in your config directory named scripts.yaml and copy your existing scripts over:

# scripts.yaml
turn_on_some_lights:
  alias: Turn on the lights
  sequence:
  - data: {}
    service: light.turn_on

Than update your configuration.yaml to look like this:

# Configuration.yaml example
script: !include scripts.yaml

Watch the scripts editor in action: https://www.youtube.com/watch?v=_Rntpcj1CGA

New Platforms

Breaking Changes

  • Remove spaces from Xiami switch attributes (@syssi - #8952) (switch.xiaomi docs) (breaking change)
  • MQTT Switch: command and availability payload are now no longer linked. Command and availability payload default to ON/OFF and must be configured individually if custom values are required. (@timstanley1985 - #8934) (switch.mqtt docs) (breaking change)
 -  platform: mqtt
    name: "Kitchen"
    state_topic: "stat/sonoff_1/POWER"
    command_topic: "cmnd/sonoff_1/POWER"
    availability_topic: "tele/sonoff_1/LWT"
    payload_available: "Online"
    payload_not_available: "Offline"
    retain: true
usps:
  username: user
  password: pass
  name: optional
  • eliqonline: The optional channel_id configuration variable of the Eliqonline sensor needs to be a positive integer. (@molobrakos - #9072) (sensor.eliqonline docs) (breaking change)
  • MySensors: Not a breaking change per se but users that have not been following the mysensors serial API could face dropped messages after this change. Messages are now validated according to the API before being passed along from/to devices. See 0.11 release notes for more info. (@MartinHjelmare - #9069) (mysensors docs) (binary_sensor.mysensors docs) (climate.mysensors docs) (cover.mysensors docs) (device_tracker.mysensors docs) (light.mysensors docs) (notify.mysensors docs) (sensor.mysensors docs) (switch.mysensors docs) (breaking change)
  • Automatic has disabled password authentication on their API. Home Assistant will now use OAuth2 to authenticate accounts. The following steps must be taken to transition your setup:
    1. Log in to your Automatic developer account. In the Automatic Developer Apps Manager, specify the OAuth Redirect URL in the developer page. This should be configured to <home-assistant-url>/api/automatic/callback. (Example: http://hassio.local:8123/api/automatic/callback) Note that this URL only needs to be accessible from the browser you use to perform the authentication.
    2. Remove username/password from your automatic device tracker configuration in configuration.yaml.
    3. If you have authorized your account for scope:current_location, add current_location: true to your automatic device tracker configuration in configuration.yaml.
    4. When you restart home assistant, click on the Automatic Configure link in the Configurator card, and follow the instructions to authorize Home Assistant.

      NOTE: Automatic's API is currently not correctly authorizing with refresh tokens, so Step 4 currently needs to be performed after every restart. (@armills - #8962 #9002) (configurator docs) (device_tracker.automatic docs) (breaking change)

All changes

fabaff and others added 30 commits August 10, 2017 23:28
* This will ensure no I/O in entity properties.
* Add version sensor

* Set version directly

* Rework tests and fix typo

* Remove additional blank line
* fixing emulated hue issue and testing it

* fixing hound issues

* I should probably stop using vim

* Check against dict directly instead of items.
* Require either temperature or high/low target temperatures.
* Add tests.
* Fixed cert_expiry sensor to delay firing on HA startup

* Addressed Travis complaints

* Added imports

* Fixed cert_expiry sensor to delay firing on HA startup

* Changed comment
* Attributes of the xiaomi zigbee plug changed.

* Reformat.
* Fix DeviceException handling when updating entity

* add DeviceException error handling to generic request
* Update const.py

* Update __init__.py

* Update services.yaml

* Update totalconnect.py

* Update manual.py

Add night arm service for manual alarm control panel

* Update test_manual.py

Add tests for night mode arming

* Update manual.py

Fix docstring
* Name keyword arguments correctly according to dependency lib.
* Only pass keyword arguments that are not None.
* fix issue #8948 in pushbullet

* pushbullet
* Add support for Automatic OAuth2 authentication

* Fix async conversion of configurator

* Rename method for async

* Use hass.components to get configurator component

* Fix typo

* Move session data to hidden directory

* Make configurator callback optional
* Initial Nello.io lock support

* Log an error when unlocking failed

* Make the lock's state always locked
* Added continue-on-errors, added value template

* Refactored long lines

* Fixed whitespace issues
* is_allowed_path

* Fix #8948

* assert path is not None

* Update test_core.py

* Update test_core.py

* Update test_core.py
* Adding port/SSL config updates

* New requirements generated

* Made `port` and `ssl` parameters optional

* Add defaults for new parameters

* Re-adding guard clause

* pass > continue
* Remove now disabled password auth from automatic

* Fallback to configurator more permissively

* Fix test for changes

* Bump lib
* Add scripts editor backend

* Fix docstrings
* Add configurable availabilty payload

* Fix

* Fix

* Lint fixes

* Fix tests

* Fix tests

* Move from const.py to mqtt switch

* New test

* Fix flake*
* new monitored conditions and support for new weathercard

* new monitored conditions and support for new weathercard

* minor changes
rytilahti and others added 16 commits August 22, 2017 22:11
…8780)

* Support changing the bulb color for tplink smartbulbs, related to #8766

* existence of ATTR_RGB_COLOR in kwargs, not just its existence...

* return modified supported features

* rgb-hsv conversion utils from hass return bogus values (at least for this device), so doing conversions directly with colorsys

* add typing & documentation for color model conversions

* make linters happy

* cast hsv to integer before passing it to the backend library

* make sure the bulb is on before adjusting the other settings

* allow floats as inputs for conversions, return always integers

* use typing hint in the parameter list instead of at assignment

* do not assign local color state inside turn_on, but let update handle doing it

* use forward declaration for typing, fixes travis requirements build hopefully

* rename hsv and rgb

* remove type-checking check, forward declarations should work just fine without it

* disable (broken) pylint warnings, these can be removed after astroid is updated from 1.4.9 to 1.5
* cast strings to integers for hsv_to_rgb conversion, fixes #6473

* remove type_checking, flake8 does not like that.

* use hsv_to_rgb to convert to correct rgb value
* Catch exceptions

* Fix pylint disable

* Move check for emtpy target list
…rains (#9046)

* Fix bug if no next_buses or trains

Fixes #8894

* Requested fixes
* Bumping pythonegardia package requirement up to .18

* Updating requirements_all to reflect updated pythonegardia package .18
* Simplisafe unknown status fix

Changed simplisafe-python requirement to 1.0.5 and changed state return
case statements to lower case

* Bump requirements_all.txt
* small fixes xiaomi
* refactor push bullet
* Emulate set_current_position in cover.template

* Add opportunistic mode

* Prevent another move when cover is already moving.  Add tests for opotunistic/timed-delay mode

* Remove timed-move capabilities

* Set init state to unknown

* cleanup template

* Update test_template.py
* Use const

* Align quotes
@balloob balloob requested review from emlove and a team as code owners August 25, 2017 15:46
@balloob balloob requested a review from a team August 25, 2017 15:46
@mention-bot
Copy link

@balloob, thanks for your PR! By analyzing the history of the files in this pull request, we identified @fabaff, @happyleavesaoc and @robbiet480 to be potential reviewers.

@emlove emlove removed their request for review August 25, 2017 15:49
@balloob balloob removed request for a team August 25, 2017 15:54
* Refactor mysensors callback and add validation

* Add mysensors entity class. The mysensors entity class inherits from
  a more general mysensors device class.
* Extract mysensors name function.
* Add setup_mysensors_platform for mysensors platforms.
* Add mysensors const schemas.
* Update mysensors callback and add child validation.
* Remove gateway wrapper class.
* Add better logging for mysensors callback.
* Add discover_persistent_devices function.
* Remove discovery in mysensors component setup.
* Clean up gateway storage in hass.data.
* Update all mysensors platforms.
  * Add repr for MySensorsNotificationDevice.
  * Fix bug in mysensors climate target temperatures.
  * Clean up platforms. Child validation simplifies assumptions in
    platforms.
  * Remove not needed try except statements. All messages are validated
    already in pymysensors.
* Clean up logging.
* Add timer debug logging if callback is slow.
* Upgrade pymysensors to 0.11.0.

* Make dispatch callback async

* Pass tuple device_args and optional add_devices

* Also return new_devices as list instead of dictionary.
@balloob balloob merged commit 50e5032 into master Aug 26, 2017
@balloob balloob deleted the release-0-52 branch August 26, 2017 05:11
@home-assistant home-assistant locked and limited conversation to collaborators Dec 11, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.