Skip to content

Commit

Permalink
New Chromecast Buttons and App Launchers
Browse files Browse the repository at this point in the history
v4.1.3

This version contains new Chromecast media control buttons from
@prabhjotsbhatia-ca and new App Launchers

Find the full launcher list here
https://github.com/PRProd/HA-Firemote/wiki/Firemote-App-Launchers

What's New:
 - App Launcher for Smarters Pro (closes #548)
 - App Launcher for Corridor Digital (closes #549)
 - App Launcher for Helix TV (closes #550)
 - App Launcher for BlazeTV (closes #551)
 - App Launcher for Zwift (closes #553)
 - New optional media control buttons for Chromecast Remotes (#554)
 - App Launcher for GeForce Now (closes #556)

Can't see these changes after updating? Visit this link:
https://github.com/PRProd/HA-Firemote/wiki/Force-a-Refresh
  • Loading branch information
PRProd committed Nov 12, 2024
1 parent 4caa17b commit 10ba6d5
Show file tree
Hide file tree
Showing 3 changed files with 202 additions and 15 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ Options:
| use_theme_background | bool | no | true<br>false | Optionally hide the AL1 or AL2 remote style's background color to let the HA theme color show |
| hide_button_group_frame | bool | no | true<br>false | Optionally hide the frames around the button groups when using AL1 or AL2 |
| useCustomSkin | bool | no | true<br>false | Toggle a custom background skin color on or off when using AL1 or AL2 |
| show_media_controls | bool | no | true<br>false | Show additional media control buttons for Chromecast style remotes CC1, CC2, or CC3 |
| skin | hex color value | no | Any hex color value e.g.: #ffffff | background skin color for AL1 or AL2 |
| dpad_style | string | no | amazon-fire<br>apple-tv-black<br>apple-tv-silver<br>chromecast<br>xiaomi<br>minimal | Dpad style options for AL1 or AL2 |
Expand Down
22 changes: 8 additions & 14 deletions dist/HA-Firemote.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
const HAFiremoteVersion = 'v4.1.2';
const HAFiremoteVersion = 'v4.1.3';

import {LitElement, html, css, unsafeHTML, unsafeCSS, styleMap} from './lit/lit-all.min.js';
import {launcherData, launcherCSS} from "./launcher-buttons.js?version=v4.1.2";
import {rosettaStone} from './language-translations.js?version=v4.1.2';
import {devices} from './supported-devices.js?version=v4.1.2';
import {launcherData, launcherCSS} from "./launcher-buttons.js?version=v4.1.3";
import {rosettaStone} from './language-translations.js?version=v4.1.3';
import {devices} from './supported-devices.js?version=v4.1.3';

console.groupCollapsed("%c 🔥 FIREMOTE-CARD 🔥 %c "+HAFiremoteVersion+" installed ", "color: orange; font-weight: bold; background: black", "color: green; font-weight: bold;"),
console.log("Readme:", "https://github.com/PRProd/HA-Firemote"),
Expand Down Expand Up @@ -8371,21 +8371,15 @@ class FiremoteCardEditor extends LitElement {
`;
}
}

getChromecastMediaControls(remoteStyle) {
if (['CC1', 'CC2', 'CC3'].includes(remoteStyle)) {
return html`
<br />
<label for="showMediaControlsCheckbox">
<input
type="checkbox"
id="showMediaControlsCheckbox"
name="show_media_controls"
?checked=${this._config.show_media_controls === true}
@change=${this.configChanged}
/>&nbsp; ${this.translateToUsrLang("Show Media Controls")}
<input type="checkbox" id="showMediaControlsCheckbox" name="show_media_controls"
?checked=${this._config.show_media_controls === true} @change=${this.configChanged}>&nbsp; ${this.translateToUsrLang("Show Media Controls")}
</label>
<br />
`;
<br>`;
}
}

Expand Down
Loading

0 comments on commit 10ba6d5

Please sign in to comment.