_atoms_set_

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

Summary

Called just after the atom value is set.

Details

Called just after the atom value is set.

KWargs

  • called_by (ref) - Reference to the atoms library.
  • key (str) - Key that is being set.
  • value (varies) - Value being assigned to key.
  • value_full (dict) - All attributes for the key.
    • value_human (str) - Something presentable to a human.
    • value_type (str) - Type of data contained in the value. Useful for formatting.
    • gateway_id (str) - ID of the gateway that the value was set on.
    • source (str) - String identifier for the object that set the value last.
    • updated_at (int) - Time since Epoch.
    • created_at (int) - Time since Epoch.
  • gateway_id (str) - ID of the gateway that the value was set on.
  • source (instance) - A reference to the instance that called the set function.
  • source_label (str) - String identifier for the object that set the value last.

Expects

Not expecting any data returned.


This page was last edited on 15 September 2018.