Skip to content

Commit

Permalink
onn. is here!
Browse files Browse the repository at this point in the history
v3.3.0

What's New:
 - The onn. remote control
 - Support for Estonian language (closes #339)
 - Apple app launcher for NOW (#343)
 - Apple app launcher for Joyn (closes #234)
 - Fire, Chromecast, and Shield launchers added for itvX (closes #346)
 - Native support for Roku sleep button (requires HA 2024.3.1 or newer)
 - App launcher for Elisa Elamus (#347)
 - various function buttons added for other device families

What's Changed:
 - Monolith .js file has been broken apart
 - Adjusted launcher for SmartTube (closes #350)
 - Optimized and updated logo color for SmartTube
 - Renamed SmartTube Next to SmartTube in dropdowns
 - Updated logo colors for NBC News
 - Updated logo colors for philo
 - Updated logo background for plex
 - Updated logo for pluto tv
 - Updated logo colors for Rai Play
 - Updated logo colors for starz
 - Updated logo for tubi
 - Updated logo for SiriusXM
 - Minor spelling corrections (thanks @reinuke)
 - Misc code cleanup
  • Loading branch information
PRProd committed Mar 25, 2024
1 parent 583b580 commit 29187ac
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 14 deletions.
10 changes: 5 additions & 5 deletions dist/HA-Firemote.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {launcherData, launcherCSS} from './launcher-buttons.js';
import {rosettaStone} from './language-translations.js';
import {devices} from './supported-devices.js';

const HAFiremoteVersion = 'v3.3.0b2';
const HAFiremoteVersion = 'v3.3.0';
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"),
console.groupEnd();
Expand Down Expand Up @@ -5050,7 +5050,7 @@ class FiremoteCard extends LitElement {
this.hass.callService("remote", "send_command", { entity_id: this._config.roku_remote_entity, command: 'channel_up', num_repeats: 1, delay_secs: 0, hold_secs: 0});
return;
}
if (deviceType == 'fire_tv_stick_4k_second_gen' || deviceType == 'fire_tv_stick_4k_max_second_gen' || deviceType == 'onn-4k-streaming-box') {
if (['fire_tv_stick_4k_second_gen', 'fire_tv_stick_4k_max_second_gen', 'onn-4k-streaming-box', 'onn-full-hd-streaming-stick'].includes(deviceType)) {
this.hass.callService("androidtv", "adb_command", { entity_id: this._config.entity, command: 'adb shell input keyevent KEYCODE_CHANNEL_UP'});
}
else {
Expand Down Expand Up @@ -5093,7 +5093,7 @@ class FiremoteCard extends LitElement {
else if (deviceType == 'mi-box-s') {
this.hass.callService("androidtv", "adb_command", { entity_id: this._config.entity, command: 'adb shell am start -n com.google.android.tv/com.android.tv.MainActivity' });
}
else if (deviceType == 'onn-4k-streaming-box') {
else if (deviceType == 'onn-4k-streaming-box' || deviceType == 'onn-full-hd-streaming-stick') {
this.hass.callService("androidtv", "adb_command", { entity_id: this._config.entity, command: 'adb shell input keyevent KEYCODE_GUIDE'});
}
else {
Expand All @@ -5108,7 +5108,7 @@ class FiremoteCard extends LitElement {
this.hass.callService("remote", "send_command", { entity_id: this._config.roku_remote_entity, command: 'channel_down', num_repeats: 1, delay_secs: 0, hold_secs: 0});
return;
}
if (deviceType == 'fire_tv_stick_4k_second_gen' || deviceType == 'fire_tv_stick_4k_max_second_gen' || deviceType == 'onn-4k-streaming-box') {
if (['fire_tv_stick_4k_second_gen', 'fire_tv_stick_4k_max_second_gen', 'onn-4k-streaming-box', 'onn-full-hd-streaming-stick'].includes(deviceType)) {
this.hass.callService("androidtv", "adb_command", { entity_id: this._config.entity, command: 'adb shell input keyevent KEYCODE_CHANNEL_DOWN'});
}
else {
Expand Down Expand Up @@ -5139,7 +5139,7 @@ class FiremoteCard extends LitElement {

// Settings Button
if(clicked.target.id == 'settings-button') {
if(deviceType == 'onn-4k-streaming-box') {
if(deviceType == 'onn-4k-streaming-box' || deviceType == 'onn-full-hd-streaming-stick') {
this.hass.callService("androidtv", "adb_command", { entity_id: this._config.entity, command: 'adb shell input keyevent 83' });
}
else if(compatibility_mode == 'strong' || eventListenerBinPath == 'undefined' || deviceType == 'fire_tv_cube_third_gen') {
Expand Down
Loading

0 comments on commit 29187ac

Please sign in to comment.