Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/common/entity/compute_state_display.ts
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@ const computeStateToPartsFromEntityAttributes = (
"infrared",
"input_button",
"notify",
"radio_frequency",
"scene",
"stt",
"tag",
Expand Down
1 change: 1 addition & 0 deletions src/common/entity/get_states.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ export const FIXED_DOMAIN_STATES = {
],
person: ["home", "not_home"],
plant: ["ok", "problem"],
radio_frequency: [],
remote: ["on", "off"],
scene: [],
schedule: ["on", "off"],
Expand Down
9 changes: 8 additions & 1 deletion src/common/entity/state_active.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,14 @@ export function stateActive(stateObj: HassEntity, state?: string): boolean {
const compareState = state !== undefined ? state : stateObj?.state;

if (
["button", "event", "infrared", "input_button", "scene"].includes(domain)
[
"button",
"event",
"infrared",
"input_button",
"radio_frequency",
"scene",
].includes(domain)
) {
return compareState !== UNAVAILABLE;
}
Expand Down
2 changes: 2 additions & 0 deletions src/data/icons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ import {
mdiThermostat,
mdiTimerOutline,
mdiToggleSwitch,
mdiVideoInputAntenna,
mdiWater,
mdiWaterPercent,
mdiWeatherPartlyCloudy,
Expand Down Expand Up @@ -128,6 +129,7 @@ export const FALLBACK_DOMAIN_ICONS = {
plant: mdiFlower,
power: mdiFlash,
proximity: mdiAppleSafari,
radio_frequency: mdiVideoInputAntenna,
remote: mdiRemote,
scene: mdiPalette,
schedule: mdiCalendarClock,
Expand Down
1 change: 1 addition & 0 deletions src/data/scene.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export const SCENE_IGNORED_DOMAINS = [
"input_button",
"persistent_notification",
"person",
"radio_frequency",
"scene",
"schedule",
"script",
Expand Down
8 changes: 7 additions & 1 deletion src/state-display/state-display.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,13 @@ import { computeUpdateStateDisplay } from "../data/update";
import "../panels/lovelace/components/hui-timestamp-display";
import type { HomeAssistant } from "../types";

const TIMESTAMP_STATE_DOMAINS = ["button", "infrared", "input_button", "scene"];
const TIMESTAMP_STATE_DOMAINS = [
"button",
"infrared",
"input_button",
"radio_frequency",
"scene",
];

export const STATE_DISPLAY_SPECIAL_CONTENT = [
"remaining_time",
Expand Down
Loading