Skip to content
This repository has been archived by the owner on Nov 4, 2023. It is now read-only.

Commit

Permalink
Examples that don't require real entities
Browse files Browse the repository at this point in the history
  • Loading branch information
rchl committed Mar 11, 2021
1 parent 2fc9a75 commit fd41c12
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions config.example.js
Expand Up @@ -360,18 +360,23 @@ var CONFIG = {
{
title: 'Free Memory',
icon: 'mdi-memory',
value: function() {return this.$scope.filterNumber(this.parseFieldValue('&sensor.memory_free.state',null,null),1) + ' GB';}
value: function() {
// var freeMemory = this.parseFieldValue('&sensor.memory_free.state')
var freeMemory = 15.444 // Just an example.
return this.$scope.filterNumber(freeMemory, 1) + ' GB';
}
},
]
},
},
{
position: [0, 1.5],
width: 1.5,
height: 1,
height: 1.5,
title: 'My Gauge Title',
subtitle: '',
type: TYPES.GAUGE,
id: 'sensor.my_sample_sensor', // Assign the sensor you want to display on the gauge
// id: 'sensor.my_sample_sensor', // Assign the sensor you want to display on the gauge
id: {state: 11111}, // Remove after choosing to actual sensor ID
value: function(item, entity) {
return entity.state;
},
Expand Down

0 comments on commit fd41c12

Please sign in to comment.