0.0.9 • Published 4 years ago

smartapp-tile v0.0.9

Weekly downloads
1
License
ISC
Repository
github
Last release
4 years ago

\<smartapp-tile>

Tile for presenting capabilities from SmartThings API

Example usage

<script src="../node_modules/@webcomponents/webcomponentsjs/webcomponents-loader.js"></script>
<script type="module" src="../smartapp-tile.js"></script>

<!-- create a tile using HTML -->
<smartapp-tile name="Test Label" value="21" unit="°C" capability="temperatureMeasurement"></smartapp-tile>

<!-- create a tile programmatically -->
<script>
  let tile = document.createElement('smartapp-tile');
  tile.capability = 'contactSensor';
  const device = {
    label: 'Test Sensor',
    state: {
      "contactSensor": {
        "contact": {
          "value": "closed"
        }
      }
    }
  };
  tile.device = device;
  document.appendChild(tile);
</script>
0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.4

4 years ago

0.0.6

4 years ago

0.0.1

5 years ago