0.19: Empowering scripts and Alexa
This release is big. Until now, our automations and scripts have been very static. Starting today it should all be a bit more dynamic.
Scripts are now available in automations and when responding to Alexa/Amazon Echo. Both of these components will now expose data to be used in script templates (including from_state
!). Passing data to script entities is available by passing the data to the script services.
automation:
trigger:
platform: mqtt
topic: some/notify/topic
action:
service: notify.notify
data_template:
message:
automation 2:
trigger:
platform: state
entity_id: light.hue
action:
service: notify.notify
data_template:
message: is now
Entity Namespaces allow you to influence the entity ids for a specific platform. For example you can turn light.living_room
into light.holiday_home_living_room
with the following config:
light:
platform: hue
entity_namespace: holiday_home
- Automation: allow script syntax for action (@balloob)
- Automation: expose
trigger
variable to script templates (@balloob) - Script: allow passing variables for script templates in the script service calls (@balloob)
- Alexa/Amazon Echo: allow script syntax for action (@balloob)
- Alexa/Amazon Echo: expose intent variables to script templates (@balloob)
- Script syntax: conditions now supported to interrupt execution (@balloob)
- Automation: use new condition syntax (@balloob)
- Script syntax: two new conditions
and
andor
to combine conditions (@balloob) - Any platform: Allow setting entity namespace to prefix entity_ids. (@balloob)
- Switch: Raspberry Pi generic 433 Mhz GPIO adapters now supported (@milaq)
- Z-Wave: use more sane defaults (@danieljkemp)
- Media Player: Snapcast now supports picking a source (@happyleavesaoc)
- MySensors: major cleanup (@MartinHjelmare)
- Binary Sensor: Command line sensor now supports classes (@fabaff)
- MQTT: allow client key authentication (@timharton)
- Sensor: Forecast.io now supports minutely, hourly and daily summaries (@aceat64)
- Media Player: Pioneer AVR now supported (@kylehendricks)
- Switch: Acer Projectors now supported (@deisi)
- New HVAC component added with Z-Wave support (@turbokongen)
- Support added for OctoPrint (@w1ll1am23)
- Configuration.yaml can now refer to environment variables using
!env_var
(@bah2830) - Lock: Z-Wave now supported (@devdelay)
- New Dweet component to export data (@fabaff)
- Media Player now supports stop command + initial kodi support (@hmronline)
- Zigbee: push updates now supported (@flyte)
- Wink devices with battery level will now show these (@w1ll1am23)
- Templates: new
as_timestamp
method now available (@srcLurker) - API: Add [
/api/discovery_info
] with basic instance info (@robbiet480) - Sensor: Google Maps travel time added (@Danielhiversen)
- HTTP: Allow adding CORS headers (@robbiet480)
- Sensor: Fitbit support added (@robbiet480)
- Bug fixes and tweaks by @turbokongen, @danieljkemp, @Danielhiversen, @TheRealLink, @persandstrom, @sander76, @fabaff, @ishults, @Bart274, @robbiet480, @Cinntax, @blackdog70, @gwendalg, @JshWright, @kylehendricks, @bradsk88, @shaftoe, @molobrakos, @bah2830, @nkgilley
Deprecations
- Conditions in automations should now specify which condition to use with
condition:
instead ofplatform:
. For examplecondition: state
. - RFXtrx has a new config format.
Old RFXtrx config format:
devices:
123efab1:
name: My DI.0 light device
packetid: 1b2200000890efab1213f60
New RFXtrx config format:
devices:
1b2200000890efab1213f60:
name: My DI.0 light device