Prise en charge des traits de l'API Automation sur Android

L'API Automation pour Android est compatible avec la plupart des traits, mais la prise en charge de certains attributs, événements et commandes dans un trait peut être limitée.

Pour vérifier que l'API Automation est compatible avec votre cas d'utilisation, recherchez dans le tableau ci-dessous.

En règle générale :

  • Tous les traits et types que vous prévoyez d'utiliser dans votre application avec l'API Automation doivent être enregistrés lors de l'initialisation. Consultez Créer une instance Home.
  • Vous pouvez utiliser n'importe quel attribut dans des déclencheurs ou des conditions.
  • Les appareils Cloud-to-cloud qui ne signalent pas leur état ne peuvent pas être utilisés comme déclencheurs dans les automatisations, créées manuellement ou via la découverte.
  • Même si un appareil est compatible avec les caractéristiques listées ici, il peut être bloqué en tant que déclencheur ou action dans l'API Automation en raison des seuils de qualité de l'état du rapport:

    • Les appareils dont le taux de réussite de l'état du rapport est inférieur à 90% ne peuvent pas être utilisés comme déclencheurs.
    • Les appareils dont le taux de réussite de l'exécution des commandes est inférieur à 95% ne peuvent pas être utilisés comme actions.

    Reportez-vous à cette liste de modèles d'appareils et aux déclencheurs et actions spécifiques qu'ils prennent en charge pour l'API Automations.

  • Les commandes ne peuvent être utilisées qu'en tant qu'actions.

  • Certaines caractéristiques, telles que AssistantBroadcast, ne sont disponibles que dans l'API Automation.

  • La commande okGoogle est une commande au niveau de la structure et peut être utilisée pour automatiser n'importe quel appareil de la structure. Toutefois, il est possible qu'une application utilisant les API Home n'ait pas accès à tous les appareils. Consultez la section Autorisations Ok Google pour découvrir comment les autorisations sont appliquées dans différents cas.

  • Certaines caractéristiques nécessitent des conditions préalables:

    • Pour utiliser Time.ScheduledTimeEvent, la structure dans laquelle l'automatisation s'exécute doit disposer d'une adresse qui a été configurée dans Google Home app (GHA). Modifier l'adresse Google explique comment un utilisateur peut saisir l'adresse de la structure. Si l'adresse n'est pas configurée dans GHA, la création de l'automatisation échoue et une erreur est générée avec le message "Le ScheduledTimeEvent n'est pas compatible avec structure."
    • Pour utiliser les traits AreaPresenceState ou AreaAttendanceState, l'utilisateur doit configurer la détection de présence dans le GHA.
    • Pour utiliser la caractéristique ObjectDetection, l'utilisateur doit disposer d'un abonnement Nest Aware valide.

Des versions simplifiées de certaines caractéristiques sont également disponibles pour les automatisations. Pour en savoir plus, consultez la section Traits simplifiés sur Android.

Un bloc indique que la commande n'est pas compatible avec les automatisations pour un ou plusieurs types d'appareils. Pour en savoir plus, consultez la section Actions bloquées dans les automatisations sur Android.

256 résultats
Trait Type de trait Type d'élément Élément
AirQuality matière Attribut airQuality
ApplicationLauncher matière Commande LaunchApp
ApplicationLauncher matière Commande StopApp
ApplicationLauncher matière Attribut currentApp
AreaAttendanceState google Attribut attendanceState
AreaPresenceState google Attribut presenceState
ArmDisarm google Commande ArmDisarm bloc
ArmDisarm google Événement ArmDisarmArmState
ArmDisarm google Attribut armState
ArmDisarm google Attribut currentArmLevel
ArmDisarm google Attribut isArmed
AssistantBroadcast google Commande Mégaphone
AssistantFulfillment google Commande OkGoogle
AudioOutput matière Attribut currentOutput
BooleanState matière Événement StateChange
BooleanState matière Attribut stateValue
Boutons d'activation/de désactivation google Commande ChangeToggleSettings block
Boutons d'activation/de désactivation google Attribut currentToggleSettings
CarbonDioxideConcentrationMeasurement matière Attribut levelValue
CarbonDioxideConcentrationMeasurement matière Attribut measuredValue
CarbonMonoxideConcentrationMeasurement matière Attribut levelValue
CarbonMonoxideConcentrationMeasurement matière Attribut maxMeasuredValue
CarbonMonoxideConcentrationMeasurement matière Attribut measuredValue
CarbonMonoxideConcentrationMeasurement matière Attribut measurementUnit
CarbonMonoxideConcentrationMeasurement matière Attribut minMeasuredValue
CarbonMonoxideConcentrationMeasurement matière Attribut uncertainty
Chaîne matière Commande ChangeChannelByNumber
Chaîne matière Commande SkipChannel
ColorControl matière Commande ColorLoopSet
ColorControl matière Commande MoveColor
ColorControl matière Commande MoveColorTemperature
ColorControl matière Commande MoveToColor
ColorControl matière Commande MoveToColorTemperature
ColorControl matière Commande MoveToHue
ColorControl matière Commande MoveToHueAndSaturation
ColorControl matière Commande MoveToSaturation
ColorControl matière Commande StepColor
ColorControl matière Commande StepColorTemperature
ColorControl matière Attribut colorTemperatureMireds
ColorControl matière Attribut currentHue
ColorControl matière Attribut currentX
ColorControl matière Attribut currentY
Commutateur matière Événement InitialPress
Commutateur matière Événement LongPress
Commutateur matière Événement LongRelease
Commutateur matière Événement MultiPressComplete
Commutateur matière Événement MultiPressOngoing
Commutateur matière Événement ShortRelease
Commutateur matière Événement SwitchLatched
Commutateur matière Attribut currentPosition
DishwasherMode matière Commande ChangeToMode
DishwasherMode matière Attribut currentMode
DishwasherMode matière Attribut onMode
DoorbellPress google Événement DoorbellPressed
DoorLock matière Événement DoorLockAlarm
DoorLock matière Événement DoorStateChange
DoorLock matière Commande LockDoor
DoorLock matière Événement LockOperation
DoorLock matière Événement LockOperationError
DoorLock matière Commande UnlockDoor
DoorLock matière Attribut doorClosedEvents
DoorLock matière Attribut doorOpenEvents
DoorLock matière Attribut doorState
DoorLock matière Attribut lockState
Enregistrer google Commande StartRecording
Enregistrer google Commande StopRecording
Enregistrer google Attribut isCurrentlyRecording
ExtendedAirQuality google Événement AirQuality
ExtendedAirQuality google Attribut indoorAirQuality
ExtendedAirQuality google Attribut indoorMeasuredValue
ExtendedAirQuality google Attribut measuredValue
ExtendedAirQuality google Attribut outdoorAirQuality
ExtendedAirQuality google Attribut outdoorMeasuredValue
ExtendedColorControl google Commande MoveToColorHSV
ExtendedColorControl google Commande MoveToColorName
ExtendedColorControl google Commande MoveToColorRGB
ExtendedColorControl google Attribut currentBlue
ExtendedColorControl google Attribut currentGreen
ExtendedColorControl google Attribut currentHue
ExtendedColorControl google Attribut currentName
ExtendedColorControl google Attribut currentRed
ExtendedColorControl google Attribut currentSaturation
ExtendedColorControl google Attribut currentValue
ExtendedFanControl google Commande ToggleAirflowDirection
ExtendedFanControl google Attribut customFanMode
ExtendedFanControl google Attribut customFanModes
ExtendedMediaInput google Commande NextInput
ExtendedMediaInput google Commande PreviousInput
ExtendedMediaInput google Commande SelectCustomInput
ExtendedMediaInput google Attribut currentCustomInput
ExtendedMediaInput google Attribut customInputsList
ExtendedMediaInput google Attribut customInputsOrdered
ExtendedOperationalState google Événement PauseUnpauseFollowUp
ExtendedOperationalState google Événement StartStopFollowUp
ExtendedPowerSource google Commande StartCharging
ExtendedPowerSource google Commande StopCharging
ExtendedThermostat google Attribut activePresetHandle
ExtendedThermostat google Attribut activeRemoteTemperatureSensorIds
ExtendedThermostat google Attribut averageLocalTemperature
ExtendedThermostat google Attribut extendedRunningMode
ExtendedThermostat google Attribut extendedSystemMode
FanControl matière Commande Step
FanControl matière Attribut airflowDirection
FanControl matière Attribut fanMode
FanControl matière Attribut percentCurrent
FanControl matière Attribut percentSetting
FanControl matière Attribut speedCurrent
FanControl matière Attribut speedSetting
FanControl matière Attribut windSetting
FormaldehydeConcentrationMeasurement matière Attribut levelValue
FormaldehydeConcentrationMeasurement matière Attribut measuredValue
Heure google Événement ScheduledTimeEvent
Heure google Attribut currentTime
Heure google Attribut missingStructureLocation
Heure google Attribut sunriseTime
Heure google Attribut sunsetTime
IlluminanceMeasurement matière Attribut measuredValue
LaundryWasherMode matière Commande ChangeToMode
LaundryWasherMode matière Attribut currentMode
LaundryWasherMode matière Attribut onMode
LevelControl matière Commande Déplacer
LevelControl matière Commande MoveToLevel
LevelControl matière Commande MoveToLevelWithOnOff
LevelControl matière Commande MoveWithOnOff
LevelControl matière Commande Step
LevelControl matière Commande StepWithOnOff
LevelControl matière Commande Arrêter
LevelControl matière Commande StopWithOnOff
LevelControl matière Attribut currentLevel
LevelControl matière Attribut maxLevel
LevelControl matière Attribut startUpCurrentLevel
LightEffects google Commande PulseEffectSet
LightEffects google Commande SleepEffectSet
LightEffects google Commande StopEffect
LightEffects google Commande WakeEffectSet
LightEffects google Attribut pulseEffectSet
LightEffects google Attribut sleepEffectSet
LightEffects google Attribut wakeEffectSet
LockUnlock google Commande Verrouiller
LockUnlock google Commande Déverrouiller le blocage
LockUnlock google Attribut lockState
Luminosité google Commande BrightnessStep
Luminosité google Commande MoveToBrightness
Luminosité google Attribut currentBrightnessPercent
MediaInput matière Commande RenameInput
MediaInput matière Commande SelectInput
MediaInput matière Attribut currentInput
MediaPlayback matière Commande FastForward
MediaPlayback matière Commande Suivant
MediaPlayback matière Commande Pause
MediaPlayback matière Commande Lire
MediaPlayback matière Commande Précédent
MediaPlayback matière Commande Retour arrière
MediaPlayback matière Commande SkipBackward
MediaPlayback matière Commande SkipForward
MediaPlayback matière Événement StateChanged
MediaPlayback matière Commande Arrêter
MediaPlayback matière Attribut currentState
ModeSelect matière Commande ChangeToMode block
ModeSelect matière Attribut currentMode
ModeSelect matière Attribut onMode
MotionDetection google Événement MotionDetected
MotionDetection google Attribut motionDetectionEventInProgress
NitrogenDioxideConcentrationMeasurement matière Attribut levelValue
NitrogenDioxideConcentrationMeasurement matière Attribut measuredValue
Notification google Commande SendNotifications
ObjectDetection google Événement ObjectDetected
OccupancySensing matière Attribut occupation
OnOff matière Commande Désactivé bloc
OnOff matière Commande Activer le blocage
OnOff matière Attribut onOff
OpenClose google Commande Bloc fermé
OpenClose google Commande GoToOpenPercentage
OpenClose google Commande Bloc ouvert
OpenClose google Commande Bloc d'étape
OpenClose google Attribut openPercent
OpenClose google Attribut openState
OpenClose google Attribut targetOpenPercent
OperationalState matière Événement OperationCompletion
OperationalState matière Commande Mettre en pause bloc
OperationalState matière Commande Bloc Réactiver
OperationalState matière Commande Démarrer
OperationalState matière Commande Arrêter
OperationalState matière Attribut currentPhase
OperationalState matière Attribut operationalState
OzoneConcentrationMeasurement matière Attribut levelValue
OzoneConcentrationMeasurement matière Attribut measuredValue
Pm10ConcentrationMeasurement matière Attribut levelValue
Pm10ConcentrationMeasurement matière Attribut measuredValue
Pm25ConcentrationMeasurement matière Attribut levelValue
Pm25ConcentrationMeasurement matière Attribut measuredValue
PowerSource matière Attribut batChargeState
PowerSource matière Attribut batChargingCurrent
PowerSource matière Attribut batTimeToFullCharge
RadonConcentrationMeasurement matière Attribut levelValue
RadonConcentrationMeasurement matière Attribut measuredValue
RelativeHumidityMeasurement matière Attribut measuredValue
RvcCleanMode matière Commande ChangeToMode
RvcOperationalState matière Commande GoHome
RvcOperationalState matière Commande Pause
RvcOperationalState matière Commande Reprendre
RvcOperationalState matière Attribut currentPhase
RvcOperationalState matière Attribut operationalError
RvcOperationalState matière Attribut operationalState
RvcRunMode matière Commande ChangeToMode
RvcRunMode matière Attribut currentMode
SimplifiedOnOff google Attribut onOff
SimplifiedThermostat google Commande SetSystemMode
SimplifiedThermostat google Attribut systemMode
Station d'accueil google Commande Station d'accueil
Station d'accueil google Attribut isDocked
TemperatureControl matière Commande SetTemperature
TemperatureControl matière Attribut maxTemperature
TemperatureControl matière Attribut minTemperature
TemperatureControl matière Attribut selectedTemperatureLevel
TemperatureControl matière Attribut temperatureSetpoint
TemperatureMeasurement matière Attribut measuredValue
Thermostat matière Commande SetpointRaiseLower
Thermostat matière Attribut activePresetHandle
Thermostat matière Attribut localTemperature
Thermostat matière Attribut occupation
Thermostat matière Attribut occupiedCoolingSetpoint
Thermostat matière Attribut occupiedHeatingSetpoint
Thermostat matière Attribut outdoorTemperature
Thermostat matière Attribut setpointChangeSource
Thermostat matière Attribut systemMode
Thermostat matière Attribut temperatureSetpointHold
Thermostat matière Attribut temperatureSetpointHoldDuration
Thermostat matière Attribut thermostatRunningMode
Thermostat matière Attribut thermostatRunningState
Thermostat matière Attribut unoccupiedCoolingSetpoint
Thermostat matière Attribut unoccupiedHeatingSetpoint
TotalVolatileOrganicCompoundsConcentrationMeasurement matière Attribut levelValue
TotalVolatileOrganicCompoundsConcentrationMeasurement matière Attribut measuredValue
VoiceStarter google Événement OkGoogleEvent
Volume google Commande MoveToVolume
Volume google Commande Couper micro
Volume google Commande Réactiver le son
Volume google Commande VolumeStep
Volume google Attribut currentVolumePercent
Volume google Attribut isMuted
WindowCovering matière Commande DownOrClose
WindowCovering matière Commande GoToLiftPercentage
WindowCovering matière Commande GoToLiftValue
WindowCovering matière Commande GoToTiltPercentage
WindowCovering matière Commande GoToTiltValue
WindowCovering matière Commande StopMotion
WindowCovering matière Commande UpOrOpen
WindowCovering matière Attribut currentPositionLift
WindowCovering matière Attribut currentPositionLiftPercent100ths
WindowCovering matière Attribut currentPositionLiftPercentage
WindowCovering matière Attribut currentPositionTilt
WindowCovering matière Attribut currentPositionTiltPercent100ths
WindowCovering matière Attribut currentPositionTiltPercentage
WindowCovering matière Attribut targetPositionLiftPercent100ths
WindowCovering matière Attribut targetPositionTiltPercent100ths