home-assistant.github.io/source/_topics/platform_options.markdown
2016-10-10 17:15:51 +02:00

1.2 KiB

layout title description date sidebar comments sharing footer
page Entity component platform options Shows how to customize polling interval for any component via configuration.yaml. 2016-02-12 23:17 -0800 false false true true

Any component that is based on the entity component allows various extra options to be set per platform.

{% linkable_title Entity namespace %}

By setting an entity namespace, all entities will be prefixed with that namespace. That way light.bathroom can become light.holiday_house_bathroom.

# Example configuration.yaml entry
light:
  platform: hue
  entity_namespace: holiday_house

{% linkable_title Scan Interval %}

Platforms that require polling will be polled in an interval specified by the main component. For example a light will check every 30 seconds for a changed state. It is possible to overwrite this scan interval for any platform that is being polled by specifying a scan_interval config key. In the example below we setup the Philips Hue lights but tell Home Assistant to poll the devices every 10 seconds instead of the default 30 seconds.

# Example configuration.yaml entry to poll Hue lights every 10 seconds.
light:
  platform: hue
  scan_interval: 10