Skip to content
This repository was archived by the owner on May 27, 2024. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions phillips_hue/find_hue.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
# Find the HUE Device Registered to your network
#
# Usage:
# ansible-playbook fin_hue.yml
#
# Ref:
# - https://developers.meethue.com/develop/get-started-2/
#

- hosts: localhost
gather_facts: no
connection: local

tasks:
- name: INCLUDE IP ADDRESS FROM username_info.yml
include_vars:
file: username_info.yml

- name: Get Hue Information from MeetHue
uri:
url: "https://discovery.meethue.com/"
method: GET
register: discovery

- name: Information from MeetHue
debug:
var: discovery.json