Skip to content

Commit

Permalink
Introducing Long Press
Browse files Browse the repository at this point in the history
v4.0.0

Native support for long pressing / holding down Firemote buttons is
here!

What's New:
 - Firemote Button Longpress support (#477)
 - Support for Amazon Fire INSIGNIA F20 Series TVs (closes #489)
 - Swedish/Svenska language support (closes #472)
 - es-419 language for proper AppleTV app names (closes #471)
 - Proper support for sections layouts (HA experimental)
 - Added card sizing signaling for masonry layouts
 - App Launcher for Fox Business (closes #473)
 - App Launcher for SKY + (closes #474)
 - App Launcher for Pathé Thuis (closes #476)
 - App launcher for Claro tv+ (closes #481)
 - App launcher for BabyTV (closes #482)
 - App Launcher for Apollo Group TV (closes #491)
 - App Launcher for DefSquid
 - Fixed a bug that put too many entities in the entity dropdown
 - Fixed a click bug when dpad style = Minimal

What's Changed:
 - Re-adjusted the regular Downloader app icon
 - Custom_launchers YAML now accepts 'action' or 'service'
 - Various updates for Swedish Translation (closes #472)
 - Updated RTL + app Launcher (closes #475)
 - Updated Magenta TV app Launcher (closes #475)
 - Updated Stremio app Launcher (closes #484)
- Fixed bug that prevented text containing a quotation mark from being
sent
- Added more checks and alerts for users choosing a different remote
style than the one that came with their device
 - Updated GitHub Issue template for Langage Translations
 - Updates to the readme file
 - Updated some error messaging
 - New regular and round logos for downloader app

Can't see these changes after updating? Visit this link:
https://github.com/PRProd/HA-Firemote/wiki/Force-a-Refresh

Can't see language translation updates?  Visit this link:
https://github.com/PRProd/HA-Firemote/wiki/Changing-Your-Home-Assistant-Language
  • Loading branch information
PRProd committed Aug 29, 2024
1 parent fe17f3e commit 3a1c570
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 15 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ Custom app launch buttons are not limited to the few that came printed on your r
<br>
## Launcher Button Customizations
You are not limited to only using the launcher buttons that come with Firemote. Through YAML, you can define your own working buttons in one of two ways: defining a script or constructing a service call.
You are not limited to only using the launcher buttons that come with Firemote. Through YAML, you can define your own working buttons in one of two ways: defining a script or constructing an action call.
Example:
```yaml
Expand All @@ -229,7 +229,7 @@ custom_launchers:
icon: mdi:lamp
color: red
background: blue
service: light.toggle
action: light.toggle
target:
entity_id: light.bedroom_lamp
data:
Expand All @@ -252,9 +252,9 @@ YAML usage:
| color | css color value | no | custom color for your text label or your mdi icon<br>ex: white<br>ex: '#ff0000' |
| background | css color value | no | custom color for your button's background<br>ex: green<br>ex: '#ffffff' |
| script | string | yes if calling a script | The name of your Home Assistant script |
| service | string | yes if not using a script | The name of the Home Assistant service you want to call |
| target | object | yes if not using a script | Define the entity for your service to act upon |
| data | object | no | optional parameters for your service call |
| action | string | yes if not using a script | The name of the Home Assistant action you want to call |
| target | object | yes if not using a script | Define the entity for your action to act upon |
| data | object | no | optional parameters for your action call |
Once defined, a custom button can be assigned to a Firemote button location through the YAML config itself, or it can be selected through the Visual Editor dropdown
Expand All @@ -266,7 +266,7 @@ Once defined, a custom button can be assigned to a Firemote button location thro
<br>
## Button Overrides
Button Overrides can be very useful for customization. These overrides can be used to call a Home Assistant service directly, run a script, or hide a button on your remote. These options are accomplished through your Firemote's YAML configuration.
Button Overrides can be very useful for customization. These overrides can be used to call a Home Assistant action directly, run a script, or hide a button on your remote. These options are accomplished through your Firemote's YAML configuration.
Consider this example:
```yaml
Expand All @@ -276,7 +276,7 @@ button_overrides:
volume-down-button:
script: receiver_volume_down_script
volume-up-button:
service: light.toggle
action: light.toggle
target:
entity_id: light.bedroom_lamp
data:
Expand Down
9 changes: 4 additions & 5 deletions dist/HA-Firemote.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
const HAFiremoteVersion = 'v4.0.0b4';
const HAFiremoteVersion = 'v4.0.0';

import {LitElement, html, css, unsafeHTML, unsafeCSS, styleMap} from './lit/lit-all.min.js';
import {launcherData, launcherCSS} from "./launcher-buttons.js?version=v4.0.0b4";
import {rosettaStone} from './language-translations.js?version=v4.0.0b4';
import {devices} from './supported-devices.js?version=v4.0.0b4';
import {launcherData, launcherCSS} from "./launcher-buttons.js?version=v4.0.0";
import {rosettaStone} from './language-translations.js?version=v4.0.0';
import {devices} from './supported-devices.js?version=v4.0.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"),
Expand Down Expand Up @@ -202,7 +202,6 @@ class FiremoteCard extends LitElement {
};
}

// TODO: This is a part of the beta release - likely should have been included all along
// Sets a default card size (height) for masonry dashboard type
getCardSize(){
// https://developers.home-assistant.io/docs/frontend/custom-ui/custom-card#sizing-in-masonry-view
Expand Down
44 changes: 41 additions & 3 deletions dist/launcher-buttons.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3a1c570

Please sign in to comment.