_device_status_

From Yombo
< docs‎ | hooks
Jump to: navigation, search
device_status
Hook name _device_status_
Status Active
Hook source type Library
Stop on exception No
Commonly used Yes
Implemented by devices

Summary

Sent when a device changes status.

Details

Called whenever any attribute about the device's status changes. Actually handled by the Devices::_base_device.py within the devices folder.

KWargs

  • device - (Obj) Reference to the device instance.
  • command - (Obj) Reference to the command being send to the device.
  • request_id - (String) ID of the device command, AKA, the request ID for this command.
  • reported_by - () Information regarding what module or what resource is reporting the status change.
  • gateway_id - (String) The Gateway ID where the status is being reported by.

Expects

Not expecting any data returned.


This page was last edited on 9 December 2017.