cancel
Showing results for 
Search instead for 
Did you mean: 

Need help with Google Home Automation script using Logitech Harmony (Hub) as a condition

Lethallee
Community Member

I have been attempting to use the Logitech harmony device On/Off state as a condition for other actions (unsuccessfully) and not sure what I am missing. 
If I change out the condition to use a smart plug or light using On/Off state as the condition then the automation script does work correctly.
I have exactly the same issue when using a Mirabella Genio door/window sensor.
I want to use the if the door is sensor is open and the airconditioner is ON then broadcast to the kids google speaker with close the windows, and after a 10 minute delay turn if they are still open turn off the airconditioner. My simple example script below that doesn't work with the logitech devices. If anyone has had any luck using the Harmony Hub for automations or mirabella door sensor I'd love to hear about it! Many thanks in advance.  

metadata:
name: _testautomstionHarmony # Choose a short name that summarizes important starters and actions, like “Sunset lights”.
description: Don't automatically turn on lights via schedule if the Logitech Harmony Activity is already on. Testing by turning lights on if condtion is met (off)
automations:
# ---- STARTERS ---- #
# Starters describe events that will start the automation.
# To add more than one starter, duplicate the "- type" section under "starters".
# If you add multiple starter events, any one of them happening will start the automation.
starters:
- type: time.schedule
# Required. Time to schedule automation. Accepts either clock time (10:00:00 AM, with seconds optional, or in a 24 hour format), or 'sunrise' or 'sunset', with an optional offset ('sunrise+10m', for instance)
at: 23:00 # HH:MM (24 hours format). Adjust time as needed

# ---- CONDITIONS ---- #
# Conditions are optional. Delete this section if it’s empty.
# Conditions will prevent an automation from starting if the conditions aren’t met.
# See g.co/home/script-editor-docs for documentation about how to use logical operators like “and”, “or”, and “not”.
condition:
device: Lounge FetchTV - LoungeHub
type: device.state.OnOff # The basic on and off functionality for any device that has binary on and off, including plugs and switches as well as many future devices.
state: on
# Whether a device with an on/off switch is on or off. <code>true</code> if the device is on, <code>false</code> if the device is off. [available operators: is, isNot]
is: false
# ---- ACTIONS ---- #
# Actions will start when a starter event takes place and all conditions are met.
# Actions will start in the order they appear in the script and with any delay specified.
# To add more than one action, duplicate the "- type" section under "actions".
actions:
- type: device.command.OnOff # Turn the device on.
devices: Cats Room Light - Cats Room
on: true

2 REPLIES 2

ByronP
Community Specialist
Community Specialist

Hi Lethallee,

 

Thank you for reaching out to the community. I'm sorry that you've encountered trouble running a home automation script using your Logitech Harmony (hub) and Mirabella Genio door/window sensor. I understand how frustrating this can be. Let's work together to find a solution.

For this concern, you might consider exploring the Developer Center for Automation Script Editor to create the Home Automation you requested, and if you experience an error running the script, you can also submit a bug to the website to work on future updates.

Let me know if you have any further questions. 

 

Regards,

Byron

Lethallee
Community Member

Thanks very much for your reply ByronP,
I actually used the Developer center with Automomation Scripting Editor which was easy to use and allowed me to quickly identify that my options for the device type condition were device.state.Channel, device.state.Online,  device.state.OnOff, device.state.Record, device.state.Volume

The script passes validation and generates no errors upon execution just fails to adhere to the required condition when using those device. Like I said if I change the device to be for example another smart light is on or off then the condition does work correctly. Not sure how to raise a bug, I just see a generic feedback option, but that would probably be my next option. Many thanks again, Leigh