Feature: Atoms
From Yombo
< features
Features
Summary
Atoms provide non-changing information about the environment the gateway is running in as well as about the Yombo Gateway software. Atoms are generally immutable and should only change in rare instances.
Atoms can only be viewed and not changed. States are used for items that change, such as if it's light or dark outside.
Examples
Here are some atom examples and their values:
- os.family = Linux
- python.version = 3.6.6
- cpu.count = 12
- working_dir = /home/mitch/.yombo
- mem.sizing = xx_large
Use cases
Atoms are used inside automation rules as well as inside modules that need to lookup various bits of information about the core system. For example, it might use the memory sizing atom to determine how many items it should store in memory, or the working directory to store files in.
Viewing Atoms
View Atoms using the web interface.
See Also
- To view atoms, see Atoms @ Web Interface
- For use inside a module, see: Atoms @ Library Documentation
- For use in automation rules, see: Automation Rule @ Features
- For MQTT topics, see: Atoms @ MQTT Topics
- For detailed python interactions, see: Atoms @ Yombo Python API Docs