Files
.devcontainer
.github
.vscode
plugins
sass
source
.well-known
_cookbook
automation_enocean_phue.markdown
automation_first_light.markdown
automation_flashing_lights.markdown
automation_for_rainy_days.markdown
automation_sun.markdown
automation_telegram_presence_alert.markdown
automation_using_timeinterval_inputboolean.markdown
configuration_yaml_by_DrJohnT.markdown
configuration_yaml_by_alok_saboo.markdown
configuration_yaml_by_aneisch.markdown
configuration_yaml_by_apocrathia.markdown
configuration_yaml_by_carlo_costanzo.markdown
configuration_yaml_by_cy1701.markdown
configuration_yaml_by_geekofweek.markdown
configuration_yaml_by_gummientchen.markdown
configuration_yaml_by_jimpower.markdown
configuration_yaml_by_jonathan_adams.markdown
configuration_yaml_by_joshuagarrison27.markdown
configuration_yaml_by_klaasnicolaas.markdown
configuration_yaml_by_mcaminiti.markdown
configuration_yaml_by_shortbloke.markdown
configuration_yaml_by_silvrrgit.markdown
configuration_yaml_by_skalavala.markdown
configuration_yaml_by_tinkerer.markdown
configuration_yaml_by_ubhits.markdown
custom_panel_using_react.markdown
custom_ui_by_andrey-git.markdown
dim_and_brighten_lights.markdown
dim_lights_when_playing_media.markdown
fail2ban.markdown
foscam_away_mode_PTZ.markdown
google_maps_card.markdown
ifttt.manything.markdown
notify.mqtt.markdown
notify_if__new_ha_release.markdown
notify_if_over_threshold.markdown
owntracks_two_mqtt_broker.markdown
perform_actions_based_on_input_select.markdown
python_component_automation.markdown
python_component_mqtt_basic.markdown
python_component_simple_alarm.markdown
restart_ha_if_wemo_switch_is_not_detected.markdown
send_a_reminder.markdown
sonos_say.markdown
track_battery_level.markdown
turn_on_light_for_10_minutes_when_motion_detected.markdown
_data
_docs
_faq
_includes
_integrations
_layouts
_lovelace
_posts
addons
android
assets
blog
cloud
code_of_conduct
cookbook
developers
docs
faq
font
getting-started
hassio
help
images
integrations
ios
javascripts
join-chat
latest-release-notes
lovelace
privacy
security
static
stylesheets
tos
CNAME
_headers
_redirects
atom.xml
favicon.png
googlef4f3693c209fe788.html
index.html
robots.txt
service_worker.js
version.json
.editorconfig
.gitattributes
.gitignore
.markdownlint.json
.nvmrc
.powrc
.remarkignore
.remarkrc.js
.ruby-version
.textlintrc.json
CLA.md
CODEOWNERS
CODE_OF_CONDUCT.md
Gemfile
Gemfile.lock
LICENSE.md
README.md
Rakefile
_config.yml
config.rb
config.ru
package-lock.json
package.json
home-assistant.io/source/_cookbook/automation_using_timeinterval_inputboolean.markdown
Franck Nijhof 1833c32a2c Cleans up front matter ()
* Sets front matter defaults

* Removes default front matter from section templates/pages

* Removes default front matter from addon pages

* Removes default front matter from integration pages

* Removes default front matter from posts

* Removes default front matter from docs pages

* Removes default front matter from other pages

* Fixes blog category pages
2019-07-11 14:35:08 -07:00

922 B

title, description, ha_category
title description ha_category
Using time interval and input boolean Automation to get a random color every 2 minutes that can be turned on/off. Automation Examples

Change Hue light on interval to random color based on state of an input boolean

Note, Philips Hue is currently the only light platform that support the random effect.

input_boolean:
  loop_livingcolors:
    name: Loop LivingColors
    initial: off
    icon: mdi:spotlight

automation:
# Changes Hue light every two minutes to random color if input boolean is set to on
- alias: 'Set LivingColors to random color'
  trigger:
    platform: time_pattern
    minutes: '/2'
  condition:
    condition: state
    entity_id: input_boolean.loop_livingcolors
    state: 'on'
  action:
    service: light.turn_on
    entity_id: light.woonkamer_livingcolors
    data:
      effect: random
      transition: 5
      brightness: 255