This file contains 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
/* | |
Add a link to the sidebar to any path in Home Assistant | |
Put this file in <config>/www/panel-redirect.js | |
In configuration.yaml: | |
panel_custom: | |
- name: panel-redirect | |
# url_path needs to be unique for each panel_custom config |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
// Get ESP8266 going with Arduino IDE | |
// - https://github.com/esp8266/Arduino#installing-with-boards-manager | |
// Required libraries (sketch -> include library -> manage libraries) | |
// - PubSubClient by Nick ‘O Leary | |
// - DHT sensor library by Adafruit | |
#include <ESP8266WiFi.h> | |
#include <PubSubClient.h> | |
#include <DHT.h> |
This file contains 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
#define wifi_ssid "YOUR_WIFI_NAME" | |
#define wifi_password "YOUR_WIFI_PASSWORD" | |
#define mqtt_server "MQTT_SERVER" | |
#define mqtt_user "MQTT_USER" | |
#define mqtt_password "MQTT_PASS" | |
#define ac_topic "device/study_room/ac" | |
#define temperature_topic "device/study_room/temperature" | |
#define humidity_topic "device/study_room/humidity" |
This file contains 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
/* | |
Battery strategy that shows your battery entities grouped by area. | |
To use: | |
- store this file in `<config>/www/balloob-battery-strategy.js` | |
- Add lovelace resource: `/local/balloob-battery-strategy.js`, type JavaScript Module | |
- Create a new Lovelace dashboard and set as content: | |
views: | |
- title: Batteries |
This file contains 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
/* | |
Demo strategy that shows each area as a tab. Each tab shows the area entities. | |
To use: | |
- store this file in `<config>/www/demo-strategy.js` | |
- Add lovelace resource: `/local/demo-strategy.js`, type JavaScript Module | |
- Create a new Lovelace dashboard and set as content: | |
strategy: | |
name: 'custom:balloob-demo' |
This file contains 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
/* | |
Copy file to <config>/www/user-agent-card.js | |
Restart Home Assitant if www folder didn't exist. | |
In Home Assistant: | |
- Profile -> Enable advanced mode | |
- Config -> Dashboards -> Resources | |
- New resource. `/local/user-agent-card.js`. Type: JS Module |
This file contains 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
""" | |
Copy this file to <config_dir>/example/sensor.py | |
Add to your configuration.yaml: | |
sensor: | |
platform: example | |
""" | |
from homeassistant.const import TEMP_CELSIUS | |
from homeassistant.helpers.entity import Entity |
This file contains 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
/* | |
Created by @jh3yy | |
Adapted for Home Assistant by @balloob | |
Original: https://twitter.com/jh3yy/status/1327686213432717313 | |
Only works on localhost because of restrictions MorphSVGPlugin3 | |
Card config for usage in Home Assistant: |
This file contains 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
/* | |
To use in Home Assistant, configure card: | |
type: 'custom:example-card' | |
entities: | |
- switch.wemo_insight | |
- light.bed_light | |
- light.ceiling_lights | |
- light.kitchen_lights |
NewerOlder