home-assistant.io/source/_integrations/lifx_cloud.markdown
Franck Nijhof 6ca14d3efc
Rename 'service' to 'action' in automations and scripts (#34023)
Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
2024-07-31 14:37:02 +02:00

59 lines
1.5 KiB
Markdown

---
title: LIFX Cloud
description: Instructions on using native LIFX scenes with Home Assistant.
ha_category:
- Scene
ha_iot_class: Cloud Push
ha_release: 0.43
ha_domain: lifx_cloud
ha_platforms:
- scene
ha_integration_type: integration
related:
- docs: /docs/configuration/
title: Configuration file
---
The `lifx_cloud` scene {% term integration %} allows you to activate the scenes that LIFX smartphone apps store in the LIFX cloud.
To enable the LIFX Cloud {% term integration %}, add it to your {% term "`configuration.yaml`" %} file.
{% include integrations/restart_ha_after_config_inclusion.md %}
```yaml
# Example configuration.yaml entry
scene:
- platform: lifx_cloud
token: YOUR_LIFX_TOKEN
```
You can then activate each scene with its name from the smartphone app:
```yaml
- action: scene.turn_on
target:
entity_id: scene.goodnight
```
{% configuration %}
token:
description: The API token for your LIFX Cloud account.
required: true
type: string
timeout:
description: Network timeout in seconds.
required: false
default: 10
type: integer
{% endconfiguration %}
### Getting an API token
You create your API token on the LIFX website:
1. Sign in to the [LIFX Cloud](https://cloud.lifx.com/)
2. Click on your email address and select _Personal Access Tokens_
3. Now click _Generate New Token_
4. Enter a meaningful label, such as 'Home Assistant'
5. Click _Generate_
6. Copy the token that now appears
7. Paste the token into the Home Assistant configuration file