Skip to content
Extraits de code Groupes Projets
Valider 995eb989 rédigé par Rémi's avatar Rémi
Parcourir les fichiers

test: Update Philips Hue automation scripts

This commit updates the automation scripts for controlling Philips Hue lights. The changes include:
- Improved navigation flow in the `alexa.yml` file
- Added new actions in the `flow.yml` file for switching Wi-Fi networks
- Added a new script, `hue.yml`, for controlling the Hue lights directly
- Updated the existing script, `hueEssentials.yml`, for editing the lights using Hue Essentials
parent be264a17
Aucune branche associée trouvée
Aucune étiquette associée trouvée
1 requête de fusion!1Add rule timeout & support for duplicate requests
...@@ -2,42 +2,42 @@ appId: com.amazon.dee.app ...@@ -2,42 +2,42 @@ appId: com.amazon.dee.app
name: "Power-on/off TP-Link plug using Alexa" name: "Power-on/off TP-Link plug using Alexa"
--- ---
- launchApp: - launchApp:
clearState: false clearState: false
stopApp: true stopApp: true
label: "Open the Amazon Alexa app" label: "Open the Amazon Alexa app"
- tapOn: - tapOn:
id: "com.amazon.dee.app:id/tab_channels_device" id: "com.amazon.dee.app:id/tab_channels_device"
label: "Open the Devices tab" label: "Open the Devices tab"
- tapOn: - tapOn:
id: "DevicePageSearchButton" id: "DevicePageSearchButton"
label: "Open the search menu" label: "Open the search menu"
- tapOn: - tapOn:
id: "DeviceSearchPageSearchInput_SearchInput" id: "DeviceSearchPageSearchInput_SearchInput"
label: "Open the search bar" label: "Open the search bar"
- inputText: - inputText:
text: "Lamp" text: "Lamp"
label: "Type 'Lamp' in the search bar" label: "Type 'Lamp' in the search bar"
- doubleTapOn: - doubleTapOn:
text: "Lamp" text: "Lamp"
index: 1 index: 1
label: "Select the Philips Hue lamp" label: "Select the Philips Hue lamp"
- tapOn: - tapOn:
point: "50%,23%" point: "50%,23%"
label: "Turn on the lamp" label: "Turn on the lamp"
- tapOn: - tapOn:
id: "ColorControl::Color=Custom-primary" id: "ColorControl::Color=Custom-primary"
label: "Open the color picker" label: "Open the color picker"
- scroll: - scroll:
label: "Scroll down the color picker" label: "Scroll down the color picker"
- tapOn:
text: "Orange"
label: "Set the color to orange"
- tapOn: - tapOn:
id: "header-back-button" text: "Orange"
label: "Close the color picker" label: "Set the color to orange"
- tapOn: - tapOn:
point: "85%,55%" id: "header-back-button"
label: "Set the power to 100%" label: "Close the color picker"
- tapOn: - tapOn:
point: "50%,23%" point: "85%,55%"
label: "Turn off the lamp" label: "Set the power to 100%"
\ No newline at end of file - tapOn:
point: "50%,23%"
label: "Turn off the lamp"
appId: com.tplink.kasa_android appId: com.tplink.kasa_android
--- ---
- runFlow: - runFlow:
file: hueEssentials.yml file: hue.yml
label: "Edit the light using Hue Essentials" label: "Edit the light using Hue"
- runFlow: - runFlow:
file: alexa.yml file: hueEssentials.yml
label: "Edit the light using Alexa" label: "Edit the light using Hue Essentials"
\ No newline at end of file - runFlow:
file: alexa.yml
label: "Edit the light using Alexa"
- runFlow:
file: wifi.yml
label: "Switch Wi-Fi to UCLouvain"
env:
WIFI: UCLouvain
- runFlow:
file: hue.yml
label: "Edit the light using Hue"
- runFlow:
file: hueEssentials.yml
label: "Edit the light using Hue Essentials"
- runFlow:
file: alexa.yml
label: "Edit the light using Alexa"
- runFlow:
file: wifi.yml
label: "Switch Wi-Fi to OpenWrt-5GHz"
env:
WIFI: OpenWrt-5GHz
appId: com.philips.lighting.hue2
name: Hue
---
- launchApp:
appId: "com.philips.lighting.hue2"
clearState: false
stopApp: true
label: "Open the Hue app"
- tapOn:
text: "Office"
label: "Turn on the light"
- tapOn:
point: "50%,31%"
label: "Select the room"
- tapOn:
point: "19%,64%"
label: "Select the light"
- tapOn: "Effects"
- "scroll"
- tapOn:
point: "39%,49%"
label: "Switch color to `Opal`"
- "back"
- tapOn:
point: "15%,14%"
label: "Change the brightness"
- tapOn:
point: "19%,71%"
label: "Turn off the light"
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter