mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2025-12-19 22:24:15 +01:00
Merge pull request #1324 from ticaki/main
4.7.1.3 MrIcons also allow other mqtt states
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*-----------------------------------------------------------------------
|
||||
TypeScript v4.7.1.2 zur Steuerung des SONOFF NSPanel mit dem ioBroker by @Armilar / @TT-Tom / @ticaki / @Britzelpuf / @Sternmiere / @ravenS0ne
|
||||
TypeScript v4.7.1.3 zur Steuerung des SONOFF NSPanel mit dem ioBroker by @Armilar / @TT-Tom / @ticaki / @Britzelpuf / @Sternmiere / @ravenS0ne
|
||||
- abgestimmt auf TFT 56 / v4.7.1 / BerryDriver 9 / Tasmota 14.5.0
|
||||
@joBr99 Projekt: https://github.com/joBr99/nspanel-lovelace-ui/tree/main/ioBroker
|
||||
NsPanelTs.ts (dieses TypeScript in ioBroker) Stable: https://github.com/joBr99/nspanel-lovelace-ui/blob/main/ioBroker/NsPanelTs.ts
|
||||
@@ -59,7 +59,8 @@ ReleaseNotes:
|
||||
- 10.04.2025 - v4.7.1 TFT 56 / 4.7.1 - Add Player Icon-Logos logo-alexa, logo-spotify, logo-dlna, logo-sonos, logo-mpd, logo-volumios, logo-bose
|
||||
- 10.04.2025 - v4.7.1.1 Add parameter playerMediaIcon to cardMedia
|
||||
- 12.04.2025 - v4.7.1.2 Fix Play/Pause in MediaPlayers
|
||||
- 13.04.2025 - v4.7.1.2 TFT 56 / 4.7.1 (US-P and US-L)
|
||||
- 13.04.2025 - v4.7.1.2 TFT 56 / 4.7.1 (US-P and US-L)
|
||||
- 14.04.2025 - v4.7.1.3 MrIcons also allow other mqtt states
|
||||
|
||||
Todo:
|
||||
- XX.12.2024 - v5.0.0 ioBroker Adapter
|
||||
@@ -948,7 +949,7 @@ export const config: Config = {
|
||||
// _________________________________ DE: Ab hier keine Konfiguration mehr _____________________________________
|
||||
// _________________________________ EN: No more configuration from here _____________________________________
|
||||
|
||||
const scriptVersion: string = 'v4.7.1.2';
|
||||
const scriptVersion: string = 'v4.7.1.3';
|
||||
const tft_version: string = 'v4.7.1';
|
||||
const desired_display_firmware_version = 56;
|
||||
const berry_driver_version = 9;
|
||||
@@ -2360,7 +2361,7 @@ async function SubscribeMRIcons () {
|
||||
}
|
||||
if (arr.length > 0) {
|
||||
on({id: arr, change: 'ne'}, async function (obj) {
|
||||
if (obj.id && obj.id.substring(0, 4) == 'mqtt') {
|
||||
if (obj.id && obj.id.substring(0, 4) == 'mqtt' &&(obj.id.endsWith('Relay.1') || obj.id.endsWith('Relay.2'))) {
|
||||
let Button = obj.id.split('.');
|
||||
if (getState(NSPanel_Path + 'Relay.' + Button[Button.length - 1].substring(5, 6)).val != obj.state.val) {
|
||||
await setStateAsync(NSPanel_Path + 'Relay.' + Button[Button.length - 1].substring(5, 6), obj.state.val == 'ON' ? true : false);
|
||||
|
||||
Reference in New Issue
Block a user