This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// produce test ` | |
const widget = new ListWidget(); | |
// Get data from HASS | |
let result = await loadValues(); | |
// Check data quality | |
let value = result.value; | |
let isValid = !Number.isNaN(value); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let widget = await createWidget(); | |
if (!config.runsInWidget) { | |
await widget.presentSmall(); | |
} | |
Script.setWidget(widget); | |
Script.complete(); | |
async function createWidget(items) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
blueprint: | |
name: ☀️ Smarter Saver Control ☀️ | |
description: | | |
## ☀️ SMART SAVER CONTROL V1.0.1 ☀️ | |
Save 💰💰💰 by this blueprint, easy setup, it just takes 1 minute to setup.. | |
### Optional entities: | |
+ A heater device for the new added quick heater feature. | |
- A scene to use with the extra heater feature (not ready) | |
### features: | |
- Trigger automatically when the temperature changes outside but must have a attribute called **TEMPERATURE** (example zigbee device) |