0.15: Unforked Open Z-Wave, templated service calls, extended scene support and PEP257 compliance.
Two weeks has past so here is 0.15! We have been focussing a lot on quality. Making sure the system is more stable and reliable. I usually try to highlight one cool thing in the release notes but this release has 4 exciting announcements!
- @fabaff has upgraded the codebase to follow the PEP257 documentation standard.
- @partofthething has migrated us to use the main Python Open Z-Wave library instead of our forked version.
- To make our automations more powerful, @persandstrom added the option to use templates to dynamically create service calls. This works for automation, Alexa, universal media player, template switch. Learn more.
- @MartinHjelmare has upgraded our scene support to now support all built-in services and components.
Besides bug fixes, this release also brings:
- Scene: Converted to a platform based component (@sander76)
- Scene: Hunter Douglas Powerview now supported (@sander76)
- Lock: MQTT platform added (@fabaff)
- Device Tracker: OwnTracks will allow filtering inaccurate GPS locations (@HydrelioxGitHub)
- Binary Sensor: Wemo Motion now supported (@pavoni, @ryanlaux)
# Example using templates for service and data in service call.
# Works for automation, Alexa, universal media player, template switch.
automation:
- trigger:
- platform: state
entity_id: switch.bathroom
action:
service: >
{% if is_state('switch.bathroom', 'on') %}
switch.turn_on
{% else %}
switch.turn_off
{% endif %}
target:
entity_id: switch.{{ states('input_select.is') }}
Breaking Changes
- Media Player: Attributes to call service play_media has been renamed to
media_content_type
andmedia_content_id
, to match the corresponding media player state attributes. This change affects automations, scripts and scenes.