cancel
Showing results for 
Search instead for 
Did you mean: 

Why unable to select a bright sensor as a condition for an automation

Kami_sama
Community Member

Hello. I'm new at Google Home automations. I have linked my LINKNLINK emotion max presence sensor to my Google home account successfully.. in my Google home dashboard I can see the status and control AC, presence sensor and brigthnes sensor, even I can see status and control my MOES smart switches I have linked before... BUT when I try to create an automation the brightness sensor is missing. This is what I'm trying to do: I want living room ligths to turn on only if brightness is DIM and there is a presence person.

My question is: why I can not choose britgness sensor for automation?

Any ideas how I can achieve what I want?

I appreciate your help

2 REPLIES 2

kcruzgonzalez
Community Specialist
Community Specialist

Hello @Kami_sama,

 

Thank you for posting on the community! I understand you are new to Google Home automations and are trying to set up a powerful two-condition routine: lights turn on only if the LINKNLINK emotion max presence sensor detects motion and the brightness sensor is dim.

The current visual routine editor in the Google Home app is generally limited to core device states like "Is a door open/closed?" or "Is a device on/off?" Advanced numerical sensor readings (such as a specific lux or brightness value) are not yet fully exposed as simple, clickable conditions in the main user interface.

The solution to achieving the complex automation you want is to use the Google Home Script Editor. The Script Editor uses the YAML language to allow you to build automations with multiple, advanced conditions and triggers, including specific sensor states.

The Script Editor allows you to use these advanced sensor readings that are hidden in the basic UI.

 

Regards,

Kevin

Kami_sama
Community Member

Hello @kcruzgonzalez 

Thank you so much for your reply... 

I started learning Script Editor but still unable to use Brightness sensor for automations.

I tried with these "type" fields:

type: device.state.SensorState

and 

type: device.state.Brightness

none of those worked because of this error:

 

El dispositivo [Sensor Luz Cocina - Sala familiar] no admite [device.state.SensorState].

 

This is my script:

metadata:
name: Prueba Auto ON/OFF Luz Cocina
description: Auto ON/OFF Luz Cocina según Sensor Luz
automations:
- starters:
type: device.state.OccupancySensing
device: Zona Cocina - Sala familiar
state: occupancy
is: OCCUPIED
condition:
type: device.state.SensorState
device: Sensor Luz Cocina - Sala familiar
state: currentSensorStateData.BrightnessLevel.currentSensorState
is: dim
actions:
type: device.command.OnOff
devices: Luz Cocina - Sala familiar
on: true

 

I can see correctly device status in Google Home App for device: Sensor Luz Cocina - Sala familiar, everything looks great in APP but I can not use the device for automations...

These are screenshots of device in Google Home APP:

https://drive.google.com/file/d/1_sUIhZLBvcWjgcnXIu4NqrYVQJTr9Q4b/view?usp=sharing

https://drive.google.com/file/d/1lojaIIV9JSfJuTJ2sJvP3tEqOLG2FR_Q/view?usp=sharing

 

Thanks in advance!