Memory
In the Smart Home system, there is a “memory” plugin that allows you to display the parameters of the RAM (random access memory). This plugin provides access to the following parameters:
-
total
: Thetotal
parameter displays the total amount of system memory in bytes. -
free
: Thefree
parameter indicates the amount of free memory in bytes. -
used_percent
: Theused_percent
parameter shows the percentage of memory usage.
Here’s an example of using the “memory” plugin to retrieve RAM parameters:
const ramParams = EntityGetAttributes('memory.memory')
console.log(ramParams.total);
console.log(ramParams.free);
console.log(ramParams.used_percent);
You can use these parameters to display information about the RAM in your Smart Home project.
Last modified February 5, 2024: Merge pull request #270 from e154/master (7108cb6)