Compare commits

...

153 Commits

Author SHA1 Message Date
Jan Čermák
16909f7e7f Fix AppDaemon 4.5.x compatibility - use entity attributes as dict (#1333)
With update to AppDaemon to 4.5.x (add-on 0.17.x), access to entity
attributes through properties doesn't work anymore - they are a dict.
Refactor the usage to read dict, leverage walrus operator where
applicable.

Fixes #1331
2025-05-28 22:24:30 +02:00
Johannes
397932a6bc disable forecast for now 2025-05-28 21:56:14 +02:00
Johannes
04ac10b453 fix error 2025-05-28 21:55:04 +02:00
Armilar
ff103927e8 v4.7.2.1 - DEV Update NSPanelTs.ts
add popupSlider to cardMedia (alexa)
2025-04-24 12:52:05 +02:00
Armilar
c6e94f80de Merge pull request #1325 from ticaki/main
Same as last :)
2025-04-14 14:18:19 +02:00
ticaki
5d4ae6247d Merge branch 'joBr99:main' into main 2025-04-14 14:16:37 +02:00
ticaki
8b63322e50 ups 2025-04-14 14:12:09 +02:00
Armilar
7fd5b3967a Merge pull request #1324 from ticaki/main
4.7.1.3 MrIcons also allow other mqtt states
2025-04-14 14:05:22 +02:00
ticaki
1d719446c0 MrIcons also allow other mqtt states 2025-04-14 14:00:40 +02:00
Armilar
3913b86228 v4.7.1.2 - Update NsPanelTs.ts
- Add cardMedia "Music Player Daemon (MPD)" (One-Instance-Player with Playlists, Tracklists, Shuffle, Repeat, Seek/Crossfade); mpd.X - Instance required
- Fix cardMedia "Music Player Daemon (MPD)" shuffle with repeat and repeat with repeat/single
- TFT 56 / 4.7.1 (EU)
- Add Player Icon-Logos logo-alexa, logo-spotify, logo-dlna, logo-sonos, logo-mpd, logo-volumios, logo-bose 
- Add parameter playerMediaIcon to cardMedia
- Fix Play/Pause in MediaPlayers
- TFT 56 / 4.7.1 (US-P and US-L)
2025-04-13 17:26:01 +02:00
Armilar
3fddbfe451 v4.7.1.2 - DEV-Update NSPanelTs.ts
Update Links to TFT US-L/US-P (v4.7.1)
2025-04-13 17:20:35 +02:00
Armilar
c7b492c276 v4.7.1.2 - DEV-Update NSPanelTs.ts
Fix Play/Pause Button in cardMedia (new bug with MPD-Player)
2025-04-12 10:44:31 +02:00
Armilar
2e0cff80c1 v4.7.1.1 - DEV-Update NSPanelTs.ts
- Add cardMedia "Music Player Daemon (MPD)" (One-Instance-Player with Playlists, Tracklists, Shuffle, Repeat, Seek/Crossfade); mpd.X - Instance required
- Fix cardMedia "Music Player Daemon (MPD)" shuffle with repeat and repeat with repeat/single
- TFT 56 / 4.7.1 - Add Player Icon-Logos logo-alexa, logo-spotify, logo-dlna, logo-sonos, logo-mpd, logo-volumios, logo-bose 
- Add parameter playerMediaIcon to cardMedia
2025-04-11 14:55:21 +02:00
Armilar
3943dee733 v4.7.0.3 - DEV-Update NSPanelTs.ts - FR #1321
- Add cardMedia "Music Player Daemon (MPD)" (One-Instance-Player with Playlists, Tracklists, Shuffle, Repeat, Seek/Crossfade); mpd.X - Instance required
- Fix cardMedia "Music Player Daemon (MPD)" shuffle with repeat and repeat with repeat/single
2025-04-10 12:41:48 +02:00
Armilar
41e7f3c3e2 v4.7.0.2 - DEV-Update NSPanelTs.ts
Add - cardMedia "Music Player Daemon (MPD)"
2025-04-10 11:04:17 +02:00
Armilar
5e373ad856 v4.7.0 - Update NSPanelTs.ts
- Fix cardSchedule in HMI
2025-04-02 21:58:35 +02:00
Armilar
0d3d40cca2 v4.6.2.1 - Update NsPanelTs.ts
- cardSchedule
- Add Release-Check with HMI
2025-04-02 21:53:54 +02:00
Armilar
221063a5a6 v4.6.2.1 - Update NSPanelTs.ts
- Add startup TFT-Release directly from NSPanel-TFT
- Comparison between version number and release removed
2025-04-01 14:35:02 +02:00
Armilar
8e9b8ab476 v4.6.2.1 - DEV Update NSPanelTs.ts
Add cardSchedule
2025-04-01 11:59:01 +02:00
Armilar
1c6be4681e v4.6.0.1 - Update NsPanelTs.ts
- v4.5.2    Fix Bugs in HUE-Light, Fix Icon-Colors with interpolateColors (Color, ColorTemp, Brightness), Fix ON instead of ON_ACTUAL for writing DP
- v4.5.2.1  Add Functions to Calculate Colors of Icons (Darken and CT (Kelvin))
- v4.5.2.1  Remove New Sliders (popupLightNew), Fix TFT-Pictures in TFT --> with v4.6.0
- v4.6.0    Fix Bugs in Channels Light and RGBsingle-Light, Fix Icon-Colors with interpolateColors (Color, ColorTemp, Brightness), Fix ON instead of ON_ACTUAL for writing DP
- v4.6.0.1  Add Functions to Calculate Colors of RGBsingle Icons (Darken and CT (Kelvin/Mired))
- v4.6.0.1  Fix Light-Icons if Color-Temperature uses Mired instead of Kelvin (500 Mired - 153 Mired = 2000 K - 6536 K)
- v4.6.0.1  Add icon2 to Lights
- v4.6.0.1  Add Functions to Calculate Colors of RGB and CT Icons (Darken and CT (Kelvin/Mired)) 
- v4.6.0.1  Add function cie_to_rgb, Add CIE Channel to Lights
- v4.6.0.1  Add hidden Entity2 (Password/Switch) to cardQR (PageItem-Parameter "hideEntity2" true/false)
2025-03-18 16:01:37 +01:00
Armilar
7b4f4cd863 v4.6.0.1 - DEV Update NSPanelTs.ts
Hide Entity2 in cardQR
2025-03-18 13:34:39 +01:00
Armilar
9b285efe2d v4.6.0 - DEV Update NSPanelTs.ts
- v4.6.0    Fix Bugs in Channels Light and RGBsingle-Light, Fix Icon-Colors with interpolateColors (Color, ColorTemp, Brightness), Fix ON instead of ON_ACTUAL for writing DP
- v4.6.0.1  Add Functions to Calculate Colors of RGBsingle Icons (Darken and CT (Kelvin/Mired))
- v4.6.0.1  Fix Light-Icons if Color-Temperature uses Mired instead of Kelvin (500 Mired - 153 Mired = 2000 K - 6536 K)
- v4.6.0.1  Add icon2 to Lights
- v4.6.0.1  Add Functions to Calculate Colors of RGB and CT Icons (Darken and CT (Kelvin/Mired))
- v4.6.0.1  Add function cie_to_rgb, Add CIE Channel to Lights
2025-03-17 14:38:31 +01:00
Armilar
22e96f2b3a v4.5.2.1 - DEV Update NSPanelTs.ts
- v4.5.2    Fix Bugs in HUE-Light, Fix Icon-Colors with interpolateColors (Color, ColorTemp, Brightness), Fix ON instead of ON_ACTUAL for writing DP
- v4.5.2.1  Add Functions to Calculate Colors of Icons (Darken and CT (Kelvin))
- v4.5.2.1  Remove New Sliders (popupLightNew), Fix TFT-Pictures in TFT --> with v4.5.3
2025-03-16 00:02:20 +01:00
Armilar
23da51f662 Update ioBroker_NSPanel_locales.json 2025-03-14 13:48:50 +01:00
Thomas
b395a08b6e Update CardChart_History.js
add const 'factor' for big value and negativ value on panel
2025-02-23 03:10:01 +01:00
Armilar
ac07dbb185 v4.5.0.5 - Bugfix InitDimmode by Gargano 2025-02-03 12:00:09 +01:00
Armilar
86ab806b6e v4.5.0.5 - Bugfix InitDimmode by Gargano 2025-02-03 11:32:52 +01:00
Armilar
89d08ea507 DEV v4.5.0.4 - Update NSPanelTs.ts
v4.5.0.4  fix DetermineDimBrightness (function returns undefined, because wrong DP check)
2025-01-30 19:36:33 +01:00
Thomas
deacd17fc9 DEV v4.5.0.3 - Update NSPanelTs.ts
fix version
2025-01-30 00:55:11 +01:00
Armilar
4372e4193e Merge pull request #1305 from ticaki/main
add bottemEntityText from ID
2025-01-29 23:54:21 +01:00
ticaki
d4cb8b548d Merge branch 'joBr99:main' into main 2025-01-29 23:45:22 +01:00
ticaki
faa2880e8d bottemEntityText from ID 2025-01-29 08:27:47 +01:00
Armilar
eeeccc786d Delete ioBroker/HMI/Readme 2025-01-28 14:10:32 +01:00
Armilar
3bcf2372b0 Add files via upload 2025-01-28 14:09:39 +01:00
Armilar
9612f882a5 Add files via upload 2025-01-28 14:07:39 +01:00
Armilar
aa29552a90 Add files via upload 2025-01-28 14:05:55 +01:00
Armilar
a38393338a Create Readme 2025-01-28 14:04:11 +01:00
Armilar
d2e953410c v4.5.0.2 - Update NsPanelTs.ts 2025-01-28 13:48:26 +01:00
Armilar
0ac345328b Update NSPanelTs.ts 2025-01-28 13:46:33 +01:00
Armilar
11bf450e4c Merge pull request #1304 from ticaki/main
Different treatment of icon3 fixed
2025-01-23 23:33:04 +01:00
ticaki
e54faea639 switch example 2025-01-23 20:06:24 +01:00
ticaki
25062483c9 ups? 2025-01-23 20:04:01 +01:00
ticaki
f58be676bf Merge branch 'joBr99:main' into main 2025-01-23 20:00:00 +01:00
ticaki
cc147d29ab Different treatment of icon3 fixed 2025-01-23 19:59:40 +01:00
Armilar
78d20f81d2 Merge pull request #1303 from ticaki/main
icon3 functionality also for thermometers and a function based on this in the screensaver
2025-01-23 18:55:08 +01:00
ticaki
29a3c8123c changelog 2025-01-23 17:05:50 +01:00
ticaki
7807651223 Merge branch 'joBr99:main' into main 2025-01-23 17:03:32 +01:00
ticaki
deb7f6788e Add icon 3 2025-01-23 17:01:57 +01:00
Thomas
9ca7a4e829 DEV v4.5.0.2 - Update NSPanelTs.ts
fix version
2025-01-23 16:28:40 +01:00
Thomas
855ab2b28c Merge pull request #1302 from tt-tom17/main
DEV v4.5.0 - Update NSPanelTs.ts
2025-01-23 16:22:15 +01:00
tt-tom17
b1b042a25f DEV v4.5.0 - Update NSPanelTs.ts
fix handleScreensaverUpdate => leftScreensaverentity
fix type leftScreensaverEntity
2025-01-23 16:19:53 +01:00
Thomas
3a82af67b1 Merge pull request #3 from joBr99/main
DEV v4.5.0.1 - Update NSPanelTs.ts
2025-01-23 16:14:16 +01:00
Armilar
84e2105361 v4.5.0.1 - Update NsPanelTs.ts
Change URL's
2025-01-23 14:09:39 +01:00
Armilar
bae90b2b55 DEV v4.5.0.1 - Update NSPanelTs.ts
Change TFT URLs
2025-01-23 12:21:29 +01:00
tt-tom17
f6b605443d DEV v4.5.0 - Update NSPanelTs.ts
- fix leftScreensaverentity
2025-01-23 10:25:59 +01:00
tt-tom17
14d337891a DEV v4.5.0 - Update NSPanelTs.ts
- fix leftScreensaverentity
2025-01-23 10:24:40 +01:00
Armilar
a3df442a6a Update CODEOWNERS 2025-01-22 23:27:19 +01:00
Armilar
53af81f84d Update CODEOWNERS 2025-01-22 23:26:48 +01:00
Armilar
02332cc094 v4.5.0 - Update NsPanelTs.ts
v4.4.0.12 Add JSDocs and some small fixes
v4.4.0.13 Error due to an empty character string when subscribing to icon IDs
v4.4.0.14 Add Screensaver3 and cardGrid3
v4.4.0.14 Added Easy-View Screensaver states handling
v4.4.0.14 icon3 added for use in blind for the state between 0-100
v4.5.0    TFT 54 / 4.5.0
2025-01-22 22:49:58 +01:00
Armilar
19964f4ea6 Merge pull request #1301 from ticaki/main
Add maxEntities = 4
2025-01-22 21:16:11 +01:00
ticaki
3e777246a0 Merge branch 'joBr99:main' into main 2025-01-22 20:56:22 +01:00
ticaki
737bb80af0 add maxEntities 2025-01-22 20:55:43 +01:00
Armilar
07155018ef Merge pull request #1300 from ticaki/main
activate EasyView
2025-01-22 20:18:17 +01:00
ticaki
b8c0939382 activate EasyView 2025-01-22 20:00:12 +01:00
Armilar
985d395ba3 Merge pull request #1299 from ticaki/main
Fixing report of ilove and deactivate EasyView
2025-01-22 19:48:43 +01:00
ticaki
9f8e899af7 Merge branch 'joBr99:main' into main 2025-01-22 19:07:35 +01:00
ticaki
5359ed5e4b fix report from ilove deactivate EasyView 2025-01-22 19:06:55 +01:00
Armilar
081d176f24 Merge pull request #1298 from ticaki/main
icon3 added for use in blind for the state between 0-100
2025-01-21 22:22:11 +01:00
ticaki
0bfe72eec9 Merge pull request #1 from ticaki/add-icon3
icon3 added for use in blind for the state between 0-100
2025-01-21 22:10:52 +01:00
ticaki
d417aa2fb9 Merge branch 'main' into add-icon3 2025-01-21 22:10:42 +01:00
ticaki
d647fb3b4f icon3 added for use in blind for the state between 0-100 2025-01-21 22:08:45 +01:00
Armilar
ebf6300b06 DEV v4.5.0 - Update NSPanelTs.ts 2025-01-21 15:06:23 +01:00
Armilar
3977f9aa53 Merge pull request #1297 from tt-tom17/main
DEV v4.5.0 - Update NSPanelTs.ts
2025-01-21 15:04:27 +01:00
tt-tom17
8478194bb0 DEV v4.5.0 - Update NSPanelTs.ts
fix try catch
2025-01-21 14:49:17 +01:00
Armilar
417c99cdb9 DEV v4.5.0 - Update NSPanelTs.ts 2025-01-21 13:05:51 +01:00
Armilar
0e8849a382 DEV v4.5.0. - Update NSPanelTs.ts 2025-01-21 12:53:26 +01:00
Thomas
dd9ccaf076 Merge pull request #1296 from tt-tom17/main
Add service menue esayView
2025-01-21 11:44:05 +01:00
tt-tom17
ff461d821c Add service menue esayView 2025-01-21 11:40:46 +01:00
Armilar
6d68165fb6 Merge pull request #1295 from ticaki/main
rename channel to DeviceName
2025-01-21 11:35:12 +01:00
ticaki
489fd23edb Merge branch 'joBr99:main' into main 2025-01-21 11:08:11 +01:00
ticaki
4b39d5b438 rename channel to DeviceName 2025-01-21 11:07:16 +01:00
Armilar
b5a5aa41c6 Merge pull request #1294 from ticaki/main
Added Easy-View Screensaver states handling
2025-01-20 22:25:28 +01:00
ticaki
e878e08675 Added Easy-View Screensaver states handling 2025-01-20 22:19:09 +01:00
Armilar
246a7f1922 v4.4.0.14 - Update NSPanelTs.ts
Add Screensaver3 and cardGrid3
2025-01-20 17:56:15 +01:00
Armilar
c83921ca71 Merge pull request #1292 from ticaki/main
Error due to an empty character string when subscribing to icon IDs
2025-01-12 00:25:10 +01:00
ticaki
c9deae3d5c Error due to an empty character string when subscribing to icon IDs 2025-01-11 23:18:29 +01:00
Armilar
8184c10e93 v4.4.0.12 - Merge pull request #1286 from ticaki/main
Add JSDocs
2024-12-07 18:56:36 +01:00
ticaki
98746cc8d1 Version number added and optimisations by Copilot 2024-12-07 16:03:09 +01:00
ticaki
79fe05eb9c Add JSDocs 2024-12-07 15:44:32 +01:00
ticaki
b2dd46411a some more JSDocs and and some small fixes 2024-12-06 23:03:51 +01:00
ticaki
2c7dd23220 Add some JSDocs 2024-12-06 20:35:25 +01:00
Johannes
a873e3e29e Update README.md 2024-11-23 11:54:41 +01:00
Armilar
6a3b984c6c v4.4.0.11 - Update NsPanelTs.ts
v4.4.0.8  Fix: InitDimmode => timeDimMode Day / timeDimMode Night
v4.4.0.8  Add Always On Display (AOD) to cardTHermo
v4.4.0.8  Add Hide Buttons at Power Off to cardThermo (Climate Alias Channel)
v4.4.0.8  Add Custom Icon Object to cartdThermo (Climate Alias Channel
v4.4.0.9  Fix: del 'HandleMessage()' in Trigger 'activeDimmodeBrightness'
v4.4.0.10 Fix: Bug #1266 trigger timeoutScreensaver
v4.4.0.11 Add new value 'PopupNotify' to ActivePage
2024-11-23 11:07:28 +01:00
Armilar
ebbcf7c21e Merge pull request #1283 from tt-tom17/tt-tom17/issue1281
DEV 4.4.0.11 - Update NSPanel.ts
2024-11-23 10:51:51 +01:00
Armilar
0526b26b4a Merge pull request #1282 from tt-tom17/main
DEV 4.4.0.10 - Update NSPanelTs.ts
2024-11-23 10:51:00 +01:00
tt-tom17
c20dab43a6 DEV 4.4.0.11 - Update NSPanel.ts
- Add new value 'PopupNotify' to ActivePage
- Fixes #1281
2024-11-23 00:47:01 +01:00
tt-tom17
918a859a74 DEV 4.4.0.10 - Update NSPanelTs.ts
- Fix: Bug #1266 trigger timeoutScreensaver
2024-11-23 00:14:16 +01:00
tt-tom17
b3d3902399 DEV 4.4.0.10 - Update NSPanelTs.ts
- Fix: Bug #1266 trigger timeoutScreensaver
2024-11-23 00:13:19 +01:00
joBr99
69e02b0886 . (add nextion2text) 2024-11-22 20:00:19 +00:00
joBr99
74a602c34d . 2024-11-22 20:57:26 +01:00
joBr99
710bb2d884 do not send button in entity is empty (add nextion2text) 2024-11-21 19:35:50 +00:00
joBr99
7396806fab do not send button in entity is empty 2024-11-21 20:32:38 +01:00
Johannes
a87044a2b9 Update panel.py 2024-11-20 20:02:23 +01:00
Johannes
0c54f747b9 Update panel.py 2024-11-20 20:01:49 +01:00
dependabot[bot]
d6955eaad7 Bump home-assistant/builder from 2024.03.5 to 2024.08.2 (#1248)
Bumps [home-assistant/builder](https://github.com/home-assistant/builder) from 2024.03.5 to 2024.08.2.
- [Release notes](https://github.com/home-assistant/builder/releases)
- [Commits](https://github.com/home-assistant/builder/compare/2024.03.5...2024.08.2)

---
updated-dependencies:
- dependency-name: home-assistant/builder
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-20 19:50:19 +01:00
Johannes
5638720336 fix buttons light mode detail page 2024-11-20 19:48:37 +01:00
Armilar
e33875e9f5 Merge pull request #1274 from tt-tom17/main
DEV v4.4.0.9 Update NSPanel.ts
2024-10-31 13:59:45 +01:00
Thomas
9532ca2442 Merge pull request #2 from joBr99/main
Bump frenck/action-addon-linter from 2.15 to 2.18 (#1272)
2024-10-31 13:14:22 +01:00
tt-tom17
47f59e1b63 DEV v4.4.0.9 Update NSPanel.ts
- Fix: del 'HandleMessage()' in Trigger activeDimmodeBrightness'
2024-10-31 13:08:25 +01:00
dependabot[bot]
b9195101da Bump frenck/action-addon-linter from 2.15 to 2.18 (#1272)
Bumps [frenck/action-addon-linter](https://github.com/frenck/action-addon-linter) from 2.15 to 2.18.
- [Release notes](https://github.com/frenck/action-addon-linter/releases)
- [Commits](https://github.com/frenck/action-addon-linter/compare/v2.15...v2.18)

---
updated-dependencies:
- dependency-name: frenck/action-addon-linter
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-29 22:02:25 +01:00
Armilar
34a9424c29 DEV v4.4.0.8 - Update NSPanelTs.ts
- Fix OnColors without any parameter
2024-10-26 14:40:58 +02:00
Armilar
54ce2a1c10 DEV 4.4.0.8 - Update NSPanelTs.ts
- Add "Custom Icon" Object to cardThermo (Climate Alias Channel)
2024-10-26 00:45:19 +02:00
Armilar
5166fb1f58 DEV v4.4.0.8 - Update NSPanelTs.ts
- Add Always On Display (AOD) to cardTHermo
- Add Hide Buttons at Power Off to cardThermo (Climate Mode)
2024-10-25 12:48:37 +02:00
Armilar
5e9434b7eb Merge pull request #1270 from tt-tom17/main
v4.4.0.8  DEV - NSPanel.ts
2024-10-25 11:04:24 +02:00
tt-tom17
a7398e54e3 v4.4.0.8 - Fix: InitDimmode => timeDimMode Day / timeDimMode Night 2024-10-25 10:52:15 +02:00
tt-tom17
ac54e042ea Fix: activDimmodeBrightness be DimmodeDay/DimmodeNight
Function InitDimmode
2024-10-24 21:09:39 +02:00
Armilar
4f17085a81 v.4.4.0.7 - Fix: first start and initialisation with new NSPanel device (by wolwin)
https://github.com/joBr99/nspanel-lovelace-ui/pull/1263
2024-10-09 23:12:42 +02:00
Armilar
c864eb6e73 Merge pull request #1263 from wolwin/main
ioBroker - Update DEV NSPanelTs.ts - different fixes
2024-10-09 23:00:24 +02:00
wolwin
828aa8fd21 Update NSPanelTs.ts
Final
2024-10-09 20:52:04 +02:00
wolwin
84615fad05 Update NSPanelTs.ts
correct script version and PageNavi entry
2024-10-09 13:36:46 +02:00
wolwin
b90b50395c Update DEV NSPanelTs.ts
Fix: first start and initialisation with new NSPanel device
2024-10-06 14:16:04 +02:00
Armilar
c27a23e5fe v4.4.0.6 - Fix for MQTT-Client adapter
- Fix: Using MQTT adapter or MQTT-CLIENT adapter / Minor Fix by wolwin
2024-09-27 19:01:04 +02:00
Armilar
1b33ddb207 v4.4.0.6 - Fix for MQTT-Client adapter
- Fix: Using MQTT adapter or MQTT-CLIENT adapter / Minor Fix by wolwin
2024-09-27 18:57:22 +02:00
Armilar
d68de45c3b v4.4.0.6 - Fix for MQTT-Client adapter
v4.4.0.6  Fix: Using MQTT adapter or MQTT-CLIENT adapter / Minor Fix by wolwin
2024-09-27 18:37:06 +02:00
Armilar
5b46b39dac Merge pull request #1260 from tt-tom17/main
update NSPanelts.ts DEV
2024-09-27 18:28:50 +02:00
tt-tom17
2d0201759d sendToPanel - log message
CheckConfigParameters - existsObjekt mqtt
2024-09-27 17:23:10 +02:00
Armilar
104788e2a4 v4.4.0.6 - DEV Update NSPanelTs.ts
- Check Ports with mqtt.X and mqtt-client.X
2024-09-19 22:46:35 +02:00
Armilar
4f1139a531 v4.4.0.5 - Update NsPanelTs.ts
- Remove day.js
- Change identifier from day.js to moment.js
2024-09-19 20:51:32 +02:00
Armilar
f673aad38e v4.4.0.5 - Update NSPanelTs.ts
- Remove day.js
- Change identifier from day.js to moment.js
2024-09-19 20:44:12 +02:00
Armilar
c8a8e1351c v4.4.0.5 - Update NSPanelTs.ts
- Remove day.js
2024-09-18 22:39:36 +02:00
Armilar
5d84b59bbd v4.4.0.4 - Update NsPanelTs.ts
v4.4.0.2  Calculated energy consumption in relation to dimming mode and relay state (not the energy consumption of the outputs)
v4.4.0.3  Check prefix '.tele.' in config.NSPanelReceiveTopic
v4.4.0.4  New Feature: Hidden Carts
2024-09-18 09:44:59 +02:00
Armilar
2a807702f4 Merge pull request #1257 from tt-tom17/main
DEV 4.4.0.4 - Update NSPanelTs.ts
2024-09-15 13:36:26 +02:00
tt-tom17
448b9cb30c DEV 4.4.0.4 - Update NSPanelTs.ts
-fix setObject hiddenCards
2024-09-15 12:31:12 +02:00
Armilar
248dc3a1c9 Merge pull request #1256 from tt-tom17/hiddenCards
DEV 4.4.0.4 - Update NSPanelTs.ts
2024-09-15 11:11:07 +02:00
tt-tom17
cd76c0528e DEV 4.4.0.4 - Update NSPanelTs.ts 2024-09-14 23:22:22 +02:00
tt-tom17
58e2febf64 ioBroker_NSPanel_locales_service.json
- "hiddencards_offon"
2024-09-14 23:06:29 +02:00
tt-tom17
0372b034f6 DEV 4.4.0.4 - Update NSPanelTs.ts 2024-09-14 23:04:02 +02:00
Armilar
1d730a0ce5 DEV 4.4.0.4 - Update NSPanelTs.ts
Developer Version
- New Feature: hiddenCards
2024-09-14 12:01:00 +02:00
Armilar
1a629ee8d5 Merge pull request #1252 from tt-tom17/main
Check prefix '.tele.' in config.NSPanelReceiveTopic
2024-09-04 10:09:28 +02:00
tt-tom17
cd563ad1ce nspanel.ts
v4.4.0.3
Check prefix '.tele.' in config.NSPanelReceiveTopic
2024-09-03 22:02:05 +02:00
dependabot[bot]
ec18b6349b Bump docker/login-action from 3.2.0 to 3.3.0 (#1239)
Bumps [docker/login-action](https://github.com/docker/login-action) from 3.2.0 to 3.3.0.
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](https://github.com/docker/login-action/compare/v3.2.0...v3.3.0)

---
updated-dependencies:
- dependency-name: docker/login-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-27 21:49:57 +02:00
Armilar
4d7d87d62a v4.4.0.2 - Calculated energy consumption
- Calculated energy consumption in relation to dimming mode and relay state (not the energy consumption of the outputs)
-add Try/Catch
2024-06-13 21:17:29 +02:00
Armilar
15a021a58f v4.4.0.2 - Calculated energy consumption
- Calculated energy consumption in relation to dimming mode and relay state (not the energy consumption of the outputs)
2024-06-13 21:04:17 +02:00
Thomas
63c85e6b96 Update NSPanelTs.ts
Fix TFT-Version
2024-06-10 22:31:36 +02:00
dependabot[bot]
6a94795a67 Bump docker/login-action from 3.1.0 to 3.2.0 (#1232)
Bumps [docker/login-action](https://github.com/docker/login-action) from 3.1.0 to 3.2.0.
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](https://github.com/docker/login-action/compare/v3.1.0...v3.2.0)

---
updated-dependencies:
- dependency-name: docker/login-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-04 23:10:00 +02:00
Armilar
d302567369 v4.4.0.1 - Update NsPanelTs.ts
Fix TFT 54 to TFT 53
2024-05-19 20:38:39 +02:00
Armilar
f8d6a1543d v4.4.0 - Update NsPanelTs.ts
TFT Update 54
2024-05-13 23:02:30 +02:00
Armilar
6df5a68682 v4.4.0 - Update NSPanelTs.ts
TFT Update
2024-05-13 22:58:20 +02:00
Armilar
7e1cc36805 Merge pull request #1220 from tt-tom17/patch-tt-tom17
v4.3.3.44 - DEV Update NSPanelTs.ts
2024-05-05 22:08:13 +02:00
Thomas
491ed21f98 v4.3.3.44 - DEV Update NSPanelTs.ts
Fix MQTT-Port-check
2024-05-05 14:21:50 +02:00
Johannes
e53cf5dab0 Update prepare_ha.md 2024-04-13 12:50:02 +02:00
Johannes
e853889247 Update prepare_ha.md 2024-04-04 16:26:24 +02:00
Johannes
19b0fe4052 Update prepare_ha.md 2024-04-02 18:12:48 +02:00
24 changed files with 16025 additions and 8776 deletions

View File

@@ -92,7 +92,7 @@ jobs:
- name: Login to GitHub Container Registry
if: env.BUILD_ARGS != '--test'
uses: docker/login-action@v3.1.0
uses: docker/login-action@v3.3.0
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
@@ -100,7 +100,7 @@ jobs:
- name: Build ${{ matrix.addon }} add-on
if: steps.check.outputs.build_arch == 'true'
uses: home-assistant/builder@2024.03.5
uses: home-assistant/builder@2024.08.2
with:
args: |
${{ env.BUILD_ARGS }} \

View File

@@ -36,6 +36,6 @@ jobs:
uses: actions/checkout@v4
- name: 🚀 Run Home Assistant Add-on Lint
uses: frenck/action-addon-linter@v2.15
uses: frenck/action-addon-linter@v2.18
with:
path: "./${{ matrix.path }}"

View File

@@ -336,7 +336,7 @@
│ Value: 0
│ Variable (int32) xc1
│ @@ -370,145 +336,50 @@
│ @@ -370,165 +336,50 @@
│ Scope : local
│ Dragging : 0
│ Send Component ID : disabled
@@ -347,6 +347,10 @@
│ - Events
│ - Touch Press Event
│ - tSend.txt="event,buttonPress2,"+entn1.txt+",button"
│ - if(entn1.txt=="")
│ - {
│ - tSend.txt="event,buttonPress2,screensaver,bExit,"+tTmp.txt
│ - }
│ - //send calc crc
│ - btlen tSend.txt,sys0
│ - crcrest 1,0xffff // reset CRC
@@ -371,6 +375,10 @@
│ - Events
│ - Touch Press Event
│ - tSend.txt="event,buttonPress2,"+entn2.txt+",button"
│ - if(entn2.txt=="")
│ - {
│ - tSend.txt="event,buttonPress2,screensaver,bExit,"+tTmp.txt
│ - }
│ - //send calc crc
│ - btlen tSend.txt,sys0
│ - crcrest 1,0xffff // reset CRC
@@ -395,6 +403,10 @@
│ - Events
│ - Touch Press Event
│ - tSend.txt="event,buttonPress2,"+entn3.txt+",button"
│ - if(entn3.txt=="")
│ - {
│ - tSend.txt="event,buttonPress2,screensaver,bExit,"+tTmp.txt
│ - }
│ - //send calc crc
│ - btlen tSend.txt,sys0
│ - crcrest 1,0xffff // reset CRC
@@ -419,6 +431,10 @@
│ - Events
│ - Touch Press Event
│ - tSend.txt="event,buttonPress2,"+entn4.txt+",button"
│ - if(entn4.txt=="")
│ - {
│ - tSend.txt="event,buttonPress2,screensaver,bExit,"+tTmp.txt
│ - }
│ - //send calc crc
│ - btlen tSend.txt,sys0
│ - crcrest 1,0xffff // reset CRC
@@ -443,6 +459,10 @@
│ - Events
│ - Touch Press Event
│ - tSend.txt="event,buttonPress2,"+entn5.txt+",button"
│ - if(entn5.txt=="")
│ - {
│ - tSend.txt="event,buttonPress2,screensaver,bExit,"+tTmp.txt
│ - }
│ - //send calc crc
│ - btlen tSend.txt,sys0
│ - crcrest 1,0xffff // reset CRC
@@ -482,7 +502,7 @@
│ Send Component ID : disabled
│ Associated Keyboard: none
│ Text : PM
│ @@ -690,15 +561,14 @@
│ @@ -710,15 +561,14 @@
│ if(tTmp.txt!="")
│ {
│ covx tTmp.txt,defaultFontColor,0,0
@@ -498,7 +518,7 @@
│ if(tAMPM.txt=="")
│ {
│ vis tAMPM,0
│ @@ -819,44 +689,34 @@
│ @@ -839,44 +689,34 @@
│ //e6Val
│ spstr strCommand.txt,e6Val.txt,"~",60
│ //f1Icon

View File

@@ -2279,7 +2279,7 @@
│ Value: 0
│ Variable (int32) xc1
│ @@ -370,145 +324,50 @@
│ @@ -370,165 +324,50 @@
│ Scope : local
│ Dragging : 0
│ Send Component ID : disabled
@@ -2290,6 +2290,10 @@
│ - Events
│ - Touch Press Event
│ - tSend.txt="event,buttonPress2,"+entn1.txt+",button"
│ - if(entn1.txt=="")
│ - {
│ - tSend.txt="event,buttonPress2,screensaver,bExit,"+tTmp.txt
│ - }
│ - //send calc crc
│ - btlen tSend.txt,sys0
│ - crcrest 1,0xffff // reset CRC
@@ -2314,6 +2318,10 @@
│ - Events
│ - Touch Press Event
│ - tSend.txt="event,buttonPress2,"+entn2.txt+",button"
│ - if(entn2.txt=="")
│ - {
│ - tSend.txt="event,buttonPress2,screensaver,bExit,"+tTmp.txt
│ - }
│ - //send calc crc
│ - btlen tSend.txt,sys0
│ - crcrest 1,0xffff // reset CRC
@@ -2338,6 +2346,10 @@
│ - Events
│ - Touch Press Event
│ - tSend.txt="event,buttonPress2,"+entn3.txt+",button"
│ - if(entn3.txt=="")
│ - {
│ - tSend.txt="event,buttonPress2,screensaver,bExit,"+tTmp.txt
│ - }
│ - //send calc crc
│ - btlen tSend.txt,sys0
│ - crcrest 1,0xffff // reset CRC
@@ -2362,6 +2374,10 @@
│ - Events
│ - Touch Press Event
│ - tSend.txt="event,buttonPress2,"+entn4.txt+",button"
│ - if(entn4.txt=="")
│ - {
│ - tSend.txt="event,buttonPress2,screensaver,bExit,"+tTmp.txt
│ - }
│ - //send calc crc
│ - btlen tSend.txt,sys0
│ - crcrest 1,0xffff // reset CRC
@@ -2386,6 +2402,10 @@
│ - Events
│ - Touch Press Event
│ - tSend.txt="event,buttonPress2,"+entn5.txt+",button"
│ - if(entn5.txt=="")
│ - {
│ - tSend.txt="event,buttonPress2,screensaver,bExit,"+tTmp.txt
│ - }
│ - //send calc crc
│ - btlen tSend.txt,sys0
│ - crcrest 1,0xffff // reset CRC
@@ -2425,7 +2445,7 @@
│ Send Component ID : disabled
│ Associated Keyboard: none
│ Text : PM
│ @@ -690,15 +549,14 @@
│ @@ -710,15 +549,14 @@
│ if(tTmp.txt!="")
│ {
│ covx tTmp.txt,defaultFontColor,0,0
@@ -2441,7 +2461,7 @@
│ if(tAMPM.txt=="")
│ {
│ vis tAMPM,0
│ @@ -819,44 +677,34 @@
│ @@ -839,44 +677,34 @@
│ //e6Val
│ spstr strCommand.txt,e6Val.txt,"~",60
│ //f1Icon

View File

@@ -1,4 +1,4 @@
+++ /dev/fd/62 2024-02-25 11:03:09.634837907 +0000
+++ /dev/fd/62 2024-11-22 20:00:11.734673876 +0000
+I/n2t-out/Program.s.txt
++ HMI/US/portrait/n2t-out/Program.s.txt
+1 +12,11 @@
@@ -1821,7 +1821,7 @@
+ Value: 0
+
+e (int32) xc1
+145 +324,50 @@
+165 +324,50 @@
+ Scope : local
+ Dragging : 0
+ Send Component ID : disabled
@@ -1832,6 +1832,10 @@
+nts
+ Touch Press Event
+ tSend.txt="event,buttonPress2,"+entn1.txt+",button"
+ if(entn1.txt=="")
+ {
+ tSend.txt="event,buttonPress2,screensaver,bExit,"+tTmp.txt
+ }
+ //send calc crc
+ btlen tSend.txt,sys0
+ crcrest 1,0xffff // reset CRC
@@ -1856,6 +1860,10 @@
+nts
+ Touch Press Event
+ tSend.txt="event,buttonPress2,"+entn2.txt+",button"
+ if(entn2.txt=="")
+ {
+ tSend.txt="event,buttonPress2,screensaver,bExit,"+tTmp.txt
+ }
+ //send calc crc
+ btlen tSend.txt,sys0
+ crcrest 1,0xffff // reset CRC
@@ -1880,6 +1888,10 @@
+nts
+ Touch Press Event
+ tSend.txt="event,buttonPress2,"+entn3.txt+",button"
+ if(entn3.txt=="")
+ {
+ tSend.txt="event,buttonPress2,screensaver,bExit,"+tTmp.txt
+ }
+ //send calc crc
+ btlen tSend.txt,sys0
+ crcrest 1,0xffff // reset CRC
@@ -1904,6 +1916,10 @@
+nts
+ Touch Press Event
+ tSend.txt="event,buttonPress2,"+entn4.txt+",button"
+ if(entn4.txt=="")
+ {
+ tSend.txt="event,buttonPress2,screensaver,bExit,"+tTmp.txt
+ }
+ //send calc crc
+ btlen tSend.txt,sys0
+ crcrest 1,0xffff // reset CRC
@@ -1928,6 +1944,10 @@
+nts
+ Touch Press Event
+ tSend.txt="event,buttonPress2,"+entn5.txt+",button"
+ if(entn5.txt=="")
+ {
+ tSend.txt="event,buttonPress2,screensaver,bExit,"+tTmp.txt
+ }
+ //send calc crc
+ btlen tSend.txt,sys0
+ crcrest 1,0xffff // reset CRC

View File

@@ -88,8 +88,8 @@ popupThermo
276 Unique line(s) of event code
screensaver2
64 Component(s)
428 Line(s) of event code
266 Unique line(s) of event code
448 Line(s) of event code
272 Unique line(s) of event code
cardEntities
67 Component(s)
1205 Line(s) of event code
@@ -98,5 +98,5 @@ cardEntities
Total
23 Page(s)
881 Component(s)
10778 Line(s) of event code
2466 Unique line(s) of event code
10798 Line(s) of event code
2472 Unique line(s) of event code

View File

@@ -903,6 +903,10 @@ Text f1Icon
Events
Touch Press Event
tSend.txt="event,buttonPress2,"+entn1.txt+",button"
if(entn1.txt=="")
{
tSend.txt="event,buttonPress2,screensaver,bExit,"+tTmp.txt
}
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
@@ -947,6 +951,10 @@ Text f2Icon
Events
Touch Press Event
tSend.txt="event,buttonPress2,"+entn2.txt+",button"
if(entn2.txt=="")
{
tSend.txt="event,buttonPress2,screensaver,bExit,"+tTmp.txt
}
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
@@ -991,6 +999,10 @@ Text f3Icon
Events
Touch Press Event
tSend.txt="event,buttonPress2,"+entn3.txt+",button"
if(entn3.txt=="")
{
tSend.txt="event,buttonPress2,screensaver,bExit,"+tTmp.txt
}
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
@@ -1035,6 +1047,10 @@ Text f4Icon
Events
Touch Press Event
tSend.txt="event,buttonPress2,"+entn4.txt+",button"
if(entn4.txt=="")
{
tSend.txt="event,buttonPress2,screensaver,bExit,"+tTmp.txt
}
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
@@ -1079,6 +1095,10 @@ Text f5Icon
Events
Touch Press Event
tSend.txt="event,buttonPress2,"+entn5.txt+",button"
if(entn5.txt=="")
{
tSend.txt="event,buttonPress2,screensaver,bExit,"+tTmp.txt
}
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC

View File

@@ -377,6 +377,10 @@ Text f1Icon
Events
Touch Press Event
tSend.txt="event,buttonPress2,"+entn1.txt+",button"
if(entn1.txt=="")
{
tSend.txt="event,buttonPress2,screensaver,bExit,"+tTmp.txt
}
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
@@ -401,6 +405,10 @@ Text f2Icon
Events
Touch Press Event
tSend.txt="event,buttonPress2,"+entn2.txt+",button"
if(entn2.txt=="")
{
tSend.txt="event,buttonPress2,screensaver,bExit,"+tTmp.txt
}
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
@@ -425,6 +433,10 @@ Text f3Icon
Events
Touch Press Event
tSend.txt="event,buttonPress2,"+entn3.txt+",button"
if(entn3.txt=="")
{
tSend.txt="event,buttonPress2,screensaver,bExit,"+tTmp.txt
}
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
@@ -449,6 +461,10 @@ Text f4Icon
Events
Touch Press Event
tSend.txt="event,buttonPress2,"+entn4.txt+",button"
if(entn4.txt=="")
{
tSend.txt="event,buttonPress2,screensaver,bExit,"+tTmp.txt
}
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
@@ -473,6 +489,10 @@ Text f5Icon
Events
Touch Press Event
tSend.txt="event,buttonPress2,"+entn5.txt+",button"
if(entn5.txt=="")
{
tSend.txt="event,buttonPress2,screensaver,bExit,"+tTmp.txt
}
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC

Binary file not shown.

Binary file not shown.

View File

@@ -5,7 +5,7 @@ If you like this project consider buying me a pizza 🍕 <a href="https://paypal
[![hacs_badge](https://img.shields.io/badge/HACS-Default-41BDF5.svg)](https://github.com/hacs/integration)
![hacs validation](https://github.com/joBr99/nspanel-lovelace-ui/actions/workflows/hacs-validation.yaml/badge.svg)
[![GitHub Release](https://img.shields.io/github/release/joBr99/nspanel-lovelace-ui.svg)](https://github.com/joBr99/nspanel-lovelace-ui/releases)
![Project Maintenance](https://img.shields.io/maintenance/yes/2023.svg)
![Project Maintenance](https://img.shields.io/maintenance/yes/2024.svg)
[![GitHub Activity](https://img.shields.io/github/commit-activity/y/joBr99/nspanel-lovelace-ui.svg)](https://github.com/joBr99/nspanel-lovelace-ui/commits/main)

View File

@@ -348,8 +348,8 @@ class LuiController(object):
else:
apis.ha_api.get_entity(entity_id).call_service("turn_off")
if button_type == "media-shuffle":
suffle = not apis.ha_api.get_entity(entity_id).attributes.shuffle
apis.ha_api.get_entity(entity_id).call_service("shuffle_set", shuffle=suffle)
shuffle = not apis.ha_api.get_entity(entity_id).attributes['shuffle']
apis.ha_api.get_entity(entity_id).call_service("shuffle_set", shuffle=shuffle)
if button_type == "volumeSlider":
pos = int(value)
# HA wants this value between 0 and 1 as float
@@ -366,7 +366,7 @@ class LuiController(object):
if button_type == "colorTempSlider":
entity = apis.ha_api.get_entity(entity_id)
#scale 0-100 from slider to color range of lamp
color_val = scale(int(value), (0, 100), (entity.attributes.min_mireds, entity.attributes.max_mireds))
color_val = scale(int(value), (0, 100), (entity.attributes['min_mireds'], entity.attributes['max_mireds']))
apis.ha_api.get_entity(entity_id).call_service("turn_on", color_temp=color_val)
if button_type == "colorWheel":
apis.ha_api.log(value)
@@ -393,9 +393,9 @@ class LuiController(object):
if button_type == "opnSensorNotify":
msg = ""
entity = apis.ha_api.get_entity(entity_id)
if "open_sensors" in entity.attributes and entity.attributes.open_sensors is not None:
for e in entity.attributes.open_sensors:
msg += f"- {apis.ha_api.get_entity(e).attributes.friendly_name}\r\n"
if open_sensors := entity.attributes.get("open_sensors") is not None:
for e in open_sensors:
msg += f"- {apis.ha_api.get_entity(e).attributes['friendly_name']}\r\n"
self._pages_gen.send_message_page("opnSensorNotifyRes", "", msg, "", "")
# for cardUnlock
@@ -412,22 +412,22 @@ class LuiController(object):
if button_type == "mode-preset_modes":
entity = apis.ha_api.get_entity(entity_id)
preset_mode = entity.attributes.preset_modes[int(value)]
preset_mode = entity.attributes['preset_modes'][int(value)]
entity.call_service("set_preset_mode", preset_mode=preset_mode)
if button_type == "mode-swing_modes":
entity = apis.ha_api.get_entity(entity_id)
swing_mode = entity.attributes.swing_modes[int(value)]
swing_mode = entity.attributes['swing_modes'][int(value)]
entity.call_service("set_swing_mode", swing_mode=swing_mode)
if button_type == "mode-fan_modes":
entity = apis.ha_api.get_entity(entity_id)
fan_mode = entity.attributes.fan_modes[int(value)]
fan_mode = entity.attributes['fan_modes'][int(value)]
entity.call_service("set_fan_mode", fan_mode=fan_mode)
if button_type in ["mode-input_select", "mode-select"]:
entity = apis.ha_api.get_entity(entity_id)
option = entity.attributes.options[int(value)]
option = entity.attributes['options'][int(value)]
entity.call_service("select_option", option=option)
if button_type == "mode-light":
@@ -439,12 +439,12 @@ class LuiController(object):
if options_list is not None:
option = options_list[int(value)]
else:
option = entity.attributes.effect_list[int(value)]
option = entity.attributes['effect_list'][int(value)]
entity.call_service("turn_on", effect=option)
if button_type == "mode-media_player":
entity = apis.ha_api.get_entity(entity_id)
option = entity.attributes.source_list[int(value)]
option = entity.attributes['source_list'][int(value)]
entity.call_service("select_source", source=option)
# timer detail page

View File

@@ -266,8 +266,8 @@ def get_icon_ha(entity_id, overwrite=None, stateOverwrite=None):
# based on media_content_type
elif ha_type == "media_player":
result_icon = "speaker-off"
if "media_content_type" in entity.attributes:
if entity.attributes.media_content_type in media_content_type_mapping:
result_icon = media_content_type_mapping[entity.attributes.media_content_type]
if media_content_type := entity.attributes.get("media_content_type"):
if media_content_type in media_content_type_mapping:
result_icon = media_content_type_mapping[media_content_type]
return get_icon_char(result_icon)

View File

@@ -97,13 +97,12 @@ class LuiPagesGen(object):
if state == "sunny":
icon_color = 65504 #bright-yellow
if "rgb_color" in attr and attr.rgb_color:
color = attr.rgb_color
if "brightness" in attr and attr.brightness:
color = rgb_brightness(color, attr.brightness)
if color := attr.get("rgb_color"):
if brightness := attr.get("brightness"):
color = rgb_brightness(color, brightness)
icon_color = rgb_dec565(color)
elif "brightness" in attr and attr.brightness:
color = rgb_brightness([253, 216, 53], attr.brightness)
elif brightness := attr.get("brightness"):
color = rgb_brightness([253, 216, 53], brightness)
icon_color = rgb_dec565(color)
return icon_color
@@ -276,7 +275,7 @@ class LuiPagesGen(object):
icon_up_status = "disable"
icon_stop_status = "disable"
icon_down_status = "disable"
bits = entity.attributes.supported_features
bits = entity.attributes['supported_features']
pos = entity.attributes.get("current_position")
if pos is None:
pos_status = entity.state
@@ -383,8 +382,8 @@ class LuiPagesGen(object):
elif entityType == "weather":
entityTypePanel = "text"
unit = get_attr_safe(entity, "temperature_unit", "")
if type(item.stype) == int and len(entity.attributes.forecast) >= item.stype:
fdate = dp.parse(entity.attributes.forecast[item.stype]['datetime'])
if type(item.stype) == int and len(entity.attributes['forecast']) >= item.stype:
fdate = dp.parse(entity.attributes['forecast'][item.stype]['datetime'])
global babel_spec
if babel_spec is not None:
dateformat = "E" if item.nameOverride is None else item.nameOverride
@@ -392,9 +391,9 @@ class LuiPagesGen(object):
else:
dateformat = "%a" if item.nameOverride is None else item.nameOverride
name = fdate.astimezone().strftime(dateformat)
icon_id = get_icon_ha(entityId, stateOverwrite=entity.attributes.forecast[item.stype]['condition'])
value = f'{entity.attributes.forecast[item.stype].get("temperature", "")}{unit}'
color = self.get_entity_color(entity, ha_type=entityType, stateOverwrite=entity.attributes.forecast[item.stype]['condition'], overwrite=colorOverride)
icon_id = get_icon_ha(entityId, stateOverwrite=entity.attributes['forecast'][item.stype]['condition'])
value = f'{entity.attributes['forecast'][item.stype].get("temperature", "")}{unit}'
color = self.get_entity_color(entity, ha_type=entityType, stateOverwrite=entity.attributes['forecast'][item.stype]['condition'], overwrite=colorOverride)
else:
value = f'{get_attr_safe(entity, "temperature", "")}{unit}'
else:
@@ -455,7 +454,7 @@ class LuiPagesGen(object):
command = f"entityUpd~Not found~{navigation}~{item}~check~220~apps.yaml~150~300~5~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Please~your~~"
else:
entity = apis.ha_api.get_entity(item)
heading = title if title != "unknown" else entity.attributes.friendly_name
heading = title if title != "unknown" else entity.attributes['friendly_name']
current_temp = get_attr_safe(entity, "current_temperature", "")
dest_temp = get_attr_safe(entity, "temperature", None)
dest_temp2 = ""
@@ -537,7 +536,7 @@ class LuiPagesGen(object):
command = f"entityUpd~Not found~{navigation}"
else:
entity = apis.ha_api.get_entity(item)
heading = title if title != "unknown" else entity.attributes.friendly_name
heading = title if title != "unknown" else entity.attributes['friendly_name']
# get data from homeassistant
data_raw = apis.ha_api.get_history(entity_id = item, days = 7)
@@ -584,12 +583,12 @@ class LuiPagesGen(object):
else:
media_icon = self.generate_entities_item(entity, "cardGrid")
ha_entity = apis.ha_api.get_entity(entityId)
heading = title if title != "unknown" else ha_entity.attributes.friendly_name
heading = title if title != "unknown" else ha_entity.attributes['friendly_name']
title = get_attr_safe(ha_entity, "media_title", "")
author = get_attr_safe(ha_entity, "media_artist", "")
volume = int(get_attr_safe(ha_entity, "volume_level", 0)*100)
iconplaypause = get_icon_id("pause") if ha_entity.state == "playing" else get_icon_id("play")
bits = ha_entity.attributes.supported_features
bits = ha_entity.attributes['supported_features']
onoffbutton = "disable"
if bits & 0b10000000:
if ha_entity.state == "off":
@@ -639,7 +638,7 @@ class LuiPagesGen(object):
if not entity.attributes.get("code_arm_required", False):
numpad = "disable"
if overwrite_supported_modes is None:
bits = entity.attributes.supported_features
bits = entity.attributes['supported_features']
if bits & 0b000001:
supported_modes.append("arm_home")
if bits & 0b000010:
@@ -678,7 +677,7 @@ class LuiPagesGen(object):
#add button to show sensor state
add_btn = ""
if "open_sensors" in entity.attributes and entity.attributes.open_sensors is not None:
if entity.attributes.get("open_sensors") is not None:
add_btn=f"{get_icon_id('progress-alert')}~{rgb_dec565([243,179,0])}~"
if alarmBtn is not None and type(alarmBtn) is dict:
entity = alarmBtn.get("entity")
@@ -845,25 +844,26 @@ class LuiPagesGen(object):
color_temp = "disable"
color = "disable"
effect_supported = "disable"
supported_color_modes = entity.attributes['supported_color_modes']
if "onoff" not in entity.attributes.supported_color_modes:
if "onoff" not in supported_color_modes:
brightness = 0
if entity.state == "on":
if "brightness" in entity.attributes and entity.attributes.brightness:
if brightness := entity.attributes.get("brightness"):
# scale 0-255 brightness from ha to 0-100
brightness = int(scale(entity.attributes.brightness,(0,255),(0,100)))
brightness = int(scale(brightness, (0,255), (0,100)))
else:
brightness = "disable"
if "color_temp" in entity.attributes.supported_color_modes and entity.attributes.supported_color_modes:
if "color_temp" in entity.attributes and entity.attributes.color_temp:
if "color_temp" in supported_color_modes:
if color_temp := entity.attributes.get("color_temp"):
# scale ha color temp range to 0-100
color_temp = int(scale(entity.attributes.color_temp,(entity.attributes.min_mireds, entity.attributes.max_mireds),(0,100)))
color_temp = int(scale(color_temp, (entity.attributes['min_mireds'], entity.attributes['max_mireds']),(0, 100)))
else:
color_temp = "unknown"
else:
color_temp = "disable"
list_color_modes = ["xy", "rgb", "rgbw", "hs"]
if any(item in list_color_modes for item in entity.attributes.supported_color_modes):
if any(item in list_color_modes for item in supported_color_modes):
color = "enable"
else:
color = "disable"
@@ -903,7 +903,7 @@ class LuiPagesGen(object):
iconTiltRightStatus = "disable"
tilt_pos = "disable"
bits = entity.attributes.supported_features
bits = entity.attributes['supported_features']
# position supported
if bits & 0b00001111:

View File

@@ -104,19 +104,23 @@ template:
- trigger:
- platform: time_pattern
hours: /1
- platform: homeassistant
event: start
action:
- service: weather.get_forecasts
data:
type: daily
target:
entity_id: weather.k3ll3r # change to your weather entity in this line
entity_id: weather.home # change to your weather entity
response_variable: daily
sensor:
- name: Weather Forecast Daily
unique_id: weather_forecast_daily
state: "{{ now().isoformat() }}"
state: "{{ states('weather.home') }}" # # change to your weather entity in this line
attributes:
forecast: "{{ daily['weather.k3ll3r'].forecast }}" # change to your weather entity in this line
temperature: "{{ state_attr('weather.home', 'temperature') }}" # change to your weather entity
temperature_unit: "{{ state_attr('weather.home', 'temperature_unit') }}" # change to your weather entity
forecast: "{{ daily['weather.home'].forecast }}" # change to your weather entity
```
![image](https://github.com/joBr99/nspanel-lovelace-ui/assets/29555657/41f21db3-a6e2-4e4f-8dab-b9351ecd23e5)

View File

@@ -1,8 +1,9 @@
var sourceDP = 'alias.0.Wohnzimmer.Heizung.ACTUAL';
var targetDP = '0_userdata.0.Test.chartTest';
var rangeHours = 24;
var maxXAchsisTicks = 6;
var historyInstance = 'history.0';
const sourceDP = 'alias.0.Wohnzimmer.Heizung.ACTUAL';
const targetDP = '0_userdata.0.Test.chartTest';
const rangeHours = 24;
const maxXAchsisTicks = 6;
const historyInstance = 'history.0';
const factor = 1; // Bei zu großen Werten und negativen Anzeigen im Panel um das 10fache erhöhen
on({id: sourceDP, change: "any"}, async function (obj) {
sendTo(historyInstance, 'getHistory', {
@@ -25,7 +26,7 @@ on({id: sourceDP, change: "any"}, async function (obj) {
//Check history items for requested hours
for (var j = 0, targetValue = 0; j < result.result.length; j++) {
var valueDate = new Date(result.result[j].ts);
var value = (Math.round(result.result[j].val * 10) / 10);
var value = Math.round(result.result[j].val / factor * 10);
if (valueDate > targetDate){
if ((targetDate.getHours() % stepXAchsis) == 0){
@@ -47,4 +48,4 @@ on({id: sourceDP, change: "any"}, async function (obj) {
setState(targetDP, cardChartString, true);
}
});
});
});

File diff suppressed because it is too large Load Diff

Binary file not shown.

Binary file not shown.

Binary file not shown.

File diff suppressed because it is too large Load Diff

View File

@@ -2564,7 +2564,11 @@
"crossfade":{
"en-US":"Crossfade",
"de-DE":"Überblenden"
},
},
"tools":{
"en-US":"Tools",
"de-DE":"Tools"
},
"speaker":{
"en-US":"Speakerlist",
"de-DE":"Wiedergabegeräte",

View File

@@ -2701,5 +2701,13 @@
"scriptname":{
"en-US":"Script name",
"de-DE":"Skriptname"
},
"hiddencards_offon":{
"en-US":"hidden Cards (on/off)",
"de-DE":"ausgeblendete Seiten (an/aus)"
},
"easyview_layout":{
"en-US":"Easyview Layout",
"de-DE":"Einfaches Layout"
}
}

View File

@@ -228,6 +228,8 @@ class LovelaceUIPanel:
self.render_current_page(requested=True)
if msg[1] == "buttonPress2":
entity_id = msg[2]
if entity_id == "":
return
btype = msg[3]
value = msg[4] if len(msg) > 4 else None
if btype == "bExit":
@@ -278,6 +280,8 @@ class LovelaceUIPanel:
self.privious_cards.append(self.current_card)
self.current_card = self.searchCard(card_iid)
self.render_current_page(switchPages=True)
case 'mode-light':
ha_control.handle_buttons(entity_id, btype, value, entity_config=entity_config)
case _:
ha_control.handle_buttons(entity_id, btype, value)