From 92e2e303757f8604ff3fb241da1baf065a7f0757 Mon Sep 17 00:00:00 2001 From: Russell VT Date: Thu, 28 Sep 2023 01:45:07 -0700 Subject: [PATCH] Create find_hue.yml to Find Local Hue Brdige The easiest way to find the IP address of your Hue Bridge. Ref: https://developers.meethue.com/develop/get-started-2/ --- phillips_hue/find_hue.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 phillips_hue/find_hue.yml diff --git a/phillips_hue/find_hue.yml b/phillips_hue/find_hue.yml new file mode 100644 index 000000000..ccea1f5c8 --- /dev/null +++ b/phillips_hue/find_hue.yml @@ -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