Custom Switcher Boiler Switch card for Home Assistant. Built to work with official Switcher Integration for Home Assistant. The card designed to look and feel similar to other Tile cards in HA.
Welcome to our Smart Home Israel Discord channel to discuss.
- Fully supports HA UI Editor (no need to edit YAML code).
- Displays remaining time in state field.
- Optional additional 2 sensors to display in state field. Sensor 1 to be displayed when Switcher is On. Sensor 2 to be displayed when Switcher is On and Off.
- The time selection button loops through configurable timer values in minutes, when clicked.
- Turn on with or without selected timer.
- Support editing in YAML as well (please see table below).
To install from HACS you need to add this repository as custom repository first.
- Go to HACS and open 3 dots menu on the right upper corner.
- Select "Custom repositories" option.
- In the "Custom repositories" popup populate as below:
- Repository:
https://github.com/dmatik/switcher-boiler-card
- Type:
Dashboard
- Repository:
- Click "Add".
Now you should be able to find "Switcher Boiler Card" in HACS store.
- Download
switcher-boiler-card.js
andswitcher-boiler-card-editor.js
files fromdist
folder in the latest release. - Put
switcher-boiler-card.js
andswitcher-boiler-card-editor.js
files into yourconfig/www/switcher-boiler-card
folder. - Add reference to
switcher-boiler-card.js
in Dashboard. There's two way to do that:- Using UI: Settings → Dashboards → More Options icon → Resources → Add Resource → Set Url as
/local/switcher-boiler-card/switcher-boiler-card.js
→ Set Resource type asJavaScript Module
. Note: If you do not see the Resources menu, you will need to enable Advanced Mode in your User Profile - Using YAML: Add following code to
lovelace
section.resources: - url: /local/switcher-boiler-card/switcher-boiler-card.js type: module
- Using UI: Settings → Dashboards → More Options icon → Resources → Add Resource → Set Url as
The card can be fully configured from HA UI Editor.
Name | Description | Required | Default |
---|---|---|---|
type |
custom:switcher-boiler-card |
yes | |
entity |
Switcher switch entity | yes | |
name |
Card name. Leave empty to take entity friendly name. | no | "Boiler" |
icon |
Card icon. Leave empty to take icon from entity. | no | "mdi:waves" |
time_left |
Time left sensor entity. Leave empty if you don't want it to be displayed. | no | |
sensor_1 |
Sensor 1 entity. Displayed only when Switcher is On. | no | |
sensor_2 |
Sensor 2 entity. Displayed when Switcher is On and Off. | no | |
timer_values |
List of values for timer in minutes (from 1 to 150). | no | 15, 30, 45, 60 |
Example:
type: custom:switcher-boiler-card
entity: switch.switcher_touch_d54f
name: Boiler
icon: mdi:waves
time_left: sensor.switcher_touch_d54f_remaining_time
sensor_1: sensor.switcher_touch_d54f_current
timer_values:
- "15"
- "30"
- "45"
- "60"