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:

  1. total: The total parameter displays the total amount of system memory in bytes.

  2. free: The free parameter indicates the amount of free memory in bytes.

  3. used_percent: The used_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)