cancel
Showing results for 
Search instead for 
Did you mean: 

Dual-Outlet Power Device

Dahveed
Community Member

I'm trying to understand the "sub-devices" and automating them. Currently, I can ask my home/hub/mini to turn off individual outlets on my outdoor power plug device (DEFIANT Hubspace HPPA52CWB) and it does so. The device turns on and the outlet I ask for turns on; E.g.: "Hey Google, turn on outlet 1." *Defiant turns on* *Plug 1 turns on*.

 

How can I figure out the reference or sub-state of the individual outlets? I can only seem to get the whole device itself to work and not the plugs themselves even though the my google devices can do it.:


- starters:
- type: device.state.OnOff
device: Greenhouse - Patio
state: on
is: false
actions:
- type: device.command.OnOff
devices:
- Greenhouse - Patio
on: true


ps: I will be adding a device state check prior then checking the weather if it's possible. If sunny, turn on at sunset - 1 hour. If rainy, turn on at 6 am.

2 REPLIES 2

Suc1
Solutions Expert
Solutions Expert

To control individual outlets on your dual-outlet device, you'll need to reference them by their specific names or numbers as they appear in your Google Home app. Try saying "Hey Google, turn on outlet 1" or "turn on [specific outlet name]" instead of just "outlet 1."

Your automation looks correct, but make sure you're targeting the right device name. In the Google Home app, check what each individual outlet is called under your main device.

Can you share what names appear for each outlet in your Google Home app? Also, does your device show up as separate controllable outlets or as one unit?

Dahveed
Community Member

This is not a solution to the question I have as it's about the code and referring to the individual outlets of the device in that automation code, not the google home verbal commands. The code only refers to the device in autocompletion an does have an autocomplete for the individual outlets.

 

Outlet 1 or 2 is the name as in the app. They show as two buttons beneath a main on/off button when I click on the device. Photo is attached, I've renamed the default Outlet 1 and 2 device names to Bank 1 and 2 as they're lights plugged in.