Skip to content

Commit a94f923

Browse files
committed
Add support for buttons
Closes #94
1 parent e0fbff5 commit a94f923

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/com/shmuelzon/HomeAssistantFloorPlan/Controller.java

+3
Original file line numberDiff line numberDiff line change
@@ -442,11 +442,13 @@ private Map<HomeLight, Float> getLightsPower(Map<String, List<HomeLight>> lights
442442
private boolean isHomeAssistantEntity(String name) {
443443
String[] sensorPrefixes = {
444444
"binary_sensor.",
445+
"button.",
445446
"camera.",
446447
"climate.",
447448
"cover.",
448449
"fan.",
449450
"input_boolean.",
451+
"input_button.",
450452
"lock.",
451453
"media_player.",
452454
"sensor.",
@@ -822,6 +824,7 @@ private void generateLightEntities(Map<String, Entity> homeAssistantEntities) {
822824

823825
private boolean isHomeAssistantEntityActionable(String name) {
824826
String[] actionableEntityPrefixes = {
827+
"button.",
825828
"cover.",
826829
"fan.",
827830
"lock.",

0 commit comments

Comments
 (0)