DheerajKhajuria / pimatic-mysensors

mysensors
http://forum.mysensors.org/topic/797/pimatic-mysensors-controller-plugin
GNU General Public License v2.0
23 stars 24 forks source link

Added xAttributeOptions #15

Closed sweebee closed 9 years ago

sweebee commented 9 years ago

New feature in pimatic. Gives the option to hide the sparkline or the humidity / temp of dht etc.

example for sparkline:

{
      "id": "Battery",
      "name": "Batterijen",
      "class": "MySensorsBattery",
      "nodeid": [
        1,
        2,
        3
      ],
      "xAttributeOptions": [
        {
          "name": "battery_1",
          "displaySparkline": false
        },
        {
          "name": "battery_2",
          "displaySparkline": false
        },
        {
          "name": "battery_3",
          "displaySparkline": false
        }
      ]
    }

example for hiding humidity on dht:

{
      "id": "buiten-temp",
      "name": "Buiten",
      "class": "MySensorsDHT",
      "nodeid": 2,
      "sensorid": [
        0,
        1
      ],
      "xAttributeOptions": [
        {
          "name": "humidity",
          "hidden": true
        }
      ]
    }