Compare commits

..

909 Commits

Author SHA1 Message Date
Johannes
d01ccede57 Update nspanel-lovelace-ui.py 2025-07-31 20:39:04 +02:00
Johannes
65be5ffeb0 implements #1351 2025-07-31 20:37:31 +02:00
Johannes
d53afb0b20 fixes #1369 2025-07-31 20:11:02 +02:00
Armilar
9822870fc9 v4.9.3 - EU, US-L, US-P - Update NsPanelTs.ts 2025-07-31 17:54:36 +02:00
Armilar
8a54d1422c v4.9.3 - EU, US-p, US-l - Update NSPanelTs.ts 2025-07-31 17:52:14 +02:00
Armilar
3f573557f0 Merge pull request #1370 from ticaki/main
ready for 9.0.11
2025-07-30 22:06:08 +02:00
ticaki
c2ca3b26d1 fix 2025-07-30 21:59:16 +02:00
ticaki
476a252a92 ready for 9.0.11 2025-07-30 21:52:36 +02:00
Armilar
0af779973b v4.9.3 - DEV Update NSPanelTs.ts
popupShutter2 Changes (new Parameter shutterZeroIsClosed changing Direction of %-Value in HMI (0 <--> 100))
2025-07-30 14:01:04 +02:00
Armilar
8e0609a781 v4.9.3 - DEV Update NSPanelTs.ts
Some Shutter2 Changes
2025-07-30 13:59:25 +02:00
Armilar
5dab816259 v4.9.2.2 - Update NsPanelTs.ts 2025-07-28 14:11:29 +02:00
Armilar
5f8409f5f1 v4.9.2.3 - DEV Update NSPanelTs.ts
- 28.07.2025 - v4.9.2.3  Quick-Fix Errors with TypeScript in JS > 9.X (by ticaki)
2025-07-28 14:10:24 +02:00
Armilar
3d85e86a95 v4.9.2.3 - Update NsPanelTs.ts
Quick-Fix Errors with TypeScript (Bugs in JavaScript > 9.X) by ticaki
2025-07-28 10:17:57 +02:00
Armilar
85de880cda Merge pull request #1368 from ticaki/main
fix/ignore typescript errors
2025-07-28 00:15:53 +02:00
ticaki
98269b19aa fix/ignore typescript errors 2025-07-28 00:10:22 +02:00
Armilar
d77382ee88 v4.9.2.2 - Update NsPanelTs.ts
* Add Weather-Adapter OpenWeatherMap
* Accuweather deprecated
2025-07-25 21:49:57 +02:00
Armilar
e925d133d2 v4.9.2.2 - DEV Update NSPanelTs.ts
* Fix Examples
* Fix OpenWeatherMap fewclouds night
2025-07-25 21:43:23 +02:00
Armilar
5ef3e8132b v4.9.2.2 - DEV Update NSPanelTs.ts
* AccuWeather deprecated
* Add OpenWeatherMap
2025-07-25 16:03:06 +02:00
Armilar
662b79a389 v4.9.2 - DEV - Update NSPanelTs.ts 2025-07-24 14:11:30 +02:00
Armilar
c984ff53a3 v4.8.0 - Update NsPanelTs.ts
* Add popupShutter2
* Add popupLight2
* Add popupSlider (cardMedia EQ)
* Fix Demomodus cardPower
* Small Fixes
2025-06-30 12:40:43 +02:00
Armilar
f8b748a418 Merge pull request #1360 from ticaki/main
Types and variables for popupShutter2 changed.
2025-06-30 12:13:09 +02:00
Armilar
bc31670760 v4.9.0.1 - DEV Update NSPanelTs.ts
Small Fixes
2025-06-30 12:06:11 +02:00
Armilar
cbf6abf4dd v4.9.0 - DEV Update NSPanelTs.ts
Small Fixes
2025-06-30 12:02:17 +02:00
Armilar
5c85e4a6e1 Update NSPanelTs.ts
Change Release
2025-06-30 11:58:08 +02:00
Armilar
cbede2412e v4.9.0 - DEV Update NSPanelTs.ts
New Beta
2025-06-30 11:57:26 +02:00
ticaki
82d22743cc rename customIcons for shutter 2025-06-29 16:08:32 +02:00
ticaki
640d0dfa14 check customIcons 2025-06-29 15:43:19 +02:00
ticaki
ccc62d1e6a Types and variables for popupShutter2 changed. 2025-06-29 15:35:04 +02:00
Armilar
6cec0245a3 v4.7.5 - DEV Update NSPanelTs.ts
Add TFT US-P v4.7.5
2025-06-26 13:01:27 +02:00
Armilar
f3c98adf06 v4.7.5.1 - DEV Update NSPanelTs.ts 2025-06-25 23:48:29 +02:00
Armilar
f4487e4285 v4.7.5.1 - DEV Update NSPanelTs.ts
TFT EU + US-P
2025-06-25 23:46:34 +02:00
Armilar
8e2780b2cb Update NSPanelTs.ts DEV 4.7.5.1
Add popupLight2
2025-06-25 14:21:25 +02:00
Armilar
0372221973 Update NSPanelTs.ts DEV 4.7.4.1
- Add popupShutter2
2025-06-25 00:20:01 +02:00
Johannes
947ef2d592 Update pages.py 2025-06-24 20:28:23 +02:00
Johannes
a1f39236c4 implements #1350 2025-06-23 22:38:20 +02:00
Thomas
4cdd1ed586 Merge pull request #1357 from tt-tom17/main
v4.7.2.4 - DEV-Update NSPanel.ts
2025-06-21 12:28:25 +02:00
tt-tom17
1836d29931 v4.7.2.4 - DEV-Update NSPanel.ts
- fix DEMO mode check of Powerpage
2025-06-21 12:22:07 +02:00
tt-tom17
fca29cfbd8 v4.7.2.4 - DEV-Update NSPanel.ts
- fix DEMO mode check of Powerpage
2025-06-21 12:18:14 +02:00
Armilar
b27910c1af Merge pull request #1354 from ticaki/main
IconSelect left and indicatorScreensaverEntity added
2025-06-20 10:35:21 +02:00
ticaki
f046ae6031 IconSelect left and indicatorScreensaverEntity added 2025-06-20 10:28:46 +02:00
Thomas
4475ab1277 Merge pull request #1348 from ticaki/main
States only respond to any if ack = false
2025-06-13 00:23:53 +02:00
dependabot[bot]
9afdb71a7c Bump home-assistant/builder from 2024.08.2 to 2025.03.0 (#1317)
Bumps [home-assistant/builder](https://github.com/home-assistant/builder) from 2024.08.2 to 2025.03.0.
- [Release notes](https://github.com/home-assistant/builder/releases)
- [Commits](https://github.com/home-assistant/builder/compare/2024.08.2...2025.03.0)

---
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>
2025-06-12 20:08:47 +02:00
dependabot[bot]
c84d78551f Bump docker/login-action from 3.3.0 to 3.4.0 (#1316)
Bumps [docker/login-action](https://github.com/docker/login-action) from 3.3.0 to 3.4.0.
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](https://github.com/docker/login-action/compare/v3.3.0...v3.4.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>
2025-06-12 20:08:35 +02:00
Johannes
5e2a4b17ae Update prepare_ha.md 2025-06-12 20:07:00 +02:00
Paweł Zubrycki
acdba468b3 Add weather service call functionality and fix weather forecast assignment (#1349) 2025-06-12 18:40:55 +02:00
ticaki
5803a489f5 States only respond to any if ack = false 2025-06-12 15:29:17 +02:00
patricknitsch
54c8d302a8 Add Entity Type "Valve" (#1347)
* Update pages.py

* Update controller.py

* Update pages.py

* Update pages.py
2025-06-06 19:24:56 +02:00
mikosoft83
8059905579 Update icons.py (#1343)
Climate icons improvement
2025-06-02 23:15:30 +02:00
Johannes
4dc39c1b79 Should fix #1336 2025-05-30 09:00:29 +02:00
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
Johannes
d94d937d77 Update pages.py 2024-03-30 12:18:31 +01:00
Johannes
e5c1f0588a Update icons.py 2024-03-30 12:17:41 +01:00
Johannes
dd88ebe5da Update prepare_ha.md 2024-03-30 12:15:23 +01:00
Johannes
5536335ac9 Update prepare_ha.md 2024-03-29 21:47:36 +01:00
Johannes
df4fff6911 add docs for workaround script for appdaemon in ha 2024.04 2024-03-29 15:48:30 +01:00
Johannes
3dd83fde66 Update README.md 2024-03-27 21:27:59 +01:00
dependabot[bot]
f50b1ececa Bump docker/login-action from 3.0.0 to 3.1.0 (#1193)
Bumps [docker/login-action](https://github.com/docker/login-action) from 3.0.0 to 3.1.0.
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](https://github.com/docker/login-action/compare/v3.0.0...v3.1.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-03-27 21:22:58 +01:00
dependabot[bot]
ebee7b379e Bump home-assistant/builder from 2024.01.0 to 2024.03.5 (#1198)
Bumps [home-assistant/builder](https://github.com/home-assistant/builder) from 2024.01.0 to 2024.03.5.
- [Release notes](https://github.com/home-assistant/builder/releases)
- [Commits](https://github.com/home-assistant/builder/compare/2024.01.0...2024.03.5)

---
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-03-27 21:22:50 +01:00
Odianosen Ejale
255db25f58 Card show helper (#1187)
* Turn app into AD Base app

* Added the ability to keep the messages being sent quiet

* fix little conflict

* Allow other apps to have access to current app

* Fixed card access typing

* Added show card helper

* Added navigate helper
2024-03-21 21:56:26 +01:00
Thomas
19050079d4 Update NSPanelTs.ts
fix demomodus cardPower
2024-03-18 17:03:24 +01:00
Thomas
8d97f98a29 Update NsPanelTs.ts
fix demomodus cradPower
2024-03-18 17:01:57 +01:00
Armilar
137ca5855e Update NsPanelTs.ts - Fix Screensaver BG-Color 2024-03-06 16:25:03 +01:00
Armilar
7707b48622 Update NSPanelTs.ts - Fix Screensaver BG Color 2024-03-06 16:23:24 +01:00
joBr99
193546d1ed fixes #1179 (add nextion2text) 2024-02-25 11:03:17 +00:00
joBr99
6703bca1d0 fixes #1179 2024-02-25 11:59:50 +01:00
Johannes
5739947586 Update pages.py 2024-02-25 11:53:11 +01:00
Johannes
5e1a7f2102 workaround for #1190 2024-02-25 11:49:25 +01:00
joBr99
a0e574391b implemented #1178 (add nextion2text) 2024-02-25 10:48:07 +00:00
joBr99
bd107d930a implemented #1178 2024-02-25 11:44:46 +01:00
Odianosen Ejale
66f83732bb Fixed typing (#1186)
* Turn app into AD Base app

* Added the ability to keep the messages being sent quiet

* fix little conflict

* Allow other apps to have access to current app

* Fixed card access typing
2024-02-19 21:45:31 +01:00
Odianosen Ejale
e796891d8e Current Card access (#1184)
* Turn app into AD Base app

* Added the ability to keep the messages being sent quiet

* fix little conflict

* Allow other apps to have access to current app

* Access other cards from apps
2024-02-19 18:05:00 +01:00
Odianosen Ejale
ba46bc9189 Added ability to keep logs quiet for messages being sent (#1183)
* Turn app into AD Base app

* Added the ability to keep the messages being sent quiet

* fix little conflict
2024-02-19 12:52:18 +01:00
Odianosen Ejale
64ff369a90 Turn app into AD Base app (#1182) 2024-02-19 00:17:40 +01:00
Thomas
92616429ba Merge pull request #1177 from tt-tom17/patch-tt-tom17
v4.3.3.43 - Update NsPanelTs.ts
2024-02-12 13:26:20 +01:00
Thomas
377383d672 v4.3.3.43 - DEV Update NSPanelTs.ts
minor fixes
2024-02-12 13:18:55 +01:00
Thomas
52d405a6d6 v4.3.3.43 - Update NsPanelTs.ts
- Change pageId with Alias in Communication with HMI
- Media-Player: Dynamic loading of the speaker list, playlist, tracklist, fix repeat, add seek, add elapsed/duration
- Minor Fixes; Add miValue / maxValue to Volume-Slider
- Fix: cardGrid2 => 9 Entities for Layout 'us-p' issue #1167
- Fix VolumeSlider
2024-02-12 13:17:25 +01:00
Thomas
2e1492c4fa v4.3.3.43 - DEV Update NSPanelTs.ts
Description extended
2024-02-12 13:10:26 +01:00
Johannes
16673df8cf Update config.yaml 2024-02-11 21:23:50 +01:00
Johannes
cb4c26acfd Update requirements.txt 2024-02-11 21:23:29 +01:00
Johannes
fda7ca4574 Update config.yaml 2024-02-11 21:16:13 +01:00
Yves Schumann
8e2e8d1e82 Fixed typos on Github issue templates (#1170) 2024-02-11 21:15:31 +01:00
jacekowski
4e36f47774 fix obsolete call to get_forecast (#1173) 2024-02-11 21:15:07 +01:00
Armilar
858dac73d0 v4.3.3.43 - DEV Update NSPanelTs.ts
Fix VolumeSlider
2024-02-11 18:37:20 +01:00
Thomas
3cccefb715 Merge pull request #1169 from starwarsfan/bugfix/fixDuplicatedDefinitions
Fixed duplicated definition of 'ct'
2024-02-11 08:54:18 +01:00
Thomas
44640f33d2 Merge pull request #1171 from tt-tom17/patch-tt-tom17
v4.3.3.43 - DEV Update NSPanelTs.ts
2024-02-10 23:35:19 +01:00
Thomas
2ae3b9bd8e v4.3.3.43 - DEV Update NSPanelTs.ts
- Fix: cardGrid2 => 9 Entities for Layout 'us-p' issue #1167
2024-02-10 23:27:22 +01:00
Armilar
2db991a371 v4.3.3.42 - DEV Update NSPanelTs.ts
Add minValue / maxValue to Volume-Slider
2024-02-10 22:30:27 +01:00
Armilar
2e52abd76c v4.3.342 - DEV Update NSPanelTs.ts
Add minValue/maxValue to Volume-Slider
2024-02-10 22:28:52 +01:00
Yves Schumann
03c3acd214 Fixed duplicated definition of 'ct' 2024-02-10 20:43:47 +01:00
Armilar
c26b277c56 v4.3.3.42 - DEV Update NSPanelTs.ts
Spotify Minor Fixes
2024-02-10 11:09:42 +01:00
Armilar
3f7fd40d17 v4.3.3.42 - DEV Update NSPanelTs.ts
- Minor Fixes
- Change pageId with Alias in Communication with HMI (cardMedia)
- spotiffy Media-Player: Dynamic loading of the speaker list, playlist, tracklist, fix repeat, add seek, add elapsed/duration
2024-02-09 17:03:55 +01:00
Armilar
0b01c0d236 Merge pull request #1166 from Armilar/main
Able to merge. These branches can be automatically merged.
2024-02-07 23:22:35 +01:00
Armilar
3107b73430 Merge branch 'joBr99:main' into main 2024-02-07 23:21:27 +01:00
Armilar
5d421ae525 v4.3.3.42 - DEV Update NSPanelTs.ts
Fix Volumio in cardMedia
2024-02-07 22:53:57 +01:00
Johannes
56a8495787 Update config.yaml 2024-02-07 19:38:47 +01:00
Armilar
a12bc03dd7 v4.3.3.42 - DEVUpdate NSPanelTs.ts
Elapsed Fixes in cardMedia
2024-02-07 13:28:46 +01:00
Armilar
6b1a65f8f4 v4.3.3.42 - Update NSPanelTs.ts
Minor Fixes in cardMedia
2024-02-07 11:25:58 +01:00
Thomas
9d94155480 Update NSPanelTs.ts
Fix: bottomScreensaverEntity[i].ScreensaverEntityIconColor
Zeile 8899
2024-02-07 10:38:59 +01:00
joBr99
3b46759134 . 2024-02-06 22:15:57 +01:00
Thomas
8d21c653ae Merge pull request #1164 from tt-tom17/patch-tt-tom17
update CardLChart_Influx2.ts
2024-02-06 15:06:58 +01:00
Thomas
d983c44db7 update CardLChart_Influx2.ts
- codeanpassungen
2024-02-06 15:04:13 +01:00
Thomas
467a1d92bb Merge pull request #1163 from tt-tom17/patch-tt-tom17
v4.3.3.41 Update NSPanel.ts
2024-02-06 10:35:45 +01:00
Thomas
157d3e3e66 v4.3.3.41 Update NSPanel.ts
- Fix: activeBrightness -> null
- Fix: bHome -> corrected PageId
2024-02-06 10:32:06 +01:00
Armilar
51bb320dce Merge pull request #1162 from ticaki/main
Handle null in active*Brightness
2024-02-05 19:37:18 +01:00
ticaki
12c99c6857 Handle null in active*Brightness 2024-02-05 19:29:15 +01:00
Armilar
62e905f336 v4.3.3.40 - Update NsPanelTs.ts
- Fix maxColorTempValue for RGB
- Fix SqueezeboxRPC-Media-Player and add some Functions
2024-02-05 17:21:13 +01:00
Armilar
9b5964a758 v4.3.3.40 - Update NSPanelTs.ts
- Fix maxColorTempValue for RGB
- Fix SqueezeboxRPC-Media-Player and add some Functions
2024-02-05 17:06:01 +01:00
Armilar
9c49a9c67d v4.3.3.39 - Update NSPanelTs.ts
Fix: if (pageItem.minValueColorTemp !== undefined && pageItem.maxValueColorTemp !== undefined) {
2024-02-03 10:45:45 +01:00
Armilar
0a2461f4a5 v4.3.3.39 - Update NsPanelTs.ts
fix maxValueColorTemp
2024-02-03 10:44:24 +01:00
Thomas
49577ddbb6 Merge pull request #1159 from tt-tom17/main
v4.3.3.39 Update NSPanel.ts
2024-01-30 11:02:24 +01:00
Thomas
6172b0c35f v4.3.3.39 Update NSPanel.ts
- Add: Optional setOn & setOff for HW button with mode 'set'
- Fix: ack for read-only state
2024-01-30 10:55:19 +01:00
Thomas
e7cc10692b Update and Rename CardLChart_Influx2 2024-01-30 10:23:19 +01:00
Thomas
221d2c717d Merge pull request #1157 from tt-tom17/patch-tt-tom17
v4.3.3.39  Update NSPanel.ts
2024-01-30 08:55:30 +01:00
Thomas
2b54f742c5 v4.3.3.39 Update NSPanel.ts
- Add: Optional setOn & setOff for HW button with mode 'set'
- Fix: ack for read-only state
2024-01-30 08:50:21 +01:00
Armilar
f02eddcebe Merge branch 'joBr99:main' into main 2024-01-29 12:16:00 +01:00
Thomas
c25a5cef67 Merge pull request #1156 from tt-tom17/patch-tt-tom17
v4.3.3.39 Update NSPanel.ts
2024-01-29 12:14:25 +01:00
Thomas
0f69ee951c v4.3.3.39 Update NSPanel.ts
- Add: Optional setOn & setOff for HW button with mode 'set'
- Fix: ack for read-only state
2024-01-29 11:58:37 +01:00
Thomas
fd6650db50 v4.3.3.39 Update NSPanel.ts
- Add: Optional setOn & setOff for HW button with mode 'set'
- Fix: ack for read-only state
2024-01-29 10:17:37 +01:00
Thomas
f2ad80665a v4.3.3.39 Update NSPanel.ts
- Add: Optional setOn & setOff for HW button with mode 'set'
- Fix: ack for read-only state
2024-01-29 09:40:01 +01:00
Armilar
cff9c94c27 Merge pull request #1154 from ticaki/main
fix ack for read-only state
2024-01-28 02:49:58 +01:00
ticaki
b6fdc12820 fix ack for read-only state 2024-01-27 18:02:05 +01:00
Armilar
01265faef9 Merge pull request #1153 from tt-tom17/patch-tt-tom17
Script vom Wiki nach Github schieben
2024-01-26 18:56:58 +01:00
Thomas
a2feae891e Script vom Wiki nach Github schieben 2024-01-26 18:50:47 +01:00
Armilar
bd24d4bcd1 Merge pull request #1151 from ticaki/main
2 Points
2024-01-23 22:04:52 +01:00
Armilar
0efbd9e23c Merge branch 'joBr99:main' into main 2024-01-23 21:41:06 +01:00
ticaki
4aab72fb10 build nice objects 2024-01-23 18:36:03 +01:00
ticaki
aa266da5ac fix txt.matchall 2024-01-23 18:17:37 +01:00
ticaki
49987d55ce Merge branch 'joBr99:main' into main 2024-01-23 18:16:59 +01:00
Armilar
c6939efd70 Merge pull request #1149 from theknut/patch-1
feat: write button event to states
2024-01-23 18:16:19 +01:00
ticaki
f7f853f05e Add setOn / setOff 2024-01-23 16:55:07 +01:00
ticaki
1faa540a70 Add some optional types 2024-01-23 07:58:21 +01:00
theknut
1746c876bd feat: write button event to states
Whenever a button is pressed there is no event triggered which lets the user easily implement triggers on this event.
This PR adds the functionality that the current button event is written to NSPanel objects structures as states under `0_userdata.0.NSPanel.1.Event.Button`:
- Action - whatever button was pressed (button, media-OnOff, volumeSlider, ...)
- Value -  auxillary value for this action (e.g. action `volumeSlider` - `Value` holds the value the slider was moved to)
- Id
  - Action == `button` - Id of the alias the button is connected to
  - else - Id of the current page item or the page to navigate to
2024-01-22 00:19:23 +01:00
Armilar
cd0c015fea v4.3.3.38 - Update NsPanelTs.ts (add nextion2text) 2024-01-20 23:31:37 +00:00
Armilar
760b25b7a2 v4.3.3.38 - Update NsPanelTs.ts
* v4.3.3.37 Change: Allow data points to be flushed for popUpNotify. Activate screensaver with one click.
* v4.3.3.38 Fix: joBr99#1098
* v4.3.3.38 Types: Number of PageItems defined & HandleScreensaverStatusIcons rewritten
* v4.3.3.38 Optimate: function SendTime()
* v4.3.3.38 Add: ScreensaverEntityIconSelect for MRIcons is like common.states for states.
* v4.3.3.38 Add: Changing the ScreensaverEntityValue value updates the screensaver.
* v4.3.3.38 Change: yAxisTicks parameter is not required in cardLChart PageItem
* v4.3.3.38 Add: click on indicatorIcon navigate to Page
2024-01-20 23:01:36 +01:00
Armilar
eccfad5615 Merge pull request #1147 from tt-tom17/patch-tt-tom17
v4.3.3.38
2024-01-20 22:49:20 +01:00
Thomas
27034e4bae v4.3.3.38
-Add: click on indicatorIcon navigate to Page
2024-01-20 22:41:00 +01:00
joBr99
99376c8fc2 . (add nextion2text) 2024-01-20 19:56:16 +00:00
joBr99
17e7ba1ef2 . 2024-01-20 20:53:25 +01:00
joBr99
38526890cc . (add nextion2text) 2024-01-19 22:12:34 +00:00
joBr99
ae9b33d5f0 . 2024-01-19 23:09:47 +01:00
joBr99
ff96812d26 Merge branch 'main' of github.com:joBr99/nspanel-lovelace-ui (add nextion2text) 2024-01-19 15:23:21 +00:00
joBr99
0359a4b3dc Merge branch 'main' of github.com:joBr99/nspanel-lovelace-ui 2024-01-19 16:20:41 +01:00
joBr99
f75dd3a800 fixes #1146; implements #1144 2024-01-19 16:20:28 +01:00
Armilar
a992dc56c5 Merge pull request #1140 from ticaki/main
siehe Beschreibung
2024-01-19 12:52:22 +01:00
Armilar
576176e1cc Change in cardLChart
Change: yAxisTicks parameter is not required in cardLChart PageItem
2024-01-19 12:44:46 +01:00
Armilar
1d3914ce86 let out_msgs: NSPanel.Payload[] = []; 2024-01-19 12:37:30 +01:00
Armilar
b2f338cad8 Change cardLChart - no yAxisTicks required 2024-01-19 12:33:35 +01:00
Armilar
74a329ca29 Merge pull request #1142 from theknut/patch-1
feat: calculate yAxisTicks based on given values
2024-01-19 12:25:55 +01:00
theknut
29ae1b4034 fix: wrong yAxisTicks logged in debug log 2024-01-19 10:34:50 +01:00
theknut
ae5cab9830 refactor: ensure yAxisTicks are calculated every time if not provided 2024-01-19 10:27:01 +01:00
theknut
a986e588b5 feat: calculate yAxisTicks based on given values
If no yAxisTicks are provided for the signal, try to calculate it based on the given values.
2024-01-19 00:27:10 +01:00
ticaki
8c84c1050f fix pm/am 2024-01-19 00:03:15 +01:00
ticaki
c3ded4d817 buildNSPanelString 2024-01-18 22:15:04 +01:00
ticaki
db32de68e3 add ScreensaverEntityValue to on() 2024-01-17 23:14:54 +01:00
ticaki
f76f2ca393 tweak HandleScreensaverStatusIcons 2024-01-17 17:25:51 +01:00
ticaki
8449257628 fix number/string 2024-01-16 21:39:43 +01:00
ticaki
2bd3d0d290 reduce HandleScreensaverStatusIcons 2024-01-16 20:51:24 +01:00
ticaki
117798a3f5 icon fix 2024-01-16 17:34:09 +01:00
ticaki
01392bcbf8 fix unsubscribePowerSubscriptions 2024-01-16 16:32:38 +01:00
ticaki
5a3478d916 ups :D 2024-01-16 16:06:47 +01:00
ticaki
f3b545fd90 remove commented out code 2024-01-16 16:04:22 +01:00
ticaki
e7a6a05a1b Update Version and Changelog 2024-01-16 15:59:28 +01:00
ticaki
f65ff57a95 HandleScreensaverStatusIcons rewritten
fixed #1098
types: Number of PageItems defined
2024-01-16 15:55:51 +01:00
ticaki
9a8f53e890 Merge branch 'joBr99:main' into main 2024-01-16 13:13:33 +01:00
Armilar
e94c711f12 v4.3.3.37 - Update NSPanelTs.ts
Change: Allow data points to be flushed for popUpNotify. Activate screensaver with one click.
2024-01-15 11:00:22 +01:00
Armilar
4cc8455fff v4.3.3.36 - Update NsPanelTs.ts
- v4.3.3.34 Fix: Disabled Icon Status for Blinds while bug in updating data points in ioBroker (reason unknown)
- v4.3.3.35 Add: relay.1/relay.2 show the confirmed status
- v4.3.3.36 Fix: change ScreensaverTimeout and activeBrightness
- v4.3.3.36 Fix: schedule SendTime
- v4.3.3.36 Fix: Some Types and Minor Fixes
2024-01-14 20:46:19 +01:00
Armilar
943bb93398 v4.3.3.36 - Update NsPanelTs.ts
- v4.3.3.34 Fix: Disabled Icon Status while bug in updating data points in ioBroker (reason unknown)
- v4.3.3.35 Add: relay.1/relay.2 show the confirmed status
- v4.3.3.36 Fix: change ScreensaverTimeout and activeBrightness
- v4.3.3.36 Fix: schedule SendTime
- v4.3.3.36 Fix: Some Types and Minor Fixes
2024-01-14 20:43:14 +01:00
Armilar
0a1eb8c2e5 v4.3.3.26 - Update NsPanelTs.ts
- v4.3.3.34 Fix: Disabled Icon Status while bug in updating data points in ioBroker (reason unknown)
- v4.3.3.35 Add: relay.1/relay.2 show the confirmed status
- v4.3.3.36 Fix: change ScreensaverTimeout and activeBrightness
- v4.3.3.36 Fix: schedule SendTime
- v4.3.3.36 Fix: Function _schedule SummerTime/WinterTime

- v4.3.3.34 Fix: Disabled Icon Status while bug in updating data points in ioBroker (reason unknown)
- v4.3.3.35 Add: relay.1/relay.2 show the confirmed status
- v4.3.3.36 Fix: change ScreensaverTimeout and activeBrightness
- v4.3.3.36 Fix: schedule SendTime
- v4.3.3.36 Fix: Some Types and Minor Fixes
2024-01-14 20:41:38 +01:00
ticaki
b7fd06413d remove all <type> 2024-01-12 20:42:54 +01:00
ticaki
a2b805f4e1 SendTime - optimated 2024-01-12 20:38:47 +01:00
Armilar
bc69af7b6b v4.3.3.36 - Update NSPanelTs.ts
Add common write false/true
2024-01-11 12:51:34 +01:00
Armilar
c36202878f Update ioBroker_NSPanel_locales_service.json 2024-01-11 12:00:26 +01:00
Armilar
60f31595d4 v4.3.3.36 - Update NSPanelTs.ts 2024-01-10 22:39:48 +01:00
Armilar
7194d7f613 v4.3.3.36 - Update NSPanelTs.ts
Fix Alexa Elapsed
2024-01-10 22:31:29 +01:00
Armilar
af02a70600 Merge pull request #1138 from ticaki/main
Fixed: schedule with objects starts only 1 time
2024-01-10 22:27:01 +01:00
ticaki
77d8e0607d Merge branch 'joBr99:main' into main 2024-01-10 22:21:08 +01:00
ticaki
d6d12bc93c Fixed: schedule with objects starts only 1 time 2024-01-10 22:19:44 +01:00
Armilar
ead1def4bb Merge pull request #1134 from tt-tom17/main
v4.3.3.36 Update NSPanel.ts
2024-01-09 22:57:12 +01:00
Thomas
14e944885f v4.3.3.36 Update NSPanel.ts
- Fix: change ScreensaverTimeout and activeBrightness
- Fix: schedule SendTime
- Fix: Function _schedule SummerTime/WinterTime
2024-01-09 22:37:18 +01:00
Armilar
a075e0cba8 Merge pull request #1133 from ticaki/main
2 Fixes
2024-01-09 21:46:44 +01:00
ticaki
dd14e66f10 update summer/winter fix 2024-01-09 21:24:52 +01:00
ticaki
ce0892b986 Fixed: update every minute
Fixed:  Schedule: {hour: minutes:} works with summer/winter time
2024-01-09 21:09:56 +01:00
Armilar
71b84cc8d3 Merge pull request #1131 from ticaki/main
schedule, 1 extendObject, relay show status of tasmota
2024-01-09 18:03:02 +01:00
ticaki
fd3ce243a6 update on replace 2024-01-08 22:29:08 +01:00
ticaki
aa3e90ef98 Get dp from NSPanelSendTopic 2024-01-08 22:23:06 +01:00
ticaki
2621b22ffd fix schedule 2024-01-08 21:55:53 +01:00
ticaki
6460f5f4ff Merge branch 'joBr99:main' into main 2024-01-08 20:28:46 +01:00
ticaki
e45560c27f add relays show status 2024-01-08 20:22:41 +01:00
ticaki
0c6cd158dd change schedule (testing needed)
add 1 extendObjectfor bgColorIndicator
2024-01-08 18:52:33 +01:00
dependabot[bot]
f11de05eb3 Bump github/codeql-action from 2 to 3 (#1094)
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 2 to 3.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/v2...v3)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-08 16:38:05 +01:00
Armilar
ef47efb9aa Merge pull request #1130 from joBr99/Armilar-patch-4
v4.3.3.34 - Bose Soundtouch final Proto
2024-01-08 11:33:06 +01:00
Armilar
54422eccaa v4.3.3.34 - Bose Soundtouch final Proto
Fix: Disabled Icon Status while bug by updating data points in ioBroker (reason unknown)
2024-01-08 11:29:19 +01:00
dependabot[bot]
02004f4b6d Bump home-assistant/builder from 2023.12.0 to 2024.01.0 (#1129)
Bumps [home-assistant/builder](https://github.com/home-assistant/builder) from 2023.12.0 to 2024.01.0.
- [Release notes](https://github.com/home-assistant/builder/releases)
- [Commits](https://github.com/home-assistant/builder/compare/2023.12.0...2024.01.0)

---
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-01-08 09:15:39 +01:00
Armilar
58278c5388 Merge pull request #1127 from joBr99/Armilar-patch-4
Fix Bose Soundtouch Proto
2024-01-07 23:44:53 +01:00
Armilar
ff7d2020f7 Update NSPanelTs.ts 2024-01-07 23:42:35 +01:00
Armilar
160420fe82 Merge pull request #1126 from kuckuckmann/patch-11
Update Alarm_Page_Erweitertes_Skript_mit_PopupNotifyPage.xml
2024-01-07 23:11:19 +01:00
kuckuckmann
56703ec458 Update Alarm_Page_Erweitertes_Skript_mit_PopupNotifyPage.xml
Add further Text to create String for ID
2024-01-07 18:28:37 +01:00
Armilar
9947664ae8 Merge pull request #1125 from kuckuckmann/patch-10
Update Alarm_Page_Erweitertes_Skript_mit_PopupNotifyPage.xml
2024-01-07 14:42:08 +01:00
kuckuckmann
4d3f54439e Update Alarm_Page_Erweitertes_Skript_mit_PopupNotifyPage.xml
Fix Number Value from decimal to integer value and convert to string for Datapoint PopupNotifyPage [string] at Block Value.
2024-01-07 14:41:07 +01:00
Armilar
6254f369f4 Merge pull request #1124 from ticaki/main
add namespace
2024-01-07 14:31:31 +01:00
ticaki
9b98cac4c8 More types without namespace for compatibility. 2024-01-07 13:49:36 +01:00
ticaki
71f3b75ab2 add namespace 2024-01-07 13:33:30 +01:00
Armilar
1a5cf8a2f7 Merge pull request #1122 from ticaki/main
1 Line warning for EHOSTUNREACH
2024-01-07 10:39:01 +01:00
ticaki
33712b198d Merge branch 'joBr99:main' into main 2024-01-07 00:06:33 +01:00
ticaki
1fd5784a54 1 Line warning for EHOSTUNREACH 2024-01-07 00:05:50 +01:00
Armilar
3904ca2343 Fix BoseSoundtouch Proto 2024-01-06 23:44:10 +01:00
Armilar
8ebd0f5193 Merge pull request #1121 from ticaki/main
some types and scriptname for menu
2024-01-06 20:46:45 +01:00
ticaki
8c9bca3f25 Merge branch 'joBr99:main' into main 2024-01-06 19:34:45 +01:00
ticaki
6908744669 some types and scriptname for menu 2024-01-06 19:32:26 +01:00
Armilar
d0e463de98 v4.3.3.33 - Hotfix
* Hotfix max Number of indicatorScreensaverEntity
* Beta Player Bose Soundtouch
2024-01-05 17:54:07 +01:00
Armilar
f4c7287dfd v4.3.3.33 - Update NSPanelTs.ts
Hotfix max Number of indicatorScreensaverEntity
2024-01-05 17:51:15 +01:00
Armilar
a33df14761 Merge pull request #1119 from ticaki/main
Fixed: HandleScreensaverUpdate: Cannot read properties of undefined
2024-01-05 17:38:08 +01:00
ticaki
3afc41269c Merge branch 'joBr99:main' into main 2024-01-05 17:22:49 +01:00
ticaki
11add2bfcc Fix screensaver bla of undefined 2024-01-05 17:22:21 +01:00
Armilar
dd84fa16e5 v4.3.3.33 - Update NSPanelTs.ts
Add Bose Soundtouch Functions
2024-01-05 14:30:34 +01:00
Armilar
e823c0f1ec Update NSPanelTs.ts
Add Bose Soundtouch Functions
2024-01-05 14:28:12 +01:00
Armilar
56c104a5bc v4.3.3.32 - Update NsPanelTs.ts
* Hotfix Spotify
* Add Types see commits
* v4.3.3.32 Add more details to types for: leftScreensaverEntity, indicatorScreensaverEntity, PageThermo, PageMedia 
* Remove not uses propertys from PageItem
* Add Body for BoseSoundtouch-Player
2024-01-05 12:55:36 +01:00
Armilar
bfb2c2eaab v4.3.3.32 - Update NSPanelTs.ts
* Hotfix Spotify
* Add Types see commits
* v4.3.3.32 Add more details to types for: leftScreensaverEntity, indicatorScreensaverEntity, PageThermo, PageMedia 
* Remove not uses propertys from PageItem
* Add Body for BoseSoundtouch-Player
2024-01-05 12:53:46 +01:00
Armilar
7d57205ac2 Merge pull request #1118 from ticaki/main
Add types, Remove not used Propertys
2024-01-05 12:48:06 +01:00
ticaki
4b81b1794d Reset NsPanelTS.ts from ./iobroker/ 2024-01-05 11:16:52 +01:00
ticaki
f5019b494f Reset NsPanelTS.ts from ./iobroker/ 2024-01-05 11:10:42 +01:00
ticaki
5102b8b955 Add Types for
ButtonActionType
EventMethod
SerialType
2024-01-05 11:06:53 +01:00
ticaki
089e553944 remove unused propertys
add types leftScreensaverEntityType
add types indicatorScreensaverEntityType
add types PageMediaItem
add types PageThermoItem
add types roles (common.role)
add types ButtonActionType
add alot undefined checks
add some type checks
merge 2 on() functions
2024-01-05 03:14:55 +01:00
ticaki
dfc07a6d76 Merge branch 'joBr99:main' into main 2024-01-04 22:36:50 +01:00
Armilar
b7687e006c v4.3.3.32 - Update NsPanelTs.ts
Hotfix Spotify Player
2024-01-04 22:23:56 +01:00
Armilar
10cf15bebd v4.3.3.32 - Update NSPanelTs.ts
Hotfix Spotify Player
2024-01-04 22:22:01 +01:00
Armilar
fc3d4adc72 Update NSPanelTs.ts 2024-01-04 22:15:47 +01:00
Armilar
bc330d5aaf Create NSPanelTs.ts 2024-01-04 22:14:03 +01:00
ticaki
c8a8feace2 some more types 2024-01-04 21:49:08 +01:00
Armilar
9afdaa4cbc v4.3.3.31 - Update NsPanelTs.ts
* Remove: autoCreateAlias from cardMedia
* Remove: adapterPlayerInstance from every card except cardMedia
* [dev]: optional with type - cardMedia has adapterPlayerInstance all other not 
* [dev]: add PlayerType some more work to do
* changed: adapterPlayerInstance instance 0-9 allowed. Always require a '.' at the end.
2024-01-03 21:11:51 +01:00
Armilar
18c7f2eb9c Merge pull request #1116 from ticaki/main
some more types
2024-01-03 21:01:29 +01:00
ticaki
de237171ef add cases 2024-01-03 20:53:15 +01:00
ticaki
a4b90944e8 typo 2024-01-03 20:17:53 +01:00
ticaki
cb44fcc8c9 add bose aliase 2024-01-03 20:16:13 +01:00
ticaki
03bae9e9bd add check for adapterPlayerInstanceType 2024-01-03 19:10:42 +01:00
ticaki
1ec463f6c7 type 2024-01-03 18:45:21 +01:00
ticaki
5420abcfaa adapterPlayerInstance more types 2024-01-03 18:38:45 +01:00
ticaki
e2530cdf62 typo in types 2024-01-03 17:38:53 +01:00
ticaki
b14687cb30 some more types 2024-01-03 17:04:07 +01:00
Armilar
360fb881f1 v4.3.3.30 - Update NsPanelTs.ts by Ticaki
- Überarbeitung der Types 
- Verbesserung der Variablenprüfung
- Bessere Fehleranzeige in der Konfiguration
2024-01-02 22:52:47 +01:00
Armilar
90d35a8574 Merge pull request #1113 from ticaki/main
v4.3.3.30 - Types work
2024-01-02 21:49:30 +01:00
ticaki
73a0ba468e ticaki for ever 2024-01-02 19:58:44 +01:00
ticaki
4e7119768b PageType in config 2024-01-02 18:32:39 +01:00
ticaki
8bfa6deb76 Add version 2024-01-02 17:52:31 +01:00
ticaki
e87febc54a cardUnlock partial usecolor 2024-01-02 17:46:29 +01:00
ticaki
43df10e823 Merge branch 'joBr99:main' into main 2024-01-02 17:37:09 +01:00
ticaki
e2acb70a1c some types 2024-01-02 17:36:30 +01:00
Armilar
f8774af675 Merge pull request #1112 from tt-tom17/Tasmota_Buzzer
v4.3.3.29 Update NSPanel.ts
2024-01-02 16:07:07 +01:00
Thomas
9ddb6c7834 Update NsPanelTs.ts 2024-01-02 15:53:38 +01:00
Thomas
330e5fecdf v4.3.3.29 Update NSPanel.ts
- Add Tasmota Buzzer for NotifyPage
- Fix ThermoPage -> UnSubScribsWatcher
2024-01-02 15:51:48 +01:00
ticaki
6cc41bf510 some types work 2024-01-02 14:05:03 +01:00
ticaki
956bd23a56 add types for ScreensaverEntityIconColor 2024-01-02 11:59:19 +01:00
ticaki
f1ce806ded fix cardMedia 2024-01-02 02:02:28 +01:00
ticaki
7748c22292 fix ActivePage 2024-01-01 23:30:31 +01:00
ticaki
131aa491b9 update config: Config 2024-01-01 22:09:19 +01:00
ticaki
dbc5ff7ccd fix typo 2024-01-01 21:55:22 +01:00
ticaki
5c3f366e53 fix types 2024-01-01 21:53:13 +01:00
Armilar
b1b679701e Merge pull request #1110 from joBr99/Armilar-patch-4
v4.3.3.28 - Update NsPanelTs.ts
2023-12-31 11:43:28 +01:00
Armilar
c489f07c0a v4.3.3.28 - Update NsPanelTs.ts
- Fix short ID's in v4.3.3.27
- Fix window Icons in CreateEntity 
- Add MQTT-Client Check
2023-12-31 11:33:40 +01:00
Armilar
14bc7dedec v4.3.3.28 - Update NsPanelTs.ts
- Fix short ID's in v4.3.3.27
- Fix window Icons in CreateEntity 
- Add MQTT-Client Check
2023-12-30 14:15:54 +01:00
Armilar
d4067c5ddb v4.3.3.28 - Update NsPanelTs.ts
- Fix short ID's in v4.3.3.27
- Fix window Icons in CreateEntity 
- Add MQTT-Client Check
2023-12-30 11:56:31 +01:00
Armilar
50209418d7 v4.3.3.28 - Update NsPanelTs.ts
- short ID's
- Fix windows open/close in createEntity
2023-12-30 11:23:09 +01:00
Armilar
8f3c74165d v4.3.3.26 - Downgrade NsPanelTs.ts
Bug with inSel-Popup in v4.3.3.27
2023-12-29 12:27:21 +01:00
Armilar
b7b8f389eb Merge pull request #1108 from tt-tom17/PageId
v4.3.3.27 Update NSPanel.ts
2023-12-28 14:51:14 +01:00
Thomas
9082ed20f3 v4.3.3.27 Update NSPanel.ts
- Fix Payload (pageItem.id -> placeId) by Function CreateEntity
- Fix Fallback PageItem.name by Function CreateEntity
2023-12-28 14:40:09 +01:00
Thomas
f807406a97 Update NsPanelTs.ts 2023-12-28 10:23:02 +01:00
Thomas
93aafe259b Update NsPanelTs.ts
Ablösung pageItem.id durch placeId
2023-12-28 09:46:05 +01:00
Armilar
b96fc6e6bd Merge pull request #1105 from tt-tom17/main
v4.3.3.26 - Update NSPanel.ts
2023-12-26 20:55:31 +01:00
joBr99
1996b29c60 . 2023-12-26 12:04:00 +01:00
Thomas
c8eb476ca8 Merge pull request #1 from tt-tom17/Log-JSON-Convert
v4.3.3.26 - Update NSPanel.ts
2023-12-26 00:52:26 +01:00
Thomas
aeaa995a0a v4.3.3.26 - Update NSPanel.ts
Fix Log output payload -> Json.stringify
2023-12-26 00:51:23 +01:00
Thomas
b35122868f Update NsPanelTs.ts 2023-12-26 00:45:48 +01:00
Thomas
1cb974494f Update NsPanelTs.ts
Fix Log output payload -> Json.stringify
2023-12-25 14:57:04 +01:00
Armilar
723ecde4cd 4.3.3.25 - Update NsPanelTs.ts
Remove Example
2023-12-22 16:30:02 +01:00
Armilar
f29e5c4978 Merge pull request #1100 from tt-tom17/main
v4.3.3.25 - Update NSPanel.ts
2023-12-22 13:57:08 +01:00
Thomas
46ffff7eea Update ioBroker_NSPanel_locales.json
Tag "qr" supplemented
2023-12-22 13:28:10 +01:00
Thomas
774c920591 v4.3.3.25 - Update NSPanel.ts
Add switch of cardQR by hidePassword: true
2023-12-22 13:25:56 +01:00
Thomas
f27eb07827 v4.3.3.25 - Update NSPanel.ts
Add switch of cardQR by hidePassword: true
2023-12-21 12:25:58 +01:00
Armilar
da8362d81d Merge pull request #1097 from joBr99/Armilar-patch-3
v4.3.3.24 - Update NsPanelTs.ts
2023-12-18 16:45:58 +01:00
Armilar
6e38d4f38d v4.3.3.24 - Update NsPanelTs.ts
* Log info commented out
2023-12-18 16:41:49 +01:00
Armilar
2344c9a9ed v4.3.3.24 - Update NsPanelTs.ts
* Hotfix Update Message
* Add Icon Colors to Entity Button
* Add Color-Const Cyan & Magenta
2023-12-18 16:37:46 +01:00
dependabot[bot]
5180f0f869 Bump home-assistant/builder from 2023.09.0 to 2023.12.0 (#1095)
Bumps [home-assistant/builder](https://github.com/home-assistant/builder) from 2023.09.0 to 2023.12.0.
- [Release notes](https://github.com/home-assistant/builder/releases)
- [Commits](https://github.com/home-assistant/builder/compare/2023.09.0...2023.12.0)

---
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>
2023-12-18 11:11:52 +01:00
Armilar
b4f2789834 Merge pull request #1093 from joBr99/Armilar-patch-3
v4.3.3.23 - Update NsPanelTs.ts
2023-12-17 17:09:39 +01:00
Armilar
78c6029200 v4.3.3.23 - Update NsPanelTs.ts
Optimization of the blind control (enable or disable Up/Stop/Down)
2023-12-17 17:07:53 +01:00
Armilar
dca112e42b v4.3.3.23 - Update NsPanelTs.ts
Optimization of the blind control (enable or disable Up/Stop/Down)
2023-12-17 17:04:29 +01:00
Armilar
5ad16dd735 Update Countdown_Timer.ts 2023-12-16 10:42:51 +01:00
joBr99
723be0735e . 2023-12-15 14:29:31 +01:00
joBr99
a5bfb9388f . 2023-12-15 14:16:59 +01:00
joBr99
9c6f24f984 Merge branch 'main' of github.com:joBr99/nspanel-lovelace-ui 2023-12-15 14:09:52 +01:00
joBr99
59843ffea5 . 2023-12-15 14:09:25 +01:00
Armilar
4de9c4a12f 4.3.3.22 - Update ioBroker_NSPanel_locales_service.json
Update Notifications
2023-12-14 23:13:44 +01:00
Armilar
3eb05e5a84 4.3.3.22 - Update NsPanelTs.ts 2023-12-14 23:08:14 +01:00
Armilar
5d7a7ed1a4 Merge pull request #1090 from tt-tom17/main
v4.3.3.22 Update NSPanel.ts
2023-12-14 22:44:30 +01:00
Thomas
7124a22c38 v4.3.3.22 Update NSPanel.ts
- Add UpdateMessage => disable the update messages
- Fix name by static Navi Icon
- Fix colorscale by Role Info
2023-12-14 22:36:41 +01:00
Armilar
fa4d65a383 Merge pull request #1089 from tt-tom17/main
Update Alarm_clock.ts
2023-12-13 22:01:03 +01:00
Thomas
d26306f892 Update Alarm_clock.ts
fix dpAction to val: true
2023-12-13 21:55:33 +01:00
joBr99
9c0bb037fb Merge branch 'main' of github.com:joBr99/nspanel-lovelace-ui 2023-12-13 16:50:46 +01:00
joBr99
4b73e20b9b implement templtates for brightness 2023-12-13 16:50:28 +01:00
dependabot[bot]
3940a0c2e9 Bump actions/setup-python from 4 to 5 (#1087)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-13 14:22:56 +01:00
Armilar
8f57d4a642 v4.3.3.21 - Update NsPanelTs.ts
- Add createAutoALias to popupTimer only for Time
2023-12-09 11:19:38 +01:00
Armilar
3979fdf6a0 Create Countdown_Timer.ts 2023-12-08 22:58:24 +01:00
Armilar
4cd47126eb Create Alarm_clock.ts 2023-12-08 22:54:16 +01:00
Armilar
eb0dd79c80 v4.3.3.20 - Update ioBroker_NSPanel_locales.json 2023-12-08 22:41:11 +01:00
Armilar
3a39a8ca0e Merge pull request #1086 from tt-tom17/main
v4.3.3.20 - Update NSPanel.ts
2023-12-08 22:27:04 +01:00
Armilar
b5c4a2128b v4.3.3.20 - Update NsPanelTs.ts
Remove semicolon
2023-12-08 22:25:04 +01:00
Armilar
41f43fe5d0 v4.3.3.20 - Update NsPanelTs.ts
Remove Example
2023-12-08 22:22:44 +01:00
Armilar
f3f93b7136 v4.3.3.12 - Update NsPanelTs.ts 2023-12-08 22:20:08 +01:00
joBr99
2fb1855842 fixed binary sensors 2023-12-08 22:09:35 +01:00
Thomas
9a3627427f v4.3.3.20 - Update NSPanel.ts
add Role AlarmTime for Alarm Clock
2023-12-08 20:24:23 +01:00
Armilar
94fbf0a5f7 Merge pull request #1084 from joBr99/Armilar-patch-2
v4.3.3.19 - Update NsPanelTs.ts
2023-12-07 20:02:54 +01:00
Armilar
caddec1190 v4.3.3.19 - Update NsPanelTs.ts
- Fix Trigger activeDimmodeBrightness if Dimmode = -1
2023-12-07 20:02:12 +01:00
Armilar
03367ea27d v4.3.3.19 - Update NsPanelTs.ts
- Fix Trigger activeDimmodeBrightness if Dimmode = -1
2023-12-07 19:58:21 +01:00
Armilar
8e792ae8fc Merge pull request #1083 from joBr99/Armilar-patch-1
v4.3.3.18 - Update NsPanelTs.ts
2023-12-06 22:00:28 +01:00
Armilar
0a03f736ce v4.3.3.18 - Update NsPanelTs.ts
- Add (ELAPSED/DURATION) to v2Adapter alexa2
- Replace missing Type console.log --> log(message, 'serverity')
2023-12-06 21:49:15 +01:00
Armilar
8d7f6ffea5 v4.3.3.18 - Update NsPanelTs.ts
- Add (ELAPSED/DURATION) to v2Adapter alexa2
- Replace missing Type console.log --> log(message, 'serverity')
2023-12-06 15:20:28 +01:00
Armilar
93a6a7a88a v4.3.3.17 - Update NsPanelTs.ts
Add SEEK and CROSSFADE to Sonos cardMedia
2023-12-04 23:01:01 +01:00
Armilar
3913b17596 Update ioBroker_NSPanel_locales.json 2023-12-04 22:06:42 +01:00
Armilar
d08e8eb40c Update ioBroker_NSPanel_locales.json 2023-12-04 21:57:44 +01:00
Johannes
c2d281658e Update panel_cmd.py 2023-12-03 16:25:17 +01:00
joBr99
108582cbfb fix 2023-12-02 16:27:50 +01:00
joBr99
b17db265f4 implement temp unit 2023-12-02 16:26:28 +01:00
joBr99
206739dcc5 implement popup on card thermo 2023-12-02 16:20:31 +01:00
joBr99
adcb618a11 . 2023-12-02 14:23:43 +01:00
joBr99
dfba3b6e84 Merge branch 'main' of github.com:joBr99/nspanel-lovelace-ui 2023-12-02 14:11:25 +01:00
joBr99
2726859135 implement input_select and select for light effects 2023-12-02 14:10:53 +01:00
Armilar
c0e20e6f25 Merge pull request #1077 from joBr99/Armilar-patch-1
v4.3.3.16 - Update NsPanelTs.ts
2023-12-02 13:02:38 +01:00
Armilar
148c2fc5a2 v4.3.3.16 - Update NsPanelTs.ts
- Beautification of the Sonos player Strings / Add Duration & Elapsed
- Fix Datapoints with Value null with -1
- Request replaced by Axios
2023-12-02 00:50:11 +01:00
Armilar
526f5e8946 v4.3.3.16 - Update NsPanelTs.ts
- Beautification of the Sonos player Strings / Add Duration & Elapsed
- Fix Datapoints with Value null with -1
- Request replaced by Axios
2023-12-02 00:36:00 +01:00
joBr99
8cd17b9d9a . 2023-12-02 00:03:22 +01:00
joBr99
70ff46ab4b . 2023-12-01 23:59:59 +01:00
joBr99
770348b07b . 2023-12-01 23:48:11 +01:00
joBr99
4795cc23ad fix state update bug with iid 2023-12-01 23:39:49 +01:00
joBr99
bae64dcee5 do not init mqtt in case ha api is used 2023-12-01 23:28:58 +01:00
joBr99
953a8d7110 . 2023-12-01 23:26:52 +01:00
joBr99
3b5eaac976 initial implementation of esphome api comm 2023-12-01 23:26:27 +01:00
joBr99
6e28237ec5 Merge branch 'main' of github.com:joBr99/nspanel-lovelace-ui 2023-12-01 19:55:36 +01:00
joBr99
b8c47948c3 add queue for outgoing messages 2023-12-01 19:55:29 +01:00
Armilar
0e8f9ad220 Merge pull request #1075 from tt-tom17/main
v4.3.3.15 - Update NsPanelTs.ts
2023-12-01 13:11:13 +01:00
Thomas
79e43e2740 Update NsPanelTs.ts
fix activeDimmodeBrightness -> value -1
fix bExitPage -> value -1
2023-12-01 11:22:01 +01:00
joBr99
c32d2958a6 . 2023-11-30 17:48:31 +01:00
joBr99
3b7c934972 . 2023-11-30 17:43:53 +01:00
joBr99
40f29d09c1 . 2023-11-30 17:39:04 +01:00
joBr99
b601f2d860 . 2023-11-30 17:32:21 +01:00
joBr99
5953d7c8dd . 2023-11-30 17:25:32 +01:00
joBr99
e9859c0d32 . 2023-11-30 17:20:12 +01:00
joBr99
4ad997515f Merge branch 'main' of github.com:joBr99/nspanel-lovelace-ui 2023-11-30 17:15:03 +01:00
joBr99
ba637cf11e . 2023-11-30 17:14:41 +01:00
Armilar
a4abcd1734 Merge pull request #1074 from joBr99/Armilar-patch-1
v4.3.3.15 - Minor bug fixes
2023-11-30 00:06:06 +01:00
Armilar
86bbd36813 v4.3.3.15 - Regex Tracklist
- Regex Tracklist
2023-11-30 00:04:52 +01:00
Armilar
c9dffc431c v4.3.3.15 - Minor bug fixes
- Fix cardMedia Volume-Slider
- Add Init Release to Startup
2023-11-29 21:24:02 +01:00
joBr99
04ffd6257e . 2023-11-29 17:25:25 +01:00
Johannes
4102f56cee Update docs-release.yml 2023-11-28 23:46:03 +01:00
Johannes
6a62a6206a Update docs-release.yml 2023-11-28 23:44:30 +01:00
Johannes
0bddceccfa Update docs-release.yml 2023-11-28 23:44:16 +01:00
Johannes
09156fbc89 Update docs-release.yml 2023-11-28 23:43:18 +01:00
joBr99
76d0075c7d . 2023-11-28 23:41:28 +01:00
Johannes
6eab35ddd0 Update docs.yml 2023-11-28 21:43:07 +01:00
Johannes
495e63dacc Update docs.yml 2023-11-28 21:38:42 +01:00
Johannes
d965e7c7df Update docs.yml 2023-11-28 21:35:23 +01:00
Johannes
060f2bd8de Update mkdocs.yml 2023-11-28 21:35:19 +01:00
Johannes
17585f3c75 Update config.yaml 2023-11-28 16:42:36 +01:00
joBr99
79303ade8b Merge branch 'main' of github.com:joBr99/nspanel-lovelace-ui 2023-11-28 16:41:34 +01:00
joBr99
d7e417eaf7 implement cardunlock 2023-11-28 16:41:26 +01:00
Johannes
9622c65eb5 Update faq.md 2023-11-28 12:56:32 +01:00
Johannes
16ee1fb1c2 Update configure_mqtt.md 2023-11-28 12:51:19 +01:00
Johannes
fd7d4bca24 Update faq.md 2023-11-28 12:49:57 +01:00
joBr99
a4627e8589 Merge branch 'main' of github.com:joBr99/nspanel-lovelace-ui (add nextion2text) 2023-11-27 23:29:02 +00:00
joBr99
51dd978c8c Merge branch 'main' of github.com:joBr99/nspanel-lovelace-ui 2023-11-28 00:25:40 +01:00
joBr99
1521a45dc1 hide btDetail 2023-11-28 00:25:31 +01:00
joBr99
03ac046feb hide elements on cardThermo (add nextion2text) 2023-11-27 23:21:45 +00:00
joBr99
ff9dc6c71e hide elements on cardThermo 2023-11-28 00:18:36 +01:00
Armilar
f8c6b80438 Update ioBroker_NSPanel_locales_beta.json 2023-11-27 22:10:16 +01:00
Armilar
56c8b07e2e Update ioBroker_NSPanel_locales.json 2023-11-27 22:09:54 +01:00
Armilar
cd628038b4 Update ioBroker_NSPanel_locales.json 2023-11-27 21:35:14 +01:00
Armilar
efeebe6a86 Merge pull request #1070 from joBr99/Armilar-patch-4
v4.3.3.14 - Update NsPanelTs.ts
2023-11-27 16:06:25 +01:00
Armilar
ce6717292a v4.3.3.14 - Update NsPanelTs.ts
- Refactoring Sonos-Player (with Playlist, Tracklist, Favorites, Eqalizer (if no Favorites))
- minor Fixes with other Media-Players
2023-11-27 15:58:08 +01:00
Armilar
c5b5002d27 v4.3.3.14 - Update NsPanelTs.ts
- Refactoring Sonos-Player (with Playlist, Tracklist, Favorites, Eqalizer (if no Favorites))
- minor Bug-Fixes
2023-11-27 15:52:52 +01:00
Armilar
4daa6dbb78 Update ioBroker_NSPanel_locales.json 2023-11-27 13:42:38 +01:00
joBr99
7ffe37117b . 2023-11-27 00:45:56 +01:00
joBr99
112fe16f29 . 2023-11-27 00:34:51 +01:00
joBr99
361a125118 merge 2023-11-27 00:29:20 +01:00
joBr99
6bd9b34f96 . 2023-11-27 00:28:48 +01:00
Johannes
4938b5794a Update config.yaml 2023-11-26 23:55:34 +01:00
joBr99
0e2e11655c Merge branch 'main' of github.com:joBr99/nspanel-lovelace-ui 2023-11-26 23:47:25 +01:00
joBr99
4c591ca8e1 . 2023-11-26 23:47:12 +01:00
Johannes
7b811ca0f8 Update config.yaml 2023-11-26 18:44:13 +01:00
Johannes
46e18d0954 Update panels.yaml.example 2023-11-26 18:35:21 +01:00
Johannes
9df7afbf01 Update config.yaml 2023-11-26 18:18:46 +01:00
joBr99
6d6ebb5ccc Merge branch 'main' of github.com:joBr99/nspanel-lovelace-ui 2023-11-26 18:17:49 +01:00
joBr99
41fe5ebd82 fix icon overwrite for internal entities 2023-11-26 18:17:37 +01:00
Armilar
1e2f4f4ca2 Merge pull request #1068 from joBr99/Armilar-patch-4
v4.3.3.13 - Update NsPanelTs.ts
2023-11-26 15:28:07 +01:00
Armilar
9a084c58bb v4.3.3.13 - Update NsPanelTs.ts
Version
2023-11-26 15:23:39 +01:00
Armilar
0d66a1f4f2 v4.3.3.13 - Update NsPanelTs.ts
- Separation of page creation and page updates in cardMedia
- Add alwaysOnDisplay to cardMedia - Leave display on if the alwaysOnDisplay parameter is "true"
- Fix Sonos Repeat/Shuffle
- Translations
2023-11-26 15:21:42 +01:00
joBr99
ad891115a9 . 2023-11-26 13:02:18 +01:00
joBr99
b38189d63e merge 2023-11-26 12:14:59 +01:00
joBr99
900e1aef46 add extended logging feats 2023-11-26 12:14:15 +01:00
Johannes
2a43a96f9a Update config.yaml 2023-11-25 22:03:12 +01:00
Johannes
11827bf68b Update ha_control.py 2023-11-25 22:01:35 +01:00
joBr99
bc3d58d406 bump version 2023-11-25 20:18:21 +01:00
joBr99
4aed6f672e Merge branch 'main' of github.com:joBr99/nspanel-lovelace-ui 2023-11-25 20:17:49 +01:00
joBr99
f40235bb2e fix 2023-11-25 20:17:43 +01:00
Johannes
67d323da42 bump version 2023-11-25 19:32:54 +01:00
joBr99
2801509215 bump version 2023-11-25 19:26:47 +01:00
joBr99
bb38dda0cb implement timer popup 2023-11-25 19:25:03 +01:00
joBr99
69830d82f7 implements #763 2023-11-25 19:05:02 +01:00
joBr99
b6c3444a55 implement cover and fan popup 2023-11-25 18:39:02 +01:00
joBr99
172f8d8ad4 Merge branch 'main' of github.com:joBr99/nspanel-lovelace-ui 2023-11-25 18:17:56 +01:00
joBr99
5ab207504d implement homeassistant template caching 2023-11-25 18:17:21 +01:00
Armilar
ec0ffc3584 v4.3.3.12 - Update NsPanelTs.ts
- Separation of page creation and page updates in cardPower
- Add alwaysOnDisplay to cardPower - Leave display on if the alwaysOnDisplay parameter is "true"
- Some translations
2023-11-25 18:16:06 +01:00
Johannes
2303446958 Update config.yaml 2023-11-25 01:17:16 +01:00
joBr99
36f2c85ffe . 2023-11-25 01:12:50 +01:00
Johannes
655edc071f move each panel to it's own thread (#1066) 2023-11-25 01:04:09 +01:00
joBr99
2c3bd3a88e fix callbacks 2023-11-25 00:54:34 +01:00
joBr99
2944044a4a fix template icons without <I></I> 2023-11-24 23:51:52 +01:00
joBr99
e846ac4923 fix icon template rendering 2023-11-24 23:18:49 +01:00
joBr99
2f2bc406f2 fix icon rendering 2023-11-24 23:11:22 +01:00
joBr99
9a4a42f7ac send dimmode and timeout only on startup and update 2023-11-24 22:31:33 +01:00
joBr99
99ebaa0364 install python in devcontainer 2023-11-24 22:04:12 +01:00
Johannes
4b651db8dc Update config.yaml 2023-11-24 21:22:24 +01:00
Johannes
27f214c633 Update ha_cards.py 2023-11-24 21:22:07 +01:00
Johannes
c59107a137 Update config.yaml 2023-11-24 21:10:23 +01:00
Johannes
46a3c4b612 Update panel.py 2023-11-24 21:10:08 +01:00
joBr99
658348b4fd Merge branch 'main' of github.com:joBr99/nspanel-lovelace-ui (add nextion2text) 2023-11-24 20:03:19 +00:00
joBr99
896ffe1282 Merge branch 'main' of github.com:joBr99/nspanel-lovelace-ui 2023-11-24 21:00:41 +01:00
joBr99
d82ffc3617 . 2023-11-24 21:00:35 +01:00
joBr99
8d83d727f3 . (add nextion2text) 2023-11-24 18:12:29 +00:00
joBr99
c6e49bbf80 . 2023-11-24 19:09:41 +01:00
joBr99
349db170a6 add event for page open (add nextion2text) 2023-11-24 17:58:17 +00:00
joBr99
3f2dac39a0 add event for page open 2023-11-24 18:55:41 +01:00
joBr99
439eb9309a . 2023-11-24 18:11:04 +01:00
joBr99
c49f214bec implement some local templates 2023-11-24 16:34:14 +01:00
Johannes
7fb347063c Update config.yaml 2023-11-24 16:27:05 +01:00
Johannes
da91c282b7 Update apparmor.txt 2023-11-24 16:26:50 +01:00
joBr99
ff5a9d2274 Merge branch 'main' of github.com:joBr99/nspanel-lovelace-ui 2023-11-24 15:27:23 +01:00
joBr99
fce9265b5d do not force supervised settings in case env var is set and config is there 2023-11-24 15:27:10 +01:00
Armilar
7b39a5e2b1 v4.3.3.11 - Merge pull request #1064 from tt-tom17/main
v4.3.3.11 - Update NsPanelTS.ts
2023-11-24 10:24:43 +01:00
Armilar
7b513f901c v4.3.3.11 - Update NsPanelTs.ts 2023-11-24 10:22:35 +01:00
Thomas
6e6b70c89f v4.3.3.11 - Update NsPanelTS.ts
Add autoCreateALias to PageQR
2023-11-24 10:11:07 +01:00
joBr99
e0294195b9 . 2023-11-23 21:14:25 +01:00
joBr99
7ecad206dc . 2023-11-23 20:53:12 +01:00
joBr99
254aa2d043 . 2023-11-23 20:47:24 +01:00
joBr99
1b4c435fab some fixes 2023-11-23 20:40:16 +01:00
joBr99
55688549fa bump version 2023-11-23 19:28:00 +01:00
joBr99
fb69d05f06 implement status override 2023-11-23 19:27:19 +01:00
joBr99
cde1aeda0e Merge branch 'main' of github.com:joBr99/nspanel-lovelace-ui 2023-11-23 19:12:42 +01:00
joBr99
2816fa88e4 implement navigation up 2023-11-23 19:12:30 +01:00
joBr99
9cc31b6e5b error handling for invalid config file 2023-11-23 19:12:15 +01:00
Armilar
8f34fbf7a7 v4.3.3.10 - Merge pull request #1062 from tt-tom17/main
v4.3.3.10 - Code optimization in Config Area
2023-11-22 19:45:16 +01:00
Armilar
32df87d8bd v4.3.3.10 - Update NsPanelTs.ts
Code optimization in Config Area
2023-11-22 19:40:51 +01:00
Thomas
50302c1fd4 v4.3.3.10
Code optimization
2023-11-22 19:10:40 +01:00
Johannes
7f4bb973b1 Update config.yaml 2023-11-22 17:43:13 +01:00
joBr99
a542ba39aa implement status icons 2023-11-22 17:40:36 +01:00
joBr99
7f8b013381 implement cardalarm 2023-11-21 18:39:38 +01:00
joBr99
e455d50738 implement some more actions 2023-11-21 18:15:34 +01:00
joBr99
50533dd2a6 bump version 2023-11-21 17:22:15 +01:00
joBr99
f432e14f3e . 2023-11-21 17:21:33 +01:00
joBr99
7cc1c6ec77 Merge branch 'main' of github.com:joBr99/nspanel-lovelace-ui 2023-11-20 21:38:33 +01:00
joBr99
3a8293d266 . 2023-11-20 21:38:18 +01:00
Johannes
b5bc19443a Update config.yaml 2023-11-20 21:08:39 +01:00
joBr99
d58bf81600 bump 2023-11-20 21:03:23 +01:00
joBr99
8398684cc6 move config file 2023-11-20 21:01:08 +01:00
joBr99
53deb3ab85 fix 2023-11-20 20:33:27 +01:00
joBr99
d86057ef76 fix 2023-11-20 20:18:39 +01:00
joBr99
66a3dab237 fix 2023-11-20 20:15:55 +01:00
joBr99
6e9bab3502 fix 2023-11-20 20:12:48 +01:00
joBr99
ebdb9bc2c1 implement sleepmodes 2023-11-20 20:03:13 +01:00
joBr99
694b231983 implement sleepmodes 2023-11-20 20:02:53 +01:00
joBr99
3e56cf7d8c Merge branch 'main' of github.com:joBr99/nspanel-lovelace-ui 2023-11-20 19:56:41 +01:00
Armilar
c1e8f7df04 v4.3.3.9 - Update NsPanelTs.ts
Add ScreensaverEntityOnColor, ...OffColor, ...OnText, ...OffText
2023-11-20 18:45:16 +01:00
joBr99
c0ebe4a397 implement sleeptimeout 2023-11-20 18:41:09 +01:00
joBr99
3dcb91b276 implement doubletaptounlock 2023-11-20 18:09:35 +01:00
joBr99
6a7606b3e0 . 2023-11-20 17:54:30 +01:00
joBr99
6af48209e6 implement name overwrite 2023-11-20 17:27:18 +01:00
joBr99
deefe6b33a . 2023-11-20 17:25:08 +01:00
joBr99
8a1b583794 implement icon overwrite 2023-11-20 17:18:22 +01:00
joBr99
b55d2b9c06 implement topic config 2023-11-20 16:57:25 +01:00
Armilar
891230144a Merge pull request #1056 from Armilar/main
These branches can be automatically merged.
2023-11-20 16:53:38 +01:00
Armilar
58ea667430 Merge branch 'joBr99:main' into main 2023-11-20 16:52:54 +01:00
Armilar
8ba8bb6488 v4.3.3.8 - Update NsPanelTs.ts
v4.3.3.8  Add Method dayjs (Multilingualism), some Minor Fixes
2023-11-20 16:51:57 +01:00
Armilar
4062b31b7d Merge pull request #4 from Armilar/Armilar-patch-4
v4.3.3.8 - Update NsPanelTs.ts
2023-11-20 16:47:55 +01:00
Armilar
59cc0fc887 v4.3.3.8 - Update NsPanelTs.ts
v4.3.3.8  Add Method dayjs (Multilingualism), some Minor Fixes
2023-11-20 16:46:56 +01:00
joBr99
521cbabee8 Merge branch 'main' of github.com:joBr99/nspanel-lovelace-ui 2023-11-20 16:45:56 +01:00
joBr99
f897ae9b9d Merge branch 'main' of github.com:joBr99/nspanel-lovelace-ui 2023-11-20 16:45:25 +01:00
joBr99
55c554910b Merge branch 'main' of github.com:joBr99/nspanel-lovelace-ui 2023-11-20 16:43:00 +01:00
joBr99
c61f0c4906 . 2023-11-20 16:42:43 +01:00
Armilar
336a0b61a3 Merge pull request #1055 from Armilar/main
These branches can be automatically merged.
2023-11-20 14:25:00 +01:00
Armilar
ac7ca6d621 Merge pull request #3 from Armilar/Armilar-patch-3
v4.3.3.7 - Update NsPanelTs.ts
2023-11-20 14:21:12 +01:00
Armilar
6245a8e12f v4.3.3.7 - Update NsPanelTs.ts 2023-11-20 14:18:57 +01:00
Armilar
8897ec01ec Merge pull request #1054 from Armilar/main
Able to merge.
2023-11-20 14:12:14 +01:00
Armilar
1e79f6385b Merge branch 'joBr99:main' into main 2023-11-20 14:10:26 +01:00
Armilar
8d413cabb8 Update ioBroker_NSPanel_locales.json 2023-11-20 14:02:07 +01:00
Armilar
99d013c039 Update ioBroker_NSPanel_locales.json 2023-11-20 13:59:42 +01:00
Armilar
03f65daef3 Update ioBroker_NSPanel_locales.json 2023-11-20 13:51:35 +01:00
Armilar
f86768c95b Update ioBroker_NSPanel_locales.json 2023-11-20 13:42:12 +01:00
Armilar
1a7c9abb16 Update ioBroker_NSPanel_locales_beta.json 2023-11-20 13:41:51 +01:00
Armilar
c961cf9fde Update ioBroker_NSPanel_locales_beta.json 2023-11-20 13:40:25 +01:00
Armilar
acbaa43ee6 Update ioBroker_NSPanel_locales.json 2023-11-20 13:40:01 +01:00
Armilar
cbdc6f6f77 Merge pull request #1053 from tt-tom17/AlarmPage (add nextion2text) 2023-11-20 12:00:33 +00:00
Armilar
75b6a07995 Merge pull request #1053 from tt-tom17/AlarmPage
v4.3.3.6
2023-11-20 12:53:37 +01:00
Armilar
85e6eb6f73 4.3.3.6 - Update NsPanelTs.ts 2023-11-20 12:49:42 +01:00
Thomas
c2599ed4a3 v4.3.3.6
- Add autoCreateALias to PageAlarm
- Add actionStringArray to PageAlarm
2023-11-20 12:03:27 +01:00
Thomas
0fa7e8f562 v4.3.3.x
-auto create Alais for PageAlarm
-variable String for Button on PageAlarm
2023-11-20 11:51:00 +01:00
Thomas
b1d0ad8e16 v4.3.3.x
create Alias for PageAlarm
2023-11-20 10:43:08 +01:00
Stephan Leuschner
e0762f504e Minor cleanup relating to app restart code 2023-11-19 19:24:34 -05:00
Stephan Leuschner
453537ff68 restart app on config.yml change 2023-11-19 19:18:37 -05:00
joBr99
069087c48b . 2023-11-20 00:30:34 +01:00
joBr99
19eae41c33 . 2023-11-20 00:09:45 +01:00
joBr99
202260c1d6 . 2023-11-19 23:49:58 +01:00
joBr99
067b2bd75a implement screensaver 2023-11-19 23:28:54 +01:00
joBr99
2a6643eb68 . 2023-11-19 23:14:07 +01:00
joBr99
59390cc6ec Merge branch 'main' of github.com:joBr99/nspanel-lovelace-ui 2023-11-19 23:12:41 +01:00
joBr99
b20ba7a761 . 2023-11-19 23:12:35 +01:00
Stephan Leuschner
039043fe5b use timeZone from panel config 2023-11-19 17:00:55 -05:00
joBr99
116153e77b implement cardPower 2023-11-19 22:08:46 +01:00
joBr99
1552374ce7 implement cardqr 2023-11-19 22:00:04 +01:00
joBr99
21acb9115d implement some more actions 2023-11-19 21:03:42 +01:00
Stephan Leuschner
64ca6b9a41 fix permission of run.sh 2023-11-19 14:55:28 -05:00
Stephan Leuschner
c05f58fb5e attempt to fix addon on real instance, outside devcontainer 2023-11-19 14:50:04 -05:00
joBr99
6fe763c3ae Merge branch 'main' of github.com:joBr99/nspanel-lovelace-ui 2023-11-19 20:01:36 +01:00
joBr99
2777ce56ea . 2023-11-19 20:01:23 +01:00
Stephan Leuschner
1678dadcbe if home_assistant_token is in settings the use that for external HA server 2023-11-19 13:20:45 -05:00
joBr99
9ab66b741d Merge branch 'main' of github.com:joBr99/nspanel-lovelace-ui 2023-11-19 19:17:23 +01:00
joBr99
13ec7b606e . 2023-11-19 19:17:16 +01:00
Johannes
e96e5821d0 Update config.yaml 2023-11-19 19:07:08 +01:00
joBr99
6df63ea67e fix callback 2023-11-19 18:50:48 +01:00
joBr99
f0c0281ac2 . 2023-11-19 18:44:06 +01:00
joBr99
b9d9fc565e Merge branch 'main' of github.com:joBr99/nspanel-lovelace-ui 2023-11-19 18:43:31 +01:00
joBr99
6111c3530c upd 2023-11-19 18:43:22 +01:00
Stephan Leuschner
2ba9eae7e6 improve extraction of env variables 2023-11-19 12:37:21 -05:00
joBr99
431a93a7ff . 2023-11-19 18:29:12 +01:00
joBr99
5d3e836156 fix addon startup 2023-11-19 17:29:19 +01:00
joBr99
c1234e2c16 . 2023-11-19 16:13:25 +01:00
joBr99
aaf30e3bc2 add devcontainer 2023-11-19 16:07:20 +01:00
joBr99
aa5e935499 . 2023-11-19 15:55:59 +01:00
joBr99
77e9258bd7 . 2023-11-19 15:54:46 +01:00
Johannes
6ba94f49d4 Update config.yaml 2023-11-19 15:04:37 +01:00
joBr99
264fef1142 fix docker 2023-11-19 14:59:40 +01:00
joBr99
a8be9a46c8 merge 2023-11-19 14:21:55 +01:00
joBr99
e8366d438c Merge branch 'main' of github.com:joBr99/nspanel-lovelace-ui 2023-11-19 14:21:43 +01:00
joBr99
c915c72ef2 fix dockerfile 2023-11-19 14:21:04 +01:00
Johannes
656ced6a2f Update config.yaml 2023-11-19 13:49:37 +01:00
joBr99
cf0739b76a move req txt 2023-11-19 13:44:14 +01:00
joBr99
8a572f2961 add python to container 2023-11-19 13:42:15 +01:00
Johannes
d7ce6421a0 Update config.yaml 2023-11-19 13:02:25 +01:00
dependabot[bot]
60a59e6c63 Bump actions/setup-python from 2 to 4 (#1049)
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 2 to 4.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/v2...v4)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-19 12:50:35 +01:00
joBr99
5acaa0736d Bump stefanzweifel/git-auto-commit-action from 4 to 5 (#1048) (add nextion2text) 2023-11-19 11:50:10 +00:00
dependabot[bot]
640e7b231f Bump stefanzweifel/git-auto-commit-action from 4 to 5 (#1048)
Bumps [stefanzweifel/git-auto-commit-action](https://github.com/stefanzweifel/git-auto-commit-action) from 4 to 5.
- [Release notes](https://github.com/stefanzweifel/git-auto-commit-action/releases)
- [Changelog](https://github.com/stefanzweifel/git-auto-commit-action/blob/master/CHANGELOG.md)
- [Commits](https://github.com/stefanzweifel/git-auto-commit-action/compare/v4...v5)

---
updated-dependencies:
- dependency-name: stefanzweifel/git-auto-commit-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-19 12:46:57 +01:00
dependabot[bot]
6de40d53d7 Bump actions/checkout from 2 to 4 (#1050)
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-19 12:46:33 +01:00
Johannes
bdd838cadd Update config.yaml 2023-11-19 12:43:50 +01:00
joBr99
8fa3a11eb5 add initial dev version of ha addon 2023-11-19 12:40:49 +01:00
Thomas
3a1b9071f8 Update NsPanelTs.ts 2023-11-18 22:42:38 +01:00
Thomas
ed655d6596 v4.3.3.x
Create alias for Alarm Page
2023-11-18 22:36:43 +01:00
Thomas
8dc2e6cbe1 v4.3.3.x
Create Alias for PageAlarm
2023-11-18 22:18:10 +01:00
Thomas
cc21d555c5 v4.3.3.x
Create Alias for PageAlarm
2023-11-18 21:20:27 +01:00
Johannes
367bdaf8d6 Update configure_mqtt.md 2023-11-17 23:25:29 +01:00
Johannes
53042f376f Update configure_mqtt.md 2023-11-17 22:45:19 +01:00
Armilar
5d003f94e2 Merge pull request #1034 from joBr99/Armilar-patch-3
- 15.11.2023 - v4.3.3.4  New Service Page -> ioBroker Info 
- 16.11.2023 - v4.3.3.5  Add Multilingualism to Service Menu (39 languages)
- 17.11.2023 - v4.3.3.5  Add Multilingualism to cardQR, popupFan, popupTimer (39 languages)
2023-11-17 13:17:35 +01:00
Armilar
7e218b7a5a v4.3.3.5 - Update NsPanelTs.ts
v4.3.3.5  Add Multilingualism to cardQR, popupFan, popupTimer (39 languages)

Add ReleaseNotes
2023-11-17 13:10:18 +01:00
Armilar
1e1670aa22 v4.3.3.5 - Update NsPanelTs.ts
Translate cardQR, popupTimer, popupFan
2023-11-17 13:05:11 +01:00
Armilar
ab2853084a Update ioBroker_NSPanel_locales_beta.json 2023-11-17 12:53:13 +01:00
Armilar
07235ab583 Update ioBroker_NSPanel_locales.json 2023-11-17 12:52:50 +01:00
Armilar
c5e87d5fdc Update ioBroker_NSPanel_locales_service.json 2023-11-16 23:41:57 +01:00
Armilar
7a9288cd63 Update ioBroker_NSPanel_locales_service.json 2023-11-16 22:42:07 +01:00
joBr99
3347a054e0 fixes #1033 (add nextion2text) 2023-11-16 17:40:35 +00:00
joBr99
59aa703416 fixes #1033 2023-11-16 18:37:46 +01:00
Johannes
e50f068c93 fixes #1035 2023-11-16 18:32:14 +01:00
Johannes
f566031911 fixes #1035 2023-11-16 18:29:12 +01:00
Armilar
5b133483e8 Update ioBroker_NSPanel_locales_service.json 2023-11-16 15:44:30 +01:00
Armilar
f31d5090b9 Update ioBroker_NSPanel_locales_service.json 2023-11-16 14:59:13 +01:00
Armilar
9021ca7a57 v4.3.3.5 - Update NsPanelTs.ts
Add Multilingualism to Service Menu (39 languages)
2023-11-16 13:56:24 +01:00
Armilar
d891d4e5a2 Update ioBroker_NSPanel_locales_service.json 2023-11-16 13:45:21 +01:00
Armilar
dbcdf54e06 Update ioBroker_NSPanel_locales_service.json 2023-11-16 13:04:42 +01:00
Armilar
aea2b890df Update ioBroker_NSPanel_locales_service.json 2023-11-16 11:41:26 +01:00
Armilar
d66734607b Update ioBroker_NSPanel_locales_service.json 2023-11-16 11:23:09 +01:00
Armilar
c82e1673db Update ioBroker_NSPanel_locales_service.json 2023-11-16 11:11:56 +01:00
Armilar
66909990f5 Update ioBroker_NSPanel_locales_service.json 2023-11-16 01:44:46 +01:00
Armilar
138d91594d Update ioBroker_NSPanel_locales_service.json 2023-11-16 01:37:04 +01:00
Armilar
fa0f8d2a0c Update ioBroker_NSPanel_locales_service.json 2023-11-16 00:05:22 +01:00
Armilar
8f40363b2e Update ioBroker_NSPanel_locales_service.json 2023-11-16 00:04:42 +01:00
Armilar
c183840714 Create ioBroker_NSPanel_locales_service.json 2023-11-15 23:50:27 +01:00
Johannes
d24b9d08d9 Update nspanel-lovelace-ui.py 2023-11-15 23:42:19 +01:00
Armilar
eb5d62f778 v4.3.3.4 New Service Page -> ioBroker Info
Correction IoBroker --> ioBroker
2023-11-15 21:00:53 +01:00
Johannes
8eee88c9c5 Update configure_mqtt.md 2023-11-15 20:37:03 +01:00
Johannes
626e55ca65 Update prepare_ha.md 2023-11-15 20:35:59 +01:00
Armilar
a01bba76cb Merge pull request #1030 from tt-tom17/main
v4.3.3.4
2023-11-15 20:20:28 +01:00
Thomas
df6e147071 v4.3.3.4
New Service Page -> IoBroker Info
2023-11-15 19:56:16 +01:00
Johannes
6d2f028dae Update configure_mqtt.md 2023-11-15 19:33:06 +01:00
Johannes
a6807ba45b Update configure_mqtt.md 2023-11-15 19:31:05 +01:00
Johannes
10314859db Update prepare_ha.md 2023-11-15 19:25:21 +01:00
Jean Wasilewski
9e61476b06 add optional timezone parameter on screensaver time (#1027)
* add optional timezone parameter on screensaver time

Signed-off-by: Jean 'henyxia' Wasilewski <henyxia@revs0.com>

* change config name

* Update config-overview.md

* Update config-overview.md

---------

Signed-off-by: Jean 'henyxia' Wasilewski <henyxia@revs0.com>
Co-authored-by: Johannes <29555657+joBr99@users.noreply.github.com>
2023-11-14 17:43:21 +01:00
Armilar
43ab8e7922 4.3.3.3 - update NsPanelTs.ts
Change Header to 4.3.3.3
2023-11-13 09:58:28 +01:00
Armilar
ece0abc0c3 Merge pull request #1025 from joBr99/Armilar-patch-2
4.3.3.3 - Update NsPanelTs.ts
2023-11-13 09:54:12 +01:00
Armilar
0da81c4e37 4.3.3.3 - Update NsPanelTs.ts
v4.3.3.3  if setOption = false, do not create automatically Alias (Functional/Servicemenu) and Datapoints
2023-11-13 09:29:12 +01:00
Armilar
c46ea4026d Merge pull request #1024 from Armilar/main
Merge with Main
2023-11-13 09:17:54 +01:00
Armilar
03615d7b36 Merge branch 'joBr99:main' into main 2023-11-13 09:15:54 +01:00
Armilar
e6a3162ac8 Merge pull request #1023 from joBr99/Armilar-patch-1
4.3.3.2 - Update NsPanelTs.ts
2023-11-13 09:13:03 +01:00
Armilar
0c838111c8 4..3.3.2 - Update NsPanelTs.ts
Change parent/home to "Unlock_Service"
2023-11-13 08:14:48 +01:00
Armilar
412b508a6e 4.3.3.2 - Update NsPanelTs.ts
Extensions in the service menu
2023-11-13 08:12:08 +01:00
Armilar
8640e3d24e 4.3.3.2 - Update NsPanelTs.ts
Add autoCreateALias to cardUnlock
2023-11-12 22:23:17 +01:00
Armilar
3eec1f9713 Merge pull request #2 from Armilar/Armilar-patch-2
4.3.3.2 - Update NsPanelTs.ts
2023-11-12 22:19:11 +01:00
Armilar
da0dc823b8 4.3.3.2 - Update NsPanelTs.ts
Add autoCreateALias to cardUnlock
2023-11-12 22:15:54 +01:00
Armilar
d5f031b660 Merge pull request #1022 from tt-tom17/main
v4.3.3.1
2023-11-12 15:36:29 +01:00
Thomas
303ca2f691 v4.3.3.1
Fix for Issues #1020 HandleHardwareButton buttonConfig.mode -> 'toggle' and 'set'
2023-11-12 12:34:42 +01:00
Thomas
8dd18fa45b v$.3.3.1
Fix for Issues #1020 HandleHardwareButton buttonConfig.mode -> 'toggle' and 'set'
2023-11-11 18:44:16 +01:00
Armilar
7b330dd3e9 v4.3.3 - Update NsPanelTs.ts
const tft_version: string = 'v4.3.3';
2023-11-08 22:42:52 +01:00
Armilar
02aca6c23b Merge pull request #1015 from tt-tom17/main
Upgrade v4.3.3
2023-11-08 17:55:24 +01:00
Thomas
c6ccc0fb9c Upgrade v4.3.3
- Fix Issues #1013 by laluz742 -> Parameter count mismatch: screensaver color
- Upgrade TFT 53 / 4.3.3
2023-11-08 17:45:45 +01:00
Armilar
65a85f7bd8 Merge pull request #1014 from tt-tom17/main
v4.3.2.2
2023-11-07 22:09:55 +01:00
Thomas
3f8c65d654 v4.3.2.2
Fix Selection of screensaver layout (alternative / advanced)
2023-11-07 22:01:48 +01:00
Johannes
55447d724c Update pages.py 2023-11-06 00:18:01 +01:00
Johannes
ce129cd59f fix color 2023-11-05 22:33:36 +01:00
Johannes
7cef38f50e dummy implementation cardChart 2023-11-05 21:45:28 +01:00
Attila Farago
d6e5753dd2 [Feature Request] Consider using HomeAssistant API instead of MQTT (#1007)
* ha api improvements - device specific app filtering

* refactored request_berry_driver_version messaging

* improved ha api usage

* improve ha event naming
2023-11-04 22:17:22 +01:00
joBr99
0f88932669 Merge branch 'main' of github.com:joBr99/nspanel-lovelace-ui 2023-11-04 21:36:17 +01:00
joBr99
1f4317856c change timer 2023-11-04 21:36:09 +01:00
joBr99
90f4253067 add test menu button (add nextion2text) 2023-11-04 20:34:44 +00:00
joBr99
8b44a61797 add test menu button 2023-11-04 21:30:09 +01:00
joBr99
eb1e5d2d85 Merge branch 'main' of github.com:joBr99/nspanel-lovelace-ui (add nextion2text) 2023-11-04 20:26:17 +00:00
joBr99
25d169b14e Merge branch 'main' of github.com:joBr99/nspanel-lovelace-ui 2023-11-04 21:22:10 +01:00
joBr99
db14636c58 added test site for burn in 2023-11-04 21:21:54 +01:00
Armilar
33c6ddd250 v4.3.2.1 - Update NsPanelTs.ts
Add Release Nuber
2023-10-30 21:58:32 +01:00
Armilar
1bc042d126 v4.3.2.1 - Merge pull request #1004 from Armilar/Armilar-patch-1
v4.3.2.1 - Update NsPanelTs.ts
2023-10-30 20:02:18 +01:00
Armilar
31c2372520 v4.3.2.1 - Update
- Upgrade TFT 53 / 4.3.2
- Fix formatDate/Date.parse with moment.js
2023-10-30 13:03:29 +01:00
Armilar
f7f0349f39 Merge pull request #1 from Armilar/Armilar-patch-2
v4.3.2.1 - Update
2023-10-30 12:59:12 +01:00
Armilar
34181234e1 v4.3.2.1 - Update
- Upgrade TFT 53 / 4.3.2
- Fix formatDate/Date.parse with moment.js (Bugs in JS-Methodes)
2023-10-30 12:55:56 +01:00
Armilar
cded34fbd4 v4.3.2.1 - Update NsPanelTs.ts
- Upgrade TFT 53 / 4.3.2
- Fix formatDate/Date.parse with moment.js
2023-10-30 12:41:28 +01:00
Johannes
e2223ac7a6 fixed for HA 2023.11.0b1 2023-10-28 11:38:43 +02:00
Johannes
ffcd872f4a fixes #802 2023-10-25 21:16:34 +02:00
Marek
d34a835363 small update to sk.json for preset mode (#1000) 2023-10-24 20:12:02 +02:00
Armilar
40d17f9641 v 4.3.1.7 - Merge pull request #998 from tt-tom17/main
v 4.3.1.7
2023-10-22 16:29:03 +02:00
Thomas
9eb543467b v 4.3.1.7
Fix CreateEntity (navigate) role 'light' and 'socket' and 'temperature'
2023-10-22 15:24:47 +02:00
Armilar
86594de18d v4.3.1.6 - Update NsPanelTs.ts
- Add more Alias Device-Types to Navigation (createEntity) 
- Minor Fixes
2023-10-19 10:58:31 +02:00
joBr99
14efa10683 fixes #983 (add nextion2text) 2023-10-14 14:36:49 +00:00
joBr99
7f38c6b346 fixes #983 2023-10-14 16:32:37 +02:00
Armilar
17cf7d40c5 Merge pull request #989 from tt-tom17/main
v4.3.1.5
2023-10-12 15:40:09 +02:00
Thomas
9ff8506035 v4.3.1.5
Fix Datapoint for Role timetable -> Attention use new script from TT-Tom https://github.com/tt-tom17/MyScripts/blob/main/Sonoff_NSPanel/Fahrplan_to_NSPanel.ts
2023-10-12 15:22:25 +02:00
Johannes
757ffcd129 Update README.md 2023-10-06 21:56:02 +02:00
Armilar
ac96ff595a v4.3.1.4 - Move Examples 2 Wiki
https://github.com/joBr99/nspanel-lovelace-ui/wiki/NSPanel-Page-%E2%80%90-Typen_How-2_Beispiele
2023-10-03 13:48:01 +02:00
Armilar
7c1fe558f9 Delete ioBroker/NsPanelTs_without_Examples.ts 2023-10-03 13:26:49 +02:00
Armilar
98ec0aca45 v4.3.1.4 - Remove Examples
- Moving the examples from the NSPanelTs.ts --> https://github.com/joBr99/nspanel-lovelace-ui/wiki/NSPanel-Page-%E2%80%90-Typen_How-2_Beispiele
- Delete NsPanelTs_without_Examples.ts
2023-10-03 13:24:31 +02:00
Armilar
df105a2233 v4.3.1.3 - Update BerryDriver / Service Menu Fix
v4.3.1.2  Upgrade BerryDriver v9
v4.3.1.3  Fix - Change ServivceMenu from Fake-SSId to real Tasmota-SSIdParam
 
Todo:
v4.4.0    Change the bottomScreensaverEntity (rolling) if more than 6 entries are defined
2023-09-23 21:13:52 +02:00
Armilar
a33c58941c v4.3.1.3 - Update BerryDriver / Service Menu Fix
v4.3.1.2  Upgrade BerryDriver v9
v4.3.1.3  Fix - Change ServivceMenu from Fake-SSId to real Tasmota-SSIdParam
 
Todo:
v4.4.0    Change the bottomScreensaverEntity (rolling) if more than 6 entries are defined
2023-09-23 21:13:44 +02:00
Armilar
33c0c4402f v4.3.1.3 - Update BerryDriver / Service Menu Fix
v4.3.1.2  Upgrade BerryDriver v9
v4.3.1.3  Fix - Change ServivceMenu from Fake-SSId to real Tasmota-SSIdParam
 
Todo:
v4.4.0    Change the bottomScreensaverEntity (rolling) if more than 6 entries are defined
2023-09-23 21:09:03 +02:00
Armilar
1529115fb5 v4.3.1.3 - Update BerryDriver / Service Menu Fix
v4.3.1.2  Upgrade BerryDriver v9
v4.3.1.3  Fix - Change ServivceMenu from Fake-SSId to real Tasmota-SSIdParam
 
Todo:
v4.4.0    Change the bottomScreensaverEntity (rolling) if more than 6 entries are defined
2023-09-23 21:08:27 +02:00
Armilar
210b90ff8f v4.3.1.2 Upgrade BerryDriver v9
- 23.09.2023 - v4.3.1.2  Upgrade BerryDriver v9
2023-09-23 13:46:58 +02:00
Armilar
e9a69651d7 v4.3.1.2 Upgrade BerryDriver v9
- 23.09.2023 - v4.3.1.2  Upgrade BerryDriver v9
2023-09-23 13:46:52 +02:00
Johannes
e576af72b7 Update prepare_nspanel.md 2023-09-18 22:55:54 +02:00
joBr99
e5e88e3a5e Merge branch 'main' of github.com:joBr99/nspanel-lovelace-ui 2023-09-18 18:07:36 +02:00
joBr99
957cde8384 Merge branch 'main' of github.com:joBr99/nspanel-lovelace-ui 2023-09-18 18:07:16 +02:00
joBr99
ddc8818aae Merge branch 'main' of github.com:joBr99/nspanel-lovelace-ui 2023-09-18 18:03:15 +02:00
joBr99
252339d36c update tasmota driver #972 2023-09-18 18:02:59 +02:00
Armilar
0803dd5214 v4.3.1.1
v4.2.1.6  Fix ServicePage Dimmode 'next' -> 'home'
v4.2.1.6  Fix Log '.USERICON' to Debug.log
v4.2.1.6  Fix Link PowerIcon to Alias (Thermocard)
v4.3.1    Upgrade TFT 53 / 4.3.1
v4.3.1.1  Add Parameter fontSize (0-4) to cardGrid (with useValue)
2023-09-17 13:36:34 +02:00
Armilar
586af0aac3 v4.3.1.1
v4.2.1.6  Fix ServicePage Dimmode 'next' -> 'home'
v4.2.1.6  Fix Log '.USERICON' to Debug.log
v4.2.1.6  Fix Link PowerIcon to Alias (Thermocard)
v4.3.1    Upgrade TFT 53 / 4.3.1
v4.3.1.1  Add Parameter fontSize (0-4) to cardGrid (with useValue)
2023-09-17 13:36:28 +02:00
Armilar
65032dc3a0 Merge branch 'main' into main 2023-09-17 13:25:26 +02:00
Armilar
a6c617fc44 Merge pull request #976 from tt-tom17/main
v4.2.1.6
2023-09-17 10:22:59 +02:00
Johannes
13b17dab00 bump version 2023-09-16 13:34:09 +02:00
Johannes
4600458da3 Update entities.md 2023-09-16 13:28:56 +02:00
joBr99
67bc1533bf bump tft version (add nextion2text) 2023-09-16 10:55:25 +00:00
joBr99
e5f5546352 bump tft version 2023-09-16 12:51:46 +02:00
Johannes
40896473b2 Update pages.py 2023-09-16 12:43:51 +02:00
Johannes
83e820d037 Update pages.py 2023-09-16 12:39:31 +02:00
Johannes
fb8a1003f9 Update config.py 2023-09-16 12:25:30 +02:00
Thomas
f0a3a04edb v4.2.1.6
- Fix ServicePage Dimmode 'next' -> 'home'
- Fix Log '.USERICON' to Debug.log
- Fix Link PowerIcon to Alias (Thermocard)
2023-09-15 19:20:53 +02:00
Armilar
df8e913831 Merge branch 'joBr99:main' into main 2023-09-14 23:35:36 +02:00
Armilar
1eef2bc96f Merge pull request #973 from tt-tom17/main
v4.2.1.5
2023-09-04 13:14:54 +02:00
Thomas
015d9c29c7 v4.2.1.5
- Fix Debug with 0_userdata.0
- Add minValue/maxValue to Blinds
2023-09-04 10:42:15 +02:00
Armilar
164467d435 v4.2.1.4 - Update NsPanelTs.ts
- 01.09.2023 - v4.2.1.4  Fix iconId2 in Alias door/window
- 02.09.2023 - v4.2.1.4  Add dynamically USERICON to Alias info

        Todo
        - XX.XX.XXXX - v4.3.0    Fix Debug with 0_userdata.0... 
        - XX.XX.XXXX - v4.3.0    Add minValue/maxValue to Blinds

        Next Release with TFT DEV (always implemented)
        - 25.08.2023 - v4.3.0    Add Parameter fontSize (0-4) to cardGrid (with useValue)
2023-09-02 12:46:35 +02:00
Armilar
e8e8b0fc29 v4.2.1.4 - Update NsPanelTs_without_Examples.ts
- 01.09.2023 - v4.2.1.4  Fix iconId2 in Alias door/window
- 02.09.2023 - v4.2.1.4  Add dynamically USERICON to Alias info

        Todo
        - XX.XX.XXXX - v4.3.0    Fix Debug with 0_userdata.0... 
        - XX.XX.XXXX - v4.3.0    Add minValue/maxValue to Blinds

        Next Release with TFT DEV (always implemented)
        - 25.08.2023 - v4.3.0    Add Parameter fontSize (0-4) to cardGrid (with useValue)
2023-09-02 12:46:29 +02:00
Armilar
d78a6c4ed7 Merge branch 'joBr99:main' into main 2023-08-27 21:35:48 +02:00
Armilar
b95b35f10c v4.2.1.3 - Add MQTT-Portcheck + Support Menu Item
- Add MQTT-Port-Check (use with exec) --> function CheckMQTTPorts()
- Add MQTT-Port-Check for ServiceMenu
2023-08-27 20:53:26 +02:00
Armilar
7d52df1f11 v4.2.1.3 - Add MQTT-Portcheck + Support Menu Item
- Add MQTT-Port-Check (use with exec) --> function CheckMQTTPorts()
- Add MQTT-Port-Check for ServiceMenu
2023-08-27 20:53:19 +02:00
Armilar
cb542f1e77 v4.2.1.2 - New pageItem-Parameter fontSize (add nextion2text) 2023-08-25 12:36:47 +00:00
Armilar
ff2208a646 v4.2.1.2 - New pageItem-Parameter fontSize
Use with DEV-Version
FlashNextion http://nspanel.pky.eu/lui.tft
2023-08-25 10:49:45 +02:00
Armilar
205f45ba48 v4.2.1.2 - New pageItem-Parameter fontSize
Use with DEV-Version
FlashNextion http://nspanel.pky.eu/lui.tft
2023-08-25 10:49:39 +02:00
joBr99
1712098f61 sync (add nextion2text) 2023-08-24 14:50:22 +00:00
joBr99
84585499d5 sync 2023-08-24 16:45:45 +02:00
joBr99
1a4f7a7754 Merge branch 'main' of github.com:joBr99/nspanel-lovelace-ui (add nextion2text) 2023-08-24 14:39:55 +00:00
joBr99
632663cd9f Merge branch 'main' of github.com:joBr99/nspanel-lovelace-ui 2023-08-24 16:35:29 +02:00
joBr99
059619a636 implement way to change icon font changes on entities 2023-08-24 16:35:21 +02:00
Armilar
49352c7ca0 v4.2.1.1 - Add WINDOWOPEN to cardThermo (Thermostat)
Add WINDOWOPEN to cardThermo (Thermostat)
2023-08-24 09:51:08 +02:00
Armilar
a44573cfc9 v4.2.1.1 - Add WINDOWOPEN to cardThermo (Thermostat)
Add WINDOWOPEN to cardThermo (Thermostat)
2023-08-24 09:50:59 +02:00
Johannes
847546893f Update controller.py 2023-08-23 18:47:45 +02:00
Johannes
11106eb778 Update pages.py 2023-08-23 18:34:16 +02:00
Johannes
cf1acdefff Update pages.py #946 2023-08-23 18:30:33 +02:00
Armilar
5a07523a86 v4.2.0.2 - Add cardGrid2
* Add cardGrid2
2023-08-23 12:32:07 +02:00
Armilar
affb663579 v4.2.0.2 - Add cardGrid2
* Add cardGrid2
2023-08-23 12:32:01 +02:00
Armilar
d2695d993e v4.2.0.1 - Update NsPanelTs_without_Examples.ts
* v4.2.0    Upgrade TFT 52 / 4.2.0
 * v4.2.0    Add new alias state for iconcolor and buttontext for icon for subpages
* v4.2.0.1  Add iconArray to Alias "Klimaanlage" (airCondition)
2023-08-22 15:19:27 +02:00
Armilar
b3b24d4b8d v4.2.0.1 - Update NsPanelTs.ts
* v4.2.0    Upgrade TFT 52 / 4.2.0
 * v4.2.0    Add new alias state for iconcolor and buttontext for icon for subpages
* v4.2.0.1  Add iconArray to Alias "Klimaanlage" (airCondition)
2023-08-22 15:19:21 +02:00
Armilar
690a8f4279 v4.2.0 - Merge pull request #961 from tt-tom17/main
* v4.2.0 - upgrade 52 / 4.2.0
* Add new alias state for iconcolor and buttontext for icon for subpages
* Add Alias role 'warnings' for icon for subpages
2023-08-22 09:15:16 +02:00
Armilar
040119963a v4.2.0
* Update 52 / 4.2.0
* Add new alias state for iconcolor and buttontext for icon for subpages
* Add Alias role 'warnings' for icon for subpages
2023-08-22 09:07:00 +02:00
Armilar
fe44b008af v4.2.0
* Update 52 / 4.2.0
* Add new alias state for iconcolor and buttontext for icon for subpages
* Add Alias role 'warnings' for icon for subpages
2023-08-22 09:02:40 +02:00
Thomas
7d2503c66b v4.2.0
- Add new alias state for iconcolor and buttontext for icon for subpages
- Add Alias role 'warnings' for icon for subpages
2023-08-21 23:44:23 +02:00
Johannes
f0edaa36fb Update nspanel-lovelace-ui.py 2023-08-20 15:53:34 +02:00
joBr99
6d41c16eda add feature flag for new sliders 2023-08-20 15:43:20 +02:00
joBr99
337657fede fixes #955 2023-08-20 15:24:06 +02:00
joBr99
652dd0b157 fixes #933 (add nextion2text) 2023-08-20 13:07:23 +00:00
joBr99
e580333560 fixes #933 2023-08-20 15:03:27 +02:00
joBr99
8407171efb sync us-l 2023-08-20 14:50:48 +02:00
joBr99
291102971a Merge branch 'main' of github.com:joBr99/nspanel-lovelace-ui (add nextion2text) 2023-08-20 12:42:36 +00:00
joBr99
a1104b8f81 Merge branch 'main' of github.com:joBr99/nspanel-lovelace-ui 2023-08-20 14:39:27 +02:00
joBr99
48e9d2c8a3 sync us-l 2023-08-20 14:39:20 +02:00
joBr99
306a189d79 fixes #957 (add nextion2text) 2023-08-20 12:32:17 +00:00
joBr99
98b40de8dc fixes #957 2023-08-20 14:27:54 +02:00
Armilar
2355ce9c82 Merge pull request #956 from kuckuckmann/main-2
Create Index-Jumpmenue_inSelpopup.xml
2023-08-17 00:11:05 +02:00
kuckuckmann
d743eb00db Create Index-Jumpmenue_inSelpopup.xml
Blockly Skript für das inSelpopup für das Index-Jumpmenü.
2023-08-16 22:07:11 +02:00
Armilar
c725defd30 Merge pull request #953 from kuckuckmann/main-1
Create ShellyDuo_inkl_InSel.xml
2023-08-14 22:53:53 +02:00
kuckuckmann
3b297607ff Create ShellyDuo_inkl_InSel.xml
Script for Wiki
2023-08-14 22:49:38 +02:00
Armilar
bb9e6b3799 Update v4.1.4.4 NsPanelTs.ts
- 12.08.2023 - v4.1.4    Upgrade TFT 51 / 4.1.4
- 12.08.2023 - v4.1.4.1  Fix Label CANCEL for popupTimer
- 12.08.2023 - v4.1.4.1  Fix TypeScript Error (JS-Adapter > 7.1.X) by Gargano
- 12.08.2023 - v4.1.4.1  CardGRid with maxItems = 8
- 12.08.2023 - v4.1.4.2  Add onStop function() to Schedules
- 13.08.2023 - v4.1.4.3  Add InSel to popUpLight
- 13.08.2023 - v4.1.4.4  Add Parameter inSel_ChoiceState to InSel to show/hide Focus
2023-08-13 23:28:01 +02:00
Armilar
7f73e28861 Update v4.1.4.4 NsPanelTs_without_Examples.ts
- 12.08.2023 - v4.1.4    Upgrade TFT 51 / 4.1.4
- 12.08.2023 - v4.1.4.1  Fix Label CANCEL for popupTimer
- 12.08.2023 - v4.1.4.1  Fix TypeScript Error (JS-Adapter > 7.1.X) by Gargano
- 12.08.2023 - v4.1.4.1  CardGRid with maxItems = 8
- 12.08.2023 - v4.1.4.2  Add onStop function() to Schedules
- 13.08.2023 - v4.1.4.3  Add InSel to popUpLight
- 13.08.2023 - v4.1.4.4  Add Parameter inSel_ChoiceState to InSel to show/hide Focus
2023-08-13 23:27:54 +02:00
Armilar
d81fc9e278 Update v4.1.4.3 NsPanelTs.ts
- 12.08.2023 - v4.1.4    Upgrade TFT 51 / 4.1.4
- 12.08.2023 - v4.1.4.1  Fix Label CANCEL for popupTimer
- 12.08.2023 - v4.1.4.1  Fix TypeScript Error (JS-Adapter > 7.1.X) by Gargano
- 12.08.2023 - v4.1.4.1  CardGRid with maxItems = 8
- 12.08.2023 - v4.1.4.2  Add onStop function() to Schedules
- 12.08.2023 - v4.1.4.3  Add InSel to popUpLight
2023-08-13 22:44:25 +02:00
Armilar
f4fa14eb16 Update v4.1.4.3 NsPanelTs_without_Examples.ts
- 12.08.2023 - v4.1.4    Upgrade TFT 51 / 4.1.4
- 12.08.2023 - v4.1.4.1  Fix Label CANCEL for popupTimer
- 12.08.2023 - v4.1.4.1  Fix TypeScript Error (JS-Adapter > 7.1.X) by Gargano
- 12.08.2023 - v4.1.4.1  CardGRid with maxItems = 8
- 12.08.2023 - v4.1.4.2  Add onStop function() to Schedules
- 12.08.2023 - v4.1.4.3  Add InSel to popUpLight
2023-08-13 22:44:02 +02:00
Armilar
5652387869 Update 4.1.4.2 NsPanelTs_without_Examples.ts
- 12.08.2023 - v4.1.4    Upgrade TFT 51 / 4.1.4
- 12.08.2023 - v4.1.4.1  Fix Label CANCEL for popupTimer
- 12.08.2023 - v4.1.4.1  Fix TypeScript Error (JS-Adapter > 7.1.X) by Gargano
 - 12.08.2023 - v4.1.4.1  CardGRid with maxItems = 8
 - 12.08.2023 - v4.1.4.2  Add onStop function() to Schedules
        
 - Todo       - v4.1.4.3  Add InSel to popUpLight
2023-08-12 22:03:37 +02:00
Armilar
cbd5a084af Update NsPanelTs.ts
- 12.08.2023 - v4.1.4    Upgrade TFT 51 / 4.1.4
- 12.08.2023 - v4.1.4.1  Fix Label CANCEL for popupTimer
- 12.08.2023 - v4.1.4.1  Fix TypeScript Error (JS-Adapter > 7.1.X) by Gargano
 - 12.08.2023 - v4.1.4.1  CardGRid with maxItems = 8
 - 12.08.2023 - v4.1.4.2  Add onStop function() to Schedules
        
 - Todo       - v4.1.4.3  Add InSel to popUpLight
2023-08-12 22:03:32 +02:00
Armilar
80a881c980 Update 4.1.4.1 NsPanelTs.ts
- 12.08.2023 - v4.1.4    Upgrade TFT 51 / 4.1.4
- 12.08.2023 - v4.1.4.1  Fix Label CANCEL for popupTimer
- 12.08.2023 - v4.1.4.1  Fix TypeScript Error (JS-Adapter > 7.1.X) by Gargano
- 12.08.2023 - v4.1.4.1  CardGRid with maxItems = 8
        
- Todo       - v4.1.4.2  Add InSel to popUpLight
- Todo       - v4.1.4.2  Add onStop (function() to Schedules
2023-08-12 14:39:06 +02:00
Armilar
7d58066448 Update Update 4.1.4.1 NsPanelTs_without_Examples.ts
- 12.08.2023 - v4.1.4    Upgrade TFT 51 / 4.1.4
- 12.08.2023 - v4.1.4.1  Fix Label CANCEL for popupTimer
- 12.08.2023 - v4.1.4.1  Fix TypeScript Error (JS-Adapter > 7.1.X) by Gargano
- 12.08.2023 - v4.1.4.1  CardGRid with maxItems = 8
        
- Todo       - v4.1.4.2  Add InSel to popUpLight
- Todo       - v4.1.4.2  Add onStop (function() to Schedules
2023-08-12 14:38:58 +02:00
joBr99
63cce74dbe Merge branch 'main' of github.com:joBr99/nspanel-lovelace-ui (add nextion2text) 2023-08-08 20:49:12 +00:00
joBr99
f4db5490ed Merge branch 'main' of github.com:joBr99/nspanel-lovelace-ui 2023-08-08 22:44:19 +02:00
joBr99
e8713881b6 set popupNotify permanent to 1 year 2023-08-08 22:44:09 +02:00
joBr99
43d21a4b6b Merge branch 'main' of github.com:joBr99/nspanel-lovelace-ui (add nextion2text) 2023-08-08 19:45:40 +00:00
joBr99
ce0215c1d2 Merge branch 'main' of github.com:joBr99/nspanel-lovelace-ui 2023-08-08 21:41:39 +02:00
joBr99
498b90ad77 upd 2023-08-08 21:41:22 +02:00
Johannes
66cd7341c9 fixes #936 2023-08-08 19:38:34 +02:00
Johannes
cfbfd8c3e0 Disable detail update for now #945 2023-08-06 22:34:03 +02:00
joBr99
65a381cbac increase cooldown detail update & sync (add nextion2text) 2023-08-06 20:32:44 +00:00
joBr99
4a94526244 increase cooldown detail update & sync 2023-08-06 22:28:03 +02:00
joBr99
442f8ccdf0 fixes #949 2023-08-06 22:20:41 +02:00
joBr99
1b57cdbe62 Merge branch 'main' of github.com:joBr99/nspanel-lovelace-ui (add nextion2text) 2023-07-31 16:25:33 +00:00
joBr99
3ddef89431 Merge branch 'main' of github.com:joBr99/nspanel-lovelace-ui 2023-07-31 18:20:22 +02:00
joBr99
3f416ade44 hide new sliders behind feature flag 2023-07-31 18:20:08 +02:00
Armilar
832c9cd241 Merge pull request #944 from fre4242/main
Improved screensaver advanced icon handling: option to load from iobroker object
2023-07-30 22:02:56 +02:00
Armilar
2aa1e222aa Update NsPanelTs_without_Examples.ts
v4.0.5.15 - Improved screensaverAdvanced icon handling: option to load from iobroker object #944
2023-07-30 21:59:51 +02:00
Armilar
ec15e56728 Update NsPanelTs.ts
v4.0.5.15 - Improved screensaverAdvanced icon handling: option to load from iobroker object #944
2023-07-30 21:59:01 +02:00
fre4242
26cce9ac13 Improved screensaverAdvanced icon handling: option to load from iobroker object 2023-07-30 20:09:26 +02:00
Jan Čermák
8850e1d8cb fix cover tilt setting in AppDaemon backend (#939) 2023-07-24 21:43:02 +02:00
Marek
06174d3912 added ui card button translation #937 (#938)
Co-authored-by: Marek Vrana <m.vrana@cid.com>
2023-07-21 21:42:57 +02:00
joBr99
75d652e402 Merge branch 'main' of github.com:joBr99/nspanel-lovelace-ui (add nextion2text) 2023-06-23 18:14:55 +00:00
joBr99
893714d569 Merge branch 'main' of github.com:joBr99/nspanel-lovelace-ui 2023-06-23 20:10:42 +02:00
joBr99
fd7448c61d fixed #909 2023-06-23 20:10:13 +02:00
Johannes
6b04938a8a fixes #926 2023-06-14 15:32:08 +02:00
Johannes
35af3a778f fixes #925 2023-06-13 18:55:40 +02:00
joBr99
23beb90591 fixes #923 #922 #917 2023-06-11 00:58:15 +02:00
joBr99
e40017c66e Merge branch 'main' of github.com:joBr99/nspanel-lovelace-ui (add nextion2text) 2023-06-01 14:52:57 +00:00
joBr99
e94c57344a Merge branch 'main' of github.com:joBr99/nspanel-lovelace-ui 2023-06-01 16:48:58 +02:00
joBr99
df3105ac2b fixes #915 2023-06-01 16:48:51 +02:00
joBr99
04f7d026f4 add missing link from cardPower to cardLchart #907 (add nextion2text) 2023-05-23 19:26:00 +00:00
joBr99
f462780c08 add missing link from cardPower to cardLchart #907 2023-05-23 21:21:37 +02:00
Johannes
b7de710de5 Update pages.py 2023-05-21 13:47:48 +02:00
Johannes
e8cc170c0c Update pages.py 2023-05-21 13:45:10 +02:00
Johannes
94d0d176e5 Update controller.py 2023-05-21 13:43:49 +02:00
Johannes
c9222a9484 Update controller.py
fixes #900
2023-05-21 09:56:15 +02:00
joBr99
5d02de6b6d update us-l tft files (add nextion2text) 2023-05-21 07:42:50 +00:00
joBr99
0c3bcf07c3 update us-l tft files 2023-05-21 09:37:44 +02:00
Johannes
9ed8bfc702 fixed #899 2023-05-21 01:18:58 +02:00
Johannes
b3d9883b19 Update README.md 2023-05-20 18:00:29 +02:00
Johannes
a0af621e7d Update README.md 2023-05-20 17:54:49 +02:00
Gerrit
2812dd302c Update README.md (#866)
Added Table of Contents
2023-05-20 17:52:12 +02:00
joBr99
b2b945c6ed update pics 2023-05-20 17:19:39 +02:00
320 changed files with 252859 additions and 19750 deletions

26
.devcontainer.json Normal file
View File

@@ -0,0 +1,26 @@
{
"name": "NSPanel Lovelace UI Home Assistant add-on repository",
"image": "ghcr.io/home-assistant/devcontainer:addons",
"appPort": ["7123:8123", "7357:4357"],
"postCreateCommand": "apt install -y python3 python3-pip && pip install -r nspanel-lovelace-ui/rootfs/usr/bin/mqtt-manager/requirements.txt --break-system-packages",
"postStartCommand": "bash devcontainer_bootstrap",
"runArgs": ["-e", "GIT_EDITOR=code --wait", "--privileged"],
"remoteUser":"root",
"containerEnv": {
"WORKSPACE_DIRECTORY": "${containerWorkspaceFolder}"
},
"extensions": ["timonwong.shellcheck", "esbenp.prettier-vscode"],
"mounts": ["type=volume,target=/var/lib/docker"],
"settings": {
"terminal.integrated.profiles.linux": {
"zsh": {
"path": "/usr/bin/zsh"
}
},
"terminal.integrated.defaultProfile.linux": "zsh",
"editor.formatOnPaste": false,
"editor.formatOnSave": true,
"editor.formatOnType": true,
"files.trimTrailingWhitespace": true
}
}

View File

@@ -58,5 +58,5 @@ _If applicable, add screenshots/pictures to help explain your problem._
_Add any other context about the problem here._
_Please note here in case you are using ioBroker_
### PANEL / FIRMWARE VERION
### PANEL / FIRMWARE VERSION
_Please add the Panel/Firmware Version you are using (EU, US-L or US-P)_

View File

@@ -24,5 +24,5 @@ _A clear and concise description of what the feature should do._
### ADDITIONAL CONTEXT
_Add any other context about the problem here._
### PANEL / FIRMWARE VERION
### PANEL / FIRMWARE VERSION
_Please add the Panel/Firmware Version you are using (EU, US-L or US-P)_

7
.github/dependabot.yaml vendored Normal file
View File

@@ -0,0 +1,7 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: weekly
time: "06:00"

111
.github/workflows/builder.yaml vendored Normal file
View File

@@ -0,0 +1,111 @@
name: Builder
env:
BUILD_ARGS: "--test"
MONITORED_FILES: "build.yaml config.yaml Dockerfile rootfs"
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
init:
runs-on: ubuntu-latest
name: Initialize builds
outputs:
changed_addons: ${{ steps.changed_addons.outputs.addons }}
changed: ${{ steps.changed_addons.outputs.changed }}
steps:
- name: Check out the repository
uses: actions/checkout@v4
- name: Get changed files
id: changed_files
uses: jitterbit/get-changed-files@v1
- name: Find add-on directories
id: addons
uses: home-assistant/actions/helpers/find-addons@master
- name: Get changed add-ons
id: changed_addons
run: |
declare -a changed_addons
for addon in ${{ steps.addons.outputs.addons }}; do
if [[ "${{ steps.changed_files.outputs.all }}" =~ $addon ]]; then
for file in ${{ env.MONITORED_FILES }}; do
if [[ "${{ steps.changed_files.outputs.all }}" =~ $addon/$file ]]; then
if [[ ! "${changed_addons[@]}" =~ $addon ]]; then
changed_addons+=("\"${addon}\",");
fi
fi
done
fi
done
changed=$(echo ${changed_addons[@]} | rev | cut -c 2- | rev)
if [[ -n ${changed} ]]; then
echo "Changed add-ons: $changed";
echo "changed=true" >> $GITHUB_OUTPUT;
echo "addons=[$changed]" >> $GITHUB_OUTPUT;
else
echo "No add-on had any monitored files changed (${{ env.MONITORED_FILES }})";
fi
build:
needs: init
runs-on: ubuntu-latest
if: needs.init.outputs.changed == 'true'
name: Build ${{ matrix.arch }} ${{ matrix.addon }} add-on
strategy:
matrix:
addon: ${{ fromJson(needs.init.outputs.changed_addons) }}
arch: ["aarch64", "amd64", "armhf", "armv7", "i386"]
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Get information
id: info
uses: home-assistant/actions/helpers/info@master
with:
path: "./${{ matrix.addon }}"
- name: Check if add-on should be built
id: check
run: |
if [[ "${{ steps.info.outputs.architectures }}" =~ ${{ matrix.arch }} ]]; then
echo "build_arch=true" >> $GITHUB_OUTPUT;
echo "image=$(echo ${{ steps.info.outputs.image }} | cut -d'/' -f3)" >> $GITHUB_OUTPUT;
if [[ -z "${{ github.head_ref }}" ]] && [[ "${{ github.event_name }}" == "push" ]]; then
echo "BUILD_ARGS=" >> $GITHUB_ENV;
fi
else
echo "${{ matrix.arch }} is not a valid arch for ${{ matrix.addon }}, skipping build";
echo "build_arch=false" >> $GITHUB_OUTPUT;
fi
- name: Login to GitHub Container Registry
if: env.BUILD_ARGS != '--test'
uses: docker/login-action@v3.4.0
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build ${{ matrix.addon }} add-on
if: steps.check.outputs.build_arch == 'true'
uses: home-assistant/builder@2025.03.0
with:
args: |
${{ env.BUILD_ARGS }} \
--${{ matrix.arch }} \
--target /data/${{ matrix.addon }} \
--image "${{ steps.check.outputs.image }}" \
--docker-hub "ghcr.io/${{ github.repository_owner }}" \
--addon

View File

@@ -43,11 +43,11 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v4
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -58,7 +58,7 @@ jobs:
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v2
uses: github/codeql-action/autobuild@v3
# Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
@@ -72,4 +72,4 @@ jobs:
# make release
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
uses: github/codeql-action/analyze@v3

View File

@@ -4,7 +4,7 @@ on:
workflow_dispatch:
push:
branches:
- main
- dev
paths:
- docs/*
- .github/workflows/docs.yml
@@ -15,10 +15,14 @@ jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v5
with:
python-version: 3.x
- run: pip install mkdocs-material mkdocs-video markdown-include
- run: pip install mkdocs-material mkdocs-video markdown-include mike
- run: cp HMI/README.md docs/hmi-serial-protocol.md
- run: mkdocs gh-deploy --force
- run: git config --global user.name Docs deploy
- run: git config --global user.email docs@dummy.bot.com
- run: mike deploy --push --update-aliases dev

29
.github/workflows/docs-release.yml vendored Normal file
View File

@@ -0,0 +1,29 @@
name: docs-ci
on:
workflow_dispatch:
push:
branches:
- main
paths:
- docs/*
- .github/workflows/docs-release.yml
- mkdocs.yml
- HMI/README.md
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v5
with:
python-version: 3.x
- run: pip install mkdocs-material mkdocs-video markdown-include mike
- run: cp HMI/README.md docs/hmi-serial-protocol.md
- run: git config --global user.name Docs deploy
- run: git config --global user.email docs@dummy.bot.com
- run: mike set-default stable
- run: mike deploy --push --update-aliases stable

View File

@@ -11,7 +11,7 @@ jobs:
name: HACS Action
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@v2"
- uses: "actions/checkout@v4"
- name: HACS Action
uses: "hacs/action@main"
with:

View File

@@ -18,7 +18,7 @@ jobs:
gen-ioBroker-localization:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
@@ -28,7 +28,7 @@ jobs:
python HMI/code_gen/localization/iobroker.py
mv ioBroker_NSPanel_locales.json ioBroker/ioBroker_NSPanel_locales.json
- uses: stefanzweifel/git-auto-commit-action@v4
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Update iobroker localization file
#file_pattern: "**.txt"

41
.github/workflows/lint.yaml vendored Normal file
View File

@@ -0,0 +1,41 @@
name: Lint
on:
push:
branches:
- main
pull_request:
branches:
- main
schedule:
- cron: "0 0 * * *"
jobs:
find:
name: Find add-ons
runs-on: ubuntu-latest
outputs:
addons: ${{ steps.addons.outputs.addons_list }}
steps:
- name: ⤵️ Check out code from GitHub
uses: actions/checkout@v4
- name: 🔍 Find add-on directories
id: addons
uses: home-assistant/actions/helpers/find-addons@master
lint:
name: Lint add-on ${{ matrix.path }}
runs-on: ubuntu-latest
needs: find
strategy:
matrix:
path: ${{ fromJson(needs.find.outputs.addons) }}
steps:
- name: ⤵️ Check out code from GitHub
uses: actions/checkout@v4
- name: 🚀 Run Home Assistant Add-on Lint
uses: frenck/action-addon-linter@v2.18
with:
path: "./${{ matrix.path }}"

View File

@@ -24,7 +24,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
@@ -80,7 +80,7 @@ jobs:
find -name "**.txt"
rm Nextion2Text.py* ignore-id.py out.txt
- uses: stefanzweifel/git-auto-commit-action@v4
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: ${{ steps.last-commit-message.outputs.msg }} (add nextion2text)
#file_pattern: "**.txt"

3
.gitignore vendored
View File

@@ -2,5 +2,8 @@ __pycache__/
# don't add nextion2text
HMI/Nextion2Text.py
# dont add panels.yaml
panels.yaml
# don't add Webstorm project stuff
.idea

17
.vscode/launch.json vendored Normal file
View File

@@ -0,0 +1,17 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Python: Current File",
"type": "python",
"request": "launch",
"program": "main.py",
"cwd": "/workspaces/nspanel-lovelace-ui/nspanel-lovelace-ui/rootfs/usr/bin/mqtt-manager",
"console": "integratedTerminal",
"justMyCode": true
}
]
}

19
.vscode/tasks.json vendored Normal file
View File

@@ -0,0 +1,19 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "Start Home Assistant",
"type": "shell",
"command": "supervisor_run",
"group": {
"kind": "test",
"isDefault": true
},
"presentation": {
"reveal": "always",
"panel": "new"
},
"problemMatcher": []
}
]
}

View File

@@ -6,6 +6,24 @@ Messages to the Panel can be send through the Command `CustomSend`, which is imp
You can issue this command through MQTT by sending messages to the `cmnd/XXX/CustomSend` Topic.
Messages from the Panel are send to the `tele/XXX/RESULT` Topic, encoded in json `{"CustomRecv":"message_from_screen"}`
# Table of contents
- [Startup](#startup)
- [Some preperation before we are acually navigating away:](#some-preperation-before-we-are-acually-navigating-away)
- [Navigate from the startup page to the screensaver, by sending this command to the CustomSend Topic.](#navigate-from-the-startup-page-to-the-screensaver-by-sending-this-command-to-the-customsend-topic)
- [Exit Screensaver](#exit-screensaver)
- [Messages to Nextion Display](#messages-to-nextion-display)
- [General Commands, implemented on all pages](#general-commands-implemented-on-all-pages)
- [screensaver page](#screensaver-page)
- [cardEntities Page](#cardentities-page)
- [cardGrid Page](#cardgrid-page)
- [cardMedia](#cardmedia)
- [cardThermo](#cardthermo)
- [cardAlarm](#cardalarm)
- [cardQR](#cardqr)
- [cardPower](#cardpower)
## Startup
On startup the panel will send `{"CustomRecv":"event,startup,39,eu"}` every few seconds.
@@ -94,9 +112,6 @@ change the page type:
### screensaver page
Example default layout: `weatherUpdate~~~A~21130~~-0.7C~~~B~63469~Sat~3.6C~~~C~35957~Sun~3.9C~~~D~31728~Mon~4.3C~~~E~35957~Tue~3.6C`
Example alternative layout: `weatherUpdate~~~A~21130~~-0.7C~~~B~63469~Sat~3.6C~~~C~35957~Sun~3.9C~~~D~31728~Mon~4.3C~~~E~35957~Tue~3.6C~~~F~21130~~23.6C`
<table>
<thead>
<tr>

View File

@@ -2,18 +2,87 @@
+++ HMI/US/landscape/n2t-out
│ --- HMI/n2t-out/Program.s.txt
├── +++ HMI/US/landscape/n2t-out/Program.s.txt
│ @@ -11,10 +11,10 @@
│ // dim value
│ int dimValue=40
│ @@ -13,10 +13,10 @@
│ int dimValueNormal=100
│ //color vars
│ int defaultFontColor=65535
│ int defaultBcoColor=6371
│ //feature flags
│ int featNewSliders=0
│ // fix touch offset
│ - lcd_dev fffb 0002 0000 0020
│ + //lcd_dev fffb 0002 0000 0020
│ printh 00 00 00 ff ff ff 88 ff ff ff//Output power on information to serial port
│ page pageStartup
│ --- HMI/n2t-out/cardEntities.txt
├── +++ HMI/US/landscape/n2t-out/cardEntities.txt
│ @@ -20,15 +20,14 @@
│ crcputs tSend.txt,0
│ //send cmd
│ printh 55 bb
│ prints sys0,2
│ prints tSend.txt,0
│ prints crcval,2
│ dim=dimValueNormal
│ - dim=dimValueNormal
│ //wup=cardEntities
│ //remove background & activate reparse mode
│ vis p0,0
│ recmod=1
│ baud=115200
│ //debug stuff
│ vis tTmp,0
│ --- HMI/n2t-out/cardThermo.txt
├── +++ HMI/US/landscape/n2t-out/cardThermo.txt
│ @@ -28,14 +28,19 @@
│ vis tSend,0
│ vis tInstruction,0
│ vis tTmp,0
│ vis tId,0
│ vis xTempMin1,0
│ vis xTempMax1,0
│ vis xTempStep1,0
│ + vis xTempDest,0
│ + vis btUp,0
│ + vis btDown,0
│ + vis tCF,0
│ + vis btDetail,0
│ //tEntity.txt=tHeading.txt
│ // disable all buttons
│ vis bt0,0
│ vis bt1,0
│ vis bt2,0
│ vis bt3,0
│ vis bt4,0
│ @@ -1014,14 +1019,28 @@
│ vis xTempDest1,1
│ vis btDown1,1
│ vis tCF1,1
│ vis bUp2,1
│ vis xTempDest2,1
│ vis bDown2,1
│ vis tCF2,1
│ + }else
│ + {
│ + vis btUp,1
│ + vis xTempDest,1
│ + vis btDown,1
│ + vis tCF,1
│ + vis btUp1,0
│ + vis xTempDest1,0
│ + vis btDown1,0
│ + vis tCF1,0
│ + vis bUp2,0
│ + vis xTempDest2,0
│ + vis bDown2,0
│ + vis tCF2,0
│ }
│ //Show btDetail
│ spstr strCommand.txt,tTmp.txt,"~",58
│ if(tTmp.txt!="1")
│ {
│ vis btDetail,1
│ }else
│ --- HMI/n2t-out/pageStartup.txt
├── +++ HMI/US/landscape/n2t-out/pageStartup.txt
│ @@ -164,15 +164,15 @@
@@ -33,9 +102,68 @@
│ crcputs sys0,2
│ crcputs tSend.txt,0
│ //send cmd
│ --- HMI/n2t-out/popupLight.txt
├── +++ HMI/US/landscape/n2t-out/popupLight.txt
│ @@ -453,19 +453,14 @@
│ ucopy strCommand.txt,4,payloadLength-5,0
│ // write instruction to tInstuction (debug output, but used as variable here, ui elements will be disabled by default)
│ spstr strCommand.txt,tInstruction.txt,"~",0
│ spstr strCommand.txt,tTmp.txt,"~",1
│ if(tInstruction.txt=="entityUpdateDetail"&&entn.txt==tTmp.txt)
│ {
│ // change icon
│ - spstr strCommand.txt,tTmp.txt,"~",2
│ - if(tTmp.txt!="")
│ - {
│ - tIcon1.txt=tTmp.txt
│ - }
│ //spstr strCommand.txt,tIcon1.txt,"~",2
│ vis tIcon1,1
│ // change icon color
│ spstr strCommand.txt,tTmp.txt,"~",3
│ covx tTmp.txt,sys0,0,0
│ tIcon1.pco=sys0
│ // get Button State
│ --- HMI/n2t-out/popupNotify.txt
├── +++ HMI/US/landscape/n2t-out/popupNotify.txt
│ @@ -439,18 +439,14 @@
│ {
│ page cardPower
│ }
│ if(tId.txt=="cardChart")
│ {
│ page cardChart
│ }
│ - if(tId.txt=="cardLChart")
│ - {
│ - page cardLChart
│ - }
│ }
│ // end of user code
│ udelete payloadLength-1
│ bufferPos=0
│ }
│ }
│ }
│ --- HMI/n2t-out/screensaver.txt
├── +++ HMI/US/landscape/n2t-out/screensaver.txt
│ @@ -28,17 +28,14 @@
│ @@ -19,15 +19,14 @@
│ crcputs sys0,2
│ crcputs tSend.txt,0
│ //send cmd
│ printh 55 bb
│ prints sys0,2
│ prints tSend.txt,0
│ prints crcval,2
│ - dim=dimValueNormal
│ recmod=1
│ baud=115200
│ vis tInstruction,0
│ vis tTmp,0
│ vis p0,0
│ vis tNotifyHead,0
│ vis tNotifyText,0
│ @@ -41,17 +40,14 @@
│ }
│ tDate.txt=pageIcons.vaDate.txt
│ dim=dimValue
@@ -53,7 +181,7 @@
│ Max. Text Size: 600
│ Variable (string) strTmp
│ @@ -102,34 +99,14 @@
│ @@ -115,34 +111,14 @@
│ Value: 0
│ Variable (int32) ycR
@@ -88,9 +216,43 @@
│ Send Component ID : disabled
│ Associated Keyboard: none
│ Text : |
│ @@ -485,17 +461,14 @@
│ //get set time to global variable
│ spstr strCommand.txt,pageIcons.vaTime.txt,"~",1
│ spstr pageIcons.vaTime.txt,tTime.txt,"?",0
│ spstr pageIcons.vaTime.txt,tAMPM.txt,"?",1
│ if(tAMPM.txt=="")
│ {
│ vis tAMPM,0
│ - }else
│ - {
│ - vis tAMPM,1
│ }
│ spstr strCommand.txt,tTimeAdd.txt,"~",2
│ ref tIcon1
│ ref tIcon2
│ }
│ if(tInstruction.txt=="date")
│ {
│ --- HMI/n2t-out/screensaver2.txt
├── +++ HMI/US/landscape/n2t-out/screensaver2.txt
│ @@ -28,17 +28,14 @@
│ @@ -19,15 +19,14 @@
│ crcputs sys0,2
│ crcputs tSend.txt,0
│ //send cmd
│ printh 55 bb
│ prints sys0,2
│ prints tSend.txt,0
│ prints crcval,2
│ - dim=dimValueNormal
│ recmod=1
│ baud=115200
│ vis tInstruction,0
│ vis tTmp,0
│ vis p0,0
│ vis tNotifyHead,0
│ vis tNotifyText,0
│ @@ -41,52 +40,19 @@
│ }
│ tDate.txt=pageIcons.vaDate.txt
│ dim=dimValue
@@ -101,14 +263,80 @@
│ - Postinitialize Event
│ - click m0,1
│ -
│ -Variable (string) entn1
│ - Attributes
│ - Scope : local
│ - Text :
│ - Max. Text Size: 14
│ -
│ -Variable (string) entn2
│ - Attributes
│ - Scope : local
│ - Text :
│ - Max. Text Size: 14
│ -
│ -Variable (string) entn3
│ - Attributes
│ - Scope : local
│ - Text :
│ - Max. Text Size: 14
│ -
│ -Variable (string) entn4
│ - Attributes
│ - Scope : local
│ - Text :
│ - Max. Text Size: 14
│ -
│ -Variable (string) entn5
│ - Attributes
│ - Scope : local
│ - Text :
│ - Max. Text Size: 14
│ -
│ Variable (string) strCommand
│ Attributes
│ Scope : local
│ Text :
Max. Text Size: 1979
- Max. Text Size: 1935
│ + Max. Text Size: 1979
│ Variable (string) strTmp
@@ -363,34 +360,14 @@
Attributes
│ Scope : local
│ Text :
│ Max. Text Size: 2
│ @@ -96,27 +62,27 @@
│ Text :
│ Max. Text Size: 25
│ Variable (string) tInstruction
│ Attributes
│ Scope : local
│ Text :
│ - Max. Text Size: 15
│ + Max. Text Size: 50
│ Variable (string) tSend
│ Attributes
│ Scope : local
│ Text :
│ Max. Text Size: 50
│ Variable (string) tTmp
│ Attributes
│ Scope : local
│ Text :
│ - Max. Text Size: 30
│ + Max. Text Size: 50
│ Variable (int32) vaTap
│ Attributes
│ Scope: local
│ Value: 0
│ Variable (int32) xc1
│ @@ -370,165 +336,50 @@
│ Scope : local
│ Dragging : 0
│ Send Component ID : disabled
@@ -116,6 +344,137 @@
│ Text :
│ Max. Text Size : 4
│ - 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
│ - crcputh 55 bb
│ - crcputs sys0,2
│ - crcputs tSend.txt,0
│ - //send cmd
│ - printh 55 bb
│ - prints sys0,2
│ - prints tSend.txt,0
│ - prints crcval,2
│ -
│ Text f2Icon
│ Attributes
│ Scope : local
│ Dragging : 0
│ Send Component ID : disabled
│ Associated Keyboard: none
│ Text :
│ Max. Text Size : 4
│ - 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
│ - crcputh 55 bb
│ - crcputs sys0,2
│ - crcputs tSend.txt,0
│ - //send cmd
│ - printh 55 bb
│ - prints sys0,2
│ - prints tSend.txt,0
│ - prints crcval,2
│ -
│ Text f3Icon
│ Attributes
│ Scope : local
│ Dragging : 0
│ Send Component ID : disabled
│ Associated Keyboard: none
│ Text :
│ Max. Text Size : 4
│ - 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
│ - crcputh 55 bb
│ - crcputs sys0,2
│ - crcputs tSend.txt,0
│ - //send cmd
│ - printh 55 bb
│ - prints sys0,2
│ - prints tSend.txt,0
│ - prints crcval,2
│ -
│ Text f4Icon
│ Attributes
│ Scope : local
│ Dragging : 0
│ Send Component ID : disabled
│ Associated Keyboard: none
│ Text :
│ Max. Text Size : 4
│ - 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
│ - crcputh 55 bb
│ - crcputs sys0,2
│ - crcputs tSend.txt,0
│ - //send cmd
│ - printh 55 bb
│ - prints sys0,2
│ - prints tSend.txt,0
│ - prints crcval,2
│ -
│ Text f5Icon
│ Attributes
│ Scope : local
│ Dragging : 0
│ Send Component ID : disabled
│ Associated Keyboard: none
│ Text :
│ Max. Text Size : 4
│ - 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
│ - crcputh 55 bb
│ - crcputs sys0,2
│ - crcputs tSend.txt,0
│ - //send cmd
│ - printh 55 bb
│ - prints sys0,2
│ - prints tSend.txt,0
│ - prints crcval,2
│ -
│ -Text m0
│ - Attributes
│ - Scope : local
@@ -143,7 +502,7 @@
│ Send Component ID : disabled
│ Associated Keyboard: none
│ Text : PM
│ @@ -572,15 +549,14 @@
│ @@ -710,15 +561,14 @@
│ if(tTmp.txt!="")
│ {
│ covx tTmp.txt,defaultFontColor,0,0
@@ -159,3 +518,48 @@
│ if(tAMPM.txt=="")
│ {
│ vis tAMPM,0
│ @@ -839,44 +689,34 @@
│ //e6Val
│ spstr strCommand.txt,e6Val.txt,"~",60
│ //f1Icon
│ spstr strCommand.txt,f1Icon.txt,"~",63
│ //f1Icon Color
│ spstr strCommand.txt,tTmp.txt,"~",64
│ covx tTmp.txt,f1Icon.pco,0,0
│ - //f1Icon intNameEntity
│ - spstr strCommand.txt,entn1.txt,"~",62
│ //f2Icon
│ spstr strCommand.txt,f2Icon.txt,"~",69
│ //f2Icon Color
│ spstr strCommand.txt,tTmp.txt,"~",70
│ covx tTmp.txt,f2Icon.pco,0,0
│ - //f2Icon intNameEntity
│ - spstr strCommand.txt,entn2.txt,"~",68
│ //f3Icon
│ spstr strCommand.txt,f3Icon.txt,"~",75
│ //f3Icon Color
│ spstr strCommand.txt,tTmp.txt,"~",76
│ covx tTmp.txt,f3Icon.pco,0,0
│ - //f3Icon intNameEntity
│ - spstr strCommand.txt,entn3.txt,"~",74
│ //f4Icon
│ spstr strCommand.txt,f4Icon.txt,"~",81
│ //f4Icon Color
│ spstr strCommand.txt,tTmp.txt,"~",82
│ covx tTmp.txt,f4Icon.pco,0,0
│ - //f4Icon intNameEntity
│ - spstr strCommand.txt,entn4.txt,"~",80
│ //f5Icon
│ spstr strCommand.txt,f5Icon.txt,"~",87
│ //f5Icon Color
│ spstr strCommand.txt,tTmp.txt,"~",88
│ covx tTmp.txt,f5Icon.pco,0,0
│ - //f5Icon intNameEntity
│ - spstr strCommand.txt,entn5.txt,"~",86
│ }
│ if(tInstruction.txt=="notify")
│ {
│ spstr strCommand.txt,tNotifyHead.txt,"~",1
│ spstr strCommand.txt,tNotifyText.txt,"~",2
│ if(tNotifyHead.txt!=""||tNotifyText.txt!="")
│ {

View File

@@ -14,6 +14,8 @@ Program.s
//color vars
int defaultFontColor=65535
int defaultBcoColor=6371
//feature flags
int featNewSliders=0
// fix touch offset
//lcd_dev fffb 0002 0000 0020
printh 00 00 00 ff ff ff 88 ff ff ff//Output power on information to serial port

View File

@@ -19,6 +19,18 @@ Page cardAlarm
Events
Preinitialize Event
tSend.txt="event,renderCurrentPage"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
dim=dimValueNormal
vis p0,0
vis tSend,0

View File

@@ -19,6 +19,18 @@ Page cardChart
Events
Preinitialize Event
tSend.txt="event,renderCurrentPage"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
dim=dimValueNormal
vis p0,0
vis tSend,0

View File

@@ -19,6 +19,18 @@ Page cardEntities
Events
Preinitialize Event
tSend.txt="event,renderCurrentPage"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
dim=dimValueNormal
//wup=cardEntities
//remove background & activate reparse mode
@@ -1856,8 +1868,13 @@ Hotspot m0
}
if(type1.txt=="light")
{
//popupLight.tEntity.txt=tEntity1.txt
page popupLight
if(featNewSliders==1)
{
page popupLightNew
}else
{
page popupLight
}
}
if(type1.txt=="fan")
{
@@ -1899,8 +1916,13 @@ Hotspot m1
}
if(type2.txt=="light")
{
//popupLight.tEntity.txt=tEntity2.txt
page popupLight
if(featNewSliders==1)
{
page popupLightNew
}else
{
page popupLight
}
}
if(type2.txt=="fan")
{
@@ -1942,8 +1964,13 @@ Hotspot m2
}
if(type3.txt=="light")
{
//popupLight.tEntity.txt=tEntity3.txt
page popupLight
if(featNewSliders==1)
{
page popupLightNew
}else
{
page popupLight
}
}
if(type3.txt=="fan")
{
@@ -1985,8 +2012,13 @@ Hotspot m3
}
if(type4.txt=="light")
{
//popupLight.tEntity.txt=tEntity4.txt
page popupLight
if(featNewSliders==1)
{
page popupLightNew
}else
{
page popupLight
}
}
if(type4.txt=="fan")
{

View File

@@ -19,6 +19,18 @@ Page cardGrid
Events
Preinitialize Event
tSend.txt="event,renderCurrentPage"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
dim=dimValueNormal
//remove background & activate reparse mode
vis p0,0
@@ -259,7 +271,7 @@ Text tEntity4
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 16
x coordinate : 22
y coordinate : 274
Width : 140
Height : 30
@@ -1052,7 +1064,13 @@ Timer tmLP
Timer Event
if(tTmp.txt=="light")
{
page popupLight
if(featNewSliders==1)
{
page popupLightNew
}else
{
page popupLight
}
}
if(tTmp.txt=="fan")
{
@@ -1161,6 +1179,17 @@ Timer tmSerial
{
// change icon
spstr strCommand.txt,bEntity1.txt,"~",16
// way to get force font adjustment
strlen bEntity1.txt,sys0
//check 2nd last char for ¬
substr bEntity1.txt,tTmp.txt,sys0-2,1
if(tTmp.txt=="¬")
{
substr bEntity1.txt,tTmp.txt,sys0-1,1
covx tTmp.txt,sys1,0,0
bEntity1.font=sys1
substr bEntity1.txt,bEntity1.txt,0,sys0-2
}
vis bEntity1,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",17
@@ -1182,6 +1211,17 @@ Timer tmSerial
{
// change icon
spstr strCommand.txt,bEntity2.txt,"~",22
// way to get force font adjustment
strlen bEntity2.txt,sys0
//check 2nd last char for ¬
substr bEntity2.txt,tTmp.txt,sys0-2,1
if(tTmp.txt=="¬")
{
substr bEntity2.txt,tTmp.txt,sys0-1,1
covx tTmp.txt,sys1,0,0
bEntity2.font=sys1
substr bEntity2.txt,bEntity2.txt,0,sys0-2
}
vis bEntity2,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",23
@@ -1203,6 +1243,17 @@ Timer tmSerial
{
// change icon
spstr strCommand.txt,bEntity3.txt,"~",28
// way to get force font adjustment
strlen bEntity3.txt,sys0
//check 2nd last char for ¬
substr bEntity3.txt,tTmp.txt,sys0-2,1
if(tTmp.txt=="¬")
{
substr bEntity3.txt,tTmp.txt,sys0-1,1
covx tTmp.txt,sys1,0,0
bEntity3.font=sys1
substr bEntity3.txt,bEntity3.txt,0,sys0-2
}
vis bEntity3,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",29
@@ -1224,6 +1275,17 @@ Timer tmSerial
{
// change icon
spstr strCommand.txt,bEntity4.txt,"~",34
// way to get force font adjustment
strlen bEntity4.txt,sys0
//check 2nd last char for ¬
substr bEntity4.txt,tTmp.txt,sys0-2,1
if(tTmp.txt=="¬")
{
substr bEntity4.txt,tTmp.txt,sys0-1,1
covx tTmp.txt,sys1,0,0
bEntity4.font=sys1
substr bEntity4.txt,bEntity4.txt,0,sys0-2
}
vis bEntity4,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",35
@@ -1245,6 +1307,17 @@ Timer tmSerial
{
// change icon
spstr strCommand.txt,bEntity5.txt,"~",40
// way to get force font adjustment
strlen bEntity5.txt,sys0
//check 2nd last char for ¬
substr bEntity5.txt,tTmp.txt,sys0-2,1
if(tTmp.txt=="¬")
{
substr bEntity5.txt,tTmp.txt,sys0-1,1
covx tTmp.txt,sys1,0,0
bEntity5.font=sys1
substr bEntity5.txt,bEntity5.txt,0,sys0-2
}
vis bEntity5,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",41
@@ -1266,6 +1339,17 @@ Timer tmSerial
{
// change icon
spstr strCommand.txt,bEntity6.txt,"~",46
// way to get force font adjustment
strlen bEntity6.txt,sys0
//check 2nd last char for ¬
substr bEntity6.txt,tTmp.txt,sys0-2,1
if(tTmp.txt=="¬")
{
substr bEntity6.txt,tTmp.txt,sys0-1,1
covx tTmp.txt,sys1,0,0
bEntity6.font=sys1
substr bEntity6.txt,bEntity6.txt,0,sys0-2
}
vis bEntity6,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",47

View File

@@ -19,6 +19,18 @@ Page cardGrid2
Events
Preinitialize Event
tSend.txt="event,renderCurrentPage"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
dim=dimValueNormal
//remove background & activate reparse mode
vis p0,0
@@ -991,26 +1003,26 @@ Button bEntity7
Events
Touch Press Event
tmLP.en=1
tTmp.txt=type6.txt
pageIcons.tTmp1.txt=tEntity6.txt
pageIcons.tTmp2.txt=entn6.txt
pageIcons.tTmp3.txt=bEntity6.txt
if(type6.txt=="shutter")
tTmp.txt=type7.txt
pageIcons.tTmp1.txt=tEntity7.txt
pageIcons.tTmp2.txt=entn7.txt
pageIcons.tTmp3.txt=bEntity7.txt
if(type7.txt=="shutter")
{
page popupShutter
}
if(type6.txt=="input_sel")
if(type7.txt=="input_sel")
{
page popupInSel
}
if(type6.txt=="timer")
if(type7.txt=="timer")
{
page popupTimer
}
Touch Release Event
tmLP.en=0
tSend.txt="event,buttonPress2,"+entn6.txt+",button"
tSend.txt="event,buttonPress2,"+entn7.txt+",button"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
@@ -1057,26 +1069,26 @@ Button bEntity8
Events
Touch Press Event
tmLP.en=1
tTmp.txt=type6.txt
pageIcons.tTmp1.txt=tEntity6.txt
pageIcons.tTmp2.txt=entn6.txt
pageIcons.tTmp3.txt=bEntity6.txt
if(type6.txt=="shutter")
tTmp.txt=type8.txt
pageIcons.tTmp1.txt=tEntity8.txt
pageIcons.tTmp2.txt=entn8.txt
pageIcons.tTmp3.txt=bEntity8.txt
if(type8.txt=="shutter")
{
page popupShutter
}
if(type6.txt=="input_sel")
if(type8.txt=="input_sel")
{
page popupInSel
}
if(type6.txt=="timer")
if(type8.txt=="timer")
{
page popupTimer
}
Touch Release Event
tmLP.en=0
tSend.txt="event,buttonPress2,"+entn6.txt+",button"
tSend.txt="event,buttonPress2,"+entn8.txt+",button"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
@@ -1274,7 +1286,13 @@ Timer tmLP
Timer Event
if(tTmp.txt=="light")
{
page popupLight
if(featNewSliders==1)
{
page popupLightNew
}else
{
page popupLight
}
}
if(tTmp.txt=="fan")
{
@@ -1383,6 +1401,17 @@ Timer tmSerial
{
// change icon
spstr strCommand.txt,bEntity1.txt,"~",16
// way to get force font adjustment
strlen bEntity1.txt,sys0
//check 2nd last char for ¬
substr bEntity1.txt,tTmp.txt,sys0-2,1
if(tTmp.txt=="¬")
{
substr bEntity1.txt,tTmp.txt,sys0-1,1
covx tTmp.txt,sys1,0,0
bEntity1.font=sys1
substr bEntity1.txt,bEntity1.txt,0,sys0-2
}
vis bEntity1,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",17
@@ -1404,6 +1433,17 @@ Timer tmSerial
{
// change icon
spstr strCommand.txt,bEntity2.txt,"~",22
// way to get force font adjustment
strlen bEntity2.txt,sys0
//check 2nd last char for ¬
substr bEntity2.txt,tTmp.txt,sys0-2,1
if(tTmp.txt=="¬")
{
substr bEntity2.txt,tTmp.txt,sys0-1,1
covx tTmp.txt,sys1,0,0
bEntity2.font=sys1
substr bEntity2.txt,bEntity2.txt,0,sys0-2
}
vis bEntity2,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",23
@@ -1425,6 +1465,17 @@ Timer tmSerial
{
// change icon
spstr strCommand.txt,bEntity3.txt,"~",28
// way to get force font adjustment
strlen bEntity3.txt,sys0
//check 2nd last char for ¬
substr bEntity3.txt,tTmp.txt,sys0-2,1
if(tTmp.txt=="¬")
{
substr bEntity3.txt,tTmp.txt,sys0-1,1
covx tTmp.txt,sys1,0,0
bEntity3.font=sys1
substr bEntity3.txt,bEntity3.txt,0,sys0-2
}
vis bEntity3,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",29
@@ -1446,6 +1497,17 @@ Timer tmSerial
{
// change icon
spstr strCommand.txt,bEntity4.txt,"~",34
// way to get force font adjustment
strlen bEntity4.txt,sys0
//check 2nd last char for ¬
substr bEntity4.txt,tTmp.txt,sys0-2,1
if(tTmp.txt=="¬")
{
substr bEntity4.txt,tTmp.txt,sys0-1,1
covx tTmp.txt,sys1,0,0
bEntity4.font=sys1
substr bEntity4.txt,bEntity4.txt,0,sys0-2
}
vis bEntity4,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",35
@@ -1467,6 +1529,17 @@ Timer tmSerial
{
// change icon
spstr strCommand.txt,bEntity5.txt,"~",40
// way to get force font adjustment
strlen bEntity5.txt,sys0
//check 2nd last char for ¬
substr bEntity5.txt,tTmp.txt,sys0-2,1
if(tTmp.txt=="¬")
{
substr bEntity5.txt,tTmp.txt,sys0-1,1
covx tTmp.txt,sys1,0,0
bEntity5.font=sys1
substr bEntity5.txt,bEntity5.txt,0,sys0-2
}
vis bEntity5,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",41
@@ -1488,6 +1561,17 @@ Timer tmSerial
{
// change icon
spstr strCommand.txt,bEntity6.txt,"~",46
// way to get force font adjustment
strlen bEntity6.txt,sys0
//check 2nd last char for ¬
substr bEntity6.txt,tTmp.txt,sys0-2,1
if(tTmp.txt=="¬")
{
substr bEntity6.txt,tTmp.txt,sys0-1,1
covx tTmp.txt,sys1,0,0
bEntity6.font=sys1
substr bEntity6.txt,bEntity6.txt,0,sys0-2
}
vis bEntity6,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",47
@@ -1509,6 +1593,17 @@ Timer tmSerial
{
// change icon
spstr strCommand.txt,bEntity7.txt,"~",52
// way to get force font adjustment
strlen bEntity7.txt,sys0
//check 2nd last char for ¬
substr bEntity7.txt,tTmp.txt,sys0-2,1
if(tTmp.txt=="¬")
{
substr bEntity7.txt,tTmp.txt,sys0-1,1
covx tTmp.txt,sys1,0,0
bEntity7.font=sys1
substr bEntity7.txt,bEntity7.txt,0,sys0-2
}
vis bEntity7,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",53
@@ -1530,6 +1625,17 @@ Timer tmSerial
{
// change icon
spstr strCommand.txt,bEntity8.txt,"~",58
// way to get force font adjustment
strlen bEntity8.txt,sys0
//check 2nd last char for ¬
substr bEntity8.txt,tTmp.txt,sys0-2,1
if(tTmp.txt=="¬")
{
substr bEntity8.txt,tTmp.txt,sys0-1,1
covx tTmp.txt,sys1,0,0
bEntity8.font=sys1
substr bEntity8.txt,bEntity8.txt,0,sys0-2
}
vis bEntity8,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",59
@@ -1616,6 +1722,10 @@ Timer tmSerial
{
page cardChart
}
if(tId.txt=="cardLChart")
{
page cardLChart
}
}
if(tInstruction.txt=="time")
{

View File

@@ -19,6 +19,18 @@ Page cardLChart
Events
Preinitialize Event
tSend.txt="event,renderCurrentPage"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
dim=dimValueNormal
vis p0,0
vis tSend,0

View File

@@ -19,6 +19,18 @@ Page cardMedia
Events
Preinitialize Event
tSend.txt="event,renderCurrentPage"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
dim=dimValueNormal
vis p0,0
vis tSend,0
@@ -1485,6 +1497,17 @@ Timer tmSerial
// change icon
spstr strCommand.txt,bEntity1.txt,"~",25
vis bEntity1,1
// way to get force font adjustment
strlen bEntity1.txt,sys0
//check 2nd last char for ¬
substr bEntity1.txt,tTmp.txt,sys0-2,1
if(tTmp.txt=="¬")
{
substr bEntity1.txt,tTmp.txt,sys0-1,1
covx tTmp.txt,sys1,0,0
bEntity1.font=sys1
substr bEntity1.txt,bEntity1.txt,0,sys0-2
}
// change icon color
spstr strCommand.txt,tTmp.txt,"~",26
covx tTmp.txt,sys0,0,0
@@ -1506,6 +1529,17 @@ Timer tmSerial
// change icon
spstr strCommand.txt,bEntity2.txt,"~",31
vis bEntity2,1
// way to get force font adjustment
strlen bEntity2.txt,sys0
//check 2nd last char for ¬
substr bEntity2.txt,tTmp.txt,sys0-2,1
if(tTmp.txt=="¬")
{
substr bEntity2.txt,tTmp.txt,sys0-1,1
covx tTmp.txt,sys1,0,0
bEntity2.font=sys1
substr bEntity2.txt,bEntity2.txt,0,sys0-2
}
// change icon color
spstr strCommand.txt,tTmp.txt,"~",32
covx tTmp.txt,sys0,0,0
@@ -1527,6 +1561,17 @@ Timer tmSerial
// change icon
spstr strCommand.txt,bEntity3.txt,"~",37
vis bEntity3,1
// way to get force font adjustment
strlen bEntity3.txt,sys0
//check 2nd last char for ¬
substr bEntity3.txt,tTmp.txt,sys0-2,1
if(tTmp.txt=="¬")
{
substr bEntity3.txt,tTmp.txt,sys0-1,1
covx tTmp.txt,sys1,0,0
bEntity3.font=sys1
substr bEntity3.txt,bEntity3.txt,0,sys0-2
}
// change icon color
spstr strCommand.txt,tTmp.txt,"~",38
covx tTmp.txt,sys0,0,0
@@ -1548,6 +1593,17 @@ Timer tmSerial
// change icon
spstr strCommand.txt,bEntity4.txt,"~",43
vis bEntity4,1
// way to get force font adjustment
strlen bEntity4.txt,sys0
//check 2nd last char for ¬
substr bEntity4.txt,tTmp.txt,sys0-2,1
if(tTmp.txt=="¬")
{
substr bEntity4.txt,tTmp.txt,sys0-1,1
covx tTmp.txt,sys1,0,0
bEntity4.font=sys1
substr bEntity4.txt,bEntity4.txt,0,sys0-2
}
// change icon color
spstr strCommand.txt,tTmp.txt,"~",44
covx tTmp.txt,sys0,0,0
@@ -1569,6 +1625,17 @@ Timer tmSerial
// change icon
spstr strCommand.txt,bEntity5.txt,"~",49
vis bEntity5,1
// way to get force font adjustment
strlen bEntity5.txt,sys0
//check 2nd last char for ¬
substr bEntity5.txt,tTmp.txt,sys0-2,1
if(tTmp.txt=="¬")
{
substr bEntity5.txt,tTmp.txt,sys0-1,1
covx tTmp.txt,sys1,0,0
bEntity5.font=sys1
substr bEntity5.txt,bEntity5.txt,0,sys0-2
}
// change icon color
spstr strCommand.txt,tTmp.txt,"~",50
covx tTmp.txt,sys0,0,0
@@ -1590,6 +1657,17 @@ Timer tmSerial
// change icon
spstr strCommand.txt,bEntity6.txt,"~",55
vis bEntity6,1
// way to get force font adjustment
strlen bEntity6.txt,sys0
//check 2nd last char for ¬
substr bEntity6.txt,tTmp.txt,sys0-2,1
if(tTmp.txt=="¬")
{
substr bEntity6.txt,tTmp.txt,sys0-1,1
covx tTmp.txt,sys1,0,0
bEntity6.font=sys1
substr bEntity6.txt,bEntity6.txt,0,sys0-2
}
// change icon color
spstr strCommand.txt,tTmp.txt,"~",56
covx tTmp.txt,sys0,0,0

View File

@@ -19,6 +19,18 @@ Page cardPower
Events
Preinitialize Event
tSend.txt="event,renderCurrentPage"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
dim=dimValueNormal
vis p0,0
vis tSend,0
@@ -1652,6 +1664,10 @@ Timer tmSerial
{
page cardChart
}
if(tId.txt=="cardLChart")
{
page cardLChart
}
}
if(tInstruction.txt=="time")
{

View File

@@ -19,6 +19,18 @@ Page cardQR
Events
Preinitialize Event
tSend.txt="event,renderCurrentPage"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
dim=dimValueNormal
vis p0,0
vis tSend,0

View File

@@ -19,6 +19,18 @@ Page cardThermo
Events
Preinitialize Event
tSend.txt="event,renderCurrentPage"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
dim=dimValueNormal
vis p0,0
vis tSend,0
@@ -28,6 +40,11 @@ Page cardThermo
vis xTempMin1,0
vis xTempMax1,0
vis xTempStep1,0
vis xTempDest,0
vis btUp,0
vis btDown,0
vis tCF,0
vis btDetail,0
//tEntity.txt=tHeading.txt
// disable all buttons
vis bt0,0
@@ -1730,6 +1747,20 @@ Timer tmSerial
vis xTempDest2,1
vis bDown2,1
vis tCF2,1
}else
{
vis btUp,1
vis xTempDest,1
vis btDown,1
vis tCF,1
vis btUp1,0
vis xTempDest1,0
vis btDown1,0
vis tCF1,0
vis bUp2,0
vis xTempDest2,0
vis bDown2,0
vis tCF2,0
}
//Show btDetail
spstr strCommand.txt,tTmp.txt,"~",58

View File

@@ -1,7 +1,7 @@
Program.s
0 Component(s)
13 Line(s) of event code
13 Unique line(s) of event code
14 Line(s) of event code
14 Unique line(s) of event code
popupThermo
44 Component(s)
523 Line(s) of event code
@@ -10,30 +10,26 @@ pageIcons
7 Component(s)
0 Line(s) of event code
0 Unique line(s) of event code
popupNotify
19 Component(s)
267 Line(s) of event code
172 Unique line(s) of event code
pageStartup
20 Component(s)
198 Line(s) of event code
137 Unique line(s) of event code
popupTimer
42 Component(s)
516 Line(s) of event code
257 Unique line(s) of event code
popupLight
23 Component(s)
410 Line(s) of event code
209 Unique line(s) of event code
cardChart
cardLChart
33 Component(s)
437 Line(s) of event code
296 Unique line(s) of event code
412 Line(s) of event code
267 Unique line(s) of event code
popupInSel
34 Component(s)
621 Line(s) of event code
297 Unique line(s) of event code
pageStartup
20 Component(s)
193 Line(s) of event code
135 Unique line(s) of event code
popupNotify
19 Component(s)
267 Line(s) of event code
172 Unique line(s) of event code
pageTest
26 Component(s)
68 Line(s) of event code
@@ -46,53 +42,61 @@ popupFan
27 Component(s)
355 Line(s) of event code
206 Unique line(s) of event code
cardChart
33 Component(s)
447 Line(s) of event code
297 Unique line(s) of event code
cardQR
34 Component(s)
410 Line(s) of event code
238 Unique line(s) of event code
cardAlarm
43 Component(s)
500 Line(s) of event code
273 Unique line(s) of event code
cardGrid
44 Component(s)
523 Line(s) of event code
295 Unique line(s) of event code
screensaver
46 Component(s)
435 Line(s) of event code
309 Unique line(s) of event code
cardGrid2
52 Component(s)
611 Line(s) of event code
319 Unique line(s) of event code
cardLChart
33 Component(s)
402 Line(s) of event code
266 Unique line(s) of event code
cardThermo
57 Component(s)
540 Line(s) of event code
319 Unique line(s) of event code
cardMedia
59 Component(s)
649 Line(s) of event code
322 Unique line(s) of event code
420 Line(s) of event code
239 Unique line(s) of event code
popupLightNew
23 Component(s)
412 Line(s) of event code
209 Unique line(s) of event code
screensaver2
58 Component(s)
348 Line(s) of event code
245 Unique line(s) of event code
362 Line(s) of event code
248 Unique line(s) of event code
cardThermo
57 Component(s)
569 Line(s) of event code
337 Unique line(s) of event code
cardAlarm
43 Component(s)
510 Line(s) of event code
274 Unique line(s) of event code
cardMedia
59 Component(s)
713 Line(s) of event code
357 Unique line(s) of event code
screensaver
46 Component(s)
445 Line(s) of event code
310 Unique line(s) of event code
popupLight
28 Component(s)
412 Line(s) of event code
227 Unique line(s) of event code
cardGrid
44 Component(s)
593 Line(s) of event code
333 Unique line(s) of event code
cardPower
54 Component(s)
527 Line(s) of event code
347 Unique line(s) of event code
541 Line(s) of event code
350 Unique line(s) of event code
cardGrid2
52 Component(s)
703 Line(s) of event code
385 Unique line(s) of event code
cardEntities
67 Component(s)
1170 Line(s) of event code
532 Unique line(s) of event code
1204 Line(s) of event code
536 Unique line(s) of event code
Total
22 Page(s)
847 Component(s)
9920 Line(s) of event code
2360 Unique line(s) of event code
23 Page(s)
875 Component(s)
10707 Line(s) of event code
2466 Unique line(s) of event code

View File

@@ -396,7 +396,7 @@ Text tVersion
Horizontal Alignment: center
Vertical Alignment : center
Input Type : character
Text : 51
Text : 53
Max. Text Size : 10
Word wrap : disabled
Horizontal Spacing : 0
@@ -575,6 +575,12 @@ Timer tmSerial
{
covx tTmp.txt,defaultFontColor,0,0
}
// get feature flag popup
spstr strCommand.txt,tTmp.txt,"~",5
if(tTmp.txt!="")
{
covx tTmp.txt,featNewSliders,0,0
}
}
if(tInstruction.txt=="timeout")
{

View File

@@ -24,12 +24,13 @@ Page popupLight
tEntity.txt=pageIcons.tTmp1.txt
//get entity id
entn.txt=pageIcons.tTmp2.txt
tIcon1.txt=pageIcons.tTmp3.txt
vis p0,0
vis tSend,0
vis tTmp,0
vis tInstruction,0
vis tId,0
vis bEffect,0
vis hBrightness,0
//page open event
// event,pageOpenDetail,typeOfPage,tEntityName
// craft command
@@ -46,16 +47,16 @@ Page popupLight
prints tSend.txt,0
prints crcval,2
//disable brightness by default
//vis t1,0
//vis t2,0
vis hBrightness,1
vis t1,0
vis t2,0
vis hBrightness,0
//disable color temp by default
//vis t4,0
//vis t3,0
vis t4,0
vis t3,0
vis hTempSlider,0
//disable color wheel components by default
vis bColor,0
//vis t0,0
vis t0,0
vis pColorWheel,0
//vis t0,0
popupLight.bco=defaultBcoColor
@@ -74,83 +75,115 @@ Page popupLight
}
if(defaultBcoColor==0)
{
hBrightness.pic=24
hBrightness.pic1=25
hBrightness.pic2=15
hTempSlider.pic=16
hTempSlider.pic1=16
hTempSlider.pic1=17
hTempSlider.pic2=15
}
Postinitialize Event
fill hBrightness.x,hBrightness.y,100,250,defaultBcoColor
Variable (int32) col
Attributes
ID : 18
Scope: local
Value: 65504
Variable (string) entn
Attributes
ID : 11
ID : 20
Scope : local
Text :
Max. Text Size: 80
Variable (int32) mode
Attributes
ID : 13
ID : 22
Scope: local
Value: 1
Variable (int32) mode_temp
Attributes
ID : 14
ID : 23
Scope: local
Value: 0
Variable (string) strCommand
Attributes
ID : 9
ID : 16
Scope : local
Text :
Max. Text Size: 500
Variable (string) tId
Attributes
ID : 20
Scope : local
Text :
Max. Text Size: 20
Variable (string) tInstruction
Attributes
ID : 19
Scope : local
Text :
Max. Text Size: 20
Variable (string) tSend
Attributes
ID : 16
ID : 26
Scope : local
Text :
Max. Text Size: 200
Variable (string) tTmp
Text t0
Attributes
ID : 21
Scope : local
Text :
Max. Text Size: 80
Text tEntity
Attributes
ID : 2
ID : 24
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 108
y coordinate : 21
Width : 263
x coordinate : 9
y coordinate : 80
Width : 64
Height : 30
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 0
Back. Color : 6371
Font Color : 65535
Horizontal Alignment: left
Vertical Alignment : center
Input Type : character
Text : Color
Max. Text Size : 50
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Text t1
Attributes
ID : 6
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 10
y coordinate : 226
Width : 211
Height : 30
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 0
Back. Color : 6371
Font Color : 65535
Horizontal Alignment: left
Vertical Alignment : center
Input Type : character
Text : Brightness
Max. Text Size : 50
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Text t2
Attributes
ID : 9
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 10
y coordinate : 267
Width : 45
Height : 30
Effect : load
Effect Priority : 0
@@ -160,25 +193,244 @@ Text tEntity
Associated Keyboard : none
Font ID : 1
Back. Color : 6371
Font Color : 65535
Font Color : 40147
Horizontal Alignment: center
Vertical Alignment : center
Input Type : character
Text : 
Max. Text Size : 10
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Text t3
Attributes
ID : 10
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 10
y coordinate : 181
Width : 45
Height : 30
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 1
Back. Color : 6371
Font Color : 40147
Horizontal Alignment: center
Vertical Alignment : center
Input Type : character
Text : 
Max. Text Size : 10
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Text t4
Attributes
ID : 11
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 9
y coordinate : 143
Width : 242
Height : 30
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 0
Back. Color : 6371
Font Color : 65535
Horizontal Alignment: left
Vertical Alignment : center
Input Type : character
Text : Temperature
Max. Text Size : 50
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Text tEntity
Attributes
ID : 3
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 92
y coordinate : 21
Width : 263
Height : 30
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 0
Back. Color : 6371
Font Color : 65535
Horizontal Alignment: left
Vertical Alignment : center
Input Type : character
Text : tEntity1
Max. Text Size : 25
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Picture pColorWheel
Text tIcon1
Attributes
ID : 4
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 11
y coordinate : 21
Width : 45
Height : 30
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 1
Back. Color : 6371
Font Color : 17299
Horizontal Alignment: center
Vertical Alignment : center
Input Type : character
Text : 
Max. Text Size : 10
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Text tId
Attributes
ID : 18
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 100
y coordinate : 290
Width : 100
Height : 30
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 0
Back. Color : 65535
Font Color : 0
Horizontal Alignment: center
Vertical Alignment : center
Input Type : character
Text :
Max. Text Size : 20
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Text tInstruction
Attributes
ID : 17
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 0
y coordinate : 290
Width : 100
Height : 30
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 0
Back. Color : 65535
Font Color : 0
Horizontal Alignment: center
Vertical Alignment : center
Input Type : character
Text :
Max. Text Size : 20
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Text tTmp
Attributes
ID : 12
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 406
y coordinate : 277
Width : 34
Height : 30
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 0
Back. Color : 65535
Font Color : 0
Horizontal Alignment: center
Vertical Alignment : center
Input Type : character
Text :
Max. Text Size : 80
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Picture p0
Attributes
ID : 1
Scope : local
Dragging : 0
Send Component ID: disabled
Opacity : 127
x coordinate : 249
y coordinate : 105
x coordinate : 0
y coordinate : 0
Width : 480
Height : 320
Effect : load
Effect Priority : 0
Effect Time : 300
Picture ID : 0
Picture pColorWheel
Attributes
ID : 2
Scope : local
Dragging : 0
Send Component ID: disabled
Opacity : 127
x coordinate : 167
y coordinate : 69
Width : 160
Height : 160
Effect : load
@@ -216,44 +468,30 @@ Picture pColorWheel
Slider hBrightness
Attributes
ID : 4
ID : 7
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 105
y coordinate : 64
Width : 100
Height : 250
x coordinate : 61
y coordinate : 261
Width : 335
Height : 43
Effect : load
Effect Priority : 0
Effect Time : 300
Direction : vertical
Direction : horizontal
Fill : image
Cursor width : auto
Cursor height : 1
Back. Picture ID : 65535
Slided Back. Picture ID: 65535
Cursor height : 255
Back. Picture ID : 5
Slided Back. Picture ID: 4
Position : 50
Upper range limit : 100
Lower range limit : 0
Events
Touch Release Event
//draw black background
fill hBrightness.x,hBrightness.y,100,hBrightness.val*-25/10+250,8484
//draw draw colored bar at the position of the current brightness value
fill hBrightness.x,hBrightness.val*-25/10+314,100,hBrightness.val*25/10,col.val
if(hBrightness.val>7)
{
//draw cursor
fill hBrightness.x+25,hBrightness.val*-25/10+322,50,4,WHITE
//paint corner
xstr hBrightness.x,hBrightness.val*-25/10+314,100,hBrightness.h,7,8484,0,0,0,3,"a"
}
//paint corners
xstr hBrightness.x,hBrightness.y,100,hBrightness.h,7,defaultBcoColor,0,0,0,3,"a"
xstr hBrightness.x,hBrightness.y+hBrightness.h-15,100,hBrightness.h,7,defaultBcoColor,0,0,0,3,"b"
tmCooldown.en=1
tmCooldown.tim=2500
//craft command
@@ -274,24 +512,24 @@ Slider hBrightness
Slider hTempSlider
Attributes
ID : 10
ID : 19
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 279
y coordinate : 64
Width : 100
Height : 250
x coordinate : 61
y coordinate : 178
Width : 335
Height : 44
Effect : load
Effect Priority : 0
Effect Time : 300
Direction : vertical
Direction : horizontal
Fill : image
Cursor width : auto
Cursor height : 255
Back. Picture ID : 7
Slided Back. Picture ID: 7
Back. Picture ID : 22
Slided Back. Picture ID: 23
Position : 50
Upper range limit : 100
Lower range limit : 0
@@ -318,12 +556,12 @@ Slider hTempSlider
Button b0
Attributes
ID : 3
ID : 5
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 413
x coordinate : 397
y coordinate : 8
Width : 50
Height : 50
@@ -364,13 +602,13 @@ Button b0
Button bColor
Attributes
ID : 12
ID : 21
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 30
y coordinate : 146
x coordinate : 93
y coordinate : 68
Width : 50
Height : 50
Effect : load
@@ -401,8 +639,8 @@ Button bColor
//enable color wheel
vis pColorWheel,1
//disable color temp
//vis t4,0
//vis t3,0
vis t4,0
vis t3,0
vis hTempSlider,0
}else
{
@@ -412,21 +650,21 @@ Button bColor
if(mode_temp.val==1)
{
//enable color temp
//vis t4,1
//vis t3,1
vis t4,1
vis t3,1
vis hTempSlider,1
}
}
Button bEffect
Attributes
ID : 17
ID : 27
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 30
y coordinate : 213
x coordinate : 396
y coordinate : 95
Width : 50
Height : 50
Effect : load
@@ -453,17 +691,18 @@ Button bEffect
Touch Press Event
pageIcons.tTmp1.txt=tEntity.txt
pageIcons.tTmp2.txt=entn.txt
pageIcons.tTmp3.txt=tIcon1.txt
page popupInSel
Dual-state Button btOnOff1
Attributes
ID : 5
ID : 8
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 30
y coordinate : 77
x coordinate : 341
y coordinate : 95
Width : 50
Height : 50
Effect : load
@@ -502,43 +741,18 @@ Dual-state Button btOnOff1
Timer tmCooldown
Attributes
ID : 15
ID : 25
Scope : local
Period (ms): 100
Period (ms): 300
Enabled : no
Events
Timer Event
tmCooldown.en=0
Timer tmDrawCooldown
Attributes
ID : 22
Scope : local
Period (ms): 500
Enabled : no
Events
Timer Event
//draw black background
fill hBrightness.x,hBrightness.y,100,hBrightness.val*-25/10+250,8484
//draw draw colored bar at the position of the current brightness value
fill hBrightness.x,hBrightness.val*-25/10+314,100,hBrightness.val*25/10,col.val
if(hBrightness.val>7)
{
//draw cursor
fill hBrightness.x+25,hBrightness.val*-25/10+322,50,4,WHITE
//paint corner
xstr hBrightness.x,hBrightness.val*-25/10+314,100,hBrightness.h,7,8484,0,0,0,3,"a"
}
//paint corners
xstr hBrightness.x,hBrightness.y,100,hBrightness.h,7,defaultBcoColor,0,0,0,3,"a"
xstr hBrightness.x,hBrightness.y+hBrightness.h-15,100,hBrightness.h,7,defaultBcoColor,0,0,0,3,"b"
tmDrawCooldown.en=0
Timer tmSerial
Attributes
ID : 8
ID : 15
Scope : local
Period (ms): 50
Enabled : yes
@@ -593,12 +807,11 @@ Timer tmSerial
{
// change icon
//spstr strCommand.txt,tIcon1.txt,"~",2
//vis tIcon1,1
vis tIcon1,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",3
covx tTmp.txt,sys0,0,0
col.val=sys0
//tEntity.pco=sys0
tIcon1.pco=sys0
// get Button State
spstr strCommand.txt,tTmp.txt,"~",4
covx tTmp.txt,sys0,0,0
@@ -607,26 +820,27 @@ Timer tmSerial
spstr strCommand.txt,tTmp.txt,"~",5
if(tTmp.txt=="disable")
{
//vis t1,0
//vis t2,0
vis t1,0
vis t2,0
vis hBrightness,0
}else
{
//vis t1,1
//vis t2,1
vis t1,1
vis t2,1
vis hBrightness,1
covx tTmp.txt,sys0,0,0
hBrightness.val=sys0
tmDrawCooldown.en=1
tmDrawCooldown.tim=500
if(tmCooldown.en==0)
{
hBrightness.val=sys0
}
}
// get ColorTemp value
spstr strCommand.txt,tTmp.txt,"~",6
if(tTmp.txt=="disable")
{
vis hTempSlider,0
//vis t3,0
//vis t4,0
vis t3,0
vis t4,0
mode_temp.val=0
// mode == 1 is temp controls currently shown
if(mode.val==1)
@@ -649,8 +863,8 @@ Timer tmSerial
{
mode_temp.val=1
vis hTempSlider,1
//vis t3,1
//vis t4,1
vis t3,1
vis t4,1
if(tmCooldown.en==0)
{
covx tTmp.txt,sys0,0,0
@@ -669,12 +883,12 @@ Timer tmSerial
// disable -> isn't supported
if(tTmp.txt=="disable")
{
//vis t0,0
vis t0,0
vis bColor,0
vis pColorWheel,0
}else
{
//vis t0,1
vis t0,1
//only enable bColor button if color temp is also supported
if(mode_temp.val==1)
{
@@ -686,11 +900,11 @@ Timer tmSerial
}
}
// set t0 Color (Localization)
//spstr strCommand.txt,t0.txt,"~",8
spstr strCommand.txt,t0.txt,"~",8
// set t4 Temperature (Localization)
//spstr strCommand.txt,t4.txt,"~",9
spstr strCommand.txt,t4.txt,"~",9
// set t1 Brightness (Localization)
//spstr strCommand.txt,t1.txt,"~",10
spstr strCommand.txt,t1.txt,"~",10
// activate effect button
spstr strCommand.txt,tTmp.txt,"~",11
if(tTmp.txt=="enable")
@@ -825,7 +1039,7 @@ Timer tmSerial
Timer tmSleep
Attributes
ID : 7
ID : 14
Scope : local
Period (ms): 1000
Enabled : yes
@@ -845,7 +1059,7 @@ Timer tmSleep
TouchCap tc0
Attributes
ID : 6
ID : 13
Scope: local
Value: 0

View File

@@ -0,0 +1,855 @@
Page popupLightNew
Attributes
ID : 0
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
Width : 480
Effect : load
Effect Priority : 0
Effect Time : 300
Locked : no
Swide up page ID : disabled
Swide down page ID : disabled
Swide left page ID : disabled
Swide right page ID: disabled
Fill : solid color
Back. Color : 6371
Events
Preinitialize Event
dim=dimValueNormal
//get entitiy name
tEntity.txt=pageIcons.tTmp1.txt
//get entity id
entn.txt=pageIcons.tTmp2.txt
vis tSend,0
vis tTmp,0
vis tInstruction,0
vis tId,0
vis bEffect,0
vis hBrightness,0
//page open event
// event,pageOpenDetail,typeOfPage,tEntityName
// craft command
tSend.txt="event,pageOpenDetail,popupLight,"+entn.txt
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
//disable brightness by default
//vis t1,0
//vis t2,0
vis hBrightness,1
//disable color temp by default
//vis t4,0
//vis t3,0
vis hTempSlider,0
//disable color wheel components by default
vis bColor,0
//vis t0,0
vis pColorWheel,0
//vis t0,0
popupLightNew.bco=defaultBcoColor
for(sys0=0;sys0<27;sys0++)
{
if(b[sys0].type==98||b[sys0].type==116)
{
b[sys0].bco=defaultBcoColor
b[sys0].pco=defaultFontColor
}
if(b[sys0].type==53&&defaultBcoColor==0)
{
b[sys0].pic=10
b[sys0].pic2=11
}
}
if(defaultBcoColor==0)
{
hTempSlider.pic=16
hTempSlider.pic1=16
}
Postinitialize Event
fill hBrightness.x,hBrightness.y,100,250,defaultBcoColor
Variable (int32) col
Attributes
ID : 18
Scope: local
Value: 65504
Variable (string) entn
Attributes
ID : 11
Scope : local
Text :
Max. Text Size: 80
Variable (int32) mode
Attributes
ID : 13
Scope: local
Value: 1
Variable (int32) mode_temp
Attributes
ID : 14
Scope: local
Value: 0
Variable (string) strCommand
Attributes
ID : 9
Scope : local
Text :
Max. Text Size: 500
Variable (string) tId
Attributes
ID : 20
Scope : local
Text :
Max. Text Size: 20
Variable (string) tInstruction
Attributes
ID : 19
Scope : local
Text :
Max. Text Size: 20
Variable (string) tSend
Attributes
ID : 16
Scope : local
Text :
Max. Text Size: 200
Variable (string) tTmp
Attributes
ID : 21
Scope : local
Text :
Max. Text Size: 80
Text tEntity
Attributes
ID : 2
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 92
y coordinate : 21
Width : 263
Height : 30
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 1
Back. Color : 6371
Font Color : 65535
Horizontal Alignment: center
Vertical Alignment : center
Input Type : character
Text : tEntity1
Max. Text Size : 25
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Picture pColorWheel
Attributes
ID : 1
Scope : local
Dragging : 0
Send Component ID: disabled
Opacity : 127
x coordinate : 233
y coordinate : 105
Width : 160
Height : 160
Effect : load
Effect Priority : 0
Effect Time : 300
Picture ID : 3
Events
Touch Press Event
//craft command
tSend.txt="event,buttonPress2,"+entn.txt+",colorWheel,"
sys0=tch0
sys0=sys0-pColorWheel.x
covx sys0,tTmp.txt,0,0
tSend.txt+=tTmp.txt
tSend.txt+="|"
sys0=tch1
sys0=sys0-pColorWheel.y
covx sys0,tTmp.txt,0,0
tSend.txt+=tTmp.txt
tSend.txt+="|"
covx pColorWheel.h,tTmp.txt,0,0
tSend.txt+=tTmp.txt
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
Slider hBrightness
Attributes
ID : 4
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 89
y coordinate : 64
Width : 100
Height : 250
Effect : load
Effect Priority : 0
Effect Time : 300
Direction : vertical
Fill : image
Cursor width : auto
Cursor height : 1
Back. Picture ID : 65535
Slided Back. Picture ID: 65535
Position : 50
Upper range limit : 100
Lower range limit : 0
Events
Touch Release Event
//draw black background
fill hBrightness.x,hBrightness.y,100,hBrightness.val*-25/10+250,8484
//draw draw colored bar at the position of the current brightness value
fill hBrightness.x,hBrightness.val*-25/10+314,100,hBrightness.val*25/10,col.val
if(hBrightness.val>7)
{
//draw cursor
fill hBrightness.x+25,hBrightness.val*-25/10+322,50,4,WHITE
//paint corner
xstr hBrightness.x,hBrightness.val*-25/10+314,100,hBrightness.h,7,8484,0,0,0,3,"a"
}
//paint corners
xstr hBrightness.x,hBrightness.y,100,hBrightness.h,7,defaultBcoColor,0,0,0,3,"a"
xstr hBrightness.x,hBrightness.y+hBrightness.h-15,100,hBrightness.h,7,defaultBcoColor,0,0,0,3,"b"
tmCooldown.en=1
tmCooldown.tim=2500
//craft command
tSend.txt="event,buttonPress2,"+entn.txt+",brightnessSlider,"
covx hBrightness.val,tTmp.txt,0,0
tSend.txt+=tTmp.txt
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
Slider hTempSlider
Attributes
ID : 10
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 263
y coordinate : 64
Width : 100
Height : 250
Effect : load
Effect Priority : 0
Effect Time : 300
Direction : vertical
Fill : image
Cursor width : auto
Cursor height : 255
Back. Picture ID : 7
Slided Back. Picture ID: 7
Position : 50
Upper range limit : 100
Lower range limit : 0
Events
Touch Release Event
tmCooldown.en=1
tmCooldown.tim=2500
//craft command
tSend.txt="event,buttonPress2,"+entn.txt+",colorTempSlider,"
covx hTempSlider.val,tTmp.txt,0,0
tSend.txt+=tTmp.txt
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
Button b0
Attributes
ID : 3
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 397
y coordinate : 8
Width : 50
Height : 50
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Font ID : 1
Back. Color : 6371
Back. Picture ID (Pressed): 65535
Back. Color (Pressed) : 14823
Font Color (Unpressed) : 65535
Font Color (Pressed) : 65535
Horizontal Alignment : center
Vertical Alignment : center
State : unpressed
Text : 
Max. Text Size : 10
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Events
Touch Press Event
tSend.txt="event,buttonPress2,popupLight,bExit"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
Button bColor
Attributes
ID : 12
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 14
y coordinate : 146
Width : 50
Height : 50
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Font ID : 1
Back. Color : 6371
Back. Picture ID (Pressed): 65535
Back. Color (Pressed) : 14823
Font Color (Unpressed) : 65535
Font Color (Pressed) : 65535
Horizontal Alignment : center
Vertical Alignment : center
State : unpressed
Text : 
Max. Text Size : 10
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Events
Touch Press Event
if(mode.val==1)
{
mode.val=0
//enable color wheel
vis pColorWheel,1
//disable color temp
//vis t4,0
//vis t3,0
vis hTempSlider,0
}else
{
mode.val=1
//disable color wheel
vis pColorWheel,0
if(mode_temp.val==1)
{
//enable color temp
//vis t4,1
//vis t3,1
vis hTempSlider,1
}
}
Button bEffect
Attributes
ID : 17
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 14
y coordinate : 213
Width : 50
Height : 50
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Font ID : 1
Back. Color : 6371
Back. Picture ID (Pressed): 65535
Back. Color (Pressed) : 14823
Font Color (Unpressed) : 65535
Font Color (Pressed) : 65535
Horizontal Alignment : center
Vertical Alignment : center
State : unpressed
Text : 
Max. Text Size : 10
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Events
Touch Press Event
pageIcons.tTmp1.txt=tEntity.txt
pageIcons.tTmp2.txt=entn.txt
page popupInSel
Dual-state Button btOnOff1
Attributes
ID : 5
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 14
y coordinate : 77
Width : 50
Height : 50
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : image
Font ID : 0
Background Picture ID (Unpressed): 1
Back. Picture ID (Pressed) : 2
Horizontal Alignment : center
Vertical Alignment : center
State : unpressed
Text :
Max. Text Size : 10
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Events
Touch Press Event
//craft command
tSend.txt="event,buttonPress2,"+entn.txt+","+"OnOff,"
covx btOnOff1.val,tTmp.txt,0,0
tSend.txt+=tTmp.txt
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
Timer tmCooldown
Attributes
ID : 15
Scope : local
Period (ms): 300
Enabled : no
Events
Timer Event
tmCooldown.en=0
Timer tmDrawCooldown
Attributes
ID : 22
Scope : local
Period (ms): 500
Enabled : no
Events
Timer Event
//draw black background
fill hBrightness.x,hBrightness.y,100,hBrightness.val*-25/10+250,8484
//draw draw colored bar at the position of the current brightness value
fill hBrightness.x,hBrightness.val*-25/10+314,100,hBrightness.val*25/10,col.val
if(hBrightness.val>7)
{
//draw cursor
fill hBrightness.x+25,hBrightness.val*-25/10+322,50,4,WHITE
//paint corner
xstr hBrightness.x,hBrightness.val*-25/10+314,100,hBrightness.h,7,8484,0,0,0,3,"a"
}
//paint corners
xstr hBrightness.x,hBrightness.y,100,hBrightness.h,7,defaultBcoColor,0,0,0,3,"a"
xstr hBrightness.x,hBrightness.y+hBrightness.h-15,100,hBrightness.h,7,defaultBcoColor,0,0,0,3,"b"
tmDrawCooldown.en=0
Timer tmSerial
Attributes
ID : 8
Scope : local
Period (ms): 50
Enabled : yes
Events
Timer Event
// data available
if(usize>1)
{
bufferPos=0
while(bufferPos<usize)
{
// check for 0x55 0xBB - Command Init Secuence
if(u[bufferPos]==187&&u[bufferPos-1]==85)
{
//remove garbage at the start of the buffer if there's any to free buffer for command
if(u[bufferPos]!=1)
{
udelete bufferPos-1
}
//instruction is now aligned with buffer, because we deleted garbage before instrcution
//get length after init sequence (check if there are more than to bytes in buffer)
if(3<usize)
{
// check if serial buffer has reached the announced length
ucopy payloadLength,2,2,0
// we are only checking payload length so we have to skip first 3 bytes (init+payload length) (-1 because of < instead of <=)
payloadLength+=3
// payload length does also not contain crc, so we are adding another 2 bytes for crc
payloadLength+=2
if(payloadLength<usize)
{
// calculate crc
crcrest 1,0xFFFF
// u[2] contains payload legth at 3rd pos in buffer, we are calculating crc from 3rd pos with number of bytes from payload length
//crcputu 3,u[2]
// u[2] cotnains payload length, we are calculating a crc over the whole message, so we have to add 3 to the length from u[2]
crcputu 0,payloadLength-1
// get recived crc to be able to compare it
ucopy recvCrc,payloadLength-1,2,0
// compare crc with recived value
if(crcval==recvCrc)
{
// crc is okay
// here is the location where acual code should be
// write command to variable strCommand
ucopy strCommand.txt,4,payloadLength-5,0
// write instruction to tInstuction (debug output, but used as variable here, ui elements will be disabled by default)
spstr strCommand.txt,tInstruction.txt,"~",0
spstr strCommand.txt,tTmp.txt,"~",1
if(tInstruction.txt=="entityUpdateDetail"&&entn.txt==tTmp.txt)
{
// change icon
//spstr strCommand.txt,tIcon1.txt,"~",2
//vis tIcon1,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",3
covx tTmp.txt,sys0,0,0
col.val=sys0
//tEntity.pco=sys0
// get Button State
spstr strCommand.txt,tTmp.txt,"~",4
covx tTmp.txt,sys0,0,0
btOnOff1.val=sys0
// get Brightness value
spstr strCommand.txt,tTmp.txt,"~",5
if(tTmp.txt=="disable")
{
//vis t1,0
//vis t2,0
vis hBrightness,0
}else
{
//vis t1,1
//vis t2,1
vis hBrightness,1
covx tTmp.txt,sys0,0,0
hBrightness.val=sys0
tmDrawCooldown.en=1
tmDrawCooldown.tim=500
}
// get ColorTemp value
spstr strCommand.txt,tTmp.txt,"~",6
if(tTmp.txt=="disable")
{
vis hTempSlider,0
//vis t3,0
//vis t4,0
mode_temp.val=0
// mode == 1 is temp controls currently shown
if(mode.val==1)
{
// switch mode
click bColor,1
click bColor,0
}
}else if(tTmp.txt=="unknown") // temp supported, but not in color mode
{
mode_temp.val=1
// mode == 1 is temp controls currently shown
if(mode.val==1)
{
// switch mode
click bColor,1
click bColor,0
}
}else
{
mode_temp.val=1
vis hTempSlider,1
//vis t3,1
//vis t4,1
if(tmCooldown.en==0)
{
covx tTmp.txt,sys0,0,0
hTempSlider.val=sys0
}
// mode == 0 is rgb controls currently shown
if(mode.val==0)
{
// switch mode
click bColor,1
click bColor,0
}
}
// get Color value
spstr strCommand.txt,tTmp.txt,"~",7
// disable -> isn't supported
if(tTmp.txt=="disable")
{
//vis t0,0
vis bColor,0
vis pColorWheel,0
}else
{
//vis t0,1
//only enable bColor button if color temp is also supported
if(mode_temp.val==1)
{
vis bColor,1
}
if(mode.val==0)
{
vis pColorWheel,1
}
}
// set t0 Color (Localization)
//spstr strCommand.txt,t0.txt,"~",8
// set t4 Temperature (Localization)
//spstr strCommand.txt,t4.txt,"~",9
// set t1 Brightness (Localization)
//spstr strCommand.txt,t1.txt,"~",10
// activate effect button
spstr strCommand.txt,tTmp.txt,"~",11
if(tTmp.txt=="enable")
{
vis bEffect,1
}else
{
vis bEffect,0
}
}
if(tInstruction.txt=="time")
{
// get set time to global variable
spstr strCommand.txt,pageIcons.vaTime.txt,"~",1
}
if(tInstruction.txt=="date")
{
// get set date to global variable
spstr strCommand.txt,pageIcons.vaDate.txt,"~",1
}
if(tInstruction.txt=="dimmode")
{
// get value
spstr strCommand.txt,tTmp.txt,"~",1
covx tTmp.txt,dimValue,0,0
// get value normal
spstr strCommand.txt,tTmp.txt,"~",2
covx tTmp.txt,dimValueNormal,0,0
dim=dimValueNormal
// get background color
spstr strCommand.txt,tTmp.txt,"~",3
if(tTmp.txt!="")
{
covx tTmp.txt,defaultBcoColor,0,0
}
// get font color
spstr strCommand.txt,tTmp.txt,"~",4
if(tTmp.txt!="")
{
covx tTmp.txt,defaultFontColor,0,0
}
}
if(tInstruction.txt=="timeout")
{
//set timeout to global var
spstr strCommand.txt,tTmp.txt,"~",1
covx tTmp.txt,sleepTimeout,0,0
}
if(tInstruction.txt=="pageType")
{
//command format pageType,specialPageName
//write name of speical page to tId
spstr strCommand.txt,tId.txt,"~",1
//save second arg if there's one
spstr strCommand.txt,tTmp.txt,"~",2
//save third arg if there's one
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
udelete payloadLength-1
bufferPos=0
if(tId.txt=="pageStartup")
{
page pageStartup
}
if(tId.txt=="screensaver")
{
page screensaver
}
if(tId.txt=="cardEntities")
{
page cardEntities
}
if(tId.txt=="cardGrid")
{
page cardGrid
}
if(tId.txt=="cardGrid2")
{
page cardGrid2
}
if(tId.txt=="popupLight")
{
pageIcons.tTmp1.txt=tTmp.txt
page popupLight
}
if(tId.txt=="popupShutter")
{
pageIcons.tTmp1.txt=tTmp.txt
page popupShutter
}
if(tId.txt=="popupNotify")
{
page popupNotify
}
if(tId.txt=="cardThermo")
{
page cardThermo
}
if(tId.txt=="cardMedia")
{
page cardMedia
}
if(tId.txt=="cardAlarm")
{
page cardAlarm
}
if(tId.txt=="cardQR")
{
page cardQR
}
if(tId.txt=="cardPower")
{
page cardPower
}
if(tId.txt=="cardChart")
{
page cardChart
}
}
// end of user code
udelete payloadLength-1
bufferPos=0
}
}
}
}
// next character
bufferPos++
}
}
Timer tmSleep
Attributes
ID : 7
Scope : local
Period (ms): 1000
Enabled : yes
Events
Timer Event
if(sleepTimeout!=0)
{
sleepValue+=1
if(sleepTimeout<=sleepValue)
{
sleepValue=0
click b0,1
click b0,0
}
}
TouchCap tc0
Attributes
ID : 6
Scope: local
Value: 0
Events
Touch Press Event
sleepValue=0

View File

@@ -581,7 +581,7 @@ Timer tmSerial
covx tTmp.txt,defaultFontColor,0,0
}
}
if(tInstruction.txt=="timeout")
if(tInstruction.txt=="timeout2")
{
//set timeout to global var
spstr strCommand.txt,tTmp.txt,"~",1

View File

@@ -19,6 +19,18 @@ Page screensaver
Events
Preinitialize Event
tSend.txt="event,renderCurrentPage"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
recmod=1
baud=115200
vis tInstruction,0

View File

@@ -19,6 +19,18 @@ Page screensaver2
Events
Preinitialize Event
tSend.txt="event,renderCurrentPage"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
recmod=1
baud=115200
vis tInstruction,0
@@ -1617,6 +1629,10 @@ Timer tmSerial
{
page cardChart
}
if(tId.txt=="cardLChart")
{
page cardLChart
}
}
if(tInstruction.txt=="timeout")
{

View File

@@ -14,6 +14,8 @@ Program.s
//color vars
int defaultFontColor=65535
int defaultBcoColor=6371
//feature flags
int featNewSliders=0
// fix touch offset
//lcd_dev fffb 0002 0000 0020
printh 00 00 00 ff ff ff 88 ff ff ff//Output power on information to serial port

View File

@@ -11,6 +11,18 @@ Page cardAlarm
Events
Preinitialize Event
tSend.txt="event,renderCurrentPage"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
dim=dimValueNormal
vis p0,0
vis tSend,0

View File

@@ -11,6 +11,18 @@ Page cardChart
Events
Preinitialize Event
tSend.txt="event,renderCurrentPage"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
dim=dimValueNormal
vis p0,0
vis tSend,0

View File

@@ -11,6 +11,18 @@ Page cardEntities
Events
Preinitialize Event
tSend.txt="event,renderCurrentPage"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
dim=dimValueNormal
//wup=cardEntities
//remove background & activate reparse mode
@@ -965,8 +977,13 @@ Hotspot m0
}
if(type1.txt=="light")
{
//popupLight.tEntity.txt=tEntity1.txt
page popupLight
if(featNewSliders==1)
{
page popupLightNew
}else
{
page popupLight
}
}
if(type1.txt=="fan")
{
@@ -999,8 +1016,13 @@ Hotspot m1
}
if(type2.txt=="light")
{
//popupLight.tEntity.txt=tEntity2.txt
page popupLight
if(featNewSliders==1)
{
page popupLightNew
}else
{
page popupLight
}
}
if(type2.txt=="fan")
{
@@ -1033,8 +1055,13 @@ Hotspot m2
}
if(type3.txt=="light")
{
//popupLight.tEntity.txt=tEntity3.txt
page popupLight
if(featNewSliders==1)
{
page popupLightNew
}else
{
page popupLight
}
}
if(type3.txt=="fan")
{
@@ -1067,8 +1094,13 @@ Hotspot m3
}
if(type4.txt=="light")
{
//popupLight.tEntity.txt=tEntity4.txt
page popupLight
if(featNewSliders==1)
{
page popupLightNew
}else
{
page popupLight
}
}
if(type4.txt=="fan")
{

View File

@@ -11,6 +11,18 @@ Page cardGrid
Events
Preinitialize Event
tSend.txt="event,renderCurrentPage"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
dim=dimValueNormal
//remove background & activate reparse mode
vis p0,0
@@ -605,7 +617,13 @@ Timer tmLP
Timer Event
if(tTmp.txt=="light")
{
page popupLight
if(featNewSliders==1)
{
page popupLightNew
}else
{
page popupLight
}
}
if(tTmp.txt=="fan")
{
@@ -713,6 +731,17 @@ Timer tmSerial
{
// change icon
spstr strCommand.txt,bEntity1.txt,"~",16
// way to get force font adjustment
strlen bEntity1.txt,sys0
//check 2nd last char for ¬
substr bEntity1.txt,tTmp.txt,sys0-2,1
if(tTmp.txt=="¬")
{
substr bEntity1.txt,tTmp.txt,sys0-1,1
covx tTmp.txt,sys1,0,0
bEntity1.font=sys1
substr bEntity1.txt,bEntity1.txt,0,sys0-2
}
vis bEntity1,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",17
@@ -734,6 +763,17 @@ Timer tmSerial
{
// change icon
spstr strCommand.txt,bEntity2.txt,"~",22
// way to get force font adjustment
strlen bEntity2.txt,sys0
//check 2nd last char for ¬
substr bEntity2.txt,tTmp.txt,sys0-2,1
if(tTmp.txt=="¬")
{
substr bEntity2.txt,tTmp.txt,sys0-1,1
covx tTmp.txt,sys1,0,0
bEntity2.font=sys1
substr bEntity2.txt,bEntity2.txt,0,sys0-2
}
vis bEntity2,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",23
@@ -755,6 +795,17 @@ Timer tmSerial
{
// change icon
spstr strCommand.txt,bEntity3.txt,"~",28
// way to get force font adjustment
strlen bEntity3.txt,sys0
//check 2nd last char for ¬
substr bEntity3.txt,tTmp.txt,sys0-2,1
if(tTmp.txt=="¬")
{
substr bEntity3.txt,tTmp.txt,sys0-1,1
covx tTmp.txt,sys1,0,0
bEntity3.font=sys1
substr bEntity3.txt,bEntity3.txt,0,sys0-2
}
vis bEntity3,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",29
@@ -776,6 +827,17 @@ Timer tmSerial
{
// change icon
spstr strCommand.txt,bEntity4.txt,"~",34
// way to get force font adjustment
strlen bEntity4.txt,sys0
//check 2nd last char for ¬
substr bEntity4.txt,tTmp.txt,sys0-2,1
if(tTmp.txt=="¬")
{
substr bEntity4.txt,tTmp.txt,sys0-1,1
covx tTmp.txt,sys1,0,0
bEntity4.font=sys1
substr bEntity4.txt,bEntity4.txt,0,sys0-2
}
vis bEntity4,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",35
@@ -797,6 +859,17 @@ Timer tmSerial
{
// change icon
spstr strCommand.txt,bEntity5.txt,"~",40
// way to get force font adjustment
strlen bEntity5.txt,sys0
//check 2nd last char for ¬
substr bEntity5.txt,tTmp.txt,sys0-2,1
if(tTmp.txt=="¬")
{
substr bEntity5.txt,tTmp.txt,sys0-1,1
covx tTmp.txt,sys1,0,0
bEntity5.font=sys1
substr bEntity5.txt,bEntity5.txt,0,sys0-2
}
vis bEntity5,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",41
@@ -818,6 +891,17 @@ Timer tmSerial
{
// change icon
spstr strCommand.txt,bEntity6.txt,"~",46
// way to get force font adjustment
strlen bEntity6.txt,sys0
//check 2nd last char for ¬
substr bEntity6.txt,tTmp.txt,sys0-2,1
if(tTmp.txt=="¬")
{
substr bEntity6.txt,tTmp.txt,sys0-1,1
covx tTmp.txt,sys1,0,0
bEntity6.font=sys1
substr bEntity6.txt,bEntity6.txt,0,sys0-2
}
vis bEntity6,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",47

View File

@@ -11,6 +11,18 @@ Page cardGrid2
Events
Preinitialize Event
tSend.txt="event,renderCurrentPage"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
dim=dimValueNormal
//remove background & activate reparse mode
vis p0,0
@@ -559,26 +571,26 @@ Button bEntity7
Events
Touch Press Event
tmLP.en=1
tTmp.txt=type6.txt
pageIcons.tTmp1.txt=tEntity6.txt
pageIcons.tTmp2.txt=entn6.txt
pageIcons.tTmp3.txt=bEntity6.txt
if(type6.txt=="shutter")
tTmp.txt=type7.txt
pageIcons.tTmp1.txt=tEntity7.txt
pageIcons.tTmp2.txt=entn7.txt
pageIcons.tTmp3.txt=bEntity7.txt
if(type7.txt=="shutter")
{
page popupShutter
}
if(type6.txt=="input_sel")
if(type7.txt=="input_sel")
{
page popupInSel
}
if(type6.txt=="timer")
if(type7.txt=="timer")
{
page popupTimer
}
Touch Release Event
tmLP.en=0
tSend.txt="event,buttonPress2,"+entn6.txt+",button"
tSend.txt="event,buttonPress2,"+entn7.txt+",button"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
@@ -603,26 +615,26 @@ Button bEntity8
Events
Touch Press Event
tmLP.en=1
tTmp.txt=type6.txt
pageIcons.tTmp1.txt=tEntity6.txt
pageIcons.tTmp2.txt=entn6.txt
pageIcons.tTmp3.txt=bEntity6.txt
if(type6.txt=="shutter")
tTmp.txt=type8.txt
pageIcons.tTmp1.txt=tEntity8.txt
pageIcons.tTmp2.txt=entn8.txt
pageIcons.tTmp3.txt=bEntity8.txt
if(type8.txt=="shutter")
{
page popupShutter
}
if(type6.txt=="input_sel")
if(type8.txt=="input_sel")
{
page popupInSel
}
if(type6.txt=="timer")
if(type8.txt=="timer")
{
page popupTimer
}
Touch Release Event
tmLP.en=0
tSend.txt="event,buttonPress2,"+entn6.txt+",button"
tSend.txt="event,buttonPress2,"+entn8.txt+",button"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
@@ -739,7 +751,13 @@ Timer tmLP
Timer Event
if(tTmp.txt=="light")
{
page popupLight
if(featNewSliders==1)
{
page popupLightNew
}else
{
page popupLight
}
}
if(tTmp.txt=="fan")
{
@@ -847,6 +865,17 @@ Timer tmSerial
{
// change icon
spstr strCommand.txt,bEntity1.txt,"~",16
// way to get force font adjustment
strlen bEntity1.txt,sys0
//check 2nd last char for ¬
substr bEntity1.txt,tTmp.txt,sys0-2,1
if(tTmp.txt=="¬")
{
substr bEntity1.txt,tTmp.txt,sys0-1,1
covx tTmp.txt,sys1,0,0
bEntity1.font=sys1
substr bEntity1.txt,bEntity1.txt,0,sys0-2
}
vis bEntity1,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",17
@@ -868,6 +897,17 @@ Timer tmSerial
{
// change icon
spstr strCommand.txt,bEntity2.txt,"~",22
// way to get force font adjustment
strlen bEntity2.txt,sys0
//check 2nd last char for ¬
substr bEntity2.txt,tTmp.txt,sys0-2,1
if(tTmp.txt=="¬")
{
substr bEntity2.txt,tTmp.txt,sys0-1,1
covx tTmp.txt,sys1,0,0
bEntity2.font=sys1
substr bEntity2.txt,bEntity2.txt,0,sys0-2
}
vis bEntity2,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",23
@@ -889,6 +929,17 @@ Timer tmSerial
{
// change icon
spstr strCommand.txt,bEntity3.txt,"~",28
// way to get force font adjustment
strlen bEntity3.txt,sys0
//check 2nd last char for ¬
substr bEntity3.txt,tTmp.txt,sys0-2,1
if(tTmp.txt=="¬")
{
substr bEntity3.txt,tTmp.txt,sys0-1,1
covx tTmp.txt,sys1,0,0
bEntity3.font=sys1
substr bEntity3.txt,bEntity3.txt,0,sys0-2
}
vis bEntity3,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",29
@@ -910,6 +961,17 @@ Timer tmSerial
{
// change icon
spstr strCommand.txt,bEntity4.txt,"~",34
// way to get force font adjustment
strlen bEntity4.txt,sys0
//check 2nd last char for ¬
substr bEntity4.txt,tTmp.txt,sys0-2,1
if(tTmp.txt=="¬")
{
substr bEntity4.txt,tTmp.txt,sys0-1,1
covx tTmp.txt,sys1,0,0
bEntity4.font=sys1
substr bEntity4.txt,bEntity4.txt,0,sys0-2
}
vis bEntity4,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",35
@@ -931,6 +993,17 @@ Timer tmSerial
{
// change icon
spstr strCommand.txt,bEntity5.txt,"~",40
// way to get force font adjustment
strlen bEntity5.txt,sys0
//check 2nd last char for ¬
substr bEntity5.txt,tTmp.txt,sys0-2,1
if(tTmp.txt=="¬")
{
substr bEntity5.txt,tTmp.txt,sys0-1,1
covx tTmp.txt,sys1,0,0
bEntity5.font=sys1
substr bEntity5.txt,bEntity5.txt,0,sys0-2
}
vis bEntity5,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",41
@@ -952,6 +1025,17 @@ Timer tmSerial
{
// change icon
spstr strCommand.txt,bEntity6.txt,"~",46
// way to get force font adjustment
strlen bEntity6.txt,sys0
//check 2nd last char for ¬
substr bEntity6.txt,tTmp.txt,sys0-2,1
if(tTmp.txt=="¬")
{
substr bEntity6.txt,tTmp.txt,sys0-1,1
covx tTmp.txt,sys1,0,0
bEntity6.font=sys1
substr bEntity6.txt,bEntity6.txt,0,sys0-2
}
vis bEntity6,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",47
@@ -973,6 +1057,17 @@ Timer tmSerial
{
// change icon
spstr strCommand.txt,bEntity7.txt,"~",52
// way to get force font adjustment
strlen bEntity7.txt,sys0
//check 2nd last char for ¬
substr bEntity7.txt,tTmp.txt,sys0-2,1
if(tTmp.txt=="¬")
{
substr bEntity7.txt,tTmp.txt,sys0-1,1
covx tTmp.txt,sys1,0,0
bEntity7.font=sys1
substr bEntity7.txt,bEntity7.txt,0,sys0-2
}
vis bEntity7,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",53
@@ -994,6 +1089,17 @@ Timer tmSerial
{
// change icon
spstr strCommand.txt,bEntity8.txt,"~",58
// way to get force font adjustment
strlen bEntity8.txt,sys0
//check 2nd last char for ¬
substr bEntity8.txt,tTmp.txt,sys0-2,1
if(tTmp.txt=="¬")
{
substr bEntity8.txt,tTmp.txt,sys0-1,1
covx tTmp.txt,sys1,0,0
bEntity8.font=sys1
substr bEntity8.txt,bEntity8.txt,0,sys0-2
}
vis bEntity8,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",59
@@ -1080,6 +1186,10 @@ Timer tmSerial
{
page cardChart
}
if(tId.txt=="cardLChart")
{
page cardLChart
}
}
if(tInstruction.txt=="time")
{

View File

@@ -11,6 +11,18 @@ Page cardLChart
Events
Preinitialize Event
tSend.txt="event,renderCurrentPage"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
dim=dimValueNormal
vis p0,0
vis tSend,0

View File

@@ -11,6 +11,18 @@ Page cardMedia
Events
Preinitialize Event
tSend.txt="event,renderCurrentPage"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
dim=dimValueNormal
vis p0,0
vis tSend,0
@@ -997,6 +1009,17 @@ Timer tmSerial
// change icon
spstr strCommand.txt,bEntity1.txt,"~",25
vis bEntity1,1
// way to get force font adjustment
strlen bEntity1.txt,sys0
//check 2nd last char for ¬
substr bEntity1.txt,tTmp.txt,sys0-2,1
if(tTmp.txt=="¬")
{
substr bEntity1.txt,tTmp.txt,sys0-1,1
covx tTmp.txt,sys1,0,0
bEntity1.font=sys1
substr bEntity1.txt,bEntity1.txt,0,sys0-2
}
// change icon color
spstr strCommand.txt,tTmp.txt,"~",26
covx tTmp.txt,sys0,0,0
@@ -1018,6 +1041,17 @@ Timer tmSerial
// change icon
spstr strCommand.txt,bEntity2.txt,"~",31
vis bEntity2,1
// way to get force font adjustment
strlen bEntity2.txt,sys0
//check 2nd last char for ¬
substr bEntity2.txt,tTmp.txt,sys0-2,1
if(tTmp.txt=="¬")
{
substr bEntity2.txt,tTmp.txt,sys0-1,1
covx tTmp.txt,sys1,0,0
bEntity2.font=sys1
substr bEntity2.txt,bEntity2.txt,0,sys0-2
}
// change icon color
spstr strCommand.txt,tTmp.txt,"~",32
covx tTmp.txt,sys0,0,0
@@ -1039,6 +1073,17 @@ Timer tmSerial
// change icon
spstr strCommand.txt,bEntity3.txt,"~",37
vis bEntity3,1
// way to get force font adjustment
strlen bEntity3.txt,sys0
//check 2nd last char for ¬
substr bEntity3.txt,tTmp.txt,sys0-2,1
if(tTmp.txt=="¬")
{
substr bEntity3.txt,tTmp.txt,sys0-1,1
covx tTmp.txt,sys1,0,0
bEntity3.font=sys1
substr bEntity3.txt,bEntity3.txt,0,sys0-2
}
// change icon color
spstr strCommand.txt,tTmp.txt,"~",38
covx tTmp.txt,sys0,0,0
@@ -1060,6 +1105,17 @@ Timer tmSerial
// change icon
spstr strCommand.txt,bEntity4.txt,"~",43
vis bEntity4,1
// way to get force font adjustment
strlen bEntity4.txt,sys0
//check 2nd last char for ¬
substr bEntity4.txt,tTmp.txt,sys0-2,1
if(tTmp.txt=="¬")
{
substr bEntity4.txt,tTmp.txt,sys0-1,1
covx tTmp.txt,sys1,0,0
bEntity4.font=sys1
substr bEntity4.txt,bEntity4.txt,0,sys0-2
}
// change icon color
spstr strCommand.txt,tTmp.txt,"~",44
covx tTmp.txt,sys0,0,0
@@ -1081,6 +1137,17 @@ Timer tmSerial
// change icon
spstr strCommand.txt,bEntity5.txt,"~",49
vis bEntity5,1
// way to get force font adjustment
strlen bEntity5.txt,sys0
//check 2nd last char for ¬
substr bEntity5.txt,tTmp.txt,sys0-2,1
if(tTmp.txt=="¬")
{
substr bEntity5.txt,tTmp.txt,sys0-1,1
covx tTmp.txt,sys1,0,0
bEntity5.font=sys1
substr bEntity5.txt,bEntity5.txt,0,sys0-2
}
// change icon color
spstr strCommand.txt,tTmp.txt,"~",50
covx tTmp.txt,sys0,0,0
@@ -1102,6 +1169,17 @@ Timer tmSerial
// change icon
spstr strCommand.txt,bEntity6.txt,"~",55
vis bEntity6,1
// way to get force font adjustment
strlen bEntity6.txt,sys0
//check 2nd last char for ¬
substr bEntity6.txt,tTmp.txt,sys0-2,1
if(tTmp.txt=="¬")
{
substr bEntity6.txt,tTmp.txt,sys0-1,1
covx tTmp.txt,sys1,0,0
bEntity6.font=sys1
substr bEntity6.txt,bEntity6.txt,0,sys0-2
}
// change icon color
spstr strCommand.txt,tTmp.txt,"~",56
covx tTmp.txt,sys0,0,0

View File

@@ -11,6 +11,18 @@ Page cardPower
Events
Preinitialize Event
tSend.txt="event,renderCurrentPage"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
dim=dimValueNormal
vis p0,0
vis tSend,0
@@ -964,6 +976,10 @@ Timer tmSerial
{
page cardChart
}
if(tId.txt=="cardLChart")
{
page cardLChart
}
}
if(tInstruction.txt=="time")
{

View File

@@ -11,6 +11,18 @@ Page cardQR
Events
Preinitialize Event
tSend.txt="event,renderCurrentPage"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
dim=dimValueNormal
vis p0,0
vis tSend,0

View File

@@ -11,6 +11,18 @@ Page cardThermo
Events
Preinitialize Event
tSend.txt="event,renderCurrentPage"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
dim=dimValueNormal
vis p0,0
vis tSend,0
@@ -20,6 +32,11 @@ Page cardThermo
vis xTempMin1,0
vis xTempMax1,0
vis xTempStep1,0
vis xTempDest,0
vis btUp,0
vis btDown,0
vis tCF,0
vis btDetail,0
//tEntity.txt=tHeading.txt
// disable all buttons
vis bt0,0
@@ -1006,6 +1023,20 @@ Timer tmSerial
vis xTempDest2,1
vis bDown2,1
vis tCF2,1
}else
{
vis btUp,1
vis xTempDest,1
vis btDown,1
vis tCF,1
vis btUp1,0
vis xTempDest1,0
vis btDown1,0
vis tCF1,0
vis bUp2,0
vis xTempDest2,0
vis bDown2,0
vis tCF2,0
}
//Show btDetail
spstr strCommand.txt,tTmp.txt,"~",58

View File

@@ -145,7 +145,7 @@ Text tVersion
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : 51
Text : 53
Max. Text Size : 10
Picture p0
@@ -279,6 +279,12 @@ Timer tmSerial
{
covx tTmp.txt,defaultFontColor,0,0
}
// get feature flag popup
spstr strCommand.txt,tTmp.txt,"~",5
if(tTmp.txt!="")
{
covx tTmp.txt,featNewSliders,0,0
}
}
if(tInstruction.txt=="timeout")
{

View File

@@ -16,12 +16,13 @@ Page popupLight
tEntity.txt=pageIcons.tTmp1.txt
//get entity id
entn.txt=pageIcons.tTmp2.txt
tIcon1.txt=pageIcons.tTmp3.txt
vis p0,0
vis tSend,0
vis tTmp,0
vis tInstruction,0
vis tId,0
vis bEffect,0
vis hBrightness,0
//page open event
// event,pageOpenDetail,typeOfPage,tEntityName
// craft command
@@ -38,16 +39,16 @@ Page popupLight
prints tSend.txt,0
prints crcval,2
//disable brightness by default
//vis t1,0
//vis t2,0
vis hBrightness,1
vis t1,0
vis t2,0
vis hBrightness,0
//disable color temp by default
//vis t4,0
//vis t3,0
vis t4,0
vis t3,0
vis hTempSlider,0
//disable color wheel components by default
vis bColor,0
//vis t0,0
vis t0,0
vis pColorWheel,0
//vis t0,0
popupLight.bco=defaultBcoColor
@@ -66,18 +67,14 @@ Page popupLight
}
if(defaultBcoColor==0)
{
hBrightness.pic=24
hBrightness.pic1=25
hBrightness.pic2=15
hTempSlider.pic=16
hTempSlider.pic1=16
hTempSlider.pic1=17
hTempSlider.pic2=15
}
Postinitialize Event
fill hBrightness.x,hBrightness.y,100,250,defaultBcoColor
Variable (int32) col
Attributes
Scope: local
Value: 65504
Variable (string) entn
Attributes
Scope : local
@@ -100,29 +97,56 @@ Variable (string) strCommand
Text :
Max. Text Size: 500
Variable (string) tId
Attributes
Scope : local
Text :
Max. Text Size: 20
Variable (string) tInstruction
Attributes
Scope : local
Text :
Max. Text Size: 20
Variable (string) tSend
Attributes
Scope : local
Text :
Max. Text Size: 200
Variable (string) tTmp
Text t0
Attributes
Scope : local
Text :
Max. Text Size: 80
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : Color
Max. Text Size : 50
Text t1
Attributes
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : Brightness
Max. Text Size : 50
Text t2
Attributes
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : 
Max. Text Size : 10
Text t3
Attributes
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : 
Max. Text Size : 10
Text t4
Attributes
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : Temperature
Max. Text Size : 50
Text tEntity
Attributes
@@ -133,6 +157,48 @@ Text tEntity
Text : tEntity1
Max. Text Size : 25
Text tIcon1
Attributes
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : 
Max. Text Size : 10
Text tId
Attributes
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 20
Text tInstruction
Attributes
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 20
Text tTmp
Attributes
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 80
Picture p0
Attributes
Scope : local
Dragging : 0
Send Component ID: disabled
Picture pColorWheel
Attributes
Scope : local
@@ -178,20 +244,6 @@ Slider hBrightness
Events
Touch Release Event
//draw black background
fill hBrightness.x,hBrightness.y,100,hBrightness.val*-25/10+250,8484
//draw draw colored bar at the position of the current brightness value
fill hBrightness.x,hBrightness.val*-25/10+314,100,hBrightness.val*25/10,col.val
if(hBrightness.val>7)
{
//draw cursor
fill hBrightness.x+25,hBrightness.val*-25/10+322,50,4,WHITE
//paint corner
xstr hBrightness.x,hBrightness.val*-25/10+314,100,hBrightness.h,7,8484,0,0,0,3,"a"
}
//paint corners
xstr hBrightness.x,hBrightness.y,100,hBrightness.h,7,defaultBcoColor,0,0,0,3,"a"
xstr hBrightness.x,hBrightness.y+hBrightness.h-15,100,hBrightness.h,7,defaultBcoColor,0,0,0,3,"b"
tmCooldown.en=1
tmCooldown.tim=2500
//craft command
@@ -280,8 +332,8 @@ Button bColor
//enable color wheel
vis pColorWheel,1
//disable color temp
//vis t4,0
//vis t3,0
vis t4,0
vis t3,0
vis hTempSlider,0
}else
{
@@ -291,8 +343,8 @@ Button bColor
if(mode_temp.val==1)
{
//enable color temp
//vis t4,1
//vis t3,1
vis t4,1
vis t3,1
vis hTempSlider,1
}
}
@@ -310,6 +362,7 @@ Button bEffect
Touch Press Event
pageIcons.tTmp1.txt=tEntity.txt
pageIcons.tTmp2.txt=entn.txt
pageIcons.tTmp3.txt=tIcon1.txt
page popupInSel
Dual-state Button btOnOff1
@@ -342,37 +395,13 @@ Dual-state Button btOnOff1
Timer tmCooldown
Attributes
Scope : local
Period (ms): 100
Period (ms): 300
Enabled : no
Events
Timer Event
tmCooldown.en=0
Timer tmDrawCooldown
Attributes
Scope : local
Period (ms): 500
Enabled : no
Events
Timer Event
//draw black background
fill hBrightness.x,hBrightness.y,100,hBrightness.val*-25/10+250,8484
//draw draw colored bar at the position of the current brightness value
fill hBrightness.x,hBrightness.val*-25/10+314,100,hBrightness.val*25/10,col.val
if(hBrightness.val>7)
{
//draw cursor
fill hBrightness.x+25,hBrightness.val*-25/10+322,50,4,WHITE
//paint corner
xstr hBrightness.x,hBrightness.val*-25/10+314,100,hBrightness.h,7,8484,0,0,0,3,"a"
}
//paint corners
xstr hBrightness.x,hBrightness.y,100,hBrightness.h,7,defaultBcoColor,0,0,0,3,"a"
xstr hBrightness.x,hBrightness.y+hBrightness.h-15,100,hBrightness.h,7,defaultBcoColor,0,0,0,3,"b"
tmDrawCooldown.en=0
Timer tmSerial
Attributes
Scope : local
@@ -429,12 +458,11 @@ Timer tmSerial
{
// change icon
//spstr strCommand.txt,tIcon1.txt,"~",2
//vis tIcon1,1
vis tIcon1,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",3
covx tTmp.txt,sys0,0,0
col.val=sys0
//tEntity.pco=sys0
tIcon1.pco=sys0
// get Button State
spstr strCommand.txt,tTmp.txt,"~",4
covx tTmp.txt,sys0,0,0
@@ -443,26 +471,27 @@ Timer tmSerial
spstr strCommand.txt,tTmp.txt,"~",5
if(tTmp.txt=="disable")
{
//vis t1,0
//vis t2,0
vis t1,0
vis t2,0
vis hBrightness,0
}else
{
//vis t1,1
//vis t2,1
vis t1,1
vis t2,1
vis hBrightness,1
covx tTmp.txt,sys0,0,0
hBrightness.val=sys0
tmDrawCooldown.en=1
tmDrawCooldown.tim=500
if(tmCooldown.en==0)
{
hBrightness.val=sys0
}
}
// get ColorTemp value
spstr strCommand.txt,tTmp.txt,"~",6
if(tTmp.txt=="disable")
{
vis hTempSlider,0
//vis t3,0
//vis t4,0
vis t3,0
vis t4,0
mode_temp.val=0
// mode == 1 is temp controls currently shown
if(mode.val==1)
@@ -485,8 +514,8 @@ Timer tmSerial
{
mode_temp.val=1
vis hTempSlider,1
//vis t3,1
//vis t4,1
vis t3,1
vis t4,1
if(tmCooldown.en==0)
{
covx tTmp.txt,sys0,0,0
@@ -505,12 +534,12 @@ Timer tmSerial
// disable -> isn't supported
if(tTmp.txt=="disable")
{
//vis t0,0
vis t0,0
vis bColor,0
vis pColorWheel,0
}else
{
//vis t0,1
vis t0,1
//only enable bColor button if color temp is also supported
if(mode_temp.val==1)
{
@@ -522,11 +551,11 @@ Timer tmSerial
}
}
// set t0 Color (Localization)
//spstr strCommand.txt,t0.txt,"~",8
spstr strCommand.txt,t0.txt,"~",8
// set t4 Temperature (Localization)
//spstr strCommand.txt,t4.txt,"~",9
spstr strCommand.txt,t4.txt,"~",9
// set t1 Brightness (Localization)
//spstr strCommand.txt,t1.txt,"~",10
spstr strCommand.txt,t1.txt,"~",10
// activate effect button
spstr strCommand.txt,tTmp.txt,"~",11
if(tTmp.txt=="enable")

View File

@@ -0,0 +1,689 @@
Page popupLightNew
Attributes
Scope : local
Dragging : 0
Send Component ID : disabled
Locked : no
Swide up page ID : disabled
Swide down page ID : disabled
Swide left page ID : disabled
Swide right page ID: disabled
Events
Preinitialize Event
dim=dimValueNormal
//get entitiy name
tEntity.txt=pageIcons.tTmp1.txt
//get entity id
entn.txt=pageIcons.tTmp2.txt
vis tSend,0
vis tTmp,0
vis tInstruction,0
vis tId,0
vis bEffect,0
vis hBrightness,0
//page open event
// event,pageOpenDetail,typeOfPage,tEntityName
// craft command
tSend.txt="event,pageOpenDetail,popupLight,"+entn.txt
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
//disable brightness by default
//vis t1,0
//vis t2,0
vis hBrightness,1
//disable color temp by default
//vis t4,0
//vis t3,0
vis hTempSlider,0
//disable color wheel components by default
vis bColor,0
//vis t0,0
vis pColorWheel,0
//vis t0,0
popupLightNew.bco=defaultBcoColor
for(sys0=0;sys0<27;sys0++)
{
if(b[sys0].type==98||b[sys0].type==116)
{
b[sys0].bco=defaultBcoColor
b[sys0].pco=defaultFontColor
}
if(b[sys0].type==53&&defaultBcoColor==0)
{
b[sys0].pic=10
b[sys0].pic2=11
}
}
if(defaultBcoColor==0)
{
hTempSlider.pic=16
hTempSlider.pic1=16
}
Postinitialize Event
fill hBrightness.x,hBrightness.y,100,250,defaultBcoColor
Variable (int32) col
Attributes
Scope: local
Value: 65504
Variable (string) entn
Attributes
Scope : local
Text :
Max. Text Size: 80
Variable (int32) mode
Attributes
Scope: local
Value: 1
Variable (int32) mode_temp
Attributes
Scope: local
Value: 0
Variable (string) strCommand
Attributes
Scope : local
Text :
Max. Text Size: 500
Variable (string) tId
Attributes
Scope : local
Text :
Max. Text Size: 20
Variable (string) tInstruction
Attributes
Scope : local
Text :
Max. Text Size: 20
Variable (string) tSend
Attributes
Scope : local
Text :
Max. Text Size: 200
Variable (string) tTmp
Attributes
Scope : local
Text :
Max. Text Size: 80
Text tEntity
Attributes
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : tEntity1
Max. Text Size : 25
Picture pColorWheel
Attributes
Scope : local
Dragging : 0
Send Component ID: disabled
Events
Touch Press Event
//craft command
tSend.txt="event,buttonPress2,"+entn.txt+",colorWheel,"
sys0=tch0
sys0=sys0-pColorWheel.x
covx sys0,tTmp.txt,0,0
tSend.txt+=tTmp.txt
tSend.txt+="|"
sys0=tch1
sys0=sys0-pColorWheel.y
covx sys0,tTmp.txt,0,0
tSend.txt+=tTmp.txt
tSend.txt+="|"
covx pColorWheel.h,tTmp.txt,0,0
tSend.txt+=tTmp.txt
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
Slider hBrightness
Attributes
Scope : local
Dragging : 0
Send Component ID: disabled
Position : 50
Upper range limit: 100
Lower range limit: 0
Events
Touch Release Event
//draw black background
fill hBrightness.x,hBrightness.y,100,hBrightness.val*-25/10+250,8484
//draw draw colored bar at the position of the current brightness value
fill hBrightness.x,hBrightness.val*-25/10+314,100,hBrightness.val*25/10,col.val
if(hBrightness.val>7)
{
//draw cursor
fill hBrightness.x+25,hBrightness.val*-25/10+322,50,4,WHITE
//paint corner
xstr hBrightness.x,hBrightness.val*-25/10+314,100,hBrightness.h,7,8484,0,0,0,3,"a"
}
//paint corners
xstr hBrightness.x,hBrightness.y,100,hBrightness.h,7,defaultBcoColor,0,0,0,3,"a"
xstr hBrightness.x,hBrightness.y+hBrightness.h-15,100,hBrightness.h,7,defaultBcoColor,0,0,0,3,"b"
tmCooldown.en=1
tmCooldown.tim=2500
//craft command
tSend.txt="event,buttonPress2,"+entn.txt+",brightnessSlider,"
covx hBrightness.val,tTmp.txt,0,0
tSend.txt+=tTmp.txt
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
Slider hTempSlider
Attributes
Scope : local
Dragging : 0
Send Component ID: disabled
Position : 50
Upper range limit: 100
Lower range limit: 0
Events
Touch Release Event
tmCooldown.en=1
tmCooldown.tim=2500
//craft command
tSend.txt="event,buttonPress2,"+entn.txt+",colorTempSlider,"
covx hTempSlider.val,tTmp.txt,0,0
tSend.txt+=tTmp.txt
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
Button b0
Attributes
Scope : local
Dragging : 0
Send Component ID: disabled
State : unpressed
Text : 
Max. Text Size : 10
Events
Touch Press Event
tSend.txt="event,buttonPress2,popupLight,bExit"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
Button bColor
Attributes
Scope : local
Dragging : 0
Send Component ID: disabled
State : unpressed
Text : 
Max. Text Size : 10
Events
Touch Press Event
if(mode.val==1)
{
mode.val=0
//enable color wheel
vis pColorWheel,1
//disable color temp
//vis t4,0
//vis t3,0
vis hTempSlider,0
}else
{
mode.val=1
//disable color wheel
vis pColorWheel,0
if(mode_temp.val==1)
{
//enable color temp
//vis t4,1
//vis t3,1
vis hTempSlider,1
}
}
Button bEffect
Attributes
Scope : local
Dragging : 0
Send Component ID: disabled
State : unpressed
Text : 
Max. Text Size : 10
Events
Touch Press Event
pageIcons.tTmp1.txt=tEntity.txt
pageIcons.tTmp2.txt=entn.txt
page popupInSel
Dual-state Button btOnOff1
Attributes
Scope : local
Dragging : 0
Send Component ID: disabled
State : unpressed
Text :
Max. Text Size : 10
Events
Touch Press Event
//craft command
tSend.txt="event,buttonPress2,"+entn.txt+","+"OnOff,"
covx btOnOff1.val,tTmp.txt,0,0
tSend.txt+=tTmp.txt
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
Timer tmCooldown
Attributes
Scope : local
Period (ms): 300
Enabled : no
Events
Timer Event
tmCooldown.en=0
Timer tmDrawCooldown
Attributes
Scope : local
Period (ms): 500
Enabled : no
Events
Timer Event
//draw black background
fill hBrightness.x,hBrightness.y,100,hBrightness.val*-25/10+250,8484
//draw draw colored bar at the position of the current brightness value
fill hBrightness.x,hBrightness.val*-25/10+314,100,hBrightness.val*25/10,col.val
if(hBrightness.val>7)
{
//draw cursor
fill hBrightness.x+25,hBrightness.val*-25/10+322,50,4,WHITE
//paint corner
xstr hBrightness.x,hBrightness.val*-25/10+314,100,hBrightness.h,7,8484,0,0,0,3,"a"
}
//paint corners
xstr hBrightness.x,hBrightness.y,100,hBrightness.h,7,defaultBcoColor,0,0,0,3,"a"
xstr hBrightness.x,hBrightness.y+hBrightness.h-15,100,hBrightness.h,7,defaultBcoColor,0,0,0,3,"b"
tmDrawCooldown.en=0
Timer tmSerial
Attributes
Scope : local
Period (ms): 50
Enabled : yes
Events
Timer Event
// data available
if(usize>1)
{
bufferPos=0
while(bufferPos<usize)
{
// check for 0x55 0xBB - Command Init Secuence
if(u[bufferPos]==187&&u[bufferPos-1]==85)
{
//remove garbage at the start of the buffer if there's any to free buffer for command
if(u[bufferPos]!=1)
{
udelete bufferPos-1
}
//instruction is now aligned with buffer, because we deleted garbage before instrcution
//get length after init sequence (check if there are more than to bytes in buffer)
if(3<usize)
{
// check if serial buffer has reached the announced length
ucopy payloadLength,2,2,0
// we are only checking payload length so we have to skip first 3 bytes (init+payload length) (-1 because of < instead of <=)
payloadLength+=3
// payload length does also not contain crc, so we are adding another 2 bytes for crc
payloadLength+=2
if(payloadLength<usize)
{
// calculate crc
crcrest 1,0xFFFF
// u[2] contains payload legth at 3rd pos in buffer, we are calculating crc from 3rd pos with number of bytes from payload length
//crcputu 3,u[2]
// u[2] cotnains payload length, we are calculating a crc over the whole message, so we have to add 3 to the length from u[2]
crcputu 0,payloadLength-1
// get recived crc to be able to compare it
ucopy recvCrc,payloadLength-1,2,0
// compare crc with recived value
if(crcval==recvCrc)
{
// crc is okay
// here is the location where acual code should be
// write command to variable strCommand
ucopy strCommand.txt,4,payloadLength-5,0
// write instruction to tInstuction (debug output, but used as variable here, ui elements will be disabled by default)
spstr strCommand.txt,tInstruction.txt,"~",0
spstr strCommand.txt,tTmp.txt,"~",1
if(tInstruction.txt=="entityUpdateDetail"&&entn.txt==tTmp.txt)
{
// change icon
//spstr strCommand.txt,tIcon1.txt,"~",2
//vis tIcon1,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",3
covx tTmp.txt,sys0,0,0
col.val=sys0
//tEntity.pco=sys0
// get Button State
spstr strCommand.txt,tTmp.txt,"~",4
covx tTmp.txt,sys0,0,0
btOnOff1.val=sys0
// get Brightness value
spstr strCommand.txt,tTmp.txt,"~",5
if(tTmp.txt=="disable")
{
//vis t1,0
//vis t2,0
vis hBrightness,0
}else
{
//vis t1,1
//vis t2,1
vis hBrightness,1
covx tTmp.txt,sys0,0,0
hBrightness.val=sys0
tmDrawCooldown.en=1
tmDrawCooldown.tim=500
}
// get ColorTemp value
spstr strCommand.txt,tTmp.txt,"~",6
if(tTmp.txt=="disable")
{
vis hTempSlider,0
//vis t3,0
//vis t4,0
mode_temp.val=0
// mode == 1 is temp controls currently shown
if(mode.val==1)
{
// switch mode
click bColor,1
click bColor,0
}
}else if(tTmp.txt=="unknown") // temp supported, but not in color mode
{
mode_temp.val=1
// mode == 1 is temp controls currently shown
if(mode.val==1)
{
// switch mode
click bColor,1
click bColor,0
}
}else
{
mode_temp.val=1
vis hTempSlider,1
//vis t3,1
//vis t4,1
if(tmCooldown.en==0)
{
covx tTmp.txt,sys0,0,0
hTempSlider.val=sys0
}
// mode == 0 is rgb controls currently shown
if(mode.val==0)
{
// switch mode
click bColor,1
click bColor,0
}
}
// get Color value
spstr strCommand.txt,tTmp.txt,"~",7
// disable -> isn't supported
if(tTmp.txt=="disable")
{
//vis t0,0
vis bColor,0
vis pColorWheel,0
}else
{
//vis t0,1
//only enable bColor button if color temp is also supported
if(mode_temp.val==1)
{
vis bColor,1
}
if(mode.val==0)
{
vis pColorWheel,1
}
}
// set t0 Color (Localization)
//spstr strCommand.txt,t0.txt,"~",8
// set t4 Temperature (Localization)
//spstr strCommand.txt,t4.txt,"~",9
// set t1 Brightness (Localization)
//spstr strCommand.txt,t1.txt,"~",10
// activate effect button
spstr strCommand.txt,tTmp.txt,"~",11
if(tTmp.txt=="enable")
{
vis bEffect,1
}else
{
vis bEffect,0
}
}
if(tInstruction.txt=="time")
{
// get set time to global variable
spstr strCommand.txt,pageIcons.vaTime.txt,"~",1
}
if(tInstruction.txt=="date")
{
// get set date to global variable
spstr strCommand.txt,pageIcons.vaDate.txt,"~",1
}
if(tInstruction.txt=="dimmode")
{
// get value
spstr strCommand.txt,tTmp.txt,"~",1
covx tTmp.txt,dimValue,0,0
// get value normal
spstr strCommand.txt,tTmp.txt,"~",2
covx tTmp.txt,dimValueNormal,0,0
dim=dimValueNormal
// get background color
spstr strCommand.txt,tTmp.txt,"~",3
if(tTmp.txt!="")
{
covx tTmp.txt,defaultBcoColor,0,0
}
// get font color
spstr strCommand.txt,tTmp.txt,"~",4
if(tTmp.txt!="")
{
covx tTmp.txt,defaultFontColor,0,0
}
}
if(tInstruction.txt=="timeout")
{
//set timeout to global var
spstr strCommand.txt,tTmp.txt,"~",1
covx tTmp.txt,sleepTimeout,0,0
}
if(tInstruction.txt=="pageType")
{
//command format pageType,specialPageName
//write name of speical page to tId
spstr strCommand.txt,tId.txt,"~",1
//save second arg if there's one
spstr strCommand.txt,tTmp.txt,"~",2
//save third arg if there's one
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
udelete payloadLength-1
bufferPos=0
if(tId.txt=="pageStartup")
{
page pageStartup
}
if(tId.txt=="screensaver")
{
page screensaver
}
if(tId.txt=="cardEntities")
{
page cardEntities
}
if(tId.txt=="cardGrid")
{
page cardGrid
}
if(tId.txt=="cardGrid2")
{
page cardGrid2
}
if(tId.txt=="popupLight")
{
pageIcons.tTmp1.txt=tTmp.txt
page popupLight
}
if(tId.txt=="popupShutter")
{
pageIcons.tTmp1.txt=tTmp.txt
page popupShutter
}
if(tId.txt=="popupNotify")
{
page popupNotify
}
if(tId.txt=="cardThermo")
{
page cardThermo
}
if(tId.txt=="cardMedia")
{
page cardMedia
}
if(tId.txt=="cardAlarm")
{
page cardAlarm
}
if(tId.txt=="cardQR")
{
page cardQR
}
if(tId.txt=="cardPower")
{
page cardPower
}
if(tId.txt=="cardChart")
{
page cardChart
}
}
// end of user code
udelete payloadLength-1
bufferPos=0
}
}
}
}
// next character
bufferPos++
}
}
Timer tmSleep
Attributes
Scope : local
Period (ms): 1000
Enabled : yes
Events
Timer Event
if(sleepTimeout!=0)
{
sleepValue+=1
if(sleepTimeout<=sleepValue)
{
sleepValue=0
click b0,1
click b0,0
}
}
TouchCap tc0
Attributes
Scope: local
Value: 0
Events
Touch Press Event
sleepValue=0

View File

@@ -352,7 +352,7 @@ Timer tmSerial
covx tTmp.txt,defaultFontColor,0,0
}
}
if(tInstruction.txt=="timeout")
if(tInstruction.txt=="timeout2")
{
//set timeout to global var
spstr strCommand.txt,tTmp.txt,"~",1

View File

@@ -11,6 +11,18 @@ Page screensaver
Events
Preinitialize Event
tSend.txt="event,renderCurrentPage"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
recmod=1
baud=115200
vis tInstruction,0

View File

@@ -11,6 +11,18 @@ Page screensaver2
Events
Preinitialize Event
tSend.txt="event,renderCurrentPage"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
recmod=1
baud=115200
vis tInstruction,0
@@ -804,6 +816,10 @@ Timer tmSerial
{
page cardChart
}
if(tId.txt=="cardLChart")
{
page cardLChart
}
}
if(tInstruction.txt=="timeout")
{

Binary file not shown.

Binary file not shown.

Binary file not shown.

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -14,6 +14,8 @@ Program.s
//color vars
int defaultFontColor=65535
int defaultBcoColor=6371
//feature flags
int featNewSliders=0
// fix touch offset (Removed for US version)
//lcd_dev fffb 0002 0000 0020
printh 00 00 00 ff ff ff 88 ff ff ff//Output power on information to serial port

View File

@@ -118,56 +118,56 @@ Variable (string) entn1
ID : 48
Scope : local
Text :
Max. Text Size: 65
Max. Text Size: 64
Variable (string) entn2
Attributes
ID : 49
Scope : local
Text :
Max. Text Size: 65
Max. Text Size: 64
Variable (string) entn3
Attributes
ID : 50
Scope : local
Text :
Max. Text Size: 65
Max. Text Size: 64
Variable (string) entn4
Attributes
ID : 51
Scope : local
Text :
Max. Text Size: 65
Max. Text Size: 64
Variable (string) entn5
Attributes
ID : 61
Scope : local
Text :
Max. Text Size: 65
Max. Text Size: 64
Variable (string) entn6
Attributes
ID : 88
Scope : local
Text :
Max. Text Size: 65
Max. Text Size: 64
Variable (string) nent1
Attributes
ID : 90
Scope : local
Text :
Max. Text Size: 40
Max. Text Size: 38
Variable (string) nent2
Attributes
ID : 89
Scope : local
Text :
Max. Text Size: 40
Max. Text Size: 38
Variable (string) strCommand
Attributes
@@ -1115,9 +1115,9 @@ Slider hSlider6
Events
Touch Release Event
nNum5.val=hSlider5.val
nNum6.val=hSlider6.val
tSend.txt="event,buttonPress2,"+entn6.txt+",number-set,"
covx nNum5.val,tTmp.txt,0,0
covx nNum6.val,tTmp.txt,0,0
tSend.txt+=tTmp.txt
//send calc crc
btlen tSend.txt,sys0
@@ -2577,7 +2577,7 @@ Dual-state Button btOnOff6
Events
Touch Press Event
tSend.txt="event,buttonPress2,"+entn6.txt+",OnOff,"
covx btOnOff5.val,tTmp.txt,0,0
covx btOnOff6.val,tTmp.txt,0,0
tSend.txt+=tTmp.txt
//send calc crc
btlen tSend.txt,sys0
@@ -2618,8 +2618,13 @@ Hotspot m0
}
if(type1.txt=="light")
{
//popupLight.tEntity.txt=tEntity1.txt
page popupLight
if(featNewSliders==1)
{
page popupLightNew
}else
{
page popupLight
}
}
if(type1.txt=="fan")
{
@@ -2661,8 +2666,13 @@ Hotspot m1
}
if(type2.txt=="light")
{
//popupLight.tEntity.txt=tEntity2.txt
page popupLight
if(featNewSliders==1)
{
page popupLightNew
}else
{
page popupLight
}
}
if(type2.txt=="fan")
{
@@ -2704,8 +2714,13 @@ Hotspot m2
}
if(type3.txt=="light")
{
//popupLight.tEntity.txt=tEntity3.txt
page popupLight
if(featNewSliders==1)
{
page popupLightNew
}else
{
page popupLight
}
}
if(type3.txt=="fan")
{
@@ -2747,8 +2762,13 @@ Hotspot m3
}
if(type4.txt=="light")
{
//popupLight.tEntity.txt=tEntity4.txt
page popupLight
if(featNewSliders==1)
{
page popupLightNew
}else
{
page popupLight
}
}
if(type4.txt=="fan")
{
@@ -2790,8 +2810,13 @@ Hotspot m4
}
if(type5.txt=="light")
{
//popupLight.tEntity.txt=tEntity5.txt
page popupLight
if(featNewSliders==1)
{
page popupLightNew
}else
{
page popupLight
}
}
if(type5.txt=="fan")
{
@@ -2833,8 +2858,13 @@ Hotspot m5
}
if(type6.txt=="light")
{
//popupLight.tEntity.txt=tEntity5.txt
page popupLight
if(featNewSliders==1)
{
page popupLightNew
}else
{
page popupLight
}
}
if(type6.txt=="fan")
{

View File

@@ -1052,7 +1052,13 @@ Timer tmLP
Timer Event
if(tTmp.txt=="light")
{
page popupLight
if(featNewSliders==1)
{
page popupLightNew
}else
{
page popupLight
}
}
if(tTmp.txt=="fan")
{
@@ -1161,6 +1167,17 @@ Timer tmSerial
{
// change icon
spstr strCommand.txt,bEntity1.txt,"~",16
// way to get force font adjustment
strlen bEntity1.txt,sys0
//check 2nd last char for ¬
substr bEntity1.txt,tTmp.txt,sys0-2,1
if(tTmp.txt=="¬")
{
substr bEntity1.txt,tTmp.txt,sys0-1,1
covx tTmp.txt,sys1,0,0
bEntity1.font=sys1
substr bEntity1.txt,bEntity1.txt,0,sys0-2
}
vis bEntity1,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",17
@@ -1182,6 +1199,17 @@ Timer tmSerial
{
// change icon
spstr strCommand.txt,bEntity2.txt,"~",22
// way to get force font adjustment
strlen bEntity2.txt,sys0
//check 2nd last char for ¬
substr bEntity2.txt,tTmp.txt,sys0-2,1
if(tTmp.txt=="¬")
{
substr bEntity2.txt,tTmp.txt,sys0-1,1
covx tTmp.txt,sys1,0,0
bEntity2.font=sys1
substr bEntity2.txt,bEntity2.txt,0,sys0-2
}
vis bEntity2,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",23
@@ -1203,6 +1231,17 @@ Timer tmSerial
{
// change icon
spstr strCommand.txt,bEntity3.txt,"~",28
// way to get force font adjustment
strlen bEntity3.txt,sys0
//check 2nd last char for ¬
substr bEntity3.txt,tTmp.txt,sys0-2,1
if(tTmp.txt=="¬")
{
substr bEntity3.txt,tTmp.txt,sys0-1,1
covx tTmp.txt,sys1,0,0
bEntity3.font=sys1
substr bEntity3.txt,bEntity3.txt,0,sys0-2
}
vis bEntity3,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",29
@@ -1224,6 +1263,17 @@ Timer tmSerial
{
// change icon
spstr strCommand.txt,bEntity4.txt,"~",34
// way to get force font adjustment
strlen bEntity4.txt,sys0
//check 2nd last char for ¬
substr bEntity4.txt,tTmp.txt,sys0-2,1
if(tTmp.txt=="¬")
{
substr bEntity4.txt,tTmp.txt,sys0-1,1
covx tTmp.txt,sys1,0,0
bEntity4.font=sys1
substr bEntity4.txt,bEntity4.txt,0,sys0-2
}
vis bEntity4,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",35
@@ -1245,6 +1295,17 @@ Timer tmSerial
{
// change icon
spstr strCommand.txt,bEntity5.txt,"~",40
// way to get force font adjustment
strlen bEntity5.txt,sys0
//check 2nd last char for ¬
substr bEntity5.txt,tTmp.txt,sys0-2,1
if(tTmp.txt=="¬")
{
substr bEntity5.txt,tTmp.txt,sys0-1,1
covx tTmp.txt,sys1,0,0
bEntity5.font=sys1
substr bEntity5.txt,bEntity5.txt,0,sys0-2
}
vis bEntity5,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",41
@@ -1266,6 +1327,17 @@ Timer tmSerial
{
// change icon
spstr strCommand.txt,bEntity6.txt,"~",46
// way to get force font adjustment
strlen bEntity6.txt,sys0
//check 2nd last char for ¬
substr bEntity6.txt,tTmp.txt,sys0-2,1
if(tTmp.txt=="¬")
{
substr bEntity6.txt,tTmp.txt,sys0-1,1
covx tTmp.txt,sys1,0,0
bEntity6.font=sys1
substr bEntity6.txt,bEntity6.txt,0,sys0-2
}
vis bEntity6,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",47

View File

@@ -1036,26 +1036,26 @@ Button bEntity7
Events
Touch Press Event
tmLP.en=1
tTmp.txt=type2.txt
pageIcons.tTmp1.txt=tEntity2.txt
pageIcons.tTmp2.txt=entn2.txt
pageIcons.tTmp3.txt=bEntity2.txt
if(type2.txt=="shutter")
tTmp.txt=type7.txt
pageIcons.tTmp1.txt=tEntity7.txt
pageIcons.tTmp2.txt=entn7.txt
pageIcons.tTmp3.txt=bEntity7.txt
if(type7.txt=="shutter")
{
page popupShutter
}
if(type2.txt=="input_sel")
if(type7.txt=="input_sel")
{
page popupInSel
}
if(type2.txt=="timer")
if(type7.txt=="timer")
{
page popupTimer
}
Touch Release Event
tmLP.en=0
tSend.txt="event,buttonPress2,"+entn2.txt+",button"
tSend.txt="event,buttonPress2,"+entn7.txt+",button"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
@@ -1102,26 +1102,26 @@ Button bEntity8
Events
Touch Press Event
tmLP.en=1
tTmp.txt=type6.txt
pageIcons.tTmp1.txt=tEntity6.txt
pageIcons.tTmp2.txt=entn6.txt
pageIcons.tTmp3.txt=bEntity6.txt
if(type6.txt=="shutter")
tTmp.txt=type8.txt
pageIcons.tTmp1.txt=tEntity8.txt
pageIcons.tTmp2.txt=entn8.txt
pageIcons.tTmp3.txt=bEntity8.txt
if(type8.txt=="shutter")
{
page popupShutter
}
if(type6.txt=="input_sel")
if(type8.txt=="input_sel")
{
page popupInSel
}
if(type6.txt=="timer")
if(type8.txt=="timer")
{
page popupTimer
}
Touch Release Event
tmLP.en=0
tSend.txt="event,buttonPress2,"+entn6.txt+",button"
tSend.txt="event,buttonPress2,"+entn8.txt+",button"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
@@ -1168,26 +1168,26 @@ Button bEntity9
Events
Touch Press Event
tmLP.en=1
tTmp.txt=type6.txt
pageIcons.tTmp1.txt=tEntity6.txt
pageIcons.tTmp2.txt=entn6.txt
pageIcons.tTmp3.txt=bEntity6.txt
if(type6.txt=="shutter")
tTmp.txt=type9.txt
pageIcons.tTmp1.txt=tEntity9.txt
pageIcons.tTmp2.txt=entn9.txt
pageIcons.tTmp3.txt=bEntity9.txt
if(type9.txt=="shutter")
{
page popupShutter
}
if(type6.txt=="input_sel")
if(type9.txt=="input_sel")
{
page popupInSel
}
if(type6.txt=="timer")
if(type9.txt=="timer")
{
page popupTimer
}
Touch Release Event
tmLP.en=0
tSend.txt="event,buttonPress2,"+entn6.txt+",button"
tSend.txt="event,buttonPress2,"+entn9.txt+",button"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
@@ -1385,7 +1385,13 @@ Timer tmLP
Timer Event
if(tTmp.txt=="light")
{
page popupLight
if(featNewSliders==1)
{
page popupLightNew
}else
{
page popupLight
}
}
if(tTmp.txt=="fan")
{
@@ -1494,6 +1500,17 @@ Timer tmSerial
{
// change icon
spstr strCommand.txt,bEntity1.txt,"~",16
// way to get force font adjustment
strlen bEntity1.txt,sys0
//check 2nd last char for ¬
substr bEntity1.txt,tTmp.txt,sys0-2,1
if(tTmp.txt=="¬")
{
substr bEntity1.txt,tTmp.txt,sys0-1,1
covx tTmp.txt,sys1,0,0
bEntity1.font=sys1
substr bEntity1.txt,bEntity1.txt,0,sys0-2
}
vis bEntity1,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",17
@@ -1515,6 +1532,17 @@ Timer tmSerial
{
// change icon
spstr strCommand.txt,bEntity2.txt,"~",22
// way to get force font adjustment
strlen bEntity2.txt,sys0
//check 2nd last char for ¬
substr bEntity2.txt,tTmp.txt,sys0-2,1
if(tTmp.txt=="¬")
{
substr bEntity2.txt,tTmp.txt,sys0-1,1
covx tTmp.txt,sys1,0,0
bEntity2.font=sys1
substr bEntity2.txt,bEntity2.txt,0,sys0-2
}
vis bEntity2,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",23
@@ -1536,6 +1564,17 @@ Timer tmSerial
{
// change icon
spstr strCommand.txt,bEntity3.txt,"~",28
// way to get force font adjustment
strlen bEntity3.txt,sys0
//check 2nd last char for ¬
substr bEntity3.txt,tTmp.txt,sys0-2,1
if(tTmp.txt=="¬")
{
substr bEntity3.txt,tTmp.txt,sys0-1,1
covx tTmp.txt,sys1,0,0
bEntity3.font=sys1
substr bEntity3.txt,bEntity3.txt,0,sys0-2
}
vis bEntity3,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",29
@@ -1557,6 +1596,17 @@ Timer tmSerial
{
// change icon
spstr strCommand.txt,bEntity4.txt,"~",34
// way to get force font adjustment
strlen bEntity4.txt,sys0
//check 2nd last char for ¬
substr bEntity4.txt,tTmp.txt,sys0-2,1
if(tTmp.txt=="¬")
{
substr bEntity4.txt,tTmp.txt,sys0-1,1
covx tTmp.txt,sys1,0,0
bEntity4.font=sys1
substr bEntity4.txt,bEntity4.txt,0,sys0-2
}
vis bEntity4,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",35
@@ -1578,6 +1628,17 @@ Timer tmSerial
{
// change icon
spstr strCommand.txt,bEntity5.txt,"~",40
// way to get force font adjustment
strlen bEntity5.txt,sys0
//check 2nd last char for ¬
substr bEntity5.txt,tTmp.txt,sys0-2,1
if(tTmp.txt=="¬")
{
substr bEntity5.txt,tTmp.txt,sys0-1,1
covx tTmp.txt,sys1,0,0
bEntity5.font=sys1
substr bEntity5.txt,bEntity5.txt,0,sys0-2
}
vis bEntity5,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",41
@@ -1599,6 +1660,17 @@ Timer tmSerial
{
// change icon
spstr strCommand.txt,bEntity6.txt,"~",46
// way to get force font adjustment
strlen bEntity6.txt,sys0
//check 2nd last char for ¬
substr bEntity6.txt,tTmp.txt,sys0-2,1
if(tTmp.txt=="¬")
{
substr bEntity6.txt,tTmp.txt,sys0-1,1
covx tTmp.txt,sys1,0,0
bEntity6.font=sys1
substr bEntity6.txt,bEntity6.txt,0,sys0-2
}
vis bEntity6,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",47
@@ -1620,6 +1692,17 @@ Timer tmSerial
{
// change icon
spstr strCommand.txt,bEntity7.txt,"~",52
// way to get force font adjustment
strlen bEntity7.txt,sys0
//check 2nd last char for ¬
substr bEntity7.txt,tTmp.txt,sys0-2,1
if(tTmp.txt=="¬")
{
substr bEntity7.txt,tTmp.txt,sys0-1,1
covx tTmp.txt,sys1,0,0
bEntity7.font=sys1
substr bEntity7.txt,bEntity7.txt,0,sys0-2
}
vis bEntity7,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",53
@@ -1641,6 +1724,17 @@ Timer tmSerial
{
// change icon
spstr strCommand.txt,bEntity8.txt,"~",58
// way to get force font adjustment
strlen bEntity8.txt,sys0
//check 2nd last char for ¬
substr bEntity8.txt,tTmp.txt,sys0-2,1
if(tTmp.txt=="¬")
{
substr bEntity8.txt,tTmp.txt,sys0-1,1
covx tTmp.txt,sys1,0,0
bEntity8.font=sys1
substr bEntity8.txt,bEntity8.txt,0,sys0-2
}
vis bEntity8,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",59
@@ -1662,6 +1756,17 @@ Timer tmSerial
{
// change icon
spstr strCommand.txt,bEntity9.txt,"~",64
// way to get force font adjustment
strlen bEntity9.txt,sys0
//check 2nd last char for ¬
substr bEntity9.txt,tTmp.txt,sys0-2,1
if(tTmp.txt=="¬")
{
substr bEntity9.txt,tTmp.txt,sys0-1,1
covx tTmp.txt,sys1,0,0
bEntity9.font=sys1
substr bEntity9.txt,bEntity9.txt,0,sys0-2
}
vis bEntity9,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",65
@@ -1748,6 +1853,10 @@ Timer tmSerial
{
page cardChart
}
if(tId.txt=="cardLChart")
{
page cardLChart
}
}
if(tInstruction.txt=="time")
{

View File

@@ -1485,6 +1485,17 @@ Timer tmSerial
// change icon
spstr strCommand.txt,bEntity1.txt,"~",25
vis bEntity1,1
// way to get force font adjustment
strlen bEntity1.txt,sys0
//check 2nd last char for ¬
substr bEntity1.txt,tTmp.txt,sys0-2,1
if(tTmp.txt=="¬")
{
substr bEntity1.txt,tTmp.txt,sys0-1,1
covx tTmp.txt,sys1,0,0
bEntity1.font=sys1
substr bEntity1.txt,bEntity1.txt,0,sys0-2
}
// change icon color
spstr strCommand.txt,tTmp.txt,"~",26
covx tTmp.txt,sys0,0,0
@@ -1506,6 +1517,17 @@ Timer tmSerial
// change icon
spstr strCommand.txt,bEntity2.txt,"~",31
vis bEntity2,1
// way to get force font adjustment
strlen bEntity2.txt,sys0
//check 2nd last char for ¬
substr bEntity2.txt,tTmp.txt,sys0-2,1
if(tTmp.txt=="¬")
{
substr bEntity2.txt,tTmp.txt,sys0-1,1
covx tTmp.txt,sys1,0,0
bEntity2.font=sys1
substr bEntity2.txt,bEntity2.txt,0,sys0-2
}
// change icon color
spstr strCommand.txt,tTmp.txt,"~",32
covx tTmp.txt,sys0,0,0
@@ -1527,6 +1549,17 @@ Timer tmSerial
// change icon
spstr strCommand.txt,bEntity3.txt,"~",37
vis bEntity3,1
// way to get force font adjustment
strlen bEntity3.txt,sys0
//check 2nd last char for ¬
substr bEntity3.txt,tTmp.txt,sys0-2,1
if(tTmp.txt=="¬")
{
substr bEntity3.txt,tTmp.txt,sys0-1,1
covx tTmp.txt,sys1,0,0
bEntity3.font=sys1
substr bEntity3.txt,bEntity3.txt,0,sys0-2
}
// change icon color
spstr strCommand.txt,tTmp.txt,"~",38
covx tTmp.txt,sys0,0,0
@@ -1548,6 +1581,17 @@ Timer tmSerial
// change icon
spstr strCommand.txt,bEntity4.txt,"~",43
vis bEntity4,1
// way to get force font adjustment
strlen bEntity4.txt,sys0
//check 2nd last char for ¬
substr bEntity4.txt,tTmp.txt,sys0-2,1
if(tTmp.txt=="¬")
{
substr bEntity4.txt,tTmp.txt,sys0-1,1
covx tTmp.txt,sys1,0,0
bEntity4.font=sys1
substr bEntity4.txt,bEntity4.txt,0,sys0-2
}
// change icon color
spstr strCommand.txt,tTmp.txt,"~",44
covx tTmp.txt,sys0,0,0
@@ -1569,6 +1613,17 @@ Timer tmSerial
// change icon
spstr strCommand.txt,bEntity5.txt,"~",49
vis bEntity5,1
// way to get force font adjustment
strlen bEntity5.txt,sys0
//check 2nd last char for ¬
substr bEntity5.txt,tTmp.txt,sys0-2,1
if(tTmp.txt=="¬")
{
substr bEntity5.txt,tTmp.txt,sys0-1,1
covx tTmp.txt,sys1,0,0
bEntity5.font=sys1
substr bEntity5.txt,bEntity5.txt,0,sys0-2
}
// change icon color
spstr strCommand.txt,tTmp.txt,"~",50
covx tTmp.txt,sys0,0,0
@@ -1590,6 +1645,17 @@ Timer tmSerial
// change icon
spstr strCommand.txt,bEntity6.txt,"~",55
vis bEntity6,1
// way to get force font adjustment
strlen bEntity6.txt,sys0
//check 2nd last char for ¬
substr bEntity6.txt,tTmp.txt,sys0-2,1
if(tTmp.txt=="¬")
{
substr bEntity6.txt,tTmp.txt,sys0-1,1
covx tTmp.txt,sys1,0,0
bEntity6.font=sys1
substr bEntity6.txt,bEntity6.txt,0,sys0-2
}
// change icon color
spstr strCommand.txt,tTmp.txt,"~",56
covx tTmp.txt,sys0,0,0

View File

@@ -1514,6 +1514,10 @@ Timer tmSerial
{
page cardChart
}
if(tId.txt=="cardLChart")
{
page cardChart
}
}
if(tInstruction.txt=="time")
{

View File

@@ -1,7 +1,7 @@
Program.s
0 Component(s)
13 Line(s) of event code
13 Unique line(s) of event code
14 Line(s) of event code
14 Unique line(s) of event code
pageIcons
7 Component(s)
0 Line(s) of event code
@@ -14,38 +14,38 @@ popupNotify
19 Component(s)
267 Line(s) of event code
172 Unique line(s) of event code
pageStartup
19 Component(s)
198 Line(s) of event code
137 Unique line(s) of event code
popupTimer
42 Component(s)
516 Line(s) of event code
257 Unique line(s) of event code
cardGrid2
56 Component(s)
657 Line(s) of event code
332 Unique line(s) of event code
popupLight
28 Component(s)
412 Line(s) of event code
227 Unique line(s) of event code
popupFan
27 Component(s)
355 Line(s) of event code
206 Unique line(s) of event code
pageStartup
19 Component(s)
193 Line(s) of event code
135 Unique line(s) of event code
popupLightNew
23 Component(s)
412 Line(s) of event code
209 Unique line(s) of event code
cardChart
33 Component(s)
437 Line(s) of event code
296 Unique line(s) of event code
cardMedia
59 Component(s)
649 Line(s) of event code
322 Unique line(s) of event code
cardGrid2
56 Component(s)
748 Line(s) of event code
410 Unique line(s) of event code
cardLChart
33 Component(s)
402 Line(s) of event code
266 Unique line(s) of event code
popupLight
23 Component(s)
410 Line(s) of event code
209 Unique line(s) of event code
popupShutter
25 Component(s)
402 Line(s) of event code
@@ -64,20 +64,12 @@ popupInSel
297 Unique line(s) of event code
cardGrid
44 Component(s)
523 Line(s) of event code
295 Unique line(s) of event code
583 Line(s) of event code
332 Unique line(s) of event code
cardAlarm
43 Component(s)
500 Line(s) of event code
273 Unique line(s) of event code
cardPower
54 Component(s)
521 Line(s) of event code
341 Unique line(s) of event code
screensaver2
58 Component(s)
348 Line(s) of event code
245 Unique line(s) of event code
cardThermo
57 Component(s)
540 Line(s) of event code
@@ -86,13 +78,25 @@ screensaver
46 Component(s)
429 Line(s) of event code
306 Unique line(s) of event code
cardPower
54 Component(s)
525 Line(s) of event code
342 Unique line(s) of event code
screensaver2
58 Component(s)
352 Line(s) of event code
247 Unique line(s) of event code
cardEntities
91 Component(s)
1630 Line(s) of event code
705 Unique line(s) of event code
1666 Line(s) of event code
711 Unique line(s) of event code
cardMedia
59 Component(s)
703 Line(s) of event code
356 Unique line(s) of event code
Total
22 Page(s)
862 Component(s)
10360 Line(s) of event code
2492 Unique line(s) of event code
23 Page(s)
890 Component(s)
11029 Line(s) of event code
2600 Unique line(s) of event code

View File

@@ -389,7 +389,7 @@ Text tVersion
Horizontal Alignment: center
Vertical Alignment : center
Input Type : character
Text : 51
Text : 53
Max. Text Size : 10
Word wrap : disabled
Horizontal Spacing : 0
@@ -568,8 +568,14 @@ Timer tmSerial
{
covx tTmp.txt,defaultFontColor,0,0
}
// get feature flag popup
spstr strCommand.txt,tTmp.txt,"~",5
if(tTmp.txt!="")
{
covx tTmp.txt,featNewSliders,0,0
}
}
if(tInstruction.txt=="timeout")
if(tInstruction.txt=="timeout2")
{
//set timeout to global var
spstr strCommand.txt,tTmp.txt,"~",1

View File

@@ -24,12 +24,13 @@ Page popupLight
tEntity.txt=pageIcons.tTmp1.txt
//get entity id
entn.txt=pageIcons.tTmp2.txt
tIcon1.txt=pageIcons.tTmp3.txt
vis p0,0
vis tSend,0
vis tTmp,0
vis tInstruction,0
vis tId,0
vis bEffect,0
vis hBrightness,0
//page open event
// event,pageOpenDetail,typeOfPage,tEntityName
// craft command
@@ -46,20 +47,20 @@ Page popupLight
prints tSend.txt,0
prints crcval,2
//disable brightness by default
//vis t1,0
//vis t2,0
vis hBrightness,1
vis t1,0
vis t2,0
vis hBrightness,0
//disable color temp by default
//vis t4,0
//vis t3,0
vis t4,0
vis t3,0
vis hTempSlider,0
//disable color wheel components by default
vis bColor,0
//vis t0,0
vis t0,0
vis pColorWheel,0
//vis t0,0
popupLight.bco=defaultBcoColor
for(sys0=0;sys0<27;sys0++)
for(sys0=0;sys0<28;sys0++)
{
if(b[sys0].type==98||b[sys0].type==116)
{
@@ -74,83 +75,115 @@ Page popupLight
}
if(defaultBcoColor==0)
{
hTempSlider.pic=16
hTempSlider.pic1=16
hBrightness.pic=14
hBrightness.pic1=13
hBrightness.pic2=15
hTempSlider.pic=23
hTempSlider.pic1=17
hTempSlider.pic2=15
}
Postinitialize Event
fill hBrightness.x,hBrightness.y,100,250,defaultBcoColor
Variable (int32) col
Attributes
ID : 18
Scope: local
Value: 65504
Variable (string) entn
Attributes
ID : 11
ID : 20
Scope : local
Text :
Max. Text Size: 80
Variable (int32) mode
Attributes
ID : 13
ID : 22
Scope: local
Value: 1
Variable (int32) mode_temp
Attributes
ID : 14
ID : 23
Scope: local
Value: 0
Variable (string) strCommand
Attributes
ID : 9
ID : 16
Scope : local
Text :
Max. Text Size: 500
Variable (string) tId
Attributes
ID : 20
Scope : local
Text :
Max. Text Size: 20
Variable (string) tInstruction
Attributes
ID : 19
Scope : local
Text :
Max. Text Size: 20
Variable (string) tSend
Attributes
ID : 16
ID : 26
Scope : local
Text :
Max. Text Size: 200
Variable (string) tTmp
Text t0
Attributes
ID : 21
Scope : local
Text :
Max. Text Size: 80
Text tEntity
Attributes
ID : 2
ID : 24
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 19
y coordinate : 21
Width : 224
x coordinate : 12
y coordinate : 57
Width : 141
Height : 30
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 0
Back. Color : 6371
Font Color : 65535
Horizontal Alignment: left
Vertical Alignment : center
Input Type : character
Text : Color
Max. Text Size : 50
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Text t1
Attributes
ID : 6
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 60
y coordinate : 374
Width : 251
Height : 30
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 0
Back. Color : 6371
Font Color : 65535
Horizontal Alignment: left
Vertical Alignment : center
Input Type : character
Text : Brightness
Max. Text Size : 50
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Text t2
Attributes
ID : 9
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 10
y coordinate : 374
Width : 45
Height : 30
Effect : load
Effect Priority : 0
@@ -160,31 +193,250 @@ Text tEntity
Associated Keyboard : none
Font ID : 1
Back. Color : 6371
Font Color : 65535
Font Color : 40147
Horizontal Alignment: center
Vertical Alignment : center
Input Type : character
Text : 
Max. Text Size : 10
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Text t3
Attributes
ID : 10
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 10
y coordinate : 267
Width : 45
Height : 30
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 1
Back. Color : 6371
Font Color : 40147
Horizontal Alignment: center
Vertical Alignment : center
Input Type : character
Text : 
Max. Text Size : 10
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Text t4
Attributes
ID : 11
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 60
y coordinate : 266
Width : 250
Height : 30
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 0
Back. Color : 6371
Font Color : 65535
Horizontal Alignment: left
Vertical Alignment : center
Input Type : character
Text : Temperature
Max. Text Size : 50
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Text tEntity
Attributes
ID : 3
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 60
y coordinate : 21
Width : 200
Height : 30
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 0
Back. Color : 6371
Font Color : 65535
Horizontal Alignment: left
Vertical Alignment : center
Input Type : character
Text : tEntity1
Max. Text Size : 25
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Picture pColorWheel
Text tIcon1
Attributes
ID : 4
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 11
y coordinate : 21
Width : 45
Height : 30
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 1
Back. Color : 6371
Font Color : 17299
Horizontal Alignment: center
Vertical Alignment : center
Input Type : character
Text : 
Max. Text Size : 10
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Text tId
Attributes
ID : 18
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 100
y coordinate : 450
Width : 100
Height : 30
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 0
Back. Color : 65535
Font Color : 0
Horizontal Alignment: center
Vertical Alignment : center
Input Type : character
Text :
Max. Text Size : 20
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Text tInstruction
Attributes
ID : 17
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 0
y coordinate : 450
Width : 100
Height : 30
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 0
Back. Color : 65535
Font Color : 0
Horizontal Alignment: center
Vertical Alignment : center
Input Type : character
Text :
Max. Text Size : 20
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Text tTmp
Attributes
ID : 12
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 282
y coordinate : 446
Width : 34
Height : 30
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 0
Back. Color : 65535
Font Color : 0
Horizontal Alignment: center
Vertical Alignment : center
Input Type : character
Text :
Max. Text Size : 80
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Picture p0
Attributes
ID : 1
Scope : local
Dragging : 0
Send Component ID: disabled
Opacity : 127
x coordinate : 150
y coordinate : 168
Width : 160
Height : 160
x coordinate : 0
y coordinate : 1
Width : 319
Height : 479
Effect : load
Effect Priority : 0
Effect Time : 300
Picture ID : 3
Picture ID : 0
Picture pColorWheel
Attributes
ID : 2
Scope : local
Dragging : 0
Send Component ID: disabled
Opacity : 127
x coordinate : 67
y coordinate : 89
Width : 245
Height : 245
Effect : load
Effect Priority : 0
Effect Time : 300
Picture ID : 20
Events
Touch Press Event
@@ -216,44 +468,30 @@ Picture pColorWheel
Slider hBrightness
Attributes
ID : 4
ID : 7
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 25
y coordinate : 127
Width : 100
Height : 250
x coordinate : 12
y coordinate : 409
Width : 300
Height : 44
Effect : load
Effect Priority : 0
Effect Time : 300
Direction : vertical
Direction : horizontal
Fill : image
Cursor width : auto
Cursor height : 1
Back. Picture ID : 65535
Slided Back. Picture ID: 65535
Cursor height : 255
Back. Picture ID : 5
Slided Back. Picture ID: 4
Position : 50
Upper range limit : 100
Lower range limit : 0
Events
Touch Release Event
//draw black background
fill hBrightness.x,hBrightness.y,100,hBrightness.val*-25/10+250,8484
//draw draw colored bar at the position of the current brightness value
fill hBrightness.x,hBrightness.val*-25/10+314,100,hBrightness.val*25/10,col.val
if(hBrightness.val>7)
{
//draw cursor
fill hBrightness.x+25,hBrightness.val*-25/10+322,50,4,WHITE
//paint corner
xstr hBrightness.x,hBrightness.val*-25/10+314,100,hBrightness.h,7,8484,0,0,0,3,"a"
}
//paint corners
xstr hBrightness.x,hBrightness.y,100,hBrightness.h,7,defaultBcoColor,0,0,0,3,"a"
xstr hBrightness.x,hBrightness.y+hBrightness.h-15,100,hBrightness.h,7,defaultBcoColor,0,0,0,3,"b"
tmCooldown.en=1
tmCooldown.tim=2500
//craft command
@@ -274,24 +512,24 @@ Slider hBrightness
Slider hTempSlider
Attributes
ID : 10
ID : 19
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 187
y coordinate : 127
Width : 100
Height : 250
x coordinate : 12
y coordinate : 304
Width : 300
Height : 44
Effect : load
Effect Priority : 0
Effect Time : 300
Direction : vertical
Direction : horizontal
Fill : image
Cursor width : auto
Cursor height : 255
Back. Picture ID : 7
Slided Back. Picture ID: 7
Back. Picture ID : 21
Slided Back. Picture ID: 22
Position : 50
Upper range limit : 100
Lower range limit : 0
@@ -318,13 +556,13 @@ Slider hTempSlider
Button b0
Attributes
ID : 3
ID : 5
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 256
y coordinate : 12
x coordinate : 266
y coordinate : 14
Width : 50
Height : 50
Effect : load
@@ -364,13 +602,13 @@ Button b0
Button bColor
Attributes
ID : 12
ID : 21
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 134
y coordinate : 407
x coordinate : 12
y coordinate : 89
Width : 50
Height : 50
Effect : load
@@ -401,8 +639,8 @@ Button bColor
//enable color wheel
vis pColorWheel,1
//disable color temp
//vis t4,0
//vis t3,0
vis t4,0
vis t3,0
vis hTempSlider,0
}else
{
@@ -412,21 +650,21 @@ Button bColor
if(mode_temp.val==1)
{
//enable color temp
//vis t4,1
//vis t3,1
vis t4,1
vis t3,1
vis hTempSlider,1
}
}
Button bEffect
Attributes
ID : 17
ID : 27
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 60
y coordinate : 407
x coordinate : 12
y coordinate : 195
Width : 50
Height : 50
Effect : load
@@ -453,17 +691,18 @@ Button bEffect
Touch Press Event
pageIcons.tTmp1.txt=tEntity.txt
pageIcons.tTmp2.txt=entn.txt
pageIcons.tTmp3.txt=tIcon1.txt
page popupInSel
Dual-state Button btOnOff1
Attributes
ID : 5
ID : 8
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 208
y coordinate : 407
x coordinate : 12
y coordinate : 142
Width : 50
Height : 50
Effect : load
@@ -502,43 +741,18 @@ Dual-state Button btOnOff1
Timer tmCooldown
Attributes
ID : 15
ID : 25
Scope : local
Period (ms): 100
Period (ms): 300
Enabled : no
Events
Timer Event
tmCooldown.en=0
Timer tmDrawCooldown
Attributes
ID : 22
Scope : local
Period (ms): 500
Enabled : no
Events
Timer Event
//draw black background
fill hBrightness.x,hBrightness.y,100,hBrightness.val*-25/10+250,8484
//draw draw colored bar at the position of the current brightness value
fill hBrightness.x,hBrightness.val*-25/10+314,100,hBrightness.val*25/10,col.val
if(hBrightness.val>7)
{
//draw cursor
fill hBrightness.x+25,hBrightness.val*-25/10+322,50,4,WHITE
//paint corner
xstr hBrightness.x,hBrightness.val*-25/10+314,100,hBrightness.h,7,8484,0,0,0,3,"a"
}
//paint corners
xstr hBrightness.x,hBrightness.y,100,hBrightness.h,7,defaultBcoColor,0,0,0,3,"a"
xstr hBrightness.x,hBrightness.y+hBrightness.h-15,100,hBrightness.h,7,defaultBcoColor,0,0,0,3,"b"
tmDrawCooldown.en=0
Timer tmSerial
Attributes
ID : 8
ID : 15
Scope : local
Period (ms): 50
Enabled : yes
@@ -593,12 +807,11 @@ Timer tmSerial
{
// change icon
//spstr strCommand.txt,tIcon1.txt,"~",2
//vis tIcon1,1
vis tIcon1,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",3
covx tTmp.txt,sys0,0,0
col.val=sys0
//tEntity.pco=sys0
tIcon1.pco=sys0
// get Button State
spstr strCommand.txt,tTmp.txt,"~",4
covx tTmp.txt,sys0,0,0
@@ -607,26 +820,27 @@ Timer tmSerial
spstr strCommand.txt,tTmp.txt,"~",5
if(tTmp.txt=="disable")
{
//vis t1,0
//vis t2,0
vis t1,0
vis t2,0
vis hBrightness,0
}else
{
//vis t1,1
//vis t2,1
vis t1,1
vis t2,1
vis hBrightness,1
covx tTmp.txt,sys0,0,0
hBrightness.val=sys0
tmDrawCooldown.en=1
tmDrawCooldown.tim=500
if(tmCooldown.en==0)
{
hBrightness.val=sys0
}
}
// get ColorTemp value
spstr strCommand.txt,tTmp.txt,"~",6
if(tTmp.txt=="disable")
{
vis hTempSlider,0
//vis t3,0
//vis t4,0
vis t3,0
vis t4,0
mode_temp.val=0
// mode == 1 is temp controls currently shown
if(mode.val==1)
@@ -649,8 +863,8 @@ Timer tmSerial
{
mode_temp.val=1
vis hTempSlider,1
//vis t3,1
//vis t4,1
vis t3,1
vis t4,1
if(tmCooldown.en==0)
{
covx tTmp.txt,sys0,0,0
@@ -669,12 +883,12 @@ Timer tmSerial
// disable -> isn't supported
if(tTmp.txt=="disable")
{
//vis t0,0
vis t0,0
vis bColor,0
vis pColorWheel,0
}else
{
//vis t0,1
vis t0,1
//only enable bColor button if color temp is also supported
if(mode_temp.val==1)
{
@@ -686,11 +900,11 @@ Timer tmSerial
}
}
// set t0 Color (Localization)
//spstr strCommand.txt,t0.txt,"~",8
spstr strCommand.txt,t0.txt,"~",8
// set t4 Temperature (Localization)
//spstr strCommand.txt,t4.txt,"~",9
spstr strCommand.txt,t4.txt,"~",9
// set t1 Brightness (Localization)
//spstr strCommand.txt,t1.txt,"~",10
spstr strCommand.txt,t1.txt,"~",10
// activate effect button
spstr strCommand.txt,tTmp.txt,"~",11
if(tTmp.txt=="enable")
@@ -825,7 +1039,7 @@ Timer tmSerial
Timer tmSleep
Attributes
ID : 7
ID : 14
Scope : local
Period (ms): 1000
Enabled : yes
@@ -845,7 +1059,7 @@ Timer tmSleep
TouchCap tc0
Attributes
ID : 6
ID : 13
Scope: local
Value: 0

View File

@@ -0,0 +1,855 @@
Page popupLightNew
Attributes
ID : 0
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
Width : 320
Effect : load
Effect Priority : 0
Effect Time : 300
Locked : no
Swide up page ID : disabled
Swide down page ID : disabled
Swide left page ID : disabled
Swide right page ID: disabled
Fill : solid color
Back. Color : 6371
Events
Preinitialize Event
dim=dimValueNormal
//get entitiy name
tEntity.txt=pageIcons.tTmp1.txt
//get entity id
entn.txt=pageIcons.tTmp2.txt
vis tSend,0
vis tTmp,0
vis tInstruction,0
vis tId,0
vis bEffect,0
vis hBrightness,0
//page open event
// event,pageOpenDetail,typeOfPage,tEntityName
// craft command
tSend.txt="event,pageOpenDetail,popupLight,"+entn.txt
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
//disable brightness by default
//vis t1,0
//vis t2,0
vis hBrightness,1
//disable color temp by default
//vis t4,0
//vis t3,0
vis hTempSlider,0
//disable color wheel components by default
vis bColor,0
//vis t0,0
vis pColorWheel,0
//vis t0,0
popupLightNew.bco=defaultBcoColor
for(sys0=0;sys0<27;sys0++)
{
if(b[sys0].type==98||b[sys0].type==116)
{
b[sys0].bco=defaultBcoColor
b[sys0].pco=defaultFontColor
}
if(b[sys0].type==53&&defaultBcoColor==0)
{
b[sys0].pic=10
b[sys0].pic2=11
}
}
if(defaultBcoColor==0)
{
hTempSlider.pic=16
hTempSlider.pic1=16
}
Postinitialize Event
fill hBrightness.x,hBrightness.y,100,250,defaultBcoColor
Variable (int32) col
Attributes
ID : 18
Scope: local
Value: 65504
Variable (string) entn
Attributes
ID : 11
Scope : local
Text :
Max. Text Size: 80
Variable (int32) mode
Attributes
ID : 13
Scope: local
Value: 1
Variable (int32) mode_temp
Attributes
ID : 14
Scope: local
Value: 0
Variable (string) strCommand
Attributes
ID : 9
Scope : local
Text :
Max. Text Size: 500
Variable (string) tId
Attributes
ID : 20
Scope : local
Text :
Max. Text Size: 20
Variable (string) tInstruction
Attributes
ID : 19
Scope : local
Text :
Max. Text Size: 20
Variable (string) tSend
Attributes
ID : 16
Scope : local
Text :
Max. Text Size: 200
Variable (string) tTmp
Attributes
ID : 21
Scope : local
Text :
Max. Text Size: 80
Text tEntity
Attributes
ID : 2
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 19
y coordinate : 21
Width : 224
Height : 30
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 1
Back. Color : 6371
Font Color : 65535
Horizontal Alignment: center
Vertical Alignment : center
Input Type : character
Text : tEntity1
Max. Text Size : 25
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Picture pColorWheel
Attributes
ID : 1
Scope : local
Dragging : 0
Send Component ID: disabled
Opacity : 127
x coordinate : 150
y coordinate : 168
Width : 160
Height : 160
Effect : load
Effect Priority : 0
Effect Time : 300
Picture ID : 3
Events
Touch Press Event
//craft command
tSend.txt="event,buttonPress2,"+entn.txt+",colorWheel,"
sys0=tch0
sys0=sys0-pColorWheel.x
covx sys0,tTmp.txt,0,0
tSend.txt+=tTmp.txt
tSend.txt+="|"
sys0=tch1
sys0=sys0-pColorWheel.y
covx sys0,tTmp.txt,0,0
tSend.txt+=tTmp.txt
tSend.txt+="|"
covx pColorWheel.h,tTmp.txt,0,0
tSend.txt+=tTmp.txt
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
Slider hBrightness
Attributes
ID : 4
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 25
y coordinate : 127
Width : 100
Height : 250
Effect : load
Effect Priority : 0
Effect Time : 300
Direction : vertical
Fill : image
Cursor width : auto
Cursor height : 1
Back. Picture ID : 65535
Slided Back. Picture ID: 65535
Position : 50
Upper range limit : 100
Lower range limit : 0
Events
Touch Release Event
//draw black background
fill hBrightness.x,hBrightness.y,100,hBrightness.val*-25/10+250,8484
//draw draw colored bar at the position of the current brightness value
fill hBrightness.x,hBrightness.val*-25/10+314,100,hBrightness.val*25/10,col.val
if(hBrightness.val>7)
{
//draw cursor
fill hBrightness.x+25,hBrightness.val*-25/10+322,50,4,WHITE
//paint corner
xstr hBrightness.x,hBrightness.val*-25/10+314,100,hBrightness.h,7,8484,0,0,0,3,"a"
}
//paint corners
xstr hBrightness.x,hBrightness.y,100,hBrightness.h,7,defaultBcoColor,0,0,0,3,"a"
xstr hBrightness.x,hBrightness.y+hBrightness.h-15,100,hBrightness.h,7,defaultBcoColor,0,0,0,3,"b"
tmCooldown.en=1
tmCooldown.tim=2500
//craft command
tSend.txt="event,buttonPress2,"+entn.txt+",brightnessSlider,"
covx hBrightness.val,tTmp.txt,0,0
tSend.txt+=tTmp.txt
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
Slider hTempSlider
Attributes
ID : 10
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 187
y coordinate : 127
Width : 100
Height : 250
Effect : load
Effect Priority : 0
Effect Time : 300
Direction : vertical
Fill : image
Cursor width : auto
Cursor height : 255
Back. Picture ID : 7
Slided Back. Picture ID: 7
Position : 50
Upper range limit : 100
Lower range limit : 0
Events
Touch Release Event
tmCooldown.en=1
tmCooldown.tim=2500
//craft command
tSend.txt="event,buttonPress2,"+entn.txt+",colorTempSlider,"
covx hTempSlider.val,tTmp.txt,0,0
tSend.txt+=tTmp.txt
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
Button b0
Attributes
ID : 3
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 256
y coordinate : 12
Width : 50
Height : 50
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Font ID : 1
Back. Color : 6371
Back. Picture ID (Pressed): 65535
Back. Color (Pressed) : 14823
Font Color (Unpressed) : 65535
Font Color (Pressed) : 65535
Horizontal Alignment : center
Vertical Alignment : center
State : unpressed
Text : 
Max. Text Size : 10
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Events
Touch Press Event
tSend.txt="event,buttonPress2,popupLight,bExit"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
Button bColor
Attributes
ID : 12
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 134
y coordinate : 407
Width : 50
Height : 50
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Font ID : 1
Back. Color : 6371
Back. Picture ID (Pressed): 65535
Back. Color (Pressed) : 14823
Font Color (Unpressed) : 65535
Font Color (Pressed) : 65535
Horizontal Alignment : center
Vertical Alignment : center
State : unpressed
Text : 
Max. Text Size : 10
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Events
Touch Press Event
if(mode.val==1)
{
mode.val=0
//enable color wheel
vis pColorWheel,1
//disable color temp
//vis t4,0
//vis t3,0
vis hTempSlider,0
}else
{
mode.val=1
//disable color wheel
vis pColorWheel,0
if(mode_temp.val==1)
{
//enable color temp
//vis t4,1
//vis t3,1
vis hTempSlider,1
}
}
Button bEffect
Attributes
ID : 17
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 60
y coordinate : 407
Width : 50
Height : 50
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Font ID : 1
Back. Color : 6371
Back. Picture ID (Pressed): 65535
Back. Color (Pressed) : 14823
Font Color (Unpressed) : 65535
Font Color (Pressed) : 65535
Horizontal Alignment : center
Vertical Alignment : center
State : unpressed
Text : 
Max. Text Size : 10
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Events
Touch Press Event
pageIcons.tTmp1.txt=tEntity.txt
pageIcons.tTmp2.txt=entn.txt
page popupInSel
Dual-state Button btOnOff1
Attributes
ID : 5
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 208
y coordinate : 407
Width : 50
Height : 50
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : image
Font ID : 0
Background Picture ID (Unpressed): 1
Back. Picture ID (Pressed) : 2
Horizontal Alignment : center
Vertical Alignment : center
State : unpressed
Text :
Max. Text Size : 10
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Events
Touch Press Event
//craft command
tSend.txt="event,buttonPress2,"+entn.txt+","+"OnOff,"
covx btOnOff1.val,tTmp.txt,0,0
tSend.txt+=tTmp.txt
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
Timer tmCooldown
Attributes
ID : 15
Scope : local
Period (ms): 300
Enabled : no
Events
Timer Event
tmCooldown.en=0
Timer tmDrawCooldown
Attributes
ID : 22
Scope : local
Period (ms): 500
Enabled : no
Events
Timer Event
//draw black background
fill hBrightness.x,hBrightness.y,100,hBrightness.val*-25/10+250,8484
//draw draw colored bar at the position of the current brightness value
fill hBrightness.x,hBrightness.val*-25/10+314,100,hBrightness.val*25/10,col.val
if(hBrightness.val>7)
{
//draw cursor
fill hBrightness.x+25,hBrightness.val*-25/10+322,50,4,WHITE
//paint corner
xstr hBrightness.x,hBrightness.val*-25/10+314,100,hBrightness.h,7,8484,0,0,0,3,"a"
}
//paint corners
xstr hBrightness.x,hBrightness.y,100,hBrightness.h,7,defaultBcoColor,0,0,0,3,"a"
xstr hBrightness.x,hBrightness.y+hBrightness.h-15,100,hBrightness.h,7,defaultBcoColor,0,0,0,3,"b"
tmDrawCooldown.en=0
Timer tmSerial
Attributes
ID : 8
Scope : local
Period (ms): 50
Enabled : yes
Events
Timer Event
// data available
if(usize>1)
{
bufferPos=0
while(bufferPos<usize)
{
// check for 0x55 0xBB - Command Init Secuence
if(u[bufferPos]==187&&u[bufferPos-1]==85)
{
//remove garbage at the start of the buffer if there's any to free buffer for command
if(u[bufferPos]!=1)
{
udelete bufferPos-1
}
//instruction is now aligned with buffer, because we deleted garbage before instrcution
//get length after init sequence (check if there are more than to bytes in buffer)
if(3<usize)
{
// check if serial buffer has reached the announced length
ucopy payloadLength,2,2,0
// we are only checking payload length so we have to skip first 3 bytes (init+payload length) (-1 because of < instead of <=)
payloadLength+=3
// payload length does also not contain crc, so we are adding another 2 bytes for crc
payloadLength+=2
if(payloadLength<usize)
{
// calculate crc
crcrest 1,0xFFFF
// u[2] contains payload legth at 3rd pos in buffer, we are calculating crc from 3rd pos with number of bytes from payload length
//crcputu 3,u[2]
// u[2] cotnains payload length, we are calculating a crc over the whole message, so we have to add 3 to the length from u[2]
crcputu 0,payloadLength-1
// get recived crc to be able to compare it
ucopy recvCrc,payloadLength-1,2,0
// compare crc with recived value
if(crcval==recvCrc)
{
// crc is okay
// here is the location where acual code should be
// write command to variable strCommand
ucopy strCommand.txt,4,payloadLength-5,0
// write instruction to tInstuction (debug output, but used as variable here, ui elements will be disabled by default)
spstr strCommand.txt,tInstruction.txt,"~",0
spstr strCommand.txt,tTmp.txt,"~",1
if(tInstruction.txt=="entityUpdateDetail"&&entn.txt==tTmp.txt)
{
// change icon
//spstr strCommand.txt,tIcon1.txt,"~",2
//vis tIcon1,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",3
covx tTmp.txt,sys0,0,0
col.val=sys0
//tEntity.pco=sys0
// get Button State
spstr strCommand.txt,tTmp.txt,"~",4
covx tTmp.txt,sys0,0,0
btOnOff1.val=sys0
// get Brightness value
spstr strCommand.txt,tTmp.txt,"~",5
if(tTmp.txt=="disable")
{
//vis t1,0
//vis t2,0
vis hBrightness,0
}else
{
//vis t1,1
//vis t2,1
vis hBrightness,1
covx tTmp.txt,sys0,0,0
hBrightness.val=sys0
tmDrawCooldown.en=1
tmDrawCooldown.tim=500
}
// get ColorTemp value
spstr strCommand.txt,tTmp.txt,"~",6
if(tTmp.txt=="disable")
{
vis hTempSlider,0
//vis t3,0
//vis t4,0
mode_temp.val=0
// mode == 1 is temp controls currently shown
if(mode.val==1)
{
// switch mode
click bColor,1
click bColor,0
}
}else if(tTmp.txt=="unknown") // temp supported, but not in color mode
{
mode_temp.val=1
// mode == 1 is temp controls currently shown
if(mode.val==1)
{
// switch mode
click bColor,1
click bColor,0
}
}else
{
mode_temp.val=1
vis hTempSlider,1
//vis t3,1
//vis t4,1
if(tmCooldown.en==0)
{
covx tTmp.txt,sys0,0,0
hTempSlider.val=sys0
}
// mode == 0 is rgb controls currently shown
if(mode.val==0)
{
// switch mode
click bColor,1
click bColor,0
}
}
// get Color value
spstr strCommand.txt,tTmp.txt,"~",7
// disable -> isn't supported
if(tTmp.txt=="disable")
{
//vis t0,0
vis bColor,0
vis pColorWheel,0
}else
{
//vis t0,1
//only enable bColor button if color temp is also supported
if(mode_temp.val==1)
{
vis bColor,1
}
if(mode.val==0)
{
vis pColorWheel,1
}
}
// set t0 Color (Localization)
//spstr strCommand.txt,t0.txt,"~",8
// set t4 Temperature (Localization)
//spstr strCommand.txt,t4.txt,"~",9
// set t1 Brightness (Localization)
//spstr strCommand.txt,t1.txt,"~",10
// activate effect button
spstr strCommand.txt,tTmp.txt,"~",11
if(tTmp.txt=="enable")
{
vis bEffect,1
}else
{
vis bEffect,0
}
}
if(tInstruction.txt=="time")
{
// get set time to global variable
spstr strCommand.txt,pageIcons.vaTime.txt,"~",1
}
if(tInstruction.txt=="date")
{
// get set date to global variable
spstr strCommand.txt,pageIcons.vaDate.txt,"~",1
}
if(tInstruction.txt=="dimmode")
{
// get value
spstr strCommand.txt,tTmp.txt,"~",1
covx tTmp.txt,dimValue,0,0
// get value normal
spstr strCommand.txt,tTmp.txt,"~",2
covx tTmp.txt,dimValueNormal,0,0
dim=dimValueNormal
// get background color
spstr strCommand.txt,tTmp.txt,"~",3
if(tTmp.txt!="")
{
covx tTmp.txt,defaultBcoColor,0,0
}
// get font color
spstr strCommand.txt,tTmp.txt,"~",4
if(tTmp.txt!="")
{
covx tTmp.txt,defaultFontColor,0,0
}
}
if(tInstruction.txt=="timeout")
{
//set timeout to global var
spstr strCommand.txt,tTmp.txt,"~",1
covx tTmp.txt,sleepTimeout,0,0
}
if(tInstruction.txt=="pageType")
{
//command format pageType,specialPageName
//write name of speical page to tId
spstr strCommand.txt,tId.txt,"~",1
//save second arg if there's one
spstr strCommand.txt,tTmp.txt,"~",2
//save third arg if there's one
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
udelete payloadLength-1
bufferPos=0
if(tId.txt=="pageStartup")
{
page pageStartup
}
if(tId.txt=="screensaver")
{
page screensaver
}
if(tId.txt=="cardEntities")
{
page cardEntities
}
if(tId.txt=="cardGrid")
{
page cardGrid
}
if(tId.txt=="cardGrid2")
{
page cardGrid2
}
if(tId.txt=="popupLight")
{
pageIcons.tTmp1.txt=tTmp.txt
page popupLight
}
if(tId.txt=="popupShutter")
{
pageIcons.tTmp1.txt=tTmp.txt
page popupShutter
}
if(tId.txt=="popupNotify")
{
page popupNotify
}
if(tId.txt=="cardThermo")
{
page cardThermo
}
if(tId.txt=="cardMedia")
{
page cardMedia
}
if(tId.txt=="cardAlarm")
{
page cardAlarm
}
if(tId.txt=="cardQR")
{
page cardQR
}
if(tId.txt=="cardPower")
{
page cardPower
}
if(tId.txt=="cardChart")
{
page cardChart
}
}
// end of user code
udelete payloadLength-1
bufferPos=0
}
}
}
}
// next character
bufferPos++
}
}
Timer tmSleep
Attributes
ID : 7
Scope : local
Period (ms): 1000
Enabled : yes
Events
Timer Event
if(sleepTimeout!=0)
{
sleepValue+=1
if(sleepTimeout<=sleepValue)
{
sleepValue=0
click b0,1
click b0,0
}
}
TouchCap tc0
Attributes
ID : 6
Scope: local
Value: 0
Events
Touch Press Event
sleepValue=0

View File

@@ -1617,6 +1617,10 @@ Timer tmSerial
{
page cardChart
}
if(tId.txt=="cardLChart")
{
page cardLChart
}
}
if(tInstruction.txt=="timeout")
{

View File

@@ -14,6 +14,8 @@ Program.s
//color vars
int defaultFontColor=65535
int defaultBcoColor=6371
//feature flags
int featNewSliders=0
// fix touch offset (Removed for US version)
//lcd_dev fffb 0002 0000 0020
printh 00 00 00 ff ff ff 88 ff ff ff//Output power on information to serial port

View File

@@ -109,49 +109,49 @@ Variable (string) entn1
Attributes
Scope : local
Text :
Max. Text Size: 65
Max. Text Size: 64
Variable (string) entn2
Attributes
Scope : local
Text :
Max. Text Size: 65
Max. Text Size: 64
Variable (string) entn3
Attributes
Scope : local
Text :
Max. Text Size: 65
Max. Text Size: 64
Variable (string) entn4
Attributes
Scope : local
Text :
Max. Text Size: 65
Max. Text Size: 64
Variable (string) entn5
Attributes
Scope : local
Text :
Max. Text Size: 65
Max. Text Size: 64
Variable (string) entn6
Attributes
Scope : local
Text :
Max. Text Size: 65
Max. Text Size: 64
Variable (string) nent1
Attributes
Scope : local
Text :
Max. Text Size: 40
Max. Text Size: 38
Variable (string) nent2
Attributes
Scope : local
Text :
Max. Text Size: 40
Max. Text Size: 38
Variable (string) strCommand
Attributes
@@ -545,9 +545,9 @@ Slider hSlider6
Events
Touch Release Event
nNum5.val=hSlider5.val
nNum6.val=hSlider6.val
tSend.txt="event,buttonPress2,"+entn6.txt+",number-set,"
covx nNum5.val,tTmp.txt,0,0
covx nNum6.val,tTmp.txt,0,0
tSend.txt+=tTmp.txt
//send calc crc
btlen tSend.txt,sys0
@@ -1327,7 +1327,7 @@ Dual-state Button btOnOff6
Events
Touch Press Event
tSend.txt="event,buttonPress2,"+entn6.txt+",OnOff,"
covx btOnOff5.val,tTmp.txt,0,0
covx btOnOff6.val,tTmp.txt,0,0
tSend.txt+=tTmp.txt
//send calc crc
btlen tSend.txt,sys0
@@ -1359,8 +1359,13 @@ Hotspot m0
}
if(type1.txt=="light")
{
//popupLight.tEntity.txt=tEntity1.txt
page popupLight
if(featNewSliders==1)
{
page popupLightNew
}else
{
page popupLight
}
}
if(type1.txt=="fan")
{
@@ -1393,8 +1398,13 @@ Hotspot m1
}
if(type2.txt=="light")
{
//popupLight.tEntity.txt=tEntity2.txt
page popupLight
if(featNewSliders==1)
{
page popupLightNew
}else
{
page popupLight
}
}
if(type2.txt=="fan")
{
@@ -1427,8 +1437,13 @@ Hotspot m2
}
if(type3.txt=="light")
{
//popupLight.tEntity.txt=tEntity3.txt
page popupLight
if(featNewSliders==1)
{
page popupLightNew
}else
{
page popupLight
}
}
if(type3.txt=="fan")
{
@@ -1461,8 +1476,13 @@ Hotspot m3
}
if(type4.txt=="light")
{
//popupLight.tEntity.txt=tEntity4.txt
page popupLight
if(featNewSliders==1)
{
page popupLightNew
}else
{
page popupLight
}
}
if(type4.txt=="fan")
{
@@ -1495,8 +1515,13 @@ Hotspot m4
}
if(type5.txt=="light")
{
//popupLight.tEntity.txt=tEntity5.txt
page popupLight
if(featNewSliders==1)
{
page popupLightNew
}else
{
page popupLight
}
}
if(type5.txt=="fan")
{
@@ -1529,8 +1554,13 @@ Hotspot m5
}
if(type6.txt=="light")
{
//popupLight.tEntity.txt=tEntity5.txt
page popupLight
if(featNewSliders==1)
{
page popupLightNew
}else
{
page popupLight
}
}
if(type6.txt=="fan")
{

View File

@@ -605,7 +605,13 @@ Timer tmLP
Timer Event
if(tTmp.txt=="light")
{
page popupLight
if(featNewSliders==1)
{
page popupLightNew
}else
{
page popupLight
}
}
if(tTmp.txt=="fan")
{
@@ -713,6 +719,17 @@ Timer tmSerial
{
// change icon
spstr strCommand.txt,bEntity1.txt,"~",16
// way to get force font adjustment
strlen bEntity1.txt,sys0
//check 2nd last char for ¬
substr bEntity1.txt,tTmp.txt,sys0-2,1
if(tTmp.txt=="¬")
{
substr bEntity1.txt,tTmp.txt,sys0-1,1
covx tTmp.txt,sys1,0,0
bEntity1.font=sys1
substr bEntity1.txt,bEntity1.txt,0,sys0-2
}
vis bEntity1,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",17
@@ -734,6 +751,17 @@ Timer tmSerial
{
// change icon
spstr strCommand.txt,bEntity2.txt,"~",22
// way to get force font adjustment
strlen bEntity2.txt,sys0
//check 2nd last char for ¬
substr bEntity2.txt,tTmp.txt,sys0-2,1
if(tTmp.txt=="¬")
{
substr bEntity2.txt,tTmp.txt,sys0-1,1
covx tTmp.txt,sys1,0,0
bEntity2.font=sys1
substr bEntity2.txt,bEntity2.txt,0,sys0-2
}
vis bEntity2,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",23
@@ -755,6 +783,17 @@ Timer tmSerial
{
// change icon
spstr strCommand.txt,bEntity3.txt,"~",28
// way to get force font adjustment
strlen bEntity3.txt,sys0
//check 2nd last char for ¬
substr bEntity3.txt,tTmp.txt,sys0-2,1
if(tTmp.txt=="¬")
{
substr bEntity3.txt,tTmp.txt,sys0-1,1
covx tTmp.txt,sys1,0,0
bEntity3.font=sys1
substr bEntity3.txt,bEntity3.txt,0,sys0-2
}
vis bEntity3,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",29
@@ -776,6 +815,17 @@ Timer tmSerial
{
// change icon
spstr strCommand.txt,bEntity4.txt,"~",34
// way to get force font adjustment
strlen bEntity4.txt,sys0
//check 2nd last char for ¬
substr bEntity4.txt,tTmp.txt,sys0-2,1
if(tTmp.txt=="¬")
{
substr bEntity4.txt,tTmp.txt,sys0-1,1
covx tTmp.txt,sys1,0,0
bEntity4.font=sys1
substr bEntity4.txt,bEntity4.txt,0,sys0-2
}
vis bEntity4,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",35
@@ -797,6 +847,17 @@ Timer tmSerial
{
// change icon
spstr strCommand.txt,bEntity5.txt,"~",40
// way to get force font adjustment
strlen bEntity5.txt,sys0
//check 2nd last char for ¬
substr bEntity5.txt,tTmp.txt,sys0-2,1
if(tTmp.txt=="¬")
{
substr bEntity5.txt,tTmp.txt,sys0-1,1
covx tTmp.txt,sys1,0,0
bEntity5.font=sys1
substr bEntity5.txt,bEntity5.txt,0,sys0-2
}
vis bEntity5,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",41
@@ -818,6 +879,17 @@ Timer tmSerial
{
// change icon
spstr strCommand.txt,bEntity6.txt,"~",46
// way to get force font adjustment
strlen bEntity6.txt,sys0
//check 2nd last char for ¬
substr bEntity6.txt,tTmp.txt,sys0-2,1
if(tTmp.txt=="¬")
{
substr bEntity6.txt,tTmp.txt,sys0-1,1
covx tTmp.txt,sys1,0,0
bEntity6.font=sys1
substr bEntity6.txt,bEntity6.txt,0,sys0-2
}
vis bEntity6,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",47

View File

@@ -582,26 +582,26 @@ Button bEntity7
Events
Touch Press Event
tmLP.en=1
tTmp.txt=type2.txt
pageIcons.tTmp1.txt=tEntity2.txt
pageIcons.tTmp2.txt=entn2.txt
pageIcons.tTmp3.txt=bEntity2.txt
if(type2.txt=="shutter")
tTmp.txt=type7.txt
pageIcons.tTmp1.txt=tEntity7.txt
pageIcons.tTmp2.txt=entn7.txt
pageIcons.tTmp3.txt=bEntity7.txt
if(type7.txt=="shutter")
{
page popupShutter
}
if(type2.txt=="input_sel")
if(type7.txt=="input_sel")
{
page popupInSel
}
if(type2.txt=="timer")
if(type7.txt=="timer")
{
page popupTimer
}
Touch Release Event
tmLP.en=0
tSend.txt="event,buttonPress2,"+entn2.txt+",button"
tSend.txt="event,buttonPress2,"+entn7.txt+",button"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
@@ -626,26 +626,26 @@ Button bEntity8
Events
Touch Press Event
tmLP.en=1
tTmp.txt=type6.txt
pageIcons.tTmp1.txt=tEntity6.txt
pageIcons.tTmp2.txt=entn6.txt
pageIcons.tTmp3.txt=bEntity6.txt
if(type6.txt=="shutter")
tTmp.txt=type8.txt
pageIcons.tTmp1.txt=tEntity8.txt
pageIcons.tTmp2.txt=entn8.txt
pageIcons.tTmp3.txt=bEntity8.txt
if(type8.txt=="shutter")
{
page popupShutter
}
if(type6.txt=="input_sel")
if(type8.txt=="input_sel")
{
page popupInSel
}
if(type6.txt=="timer")
if(type8.txt=="timer")
{
page popupTimer
}
Touch Release Event
tmLP.en=0
tSend.txt="event,buttonPress2,"+entn6.txt+",button"
tSend.txt="event,buttonPress2,"+entn8.txt+",button"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
@@ -670,26 +670,26 @@ Button bEntity9
Events
Touch Press Event
tmLP.en=1
tTmp.txt=type6.txt
pageIcons.tTmp1.txt=tEntity6.txt
pageIcons.tTmp2.txt=entn6.txt
pageIcons.tTmp3.txt=bEntity6.txt
if(type6.txt=="shutter")
tTmp.txt=type9.txt
pageIcons.tTmp1.txt=tEntity9.txt
pageIcons.tTmp2.txt=entn9.txt
pageIcons.tTmp3.txt=bEntity9.txt
if(type9.txt=="shutter")
{
page popupShutter
}
if(type6.txt=="input_sel")
if(type9.txt=="input_sel")
{
page popupInSel
}
if(type6.txt=="timer")
if(type9.txt=="timer")
{
page popupTimer
}
Touch Release Event
tmLP.en=0
tSend.txt="event,buttonPress2,"+entn6.txt+",button"
tSend.txt="event,buttonPress2,"+entn9.txt+",button"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
@@ -806,7 +806,13 @@ Timer tmLP
Timer Event
if(tTmp.txt=="light")
{
page popupLight
if(featNewSliders==1)
{
page popupLightNew
}else
{
page popupLight
}
}
if(tTmp.txt=="fan")
{
@@ -914,6 +920,17 @@ Timer tmSerial
{
// change icon
spstr strCommand.txt,bEntity1.txt,"~",16
// way to get force font adjustment
strlen bEntity1.txt,sys0
//check 2nd last char for ¬
substr bEntity1.txt,tTmp.txt,sys0-2,1
if(tTmp.txt=="¬")
{
substr bEntity1.txt,tTmp.txt,sys0-1,1
covx tTmp.txt,sys1,0,0
bEntity1.font=sys1
substr bEntity1.txt,bEntity1.txt,0,sys0-2
}
vis bEntity1,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",17
@@ -935,6 +952,17 @@ Timer tmSerial
{
// change icon
spstr strCommand.txt,bEntity2.txt,"~",22
// way to get force font adjustment
strlen bEntity2.txt,sys0
//check 2nd last char for ¬
substr bEntity2.txt,tTmp.txt,sys0-2,1
if(tTmp.txt=="¬")
{
substr bEntity2.txt,tTmp.txt,sys0-1,1
covx tTmp.txt,sys1,0,0
bEntity2.font=sys1
substr bEntity2.txt,bEntity2.txt,0,sys0-2
}
vis bEntity2,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",23
@@ -956,6 +984,17 @@ Timer tmSerial
{
// change icon
spstr strCommand.txt,bEntity3.txt,"~",28
// way to get force font adjustment
strlen bEntity3.txt,sys0
//check 2nd last char for ¬
substr bEntity3.txt,tTmp.txt,sys0-2,1
if(tTmp.txt=="¬")
{
substr bEntity3.txt,tTmp.txt,sys0-1,1
covx tTmp.txt,sys1,0,0
bEntity3.font=sys1
substr bEntity3.txt,bEntity3.txt,0,sys0-2
}
vis bEntity3,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",29
@@ -977,6 +1016,17 @@ Timer tmSerial
{
// change icon
spstr strCommand.txt,bEntity4.txt,"~",34
// way to get force font adjustment
strlen bEntity4.txt,sys0
//check 2nd last char for ¬
substr bEntity4.txt,tTmp.txt,sys0-2,1
if(tTmp.txt=="¬")
{
substr bEntity4.txt,tTmp.txt,sys0-1,1
covx tTmp.txt,sys1,0,0
bEntity4.font=sys1
substr bEntity4.txt,bEntity4.txt,0,sys0-2
}
vis bEntity4,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",35
@@ -998,6 +1048,17 @@ Timer tmSerial
{
// change icon
spstr strCommand.txt,bEntity5.txt,"~",40
// way to get force font adjustment
strlen bEntity5.txt,sys0
//check 2nd last char for ¬
substr bEntity5.txt,tTmp.txt,sys0-2,1
if(tTmp.txt=="¬")
{
substr bEntity5.txt,tTmp.txt,sys0-1,1
covx tTmp.txt,sys1,0,0
bEntity5.font=sys1
substr bEntity5.txt,bEntity5.txt,0,sys0-2
}
vis bEntity5,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",41
@@ -1019,6 +1080,17 @@ Timer tmSerial
{
// change icon
spstr strCommand.txt,bEntity6.txt,"~",46
// way to get force font adjustment
strlen bEntity6.txt,sys0
//check 2nd last char for ¬
substr bEntity6.txt,tTmp.txt,sys0-2,1
if(tTmp.txt=="¬")
{
substr bEntity6.txt,tTmp.txt,sys0-1,1
covx tTmp.txt,sys1,0,0
bEntity6.font=sys1
substr bEntity6.txt,bEntity6.txt,0,sys0-2
}
vis bEntity6,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",47
@@ -1040,6 +1112,17 @@ Timer tmSerial
{
// change icon
spstr strCommand.txt,bEntity7.txt,"~",52
// way to get force font adjustment
strlen bEntity7.txt,sys0
//check 2nd last char for ¬
substr bEntity7.txt,tTmp.txt,sys0-2,1
if(tTmp.txt=="¬")
{
substr bEntity7.txt,tTmp.txt,sys0-1,1
covx tTmp.txt,sys1,0,0
bEntity7.font=sys1
substr bEntity7.txt,bEntity7.txt,0,sys0-2
}
vis bEntity7,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",53
@@ -1061,6 +1144,17 @@ Timer tmSerial
{
// change icon
spstr strCommand.txt,bEntity8.txt,"~",58
// way to get force font adjustment
strlen bEntity8.txt,sys0
//check 2nd last char for ¬
substr bEntity8.txt,tTmp.txt,sys0-2,1
if(tTmp.txt=="¬")
{
substr bEntity8.txt,tTmp.txt,sys0-1,1
covx tTmp.txt,sys1,0,0
bEntity8.font=sys1
substr bEntity8.txt,bEntity8.txt,0,sys0-2
}
vis bEntity8,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",59
@@ -1082,6 +1176,17 @@ Timer tmSerial
{
// change icon
spstr strCommand.txt,bEntity9.txt,"~",64
// way to get force font adjustment
strlen bEntity9.txt,sys0
//check 2nd last char for ¬
substr bEntity9.txt,tTmp.txt,sys0-2,1
if(tTmp.txt=="¬")
{
substr bEntity9.txt,tTmp.txt,sys0-1,1
covx tTmp.txt,sys1,0,0
bEntity9.font=sys1
substr bEntity9.txt,bEntity9.txt,0,sys0-2
}
vis bEntity9,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",65
@@ -1168,6 +1273,10 @@ Timer tmSerial
{
page cardChart
}
if(tId.txt=="cardLChart")
{
page cardLChart
}
}
if(tInstruction.txt=="time")
{

View File

@@ -997,6 +997,17 @@ Timer tmSerial
// change icon
spstr strCommand.txt,bEntity1.txt,"~",25
vis bEntity1,1
// way to get force font adjustment
strlen bEntity1.txt,sys0
//check 2nd last char for ¬
substr bEntity1.txt,tTmp.txt,sys0-2,1
if(tTmp.txt=="¬")
{
substr bEntity1.txt,tTmp.txt,sys0-1,1
covx tTmp.txt,sys1,0,0
bEntity1.font=sys1
substr bEntity1.txt,bEntity1.txt,0,sys0-2
}
// change icon color
spstr strCommand.txt,tTmp.txt,"~",26
covx tTmp.txt,sys0,0,0
@@ -1018,6 +1029,17 @@ Timer tmSerial
// change icon
spstr strCommand.txt,bEntity2.txt,"~",31
vis bEntity2,1
// way to get force font adjustment
strlen bEntity2.txt,sys0
//check 2nd last char for ¬
substr bEntity2.txt,tTmp.txt,sys0-2,1
if(tTmp.txt=="¬")
{
substr bEntity2.txt,tTmp.txt,sys0-1,1
covx tTmp.txt,sys1,0,0
bEntity2.font=sys1
substr bEntity2.txt,bEntity2.txt,0,sys0-2
}
// change icon color
spstr strCommand.txt,tTmp.txt,"~",32
covx tTmp.txt,sys0,0,0
@@ -1039,6 +1061,17 @@ Timer tmSerial
// change icon
spstr strCommand.txt,bEntity3.txt,"~",37
vis bEntity3,1
// way to get force font adjustment
strlen bEntity3.txt,sys0
//check 2nd last char for ¬
substr bEntity3.txt,tTmp.txt,sys0-2,1
if(tTmp.txt=="¬")
{
substr bEntity3.txt,tTmp.txt,sys0-1,1
covx tTmp.txt,sys1,0,0
bEntity3.font=sys1
substr bEntity3.txt,bEntity3.txt,0,sys0-2
}
// change icon color
spstr strCommand.txt,tTmp.txt,"~",38
covx tTmp.txt,sys0,0,0
@@ -1060,6 +1093,17 @@ Timer tmSerial
// change icon
spstr strCommand.txt,bEntity4.txt,"~",43
vis bEntity4,1
// way to get force font adjustment
strlen bEntity4.txt,sys0
//check 2nd last char for ¬
substr bEntity4.txt,tTmp.txt,sys0-2,1
if(tTmp.txt=="¬")
{
substr bEntity4.txt,tTmp.txt,sys0-1,1
covx tTmp.txt,sys1,0,0
bEntity4.font=sys1
substr bEntity4.txt,bEntity4.txt,0,sys0-2
}
// change icon color
spstr strCommand.txt,tTmp.txt,"~",44
covx tTmp.txt,sys0,0,0
@@ -1081,6 +1125,17 @@ Timer tmSerial
// change icon
spstr strCommand.txt,bEntity5.txt,"~",49
vis bEntity5,1
// way to get force font adjustment
strlen bEntity5.txt,sys0
//check 2nd last char for ¬
substr bEntity5.txt,tTmp.txt,sys0-2,1
if(tTmp.txt=="¬")
{
substr bEntity5.txt,tTmp.txt,sys0-1,1
covx tTmp.txt,sys1,0,0
bEntity5.font=sys1
substr bEntity5.txt,bEntity5.txt,0,sys0-2
}
// change icon color
spstr strCommand.txt,tTmp.txt,"~",50
covx tTmp.txt,sys0,0,0
@@ -1102,6 +1157,17 @@ Timer tmSerial
// change icon
spstr strCommand.txt,bEntity6.txt,"~",55
vis bEntity6,1
// way to get force font adjustment
strlen bEntity6.txt,sys0
//check 2nd last char for ¬
substr bEntity6.txt,tTmp.txt,sys0-2,1
if(tTmp.txt=="¬")
{
substr bEntity6.txt,tTmp.txt,sys0-1,1
covx tTmp.txt,sys1,0,0
bEntity6.font=sys1
substr bEntity6.txt,bEntity6.txt,0,sys0-2
}
// change icon color
spstr strCommand.txt,tTmp.txt,"~",56
covx tTmp.txt,sys0,0,0

View File

@@ -940,6 +940,10 @@ Timer tmSerial
{
page cardChart
}
if(tId.txt=="cardLChart")
{
page cardChart
}
}
if(tInstruction.txt=="time")
{

View File

@@ -139,7 +139,7 @@ Text tVersion
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : 51
Text : 53
Max. Text Size : 10
Picture p0
@@ -273,8 +273,14 @@ Timer tmSerial
{
covx tTmp.txt,defaultFontColor,0,0
}
// get feature flag popup
spstr strCommand.txt,tTmp.txt,"~",5
if(tTmp.txt!="")
{
covx tTmp.txt,featNewSliders,0,0
}
}
if(tInstruction.txt=="timeout")
if(tInstruction.txt=="timeout2")
{
//set timeout to global var
spstr strCommand.txt,tTmp.txt,"~",1

View File

@@ -16,12 +16,13 @@ Page popupLight
tEntity.txt=pageIcons.tTmp1.txt
//get entity id
entn.txt=pageIcons.tTmp2.txt
tIcon1.txt=pageIcons.tTmp3.txt
vis p0,0
vis tSend,0
vis tTmp,0
vis tInstruction,0
vis tId,0
vis bEffect,0
vis hBrightness,0
//page open event
// event,pageOpenDetail,typeOfPage,tEntityName
// craft command
@@ -38,20 +39,20 @@ Page popupLight
prints tSend.txt,0
prints crcval,2
//disable brightness by default
//vis t1,0
//vis t2,0
vis hBrightness,1
vis t1,0
vis t2,0
vis hBrightness,0
//disable color temp by default
//vis t4,0
//vis t3,0
vis t4,0
vis t3,0
vis hTempSlider,0
//disable color wheel components by default
vis bColor,0
//vis t0,0
vis t0,0
vis pColorWheel,0
//vis t0,0
popupLight.bco=defaultBcoColor
for(sys0=0;sys0<27;sys0++)
for(sys0=0;sys0<28;sys0++)
{
if(b[sys0].type==98||b[sys0].type==116)
{
@@ -66,18 +67,14 @@ Page popupLight
}
if(defaultBcoColor==0)
{
hTempSlider.pic=16
hTempSlider.pic1=16
hBrightness.pic=14
hBrightness.pic1=13
hBrightness.pic2=15
hTempSlider.pic=23
hTempSlider.pic1=17
hTempSlider.pic2=15
}
Postinitialize Event
fill hBrightness.x,hBrightness.y,100,250,defaultBcoColor
Variable (int32) col
Attributes
Scope: local
Value: 65504
Variable (string) entn
Attributes
Scope : local
@@ -100,29 +97,56 @@ Variable (string) strCommand
Text :
Max. Text Size: 500
Variable (string) tId
Attributes
Scope : local
Text :
Max. Text Size: 20
Variable (string) tInstruction
Attributes
Scope : local
Text :
Max. Text Size: 20
Variable (string) tSend
Attributes
Scope : local
Text :
Max. Text Size: 200
Variable (string) tTmp
Text t0
Attributes
Scope : local
Text :
Max. Text Size: 80
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : Color
Max. Text Size : 50
Text t1
Attributes
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : Brightness
Max. Text Size : 50
Text t2
Attributes
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : 
Max. Text Size : 10
Text t3
Attributes
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : 
Max. Text Size : 10
Text t4
Attributes
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : Temperature
Max. Text Size : 50
Text tEntity
Attributes
@@ -133,6 +157,48 @@ Text tEntity
Text : tEntity1
Max. Text Size : 25
Text tIcon1
Attributes
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : 
Max. Text Size : 10
Text tId
Attributes
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 20
Text tInstruction
Attributes
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 20
Text tTmp
Attributes
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 80
Picture p0
Attributes
Scope : local
Dragging : 0
Send Component ID: disabled
Picture pColorWheel
Attributes
Scope : local
@@ -178,20 +244,6 @@ Slider hBrightness
Events
Touch Release Event
//draw black background
fill hBrightness.x,hBrightness.y,100,hBrightness.val*-25/10+250,8484
//draw draw colored bar at the position of the current brightness value
fill hBrightness.x,hBrightness.val*-25/10+314,100,hBrightness.val*25/10,col.val
if(hBrightness.val>7)
{
//draw cursor
fill hBrightness.x+25,hBrightness.val*-25/10+322,50,4,WHITE
//paint corner
xstr hBrightness.x,hBrightness.val*-25/10+314,100,hBrightness.h,7,8484,0,0,0,3,"a"
}
//paint corners
xstr hBrightness.x,hBrightness.y,100,hBrightness.h,7,defaultBcoColor,0,0,0,3,"a"
xstr hBrightness.x,hBrightness.y+hBrightness.h-15,100,hBrightness.h,7,defaultBcoColor,0,0,0,3,"b"
tmCooldown.en=1
tmCooldown.tim=2500
//craft command
@@ -280,8 +332,8 @@ Button bColor
//enable color wheel
vis pColorWheel,1
//disable color temp
//vis t4,0
//vis t3,0
vis t4,0
vis t3,0
vis hTempSlider,0
}else
{
@@ -291,8 +343,8 @@ Button bColor
if(mode_temp.val==1)
{
//enable color temp
//vis t4,1
//vis t3,1
vis t4,1
vis t3,1
vis hTempSlider,1
}
}
@@ -310,6 +362,7 @@ Button bEffect
Touch Press Event
pageIcons.tTmp1.txt=tEntity.txt
pageIcons.tTmp2.txt=entn.txt
pageIcons.tTmp3.txt=tIcon1.txt
page popupInSel
Dual-state Button btOnOff1
@@ -342,37 +395,13 @@ Dual-state Button btOnOff1
Timer tmCooldown
Attributes
Scope : local
Period (ms): 100
Period (ms): 300
Enabled : no
Events
Timer Event
tmCooldown.en=0
Timer tmDrawCooldown
Attributes
Scope : local
Period (ms): 500
Enabled : no
Events
Timer Event
//draw black background
fill hBrightness.x,hBrightness.y,100,hBrightness.val*-25/10+250,8484
//draw draw colored bar at the position of the current brightness value
fill hBrightness.x,hBrightness.val*-25/10+314,100,hBrightness.val*25/10,col.val
if(hBrightness.val>7)
{
//draw cursor
fill hBrightness.x+25,hBrightness.val*-25/10+322,50,4,WHITE
//paint corner
xstr hBrightness.x,hBrightness.val*-25/10+314,100,hBrightness.h,7,8484,0,0,0,3,"a"
}
//paint corners
xstr hBrightness.x,hBrightness.y,100,hBrightness.h,7,defaultBcoColor,0,0,0,3,"a"
xstr hBrightness.x,hBrightness.y+hBrightness.h-15,100,hBrightness.h,7,defaultBcoColor,0,0,0,3,"b"
tmDrawCooldown.en=0
Timer tmSerial
Attributes
Scope : local
@@ -429,12 +458,11 @@ Timer tmSerial
{
// change icon
//spstr strCommand.txt,tIcon1.txt,"~",2
//vis tIcon1,1
vis tIcon1,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",3
covx tTmp.txt,sys0,0,0
col.val=sys0
//tEntity.pco=sys0
tIcon1.pco=sys0
// get Button State
spstr strCommand.txt,tTmp.txt,"~",4
covx tTmp.txt,sys0,0,0
@@ -443,26 +471,27 @@ Timer tmSerial
spstr strCommand.txt,tTmp.txt,"~",5
if(tTmp.txt=="disable")
{
//vis t1,0
//vis t2,0
vis t1,0
vis t2,0
vis hBrightness,0
}else
{
//vis t1,1
//vis t2,1
vis t1,1
vis t2,1
vis hBrightness,1
covx tTmp.txt,sys0,0,0
hBrightness.val=sys0
tmDrawCooldown.en=1
tmDrawCooldown.tim=500
if(tmCooldown.en==0)
{
hBrightness.val=sys0
}
}
// get ColorTemp value
spstr strCommand.txt,tTmp.txt,"~",6
if(tTmp.txt=="disable")
{
vis hTempSlider,0
//vis t3,0
//vis t4,0
vis t3,0
vis t4,0
mode_temp.val=0
// mode == 1 is temp controls currently shown
if(mode.val==1)
@@ -485,8 +514,8 @@ Timer tmSerial
{
mode_temp.val=1
vis hTempSlider,1
//vis t3,1
//vis t4,1
vis t3,1
vis t4,1
if(tmCooldown.en==0)
{
covx tTmp.txt,sys0,0,0
@@ -505,12 +534,12 @@ Timer tmSerial
// disable -> isn't supported
if(tTmp.txt=="disable")
{
//vis t0,0
vis t0,0
vis bColor,0
vis pColorWheel,0
}else
{
//vis t0,1
vis t0,1
//only enable bColor button if color temp is also supported
if(mode_temp.val==1)
{
@@ -522,11 +551,11 @@ Timer tmSerial
}
}
// set t0 Color (Localization)
//spstr strCommand.txt,t0.txt,"~",8
spstr strCommand.txt,t0.txt,"~",8
// set t4 Temperature (Localization)
//spstr strCommand.txt,t4.txt,"~",9
spstr strCommand.txt,t4.txt,"~",9
// set t1 Brightness (Localization)
//spstr strCommand.txt,t1.txt,"~",10
spstr strCommand.txt,t1.txt,"~",10
// activate effect button
spstr strCommand.txt,tTmp.txt,"~",11
if(tTmp.txt=="enable")

View File

@@ -0,0 +1,689 @@
Page popupLightNew
Attributes
Scope : local
Dragging : 0
Send Component ID : disabled
Locked : no
Swide up page ID : disabled
Swide down page ID : disabled
Swide left page ID : disabled
Swide right page ID: disabled
Events
Preinitialize Event
dim=dimValueNormal
//get entitiy name
tEntity.txt=pageIcons.tTmp1.txt
//get entity id
entn.txt=pageIcons.tTmp2.txt
vis tSend,0
vis tTmp,0
vis tInstruction,0
vis tId,0
vis bEffect,0
vis hBrightness,0
//page open event
// event,pageOpenDetail,typeOfPage,tEntityName
// craft command
tSend.txt="event,pageOpenDetail,popupLight,"+entn.txt
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
//disable brightness by default
//vis t1,0
//vis t2,0
vis hBrightness,1
//disable color temp by default
//vis t4,0
//vis t3,0
vis hTempSlider,0
//disable color wheel components by default
vis bColor,0
//vis t0,0
vis pColorWheel,0
//vis t0,0
popupLightNew.bco=defaultBcoColor
for(sys0=0;sys0<27;sys0++)
{
if(b[sys0].type==98||b[sys0].type==116)
{
b[sys0].bco=defaultBcoColor
b[sys0].pco=defaultFontColor
}
if(b[sys0].type==53&&defaultBcoColor==0)
{
b[sys0].pic=10
b[sys0].pic2=11
}
}
if(defaultBcoColor==0)
{
hTempSlider.pic=16
hTempSlider.pic1=16
}
Postinitialize Event
fill hBrightness.x,hBrightness.y,100,250,defaultBcoColor
Variable (int32) col
Attributes
Scope: local
Value: 65504
Variable (string) entn
Attributes
Scope : local
Text :
Max. Text Size: 80
Variable (int32) mode
Attributes
Scope: local
Value: 1
Variable (int32) mode_temp
Attributes
Scope: local
Value: 0
Variable (string) strCommand
Attributes
Scope : local
Text :
Max. Text Size: 500
Variable (string) tId
Attributes
Scope : local
Text :
Max. Text Size: 20
Variable (string) tInstruction
Attributes
Scope : local
Text :
Max. Text Size: 20
Variable (string) tSend
Attributes
Scope : local
Text :
Max. Text Size: 200
Variable (string) tTmp
Attributes
Scope : local
Text :
Max. Text Size: 80
Text tEntity
Attributes
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : tEntity1
Max. Text Size : 25
Picture pColorWheel
Attributes
Scope : local
Dragging : 0
Send Component ID: disabled
Events
Touch Press Event
//craft command
tSend.txt="event,buttonPress2,"+entn.txt+",colorWheel,"
sys0=tch0
sys0=sys0-pColorWheel.x
covx sys0,tTmp.txt,0,0
tSend.txt+=tTmp.txt
tSend.txt+="|"
sys0=tch1
sys0=sys0-pColorWheel.y
covx sys0,tTmp.txt,0,0
tSend.txt+=tTmp.txt
tSend.txt+="|"
covx pColorWheel.h,tTmp.txt,0,0
tSend.txt+=tTmp.txt
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
Slider hBrightness
Attributes
Scope : local
Dragging : 0
Send Component ID: disabled
Position : 50
Upper range limit: 100
Lower range limit: 0
Events
Touch Release Event
//draw black background
fill hBrightness.x,hBrightness.y,100,hBrightness.val*-25/10+250,8484
//draw draw colored bar at the position of the current brightness value
fill hBrightness.x,hBrightness.val*-25/10+314,100,hBrightness.val*25/10,col.val
if(hBrightness.val>7)
{
//draw cursor
fill hBrightness.x+25,hBrightness.val*-25/10+322,50,4,WHITE
//paint corner
xstr hBrightness.x,hBrightness.val*-25/10+314,100,hBrightness.h,7,8484,0,0,0,3,"a"
}
//paint corners
xstr hBrightness.x,hBrightness.y,100,hBrightness.h,7,defaultBcoColor,0,0,0,3,"a"
xstr hBrightness.x,hBrightness.y+hBrightness.h-15,100,hBrightness.h,7,defaultBcoColor,0,0,0,3,"b"
tmCooldown.en=1
tmCooldown.tim=2500
//craft command
tSend.txt="event,buttonPress2,"+entn.txt+",brightnessSlider,"
covx hBrightness.val,tTmp.txt,0,0
tSend.txt+=tTmp.txt
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
Slider hTempSlider
Attributes
Scope : local
Dragging : 0
Send Component ID: disabled
Position : 50
Upper range limit: 100
Lower range limit: 0
Events
Touch Release Event
tmCooldown.en=1
tmCooldown.tim=2500
//craft command
tSend.txt="event,buttonPress2,"+entn.txt+",colorTempSlider,"
covx hTempSlider.val,tTmp.txt,0,0
tSend.txt+=tTmp.txt
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
Button b0
Attributes
Scope : local
Dragging : 0
Send Component ID: disabled
State : unpressed
Text : 
Max. Text Size : 10
Events
Touch Press Event
tSend.txt="event,buttonPress2,popupLight,bExit"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
Button bColor
Attributes
Scope : local
Dragging : 0
Send Component ID: disabled
State : unpressed
Text : 
Max. Text Size : 10
Events
Touch Press Event
if(mode.val==1)
{
mode.val=0
//enable color wheel
vis pColorWheel,1
//disable color temp
//vis t4,0
//vis t3,0
vis hTempSlider,0
}else
{
mode.val=1
//disable color wheel
vis pColorWheel,0
if(mode_temp.val==1)
{
//enable color temp
//vis t4,1
//vis t3,1
vis hTempSlider,1
}
}
Button bEffect
Attributes
Scope : local
Dragging : 0
Send Component ID: disabled
State : unpressed
Text : 
Max. Text Size : 10
Events
Touch Press Event
pageIcons.tTmp1.txt=tEntity.txt
pageIcons.tTmp2.txt=entn.txt
page popupInSel
Dual-state Button btOnOff1
Attributes
Scope : local
Dragging : 0
Send Component ID: disabled
State : unpressed
Text :
Max. Text Size : 10
Events
Touch Press Event
//craft command
tSend.txt="event,buttonPress2,"+entn.txt+","+"OnOff,"
covx btOnOff1.val,tTmp.txt,0,0
tSend.txt+=tTmp.txt
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
Timer tmCooldown
Attributes
Scope : local
Period (ms): 300
Enabled : no
Events
Timer Event
tmCooldown.en=0
Timer tmDrawCooldown
Attributes
Scope : local
Period (ms): 500
Enabled : no
Events
Timer Event
//draw black background
fill hBrightness.x,hBrightness.y,100,hBrightness.val*-25/10+250,8484
//draw draw colored bar at the position of the current brightness value
fill hBrightness.x,hBrightness.val*-25/10+314,100,hBrightness.val*25/10,col.val
if(hBrightness.val>7)
{
//draw cursor
fill hBrightness.x+25,hBrightness.val*-25/10+322,50,4,WHITE
//paint corner
xstr hBrightness.x,hBrightness.val*-25/10+314,100,hBrightness.h,7,8484,0,0,0,3,"a"
}
//paint corners
xstr hBrightness.x,hBrightness.y,100,hBrightness.h,7,defaultBcoColor,0,0,0,3,"a"
xstr hBrightness.x,hBrightness.y+hBrightness.h-15,100,hBrightness.h,7,defaultBcoColor,0,0,0,3,"b"
tmDrawCooldown.en=0
Timer tmSerial
Attributes
Scope : local
Period (ms): 50
Enabled : yes
Events
Timer Event
// data available
if(usize>1)
{
bufferPos=0
while(bufferPos<usize)
{
// check for 0x55 0xBB - Command Init Secuence
if(u[bufferPos]==187&&u[bufferPos-1]==85)
{
//remove garbage at the start of the buffer if there's any to free buffer for command
if(u[bufferPos]!=1)
{
udelete bufferPos-1
}
//instruction is now aligned with buffer, because we deleted garbage before instrcution
//get length after init sequence (check if there are more than to bytes in buffer)
if(3<usize)
{
// check if serial buffer has reached the announced length
ucopy payloadLength,2,2,0
// we are only checking payload length so we have to skip first 3 bytes (init+payload length) (-1 because of < instead of <=)
payloadLength+=3
// payload length does also not contain crc, so we are adding another 2 bytes for crc
payloadLength+=2
if(payloadLength<usize)
{
// calculate crc
crcrest 1,0xFFFF
// u[2] contains payload legth at 3rd pos in buffer, we are calculating crc from 3rd pos with number of bytes from payload length
//crcputu 3,u[2]
// u[2] cotnains payload length, we are calculating a crc over the whole message, so we have to add 3 to the length from u[2]
crcputu 0,payloadLength-1
// get recived crc to be able to compare it
ucopy recvCrc,payloadLength-1,2,0
// compare crc with recived value
if(crcval==recvCrc)
{
// crc is okay
// here is the location where acual code should be
// write command to variable strCommand
ucopy strCommand.txt,4,payloadLength-5,0
// write instruction to tInstuction (debug output, but used as variable here, ui elements will be disabled by default)
spstr strCommand.txt,tInstruction.txt,"~",0
spstr strCommand.txt,tTmp.txt,"~",1
if(tInstruction.txt=="entityUpdateDetail"&&entn.txt==tTmp.txt)
{
// change icon
//spstr strCommand.txt,tIcon1.txt,"~",2
//vis tIcon1,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",3
covx tTmp.txt,sys0,0,0
col.val=sys0
//tEntity.pco=sys0
// get Button State
spstr strCommand.txt,tTmp.txt,"~",4
covx tTmp.txt,sys0,0,0
btOnOff1.val=sys0
// get Brightness value
spstr strCommand.txt,tTmp.txt,"~",5
if(tTmp.txt=="disable")
{
//vis t1,0
//vis t2,0
vis hBrightness,0
}else
{
//vis t1,1
//vis t2,1
vis hBrightness,1
covx tTmp.txt,sys0,0,0
hBrightness.val=sys0
tmDrawCooldown.en=1
tmDrawCooldown.tim=500
}
// get ColorTemp value
spstr strCommand.txt,tTmp.txt,"~",6
if(tTmp.txt=="disable")
{
vis hTempSlider,0
//vis t3,0
//vis t4,0
mode_temp.val=0
// mode == 1 is temp controls currently shown
if(mode.val==1)
{
// switch mode
click bColor,1
click bColor,0
}
}else if(tTmp.txt=="unknown") // temp supported, but not in color mode
{
mode_temp.val=1
// mode == 1 is temp controls currently shown
if(mode.val==1)
{
// switch mode
click bColor,1
click bColor,0
}
}else
{
mode_temp.val=1
vis hTempSlider,1
//vis t3,1
//vis t4,1
if(tmCooldown.en==0)
{
covx tTmp.txt,sys0,0,0
hTempSlider.val=sys0
}
// mode == 0 is rgb controls currently shown
if(mode.val==0)
{
// switch mode
click bColor,1
click bColor,0
}
}
// get Color value
spstr strCommand.txt,tTmp.txt,"~",7
// disable -> isn't supported
if(tTmp.txt=="disable")
{
//vis t0,0
vis bColor,0
vis pColorWheel,0
}else
{
//vis t0,1
//only enable bColor button if color temp is also supported
if(mode_temp.val==1)
{
vis bColor,1
}
if(mode.val==0)
{
vis pColorWheel,1
}
}
// set t0 Color (Localization)
//spstr strCommand.txt,t0.txt,"~",8
// set t4 Temperature (Localization)
//spstr strCommand.txt,t4.txt,"~",9
// set t1 Brightness (Localization)
//spstr strCommand.txt,t1.txt,"~",10
// activate effect button
spstr strCommand.txt,tTmp.txt,"~",11
if(tTmp.txt=="enable")
{
vis bEffect,1
}else
{
vis bEffect,0
}
}
if(tInstruction.txt=="time")
{
// get set time to global variable
spstr strCommand.txt,pageIcons.vaTime.txt,"~",1
}
if(tInstruction.txt=="date")
{
// get set date to global variable
spstr strCommand.txt,pageIcons.vaDate.txt,"~",1
}
if(tInstruction.txt=="dimmode")
{
// get value
spstr strCommand.txt,tTmp.txt,"~",1
covx tTmp.txt,dimValue,0,0
// get value normal
spstr strCommand.txt,tTmp.txt,"~",2
covx tTmp.txt,dimValueNormal,0,0
dim=dimValueNormal
// get background color
spstr strCommand.txt,tTmp.txt,"~",3
if(tTmp.txt!="")
{
covx tTmp.txt,defaultBcoColor,0,0
}
// get font color
spstr strCommand.txt,tTmp.txt,"~",4
if(tTmp.txt!="")
{
covx tTmp.txt,defaultFontColor,0,0
}
}
if(tInstruction.txt=="timeout")
{
//set timeout to global var
spstr strCommand.txt,tTmp.txt,"~",1
covx tTmp.txt,sleepTimeout,0,0
}
if(tInstruction.txt=="pageType")
{
//command format pageType,specialPageName
//write name of speical page to tId
spstr strCommand.txt,tId.txt,"~",1
//save second arg if there's one
spstr strCommand.txt,tTmp.txt,"~",2
//save third arg if there's one
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
udelete payloadLength-1
bufferPos=0
if(tId.txt=="pageStartup")
{
page pageStartup
}
if(tId.txt=="screensaver")
{
page screensaver
}
if(tId.txt=="cardEntities")
{
page cardEntities
}
if(tId.txt=="cardGrid")
{
page cardGrid
}
if(tId.txt=="cardGrid2")
{
page cardGrid2
}
if(tId.txt=="popupLight")
{
pageIcons.tTmp1.txt=tTmp.txt
page popupLight
}
if(tId.txt=="popupShutter")
{
pageIcons.tTmp1.txt=tTmp.txt
page popupShutter
}
if(tId.txt=="popupNotify")
{
page popupNotify
}
if(tId.txt=="cardThermo")
{
page cardThermo
}
if(tId.txt=="cardMedia")
{
page cardMedia
}
if(tId.txt=="cardAlarm")
{
page cardAlarm
}
if(tId.txt=="cardQR")
{
page cardQR
}
if(tId.txt=="cardPower")
{
page cardPower
}
if(tId.txt=="cardChart")
{
page cardChart
}
}
// end of user code
udelete payloadLength-1
bufferPos=0
}
}
}
}
// next character
bufferPos++
}
}
Timer tmSleep
Attributes
Scope : local
Period (ms): 1000
Enabled : yes
Events
Timer Event
if(sleepTimeout!=0)
{
sleepValue+=1
if(sleepTimeout<=sleepValue)
{
sleepValue=0
click b0,1
click b0,0
}
}
TouchCap tc0
Attributes
Scope: local
Value: 0
Events
Touch Press Event
sleepValue=0

View File

@@ -804,6 +804,10 @@ Timer tmSerial
{
page cardChart
}
if(tId.txt=="cardLChart")
{
page cardLChart
}
}
if(tInstruction.txt=="timeout")
{

Binary file not shown.

Binary file not shown.

View File

@@ -7,7 +7,7 @@ head = sharedhead + """
""" + navigation
print(head)
start = 14
for i in range(1,7):
for i in range(1,9):
idxstart = start + (i-1)*6
item = f"""
// get Type
@@ -22,6 +22,19 @@ for i in range(1,7):
{{
// change icon
spstr strCommand.txt,bEntity{i}.txt,"~",{idxstart+2}
// way to get force font adjustment
strlen bEntity{i}.txt,sys0
//check 2nd last char for ¬
substr bEntity{i}.txt,tTmp.txt,sys0-2,1
if(tTmp.txt=="¬")
{{
substr bEntity{i}.txt,tTmp.txt,sys0-1,1
covx tTmp.txt,sys1,0,0
bEntity{i}.font=sys1
substr bEntity{i}.txt,bEntity{i}.txt,0,sys0-2
}}
vis bEntity{i},1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",{idxstart+3}

View File

@@ -71,6 +71,19 @@ for i in range(1,7):
// change icon
spstr strCommand.txt,bEntity{i}.txt,"~",{idxstart+2}
vis bEntity{i},1
// way to get force font adjustment
strlen bEntity{i}.txt,sys0
//check 2nd last char for ¬
substr bEntity{i}.txt,tTmp.txt,sys0-2,1
if(tTmp.txt=="¬")
{{
substr bEntity{i}.txt,tTmp.txt,sys0-1,1
covx tTmp.txt,sys1,0,0
bEntity{i}.font=sys1
substr bEntity{i}.txt,bEntity{i}.txt,0,sys0-2
}}
// change icon color
spstr strCommand.txt,tTmp.txt,"~",{idxstart+3}
covx tTmp.txt,sys0,0,0
@@ -79,6 +92,7 @@ for i in range(1,7):
spstr strCommand.txt,tEntity{i}.txt,"~",{idxstart+4}
vis tEntity{i},1
}}
"""
print(item)
foot = """

View File

@@ -121,6 +121,8 @@ for i in range(1,6):
//f{i}Icon Color
spstr strCommand.txt,tTmp.txt,"~",{idxstart+3}
covx tTmp.txt,f{i}Icon.pco,0,0
//f{i}Icon intNameEntity
spstr strCommand.txt,entn{i}.txt,"~",{idxstart+1}
"""
head = head + item

View File

@@ -14,6 +14,8 @@ Program.s
//color vars
int defaultFontColor=65535
int defaultBcoColor=6371
//feature flags
int featNewSliders=0
// fix touch offset
lcd_dev fffb 0002 0000 0020
printh 00 00 00 ff ff ff 88 ff ff ff//Output power on information to serial port

View File

@@ -19,6 +19,18 @@ Page cardAlarm
Events
Preinitialize Event
tSend.txt="event,renderCurrentPage"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
dim=dimValueNormal
vis p0,0
vis tSend,0

View File

@@ -19,6 +19,18 @@ Page cardChart
Events
Preinitialize Event
tSend.txt="event,renderCurrentPage"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
dim=dimValueNormal
vis p0,0
vis tSend,0

View File

@@ -19,6 +19,19 @@ Page cardEntities
Events
Preinitialize Event
tSend.txt="event,renderCurrentPage"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
dim=dimValueNormal
dim=dimValueNormal
//wup=cardEntities
//remove background & activate reparse mode
@@ -1856,8 +1869,13 @@ Hotspot m0
}
if(type1.txt=="light")
{
//popupLight.tEntity.txt=tEntity1.txt
page popupLight
if(featNewSliders==1)
{
page popupLightNew
}else
{
page popupLight
}
}
if(type1.txt=="fan")
{
@@ -1899,8 +1917,13 @@ Hotspot m1
}
if(type2.txt=="light")
{
//popupLight.tEntity.txt=tEntity2.txt
page popupLight
if(featNewSliders==1)
{
page popupLightNew
}else
{
page popupLight
}
}
if(type2.txt=="fan")
{
@@ -1942,8 +1965,13 @@ Hotspot m2
}
if(type3.txt=="light")
{
//popupLight.tEntity.txt=tEntity3.txt
page popupLight
if(featNewSliders==1)
{
page popupLightNew
}else
{
page popupLight
}
}
if(type3.txt=="fan")
{
@@ -1985,8 +2013,13 @@ Hotspot m3
}
if(type4.txt=="light")
{
//popupLight.tEntity.txt=tEntity4.txt
page popupLight
if(featNewSliders==1)
{
page popupLightNew
}else
{
page popupLight
}
}
if(type4.txt=="fan")
{

View File

@@ -19,6 +19,18 @@ Page cardGrid
Events
Preinitialize Event
tSend.txt="event,renderCurrentPage"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
dim=dimValueNormal
//remove background & activate reparse mode
vis p0,0
@@ -1052,7 +1064,13 @@ Timer tmLP
Timer Event
if(tTmp.txt=="light")
{
page popupLight
if(featNewSliders==1)
{
page popupLightNew
}else
{
page popupLight
}
}
if(tTmp.txt=="fan")
{
@@ -1161,6 +1179,17 @@ Timer tmSerial
{
// change icon
spstr strCommand.txt,bEntity1.txt,"~",16
// way to get force font adjustment
strlen bEntity1.txt,sys0
//check 2nd last char for ¬
substr bEntity1.txt,tTmp.txt,sys0-2,1
if(tTmp.txt=="¬")
{
substr bEntity1.txt,tTmp.txt,sys0-1,1
covx tTmp.txt,sys1,0,0
bEntity1.font=sys1
substr bEntity1.txt,bEntity1.txt,0,sys0-2
}
vis bEntity1,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",17
@@ -1182,6 +1211,17 @@ Timer tmSerial
{
// change icon
spstr strCommand.txt,bEntity2.txt,"~",22
// way to get force font adjustment
strlen bEntity2.txt,sys0
//check 2nd last char for ¬
substr bEntity2.txt,tTmp.txt,sys0-2,1
if(tTmp.txt=="¬")
{
substr bEntity2.txt,tTmp.txt,sys0-1,1
covx tTmp.txt,sys1,0,0
bEntity2.font=sys1
substr bEntity2.txt,bEntity2.txt,0,sys0-2
}
vis bEntity2,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",23
@@ -1203,6 +1243,17 @@ Timer tmSerial
{
// change icon
spstr strCommand.txt,bEntity3.txt,"~",28
// way to get force font adjustment
strlen bEntity3.txt,sys0
//check 2nd last char for ¬
substr bEntity3.txt,tTmp.txt,sys0-2,1
if(tTmp.txt=="¬")
{
substr bEntity3.txt,tTmp.txt,sys0-1,1
covx tTmp.txt,sys1,0,0
bEntity3.font=sys1
substr bEntity3.txt,bEntity3.txt,0,sys0-2
}
vis bEntity3,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",29
@@ -1224,6 +1275,17 @@ Timer tmSerial
{
// change icon
spstr strCommand.txt,bEntity4.txt,"~",34
// way to get force font adjustment
strlen bEntity4.txt,sys0
//check 2nd last char for ¬
substr bEntity4.txt,tTmp.txt,sys0-2,1
if(tTmp.txt=="¬")
{
substr bEntity4.txt,tTmp.txt,sys0-1,1
covx tTmp.txt,sys1,0,0
bEntity4.font=sys1
substr bEntity4.txt,bEntity4.txt,0,sys0-2
}
vis bEntity4,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",35
@@ -1245,6 +1307,17 @@ Timer tmSerial
{
// change icon
spstr strCommand.txt,bEntity5.txt,"~",40
// way to get force font adjustment
strlen bEntity5.txt,sys0
//check 2nd last char for ¬
substr bEntity5.txt,tTmp.txt,sys0-2,1
if(tTmp.txt=="¬")
{
substr bEntity5.txt,tTmp.txt,sys0-1,1
covx tTmp.txt,sys1,0,0
bEntity5.font=sys1
substr bEntity5.txt,bEntity5.txt,0,sys0-2
}
vis bEntity5,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",41
@@ -1266,6 +1339,17 @@ Timer tmSerial
{
// change icon
spstr strCommand.txt,bEntity6.txt,"~",46
// way to get force font adjustment
strlen bEntity6.txt,sys0
//check 2nd last char for ¬
substr bEntity6.txt,tTmp.txt,sys0-2,1
if(tTmp.txt=="¬")
{
substr bEntity6.txt,tTmp.txt,sys0-1,1
covx tTmp.txt,sys1,0,0
bEntity6.font=sys1
substr bEntity6.txt,bEntity6.txt,0,sys0-2
}
vis bEntity6,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",47

View File

@@ -19,6 +19,18 @@ Page cardGrid2
Events
Preinitialize Event
tSend.txt="event,renderCurrentPage"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
dim=dimValueNormal
//remove background & activate reparse mode
vis p0,0
@@ -991,26 +1003,26 @@ Button bEntity7
Events
Touch Press Event
tmLP.en=1
tTmp.txt=type6.txt
pageIcons.tTmp1.txt=tEntity6.txt
pageIcons.tTmp2.txt=entn6.txt
pageIcons.tTmp3.txt=bEntity6.txt
if(type6.txt=="shutter")
tTmp.txt=type7.txt
pageIcons.tTmp1.txt=tEntity7.txt
pageIcons.tTmp2.txt=entn7.txt
pageIcons.tTmp3.txt=bEntity7.txt
if(type7.txt=="shutter")
{
page popupShutter
}
if(type6.txt=="input_sel")
if(type7.txt=="input_sel")
{
page popupInSel
}
if(type6.txt=="timer")
if(type7.txt=="timer")
{
page popupTimer
}
Touch Release Event
tmLP.en=0
tSend.txt="event,buttonPress2,"+entn6.txt+",button"
tSend.txt="event,buttonPress2,"+entn7.txt+",button"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
@@ -1057,26 +1069,26 @@ Button bEntity8
Events
Touch Press Event
tmLP.en=1
tTmp.txt=type6.txt
pageIcons.tTmp1.txt=tEntity6.txt
pageIcons.tTmp2.txt=entn6.txt
pageIcons.tTmp3.txt=bEntity6.txt
if(type6.txt=="shutter")
tTmp.txt=type8.txt
pageIcons.tTmp1.txt=tEntity8.txt
pageIcons.tTmp2.txt=entn8.txt
pageIcons.tTmp3.txt=bEntity8.txt
if(type8.txt=="shutter")
{
page popupShutter
}
if(type6.txt=="input_sel")
if(type8.txt=="input_sel")
{
page popupInSel
}
if(type6.txt=="timer")
if(type8.txt=="timer")
{
page popupTimer
}
Touch Release Event
tmLP.en=0
tSend.txt="event,buttonPress2,"+entn6.txt+",button"
tSend.txt="event,buttonPress2,"+entn8.txt+",button"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
@@ -1274,7 +1286,13 @@ Timer tmLP
Timer Event
if(tTmp.txt=="light")
{
page popupLight
if(featNewSliders==1)
{
page popupLightNew
}else
{
page popupLight
}
}
if(tTmp.txt=="fan")
{
@@ -1383,6 +1401,17 @@ Timer tmSerial
{
// change icon
spstr strCommand.txt,bEntity1.txt,"~",16
// way to get force font adjustment
strlen bEntity1.txt,sys0
//check 2nd last char for ¬
substr bEntity1.txt,tTmp.txt,sys0-2,1
if(tTmp.txt=="¬")
{
substr bEntity1.txt,tTmp.txt,sys0-1,1
covx tTmp.txt,sys1,0,0
bEntity1.font=sys1
substr bEntity1.txt,bEntity1.txt,0,sys0-2
}
vis bEntity1,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",17
@@ -1404,6 +1433,17 @@ Timer tmSerial
{
// change icon
spstr strCommand.txt,bEntity2.txt,"~",22
// way to get force font adjustment
strlen bEntity2.txt,sys0
//check 2nd last char for ¬
substr bEntity2.txt,tTmp.txt,sys0-2,1
if(tTmp.txt=="¬")
{
substr bEntity2.txt,tTmp.txt,sys0-1,1
covx tTmp.txt,sys1,0,0
bEntity2.font=sys1
substr bEntity2.txt,bEntity2.txt,0,sys0-2
}
vis bEntity2,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",23
@@ -1425,6 +1465,17 @@ Timer tmSerial
{
// change icon
spstr strCommand.txt,bEntity3.txt,"~",28
// way to get force font adjustment
strlen bEntity3.txt,sys0
//check 2nd last char for ¬
substr bEntity3.txt,tTmp.txt,sys0-2,1
if(tTmp.txt=="¬")
{
substr bEntity3.txt,tTmp.txt,sys0-1,1
covx tTmp.txt,sys1,0,0
bEntity3.font=sys1
substr bEntity3.txt,bEntity3.txt,0,sys0-2
}
vis bEntity3,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",29
@@ -1446,6 +1497,17 @@ Timer tmSerial
{
// change icon
spstr strCommand.txt,bEntity4.txt,"~",34
// way to get force font adjustment
strlen bEntity4.txt,sys0
//check 2nd last char for ¬
substr bEntity4.txt,tTmp.txt,sys0-2,1
if(tTmp.txt=="¬")
{
substr bEntity4.txt,tTmp.txt,sys0-1,1
covx tTmp.txt,sys1,0,0
bEntity4.font=sys1
substr bEntity4.txt,bEntity4.txt,0,sys0-2
}
vis bEntity4,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",35
@@ -1467,6 +1529,17 @@ Timer tmSerial
{
// change icon
spstr strCommand.txt,bEntity5.txt,"~",40
// way to get force font adjustment
strlen bEntity5.txt,sys0
//check 2nd last char for ¬
substr bEntity5.txt,tTmp.txt,sys0-2,1
if(tTmp.txt=="¬")
{
substr bEntity5.txt,tTmp.txt,sys0-1,1
covx tTmp.txt,sys1,0,0
bEntity5.font=sys1
substr bEntity5.txt,bEntity5.txt,0,sys0-2
}
vis bEntity5,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",41
@@ -1488,6 +1561,17 @@ Timer tmSerial
{
// change icon
spstr strCommand.txt,bEntity6.txt,"~",46
// way to get force font adjustment
strlen bEntity6.txt,sys0
//check 2nd last char for ¬
substr bEntity6.txt,tTmp.txt,sys0-2,1
if(tTmp.txt=="¬")
{
substr bEntity6.txt,tTmp.txt,sys0-1,1
covx tTmp.txt,sys1,0,0
bEntity6.font=sys1
substr bEntity6.txt,bEntity6.txt,0,sys0-2
}
vis bEntity6,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",47
@@ -1509,6 +1593,17 @@ Timer tmSerial
{
// change icon
spstr strCommand.txt,bEntity7.txt,"~",52
// way to get force font adjustment
strlen bEntity7.txt,sys0
//check 2nd last char for ¬
substr bEntity7.txt,tTmp.txt,sys0-2,1
if(tTmp.txt=="¬")
{
substr bEntity7.txt,tTmp.txt,sys0-1,1
covx tTmp.txt,sys1,0,0
bEntity7.font=sys1
substr bEntity7.txt,bEntity7.txt,0,sys0-2
}
vis bEntity7,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",53
@@ -1530,6 +1625,17 @@ Timer tmSerial
{
// change icon
spstr strCommand.txt,bEntity8.txt,"~",58
// way to get force font adjustment
strlen bEntity8.txt,sys0
//check 2nd last char for ¬
substr bEntity8.txt,tTmp.txt,sys0-2,1
if(tTmp.txt=="¬")
{
substr bEntity8.txt,tTmp.txt,sys0-1,1
covx tTmp.txt,sys1,0,0
bEntity8.font=sys1
substr bEntity8.txt,bEntity8.txt,0,sys0-2
}
vis bEntity8,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",59
@@ -1616,6 +1722,10 @@ Timer tmSerial
{
page cardChart
}
if(tId.txt=="cardLChart")
{
page cardLChart
}
}
if(tInstruction.txt=="time")
{

View File

@@ -19,6 +19,18 @@ Page cardLChart
Events
Preinitialize Event
tSend.txt="event,renderCurrentPage"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
dim=dimValueNormal
vis p0,0
vis tSend,0

View File

@@ -19,6 +19,18 @@ Page cardMedia
Events
Preinitialize Event
tSend.txt="event,renderCurrentPage"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
dim=dimValueNormal
vis p0,0
vis tSend,0
@@ -1485,6 +1497,17 @@ Timer tmSerial
// change icon
spstr strCommand.txt,bEntity1.txt,"~",25
vis bEntity1,1
// way to get force font adjustment
strlen bEntity1.txt,sys0
//check 2nd last char for ¬
substr bEntity1.txt,tTmp.txt,sys0-2,1
if(tTmp.txt=="¬")
{
substr bEntity1.txt,tTmp.txt,sys0-1,1
covx tTmp.txt,sys1,0,0
bEntity1.font=sys1
substr bEntity1.txt,bEntity1.txt,0,sys0-2
}
// change icon color
spstr strCommand.txt,tTmp.txt,"~",26
covx tTmp.txt,sys0,0,0
@@ -1506,6 +1529,17 @@ Timer tmSerial
// change icon
spstr strCommand.txt,bEntity2.txt,"~",31
vis bEntity2,1
// way to get force font adjustment
strlen bEntity2.txt,sys0
//check 2nd last char for ¬
substr bEntity2.txt,tTmp.txt,sys0-2,1
if(tTmp.txt=="¬")
{
substr bEntity2.txt,tTmp.txt,sys0-1,1
covx tTmp.txt,sys1,0,0
bEntity2.font=sys1
substr bEntity2.txt,bEntity2.txt,0,sys0-2
}
// change icon color
spstr strCommand.txt,tTmp.txt,"~",32
covx tTmp.txt,sys0,0,0
@@ -1527,6 +1561,17 @@ Timer tmSerial
// change icon
spstr strCommand.txt,bEntity3.txt,"~",37
vis bEntity3,1
// way to get force font adjustment
strlen bEntity3.txt,sys0
//check 2nd last char for ¬
substr bEntity3.txt,tTmp.txt,sys0-2,1
if(tTmp.txt=="¬")
{
substr bEntity3.txt,tTmp.txt,sys0-1,1
covx tTmp.txt,sys1,0,0
bEntity3.font=sys1
substr bEntity3.txt,bEntity3.txt,0,sys0-2
}
// change icon color
spstr strCommand.txt,tTmp.txt,"~",38
covx tTmp.txt,sys0,0,0
@@ -1548,6 +1593,17 @@ Timer tmSerial
// change icon
spstr strCommand.txt,bEntity4.txt,"~",43
vis bEntity4,1
// way to get force font adjustment
strlen bEntity4.txt,sys0
//check 2nd last char for ¬
substr bEntity4.txt,tTmp.txt,sys0-2,1
if(tTmp.txt=="¬")
{
substr bEntity4.txt,tTmp.txt,sys0-1,1
covx tTmp.txt,sys1,0,0
bEntity4.font=sys1
substr bEntity4.txt,bEntity4.txt,0,sys0-2
}
// change icon color
spstr strCommand.txt,tTmp.txt,"~",44
covx tTmp.txt,sys0,0,0
@@ -1569,6 +1625,17 @@ Timer tmSerial
// change icon
spstr strCommand.txt,bEntity5.txt,"~",49
vis bEntity5,1
// way to get force font adjustment
strlen bEntity5.txt,sys0
//check 2nd last char for ¬
substr bEntity5.txt,tTmp.txt,sys0-2,1
if(tTmp.txt=="¬")
{
substr bEntity5.txt,tTmp.txt,sys0-1,1
covx tTmp.txt,sys1,0,0
bEntity5.font=sys1
substr bEntity5.txt,bEntity5.txt,0,sys0-2
}
// change icon color
spstr strCommand.txt,tTmp.txt,"~",50
covx tTmp.txt,sys0,0,0
@@ -1590,6 +1657,17 @@ Timer tmSerial
// change icon
spstr strCommand.txt,bEntity6.txt,"~",55
vis bEntity6,1
// way to get force font adjustment
strlen bEntity6.txt,sys0
//check 2nd last char for ¬
substr bEntity6.txt,tTmp.txt,sys0-2,1
if(tTmp.txt=="¬")
{
substr bEntity6.txt,tTmp.txt,sys0-1,1
covx tTmp.txt,sys1,0,0
bEntity6.font=sys1
substr bEntity6.txt,bEntity6.txt,0,sys0-2
}
// change icon color
spstr strCommand.txt,tTmp.txt,"~",56
covx tTmp.txt,sys0,0,0

View File

@@ -19,6 +19,18 @@ Page cardPower
Events
Preinitialize Event
tSend.txt="event,renderCurrentPage"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
dim=dimValueNormal
vis p0,0
vis tSend,0
@@ -1652,6 +1664,10 @@ Timer tmSerial
{
page cardChart
}
if(tId.txt=="cardLChart")
{
page cardLChart
}
}
if(tInstruction.txt=="time")
{

View File

@@ -19,6 +19,18 @@ Page cardQR
Events
Preinitialize Event
tSend.txt="event,renderCurrentPage"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
dim=dimValueNormal
vis p0,0
vis tSend,0

View File

@@ -19,6 +19,18 @@ Page cardThermo
Events
Preinitialize Event
tSend.txt="event,renderCurrentPage"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
dim=dimValueNormal
vis p0,0
vis tSend,0

View File

@@ -1,83 +1,83 @@
Program.s
0 Component(s)
14 Line(s) of event code
14 Unique line(s) of event code
15 Line(s) of event code
15 Unique line(s) of event code
pageIcons
7 Component(s)
0 Line(s) of event code
0 Unique line(s) of event code
pageTest
27 Component(s)
25 Component(s)
68 Line(s) of event code
66 Unique line(s) of event code
cardLChart
33 Component(s)
402 Line(s) of event code
266 Unique line(s) of event code
popupNotify
19 Component(s)
271 Line(s) of event code
174 Unique line(s) of event code
popupFan
27 Component(s)
355 Line(s) of event code
206 Unique line(s) of event code
popupLight
23 Component(s)
410 Line(s) of event code
209 Unique line(s) of event code
pageStartup
20 Component(s)
198 Line(s) of event code
137 Unique line(s) of event code
popupShutter
25 Component(s)
402 Line(s) of event code
220 Unique line(s) of event code
cardGrid
44 Component(s)
523 Line(s) of event code
295 Unique line(s) of event code
popupNotify
19 Component(s)
267 Line(s) of event code
172 Unique line(s) of event code
cardPower
54 Component(s)
527 Line(s) of event code
347 Unique line(s) of event code
pageStartup
20 Component(s)
193 Line(s) of event code
135 Unique line(s) of event code
cardQR
34 Component(s)
410 Line(s) of event code
238 Unique line(s) of event code
cardChart
33 Component(s)
437 Line(s) of event code
296 Unique line(s) of event code
popupLightNew
23 Component(s)
412 Line(s) of event code
209 Unique line(s) of event code
popupLight
28 Component(s)
417 Line(s) of event code
228 Unique line(s) of event code
cardGrid2
52 Component(s)
703 Line(s) of event code
385 Unique line(s) of event code
cardAlarm
43 Component(s)
500 Line(s) of event code
273 Unique line(s) of event code
screensaver
47 Component(s)
444 Line(s) of event code
316 Unique line(s) of event code
510 Line(s) of event code
274 Unique line(s) of event code
cardChart
33 Component(s)
447 Line(s) of event code
297 Unique line(s) of event code
cardGrid
44 Component(s)
593 Line(s) of event code
333 Unique line(s) of event code
cardQR
34 Component(s)
420 Line(s) of event code
239 Unique line(s) of event code
cardLChart
33 Component(s)
412 Line(s) of event code
267 Unique line(s) of event code
cardPower
54 Component(s)
541 Line(s) of event code
350 Unique line(s) of event code
cardThermo
57 Component(s)
540 Line(s) of event code
319 Unique line(s) of event code
screensaver2
59 Component(s)
358 Line(s) of event code
253 Unique line(s) of event code
cardMedia
59 Component(s)
649 Line(s) of event code
322 Unique line(s) of event code
550 Line(s) of event code
320 Unique line(s) of event code
popupInSel
34 Component(s)
621 Line(s) of event code
297 Unique line(s) of event code
cardGrid2
52 Component(s)
611 Line(s) of event code
319 Unique line(s) of event code
screensaver
47 Component(s)
458 Line(s) of event code
318 Unique line(s) of event code
cardMedia
59 Component(s)
713 Line(s) of event code
357 Unique line(s) of event code
popupTimer
42 Component(s)
516 Line(s) of event code
@@ -86,13 +86,17 @@ popupThermo
44 Component(s)
523 Line(s) of event code
276 Unique line(s) of event code
screensaver2
64 Component(s)
448 Line(s) of event code
272 Unique line(s) of event code
cardEntities
67 Component(s)
1170 Line(s) of event code
532 Unique line(s) of event code
1205 Line(s) of event code
536 Unique line(s) of event code
Total
22 Page(s)
850 Component(s)
9940 Line(s) of event code
2369 Unique line(s) of event code
23 Page(s)
881 Component(s)
10798 Line(s) of event code
2472 Unique line(s) of event code

View File

@@ -396,7 +396,7 @@ Text tVersion
Horizontal Alignment: center
Vertical Alignment : center
Input Type : character
Text : 51
Text : 53
Max. Text Size : 10
Word wrap : disabled
Horizontal Spacing : 0
@@ -575,6 +575,12 @@ Timer tmSerial
{
covx tTmp.txt,defaultFontColor,0,0
}
// get feature flag popup
spstr strCommand.txt,tTmp.txt,"~",5
if(tTmp.txt!="")
{
covx tTmp.txt,featNewSliders,0,0
}
}
if(tInstruction.txt=="timeout")
{

View File

@@ -32,7 +32,7 @@ Variable (string) strCommand
Variable (string) strTmp
Attributes
ID : 25
ID : 24
Scope : local
Text :
Max. Text Size: 2
@@ -58,9 +58,9 @@ Text tBench
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 288
y coordinate : 90
Width : 152
x coordinate : 207
y coordinate : 287
Width : 88
Height : 30
Effect : load
Effect Priority : 0
@@ -82,14 +82,14 @@ Text tBench
Text tTmp
Attributes
ID : 24
ID : 23
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 49
y coordinate : 48
Width : 257
x coordinate : 212
y coordinate : 253
Width : 71
Height : 30
Effect : load
Effect Priority : 0
@@ -103,7 +103,7 @@ Text tTmp
Horizontal Alignment: center
Vertical Alignment : center
Input Type : character
Text : test123test123
Text : x
Max. Text Size : 30
Word wrap : disabled
Horizontal Spacing : 0
@@ -135,7 +135,7 @@ Button b0
x coordinate : 0
y coordinate : 0
Width : 100
Height : 50
Height : 40
Effect : load
Effect Priority : 0
Effect Time : 300
@@ -203,9 +203,9 @@ Button b10
Send Component ID : disabled
Opacity : 127
x coordinate : 100
y coordinate : 98
y coordinate : 81
Width : 100
Height : 50
Height : 40
Effect : load
Effect Priority : 0
Effect Time : 300
@@ -238,9 +238,9 @@ Button b11
Send Component ID : disabled
Opacity : 127
x coordinate : 100
y coordinate : 145
y coordinate : 121
Width : 100
Height : 50
Height : 40
Effect : load
Effect Priority : 0
Effect Time : 300
@@ -273,9 +273,9 @@ Button b12
Send Component ID : disabled
Opacity : 127
x coordinate : 0
y coordinate : 242
y coordinate : 202
Width : 100
Height : 50
Height : 40
Effect : load
Effect Priority : 0
Effect Time : 300
@@ -335,46 +335,15 @@ Button b13
Touch Press Event
showqq
Button b14
Button b15
Attributes
ID : 21
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 0
y coordinate : 0
Width : 100
Height : 50
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : 3D auto
Font ID : 0
Back. Color : 50712
Back. Picture ID (Pressed): 65535
Back. Color (Pressed) : 1024
Font Color (Unpressed) : 0
Font Color (Pressed) : 65535
Horizontal Alignment : center
Vertical Alignment : center
State : unpressed
Text : newtxt
Max. Text Size : 10
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Button b15
Attributes
ID : 22
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 236
y coordinate : 263
x coordinate : 99
y coordinate : 270
Width : 100
Height : 50
Effect : load
@@ -403,13 +372,13 @@ Button b15
Button b16
Attributes
ID : 23
ID : 22
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 135
y coordinate : 263
x coordinate : 0
y coordinate : 270
Width : 100
Height : 50
Effect : load
@@ -444,9 +413,9 @@ Button b2
Send Component ID : disabled
Opacity : 127
x coordinate : 0
y coordinate : 195
y coordinate : 162
Width : 100
Height : 50
Height : 40
Effect : load
Effect Priority : 0
Effect Time : 300
@@ -514,9 +483,9 @@ Button b4
Send Component ID : disabled
Opacity : 127
x coordinate : 0
y coordinate : 96
y coordinate : 82
Width : 100
Height : 50
Height : 40
Effect : load
Effect Priority : 0
Effect Time : 300
@@ -551,7 +520,7 @@ Button b5
x coordinate : 100
y coordinate : 0
Width : 100
Height : 50
Height : 40
Effect : load
Effect Priority : 0
Effect Time : 300
@@ -584,9 +553,9 @@ Button b6
Send Component ID : disabled
Opacity : 127
x coordinate : 0
y coordinate : 49
y coordinate : 41
Width : 100
Height : 50
Height : 40
Effect : load
Effect Priority : 0
Effect Time : 300
@@ -619,9 +588,9 @@ Button b7
Send Component ID : disabled
Opacity : 127
x coordinate : 100
y coordinate : 49
y coordinate : 41
Width : 100
Height : 50
Height : 40
Effect : load
Effect Priority : 0
Effect Time : 300
@@ -653,10 +622,10 @@ Button b8
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 341
y coordinate : 9
x coordinate : 94
y coordinate : 161
Width : 106
Height : 50
Height : 40
Effect : load
Effect Priority : 0
Effect Time : 300
@@ -690,9 +659,9 @@ Button b9
Send Component ID : disabled
Opacity : 127
x coordinate : 0
y coordinate : 146
y coordinate : 122
Width : 100
Height : 50
Height : 40
Effect : load
Effect Priority : 0
Effect Time : 300
@@ -717,21 +686,6 @@ Button b9
Touch Press Event
page popupNotify
Hotspot m0
Attributes
ID : 26
Scope : local
Dragging : 0
Send Component ID: disabled
Opacity : 127
x coordinate : 213
y coordinate : 115
Width : 210
Height : 191
Effect : load
Effect Priority : 0
Effect Time : 300
Timer tmSerial
Attributes
ID : 14

View File

@@ -24,12 +24,13 @@ Page popupLight
tEntity.txt=pageIcons.tTmp1.txt
//get entity id
entn.txt=pageIcons.tTmp2.txt
tIcon1.txt=pageIcons.tTmp3.txt
vis p0,0
vis tSend,0
vis tTmp,0
vis tInstruction,0
vis tId,0
vis bEffect,0
vis hBrightness,0
//page open event
// event,pageOpenDetail,typeOfPage,tEntityName
// craft command
@@ -46,16 +47,16 @@ Page popupLight
prints tSend.txt,0
prints crcval,2
//disable brightness by default
//vis t1,0
//vis t2,0
vis hBrightness,1
vis t1,0
vis t2,0
vis hBrightness,0
//disable color temp by default
//vis t4,0
//vis t3,0
vis t4,0
vis t3,0
vis hTempSlider,0
//disable color wheel components by default
vis bColor,0
//vis t0,0
vis t0,0
vis pColorWheel,0
//vis t0,0
popupLight.bco=defaultBcoColor
@@ -74,76 +75,195 @@ Page popupLight
}
if(defaultBcoColor==0)
{
hBrightness.pic=24
hBrightness.pic1=25
hBrightness.pic2=15
hTempSlider.pic=16
hTempSlider.pic1=16
hTempSlider.pic1=17
hTempSlider.pic2=15
}
Postinitialize Event
fill hBrightness.x,hBrightness.y,100,250,defaultBcoColor
Variable (int32) col
Attributes
ID : 18
Scope: local
Value: 65504
Variable (string) entn
Attributes
ID : 11
ID : 20
Scope : local
Text :
Max. Text Size: 80
Variable (int32) mode
Attributes
ID : 13
ID : 22
Scope: local
Value: 1
Variable (int32) mode_temp
Attributes
ID : 14
ID : 23
Scope: local
Value: 0
Variable (string) strCommand
Attributes
ID : 9
ID : 16
Scope : local
Text :
Max. Text Size: 500
Variable (string) tId
Attributes
ID : 20
Scope : local
Text :
Max. Text Size: 20
Variable (string) tInstruction
Attributes
ID : 19
Scope : local
Text :
Max. Text Size: 20
Variable (string) tSend
Attributes
ID : 16
ID : 26
Scope : local
Text :
Max. Text Size: 200
Variable (string) tTmp
Text t0
Attributes
ID : 21
Scope : local
Text :
Max. Text Size: 80
ID : 24
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 9
y coordinate : 80
Width : 64
Height : 30
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 0
Back. Color : 6371
Font Color : 65535
Horizontal Alignment: left
Vertical Alignment : center
Input Type : character
Text : Color
Max. Text Size : 50
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Text t1
Attributes
ID : 6
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 10
y coordinate : 226
Width : 211
Height : 30
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 0
Back. Color : 6371
Font Color : 65535
Horizontal Alignment: left
Vertical Alignment : center
Input Type : character
Text : Brightness
Max. Text Size : 50
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Text t2
Attributes
ID : 9
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 10
y coordinate : 267
Width : 45
Height : 30
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 1
Back. Color : 6371
Font Color : 40147
Horizontal Alignment: center
Vertical Alignment : center
Input Type : character
Text : 
Max. Text Size : 10
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Text t3
Attributes
ID : 10
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 10
y coordinate : 181
Width : 45
Height : 30
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 1
Back. Color : 6371
Font Color : 40147
Horizontal Alignment: center
Vertical Alignment : center
Input Type : character
Text : 
Max. Text Size : 10
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Text t4
Attributes
ID : 11
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 9
y coordinate : 143
Width : 242
Height : 30
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 0
Back. Color : 6371
Font Color : 65535
Horizontal Alignment: left
Vertical Alignment : center
Input Type : character
Text : Temperature
Max. Text Size : 50
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Text tEntity
Attributes
ID : 2
ID : 3
Scope : local
Dragging : 0
Send Component ID : disabled
@@ -158,10 +278,10 @@ Text tEntity
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 2
Font ID : 0
Back. Color : 6371
Font Color : 65535
Horizontal Alignment: center
Horizontal Alignment: left
Vertical Alignment : center
Input Type : character
Text : tEntity1
@@ -170,15 +290,147 @@ Text tEntity
Horizontal Spacing : 0
Vertical Spacing : 0
Picture pColorWheel
Text tIcon1
Attributes
ID : 4
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 11
y coordinate : 21
Width : 45
Height : 30
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 1
Back. Color : 6371
Font Color : 17299
Horizontal Alignment: center
Vertical Alignment : center
Input Type : character
Text : 
Max. Text Size : 10
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Text tId
Attributes
ID : 18
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 100
y coordinate : 290
Width : 100
Height : 30
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 0
Back. Color : 65535
Font Color : 0
Horizontal Alignment: center
Vertical Alignment : center
Input Type : character
Text :
Max. Text Size : 20
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Text tInstruction
Attributes
ID : 17
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 0
y coordinate : 290
Width : 100
Height : 30
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 0
Back. Color : 65535
Font Color : 0
Horizontal Alignment: center
Vertical Alignment : center
Input Type : character
Text :
Max. Text Size : 20
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Text tTmp
Attributes
ID : 12
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 406
y coordinate : 277
Width : 34
Height : 30
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 0
Back. Color : 65535
Font Color : 0
Horizontal Alignment: center
Vertical Alignment : center
Input Type : character
Text :
Max. Text Size : 80
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Picture p0
Attributes
ID : 1
Scope : local
Dragging : 0
Send Component ID: disabled
Opacity : 127
x coordinate : 233
y coordinate : 105
x coordinate : 0
y coordinate : 0
Width : 480
Height : 320
Effect : load
Effect Priority : 0
Effect Time : 300
Picture ID : 0
Picture pColorWheel
Attributes
ID : 2
Scope : local
Dragging : 0
Send Component ID: disabled
Opacity : 127
x coordinate : 167
y coordinate : 69
Width : 160
Height : 160
Effect : load
@@ -216,44 +468,30 @@ Picture pColorWheel
Slider hBrightness
Attributes
ID : 4
ID : 7
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 89
y coordinate : 64
Width : 100
Height : 250
x coordinate : 61
y coordinate : 261
Width : 335
Height : 43
Effect : load
Effect Priority : 0
Effect Time : 300
Direction : vertical
Direction : horizontal
Fill : image
Cursor width : auto
Cursor height : 1
Back. Picture ID : 65535
Slided Back. Picture ID: 65535
Cursor height : 255
Back. Picture ID : 5
Slided Back. Picture ID: 4
Position : 50
Upper range limit : 100
Lower range limit : 0
Events
Touch Release Event
//draw black background
fill hBrightness.x,hBrightness.y,100,hBrightness.val*-25/10+250,8484
//draw draw colored bar at the position of the current brightness value
fill hBrightness.x,hBrightness.val*-25/10+314,100,hBrightness.val*25/10,col.val
if(hBrightness.val>7)
{
//draw cursor
fill hBrightness.x+25,hBrightness.val*-25/10+322,50,4,WHITE
//paint corner
xstr hBrightness.x,hBrightness.val*-25/10+314,100,hBrightness.h,7,8484,0,0,0,3,"a"
}
//paint corners
xstr hBrightness.x,hBrightness.y,100,hBrightness.h,7,defaultBcoColor,0,0,0,3,"a"
xstr hBrightness.x,hBrightness.y+hBrightness.h-15,100,hBrightness.h,7,defaultBcoColor,0,0,0,3,"b"
tmCooldown.en=1
tmCooldown.tim=2500
//craft command
@@ -274,24 +512,24 @@ Slider hBrightness
Slider hTempSlider
Attributes
ID : 10
ID : 19
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 263
y coordinate : 64
Width : 100
Height : 250
x coordinate : 61
y coordinate : 178
Width : 335
Height : 44
Effect : load
Effect Priority : 0
Effect Time : 300
Direction : vertical
Direction : horizontal
Fill : image
Cursor width : auto
Cursor height : 255
Back. Picture ID : 7
Slided Back. Picture ID: 7
Back. Picture ID : 22
Slided Back. Picture ID: 23
Position : 50
Upper range limit : 100
Lower range limit : 0
@@ -318,7 +556,7 @@ Slider hTempSlider
Button b0
Attributes
ID : 3
ID : 5
Scope : local
Dragging : 0
Send Component ID : disabled
@@ -364,13 +602,13 @@ Button b0
Button bColor
Attributes
ID : 12
ID : 21
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 14
y coordinate : 146
x coordinate : 93
y coordinate : 68
Width : 50
Height : 50
Effect : load
@@ -401,8 +639,8 @@ Button bColor
//enable color wheel
vis pColorWheel,1
//disable color temp
//vis t4,0
//vis t3,0
vis t4,0
vis t3,0
vis hTempSlider,0
}else
{
@@ -412,21 +650,21 @@ Button bColor
if(mode_temp.val==1)
{
//enable color temp
//vis t4,1
//vis t3,1
vis t4,1
vis t3,1
vis hTempSlider,1
}
}
Button bEffect
Attributes
ID : 17
ID : 27
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 14
y coordinate : 213
x coordinate : 396
y coordinate : 95
Width : 50
Height : 50
Effect : load
@@ -453,17 +691,18 @@ Button bEffect
Touch Press Event
pageIcons.tTmp1.txt=tEntity.txt
pageIcons.tTmp2.txt=entn.txt
pageIcons.tTmp3.txt=tIcon1.txt
page popupInSel
Dual-state Button btOnOff1
Attributes
ID : 5
ID : 8
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 14
y coordinate : 77
x coordinate : 341
y coordinate : 95
Width : 50
Height : 50
Effect : load
@@ -502,43 +741,18 @@ Dual-state Button btOnOff1
Timer tmCooldown
Attributes
ID : 15
ID : 25
Scope : local
Period (ms): 100
Period (ms): 300
Enabled : no
Events
Timer Event
tmCooldown.en=0
Timer tmDrawCooldown
Attributes
ID : 22
Scope : local
Period (ms): 500
Enabled : no
Events
Timer Event
//draw black background
fill hBrightness.x,hBrightness.y,100,hBrightness.val*-25/10+250,8484
//draw draw colored bar at the position of the current brightness value
fill hBrightness.x,hBrightness.val*-25/10+314,100,hBrightness.val*25/10,col.val
if(hBrightness.val>7)
{
//draw cursor
fill hBrightness.x+25,hBrightness.val*-25/10+322,50,4,WHITE
//paint corner
xstr hBrightness.x,hBrightness.val*-25/10+314,100,hBrightness.h,7,8484,0,0,0,3,"a"
}
//paint corners
xstr hBrightness.x,hBrightness.y,100,hBrightness.h,7,defaultBcoColor,0,0,0,3,"a"
xstr hBrightness.x,hBrightness.y+hBrightness.h-15,100,hBrightness.h,7,defaultBcoColor,0,0,0,3,"b"
tmDrawCooldown.en=0
Timer tmSerial
Attributes
ID : 8
ID : 15
Scope : local
Period (ms): 50
Enabled : yes
@@ -592,13 +806,17 @@ Timer tmSerial
if(tInstruction.txt=="entityUpdateDetail"&&entn.txt==tTmp.txt)
{
// change icon
spstr strCommand.txt,tTmp.txt,"~",2
if(tTmp.txt!="")
{
tIcon1.txt=tTmp.txt
}
//spstr strCommand.txt,tIcon1.txt,"~",2
//vis tIcon1,1
vis tIcon1,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",3
covx tTmp.txt,sys0,0,0
col.val=sys0
//tEntity.pco=sys0
tIcon1.pco=sys0
// get Button State
spstr strCommand.txt,tTmp.txt,"~",4
covx tTmp.txt,sys0,0,0
@@ -607,26 +825,27 @@ Timer tmSerial
spstr strCommand.txt,tTmp.txt,"~",5
if(tTmp.txt=="disable")
{
//vis t1,0
//vis t2,0
vis t1,0
vis t2,0
vis hBrightness,0
}else
{
//vis t1,1
//vis t2,1
vis t1,1
vis t2,1
vis hBrightness,1
covx tTmp.txt,sys0,0,0
hBrightness.val=sys0
tmDrawCooldown.en=1
tmDrawCooldown.tim=500
if(tmCooldown.en==0)
{
hBrightness.val=sys0
}
}
// get ColorTemp value
spstr strCommand.txt,tTmp.txt,"~",6
if(tTmp.txt=="disable")
{
vis hTempSlider,0
//vis t3,0
//vis t4,0
vis t3,0
vis t4,0
mode_temp.val=0
// mode == 1 is temp controls currently shown
if(mode.val==1)
@@ -649,8 +868,8 @@ Timer tmSerial
{
mode_temp.val=1
vis hTempSlider,1
//vis t3,1
//vis t4,1
vis t3,1
vis t4,1
if(tmCooldown.en==0)
{
covx tTmp.txt,sys0,0,0
@@ -669,12 +888,12 @@ Timer tmSerial
// disable -> isn't supported
if(tTmp.txt=="disable")
{
//vis t0,0
vis t0,0
vis bColor,0
vis pColorWheel,0
}else
{
//vis t0,1
vis t0,1
//only enable bColor button if color temp is also supported
if(mode_temp.val==1)
{
@@ -686,11 +905,11 @@ Timer tmSerial
}
}
// set t0 Color (Localization)
//spstr strCommand.txt,t0.txt,"~",8
spstr strCommand.txt,t0.txt,"~",8
// set t4 Temperature (Localization)
//spstr strCommand.txt,t4.txt,"~",9
spstr strCommand.txt,t4.txt,"~",9
// set t1 Brightness (Localization)
//spstr strCommand.txt,t1.txt,"~",10
spstr strCommand.txt,t1.txt,"~",10
// activate effect button
spstr strCommand.txt,tTmp.txt,"~",11
if(tTmp.txt=="enable")
@@ -825,7 +1044,7 @@ Timer tmSerial
Timer tmSleep
Attributes
ID : 7
ID : 14
Scope : local
Period (ms): 1000
Enabled : yes
@@ -845,7 +1064,7 @@ Timer tmSleep
TouchCap tc0
Attributes
ID : 6
ID : 13
Scope: local
Value: 0

View File

@@ -0,0 +1,855 @@
Page popupLightNew
Attributes
ID : 0
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
Width : 480
Effect : load
Effect Priority : 0
Effect Time : 300
Locked : no
Swide up page ID : disabled
Swide down page ID : disabled
Swide left page ID : disabled
Swide right page ID: disabled
Fill : solid color
Back. Color : 6371
Events
Preinitialize Event
dim=dimValueNormal
//get entitiy name
tEntity.txt=pageIcons.tTmp1.txt
//get entity id
entn.txt=pageIcons.tTmp2.txt
vis tSend,0
vis tTmp,0
vis tInstruction,0
vis tId,0
vis bEffect,0
vis hBrightness,0
//page open event
// event,pageOpenDetail,typeOfPage,tEntityName
// craft command
tSend.txt="event,pageOpenDetail,popupLight,"+entn.txt
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
//disable brightness by default
//vis t1,0
//vis t2,0
vis hBrightness,1
//disable color temp by default
//vis t4,0
//vis t3,0
vis hTempSlider,0
//disable color wheel components by default
vis bColor,0
//vis t0,0
vis pColorWheel,0
//vis t0,0
popupLightNew.bco=defaultBcoColor
for(sys0=0;sys0<27;sys0++)
{
if(b[sys0].type==98||b[sys0].type==116)
{
b[sys0].bco=defaultBcoColor
b[sys0].pco=defaultFontColor
}
if(b[sys0].type==53&&defaultBcoColor==0)
{
b[sys0].pic=10
b[sys0].pic2=11
}
}
if(defaultBcoColor==0)
{
hTempSlider.pic=16
hTempSlider.pic1=16
}
Postinitialize Event
fill hBrightness.x,hBrightness.y,100,250,defaultBcoColor
Variable (int32) col
Attributes
ID : 18
Scope: local
Value: 65504
Variable (string) entn
Attributes
ID : 11
Scope : local
Text :
Max. Text Size: 80
Variable (int32) mode
Attributes
ID : 13
Scope: local
Value: 1
Variable (int32) mode_temp
Attributes
ID : 14
Scope: local
Value: 0
Variable (string) strCommand
Attributes
ID : 9
Scope : local
Text :
Max. Text Size: 500
Variable (string) tId
Attributes
ID : 20
Scope : local
Text :
Max. Text Size: 20
Variable (string) tInstruction
Attributes
ID : 19
Scope : local
Text :
Max. Text Size: 20
Variable (string) tSend
Attributes
ID : 16
Scope : local
Text :
Max. Text Size: 200
Variable (string) tTmp
Attributes
ID : 21
Scope : local
Text :
Max. Text Size: 80
Text tEntity
Attributes
ID : 2
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 92
y coordinate : 21
Width : 263
Height : 30
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 2
Back. Color : 6371
Font Color : 65535
Horizontal Alignment: center
Vertical Alignment : center
Input Type : character
Text : tEntity1
Max. Text Size : 25
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Picture pColorWheel
Attributes
ID : 1
Scope : local
Dragging : 0
Send Component ID: disabled
Opacity : 127
x coordinate : 233
y coordinate : 105
Width : 160
Height : 160
Effect : load
Effect Priority : 0
Effect Time : 300
Picture ID : 3
Events
Touch Press Event
//craft command
tSend.txt="event,buttonPress2,"+entn.txt+",colorWheel,"
sys0=tch0
sys0=sys0-pColorWheel.x
covx sys0,tTmp.txt,0,0
tSend.txt+=tTmp.txt
tSend.txt+="|"
sys0=tch1
sys0=sys0-pColorWheel.y
covx sys0,tTmp.txt,0,0
tSend.txt+=tTmp.txt
tSend.txt+="|"
covx pColorWheel.h,tTmp.txt,0,0
tSend.txt+=tTmp.txt
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
Slider hBrightness
Attributes
ID : 4
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 89
y coordinate : 64
Width : 100
Height : 250
Effect : load
Effect Priority : 0
Effect Time : 300
Direction : vertical
Fill : image
Cursor width : auto
Cursor height : 1
Back. Picture ID : 65535
Slided Back. Picture ID: 65535
Position : 50
Upper range limit : 100
Lower range limit : 0
Events
Touch Release Event
//draw black background
fill hBrightness.x,hBrightness.y,100,hBrightness.val*-25/10+250,8484
//draw draw colored bar at the position of the current brightness value
fill hBrightness.x,hBrightness.val*-25/10+314,100,hBrightness.val*25/10,col.val
if(hBrightness.val>7)
{
//draw cursor
fill hBrightness.x+25,hBrightness.val*-25/10+322,50,4,WHITE
//paint corner
xstr hBrightness.x,hBrightness.val*-25/10+314,100,hBrightness.h,7,8484,0,0,0,3,"a"
}
//paint corners
xstr hBrightness.x,hBrightness.y,100,hBrightness.h,7,defaultBcoColor,0,0,0,3,"a"
xstr hBrightness.x,hBrightness.y+hBrightness.h-15,100,hBrightness.h,7,defaultBcoColor,0,0,0,3,"b"
tmCooldown.en=1
tmCooldown.tim=2500
//craft command
tSend.txt="event,buttonPress2,"+entn.txt+",brightnessSlider,"
covx hBrightness.val,tTmp.txt,0,0
tSend.txt+=tTmp.txt
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
Slider hTempSlider
Attributes
ID : 10
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 263
y coordinate : 64
Width : 100
Height : 250
Effect : load
Effect Priority : 0
Effect Time : 300
Direction : vertical
Fill : image
Cursor width : auto
Cursor height : 255
Back. Picture ID : 7
Slided Back. Picture ID: 7
Position : 50
Upper range limit : 100
Lower range limit : 0
Events
Touch Release Event
tmCooldown.en=1
tmCooldown.tim=2500
//craft command
tSend.txt="event,buttonPress2,"+entn.txt+",colorTempSlider,"
covx hTempSlider.val,tTmp.txt,0,0
tSend.txt+=tTmp.txt
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
Button b0
Attributes
ID : 3
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 397
y coordinate : 8
Width : 50
Height : 50
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Font ID : 1
Back. Color : 6371
Back. Picture ID (Pressed): 65535
Back. Color (Pressed) : 14823
Font Color (Unpressed) : 65535
Font Color (Pressed) : 65535
Horizontal Alignment : center
Vertical Alignment : center
State : unpressed
Text : 
Max. Text Size : 10
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Events
Touch Press Event
tSend.txt="event,buttonPress2,popupLight,bExit"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
Button bColor
Attributes
ID : 12
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 14
y coordinate : 146
Width : 50
Height : 50
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Font ID : 1
Back. Color : 6371
Back. Picture ID (Pressed): 65535
Back. Color (Pressed) : 14823
Font Color (Unpressed) : 65535
Font Color (Pressed) : 65535
Horizontal Alignment : center
Vertical Alignment : center
State : unpressed
Text : 
Max. Text Size : 10
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Events
Touch Press Event
if(mode.val==1)
{
mode.val=0
//enable color wheel
vis pColorWheel,1
//disable color temp
//vis t4,0
//vis t3,0
vis hTempSlider,0
}else
{
mode.val=1
//disable color wheel
vis pColorWheel,0
if(mode_temp.val==1)
{
//enable color temp
//vis t4,1
//vis t3,1
vis hTempSlider,1
}
}
Button bEffect
Attributes
ID : 17
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 14
y coordinate : 213
Width : 50
Height : 50
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Font ID : 1
Back. Color : 6371
Back. Picture ID (Pressed): 65535
Back. Color (Pressed) : 14823
Font Color (Unpressed) : 65535
Font Color (Pressed) : 65535
Horizontal Alignment : center
Vertical Alignment : center
State : unpressed
Text : 
Max. Text Size : 10
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Events
Touch Press Event
pageIcons.tTmp1.txt=tEntity.txt
pageIcons.tTmp2.txt=entn.txt
page popupInSel
Dual-state Button btOnOff1
Attributes
ID : 5
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 14
y coordinate : 77
Width : 50
Height : 50
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : image
Font ID : 0
Background Picture ID (Unpressed): 1
Back. Picture ID (Pressed) : 2
Horizontal Alignment : center
Vertical Alignment : center
State : unpressed
Text :
Max. Text Size : 10
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Events
Touch Press Event
//craft command
tSend.txt="event,buttonPress2,"+entn.txt+","+"OnOff,"
covx btOnOff1.val,tTmp.txt,0,0
tSend.txt+=tTmp.txt
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
Timer tmCooldown
Attributes
ID : 15
Scope : local
Period (ms): 300
Enabled : no
Events
Timer Event
tmCooldown.en=0
Timer tmDrawCooldown
Attributes
ID : 22
Scope : local
Period (ms): 500
Enabled : no
Events
Timer Event
//draw black background
fill hBrightness.x,hBrightness.y,100,hBrightness.val*-25/10+250,8484
//draw draw colored bar at the position of the current brightness value
fill hBrightness.x,hBrightness.val*-25/10+314,100,hBrightness.val*25/10,col.val
if(hBrightness.val>7)
{
//draw cursor
fill hBrightness.x+25,hBrightness.val*-25/10+322,50,4,WHITE
//paint corner
xstr hBrightness.x,hBrightness.val*-25/10+314,100,hBrightness.h,7,8484,0,0,0,3,"a"
}
//paint corners
xstr hBrightness.x,hBrightness.y,100,hBrightness.h,7,defaultBcoColor,0,0,0,3,"a"
xstr hBrightness.x,hBrightness.y+hBrightness.h-15,100,hBrightness.h,7,defaultBcoColor,0,0,0,3,"b"
tmDrawCooldown.en=0
Timer tmSerial
Attributes
ID : 8
Scope : local
Period (ms): 50
Enabled : yes
Events
Timer Event
// data available
if(usize>1)
{
bufferPos=0
while(bufferPos<usize)
{
// check for 0x55 0xBB - Command Init Secuence
if(u[bufferPos]==187&&u[bufferPos-1]==85)
{
//remove garbage at the start of the buffer if there's any to free buffer for command
if(u[bufferPos]!=1)
{
udelete bufferPos-1
}
//instruction is now aligned with buffer, because we deleted garbage before instrcution
//get length after init sequence (check if there are more than to bytes in buffer)
if(3<usize)
{
// check if serial buffer has reached the announced length
ucopy payloadLength,2,2,0
// we are only checking payload length so we have to skip first 3 bytes (init+payload length) (-1 because of < instead of <=)
payloadLength+=3
// payload length does also not contain crc, so we are adding another 2 bytes for crc
payloadLength+=2
if(payloadLength<usize)
{
// calculate crc
crcrest 1,0xFFFF
// u[2] contains payload legth at 3rd pos in buffer, we are calculating crc from 3rd pos with number of bytes from payload length
//crcputu 3,u[2]
// u[2] cotnains payload length, we are calculating a crc over the whole message, so we have to add 3 to the length from u[2]
crcputu 0,payloadLength-1
// get recived crc to be able to compare it
ucopy recvCrc,payloadLength-1,2,0
// compare crc with recived value
if(crcval==recvCrc)
{
// crc is okay
// here is the location where acual code should be
// write command to variable strCommand
ucopy strCommand.txt,4,payloadLength-5,0
// write instruction to tInstuction (debug output, but used as variable here, ui elements will be disabled by default)
spstr strCommand.txt,tInstruction.txt,"~",0
spstr strCommand.txt,tTmp.txt,"~",1
if(tInstruction.txt=="entityUpdateDetail"&&entn.txt==tTmp.txt)
{
// change icon
//spstr strCommand.txt,tIcon1.txt,"~",2
//vis tIcon1,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",3
covx tTmp.txt,sys0,0,0
col.val=sys0
//tEntity.pco=sys0
// get Button State
spstr strCommand.txt,tTmp.txt,"~",4
covx tTmp.txt,sys0,0,0
btOnOff1.val=sys0
// get Brightness value
spstr strCommand.txt,tTmp.txt,"~",5
if(tTmp.txt=="disable")
{
//vis t1,0
//vis t2,0
vis hBrightness,0
}else
{
//vis t1,1
//vis t2,1
vis hBrightness,1
covx tTmp.txt,sys0,0,0
hBrightness.val=sys0
tmDrawCooldown.en=1
tmDrawCooldown.tim=500
}
// get ColorTemp value
spstr strCommand.txt,tTmp.txt,"~",6
if(tTmp.txt=="disable")
{
vis hTempSlider,0
//vis t3,0
//vis t4,0
mode_temp.val=0
// mode == 1 is temp controls currently shown
if(mode.val==1)
{
// switch mode
click bColor,1
click bColor,0
}
}else if(tTmp.txt=="unknown") // temp supported, but not in color mode
{
mode_temp.val=1
// mode == 1 is temp controls currently shown
if(mode.val==1)
{
// switch mode
click bColor,1
click bColor,0
}
}else
{
mode_temp.val=1
vis hTempSlider,1
//vis t3,1
//vis t4,1
if(tmCooldown.en==0)
{
covx tTmp.txt,sys0,0,0
hTempSlider.val=sys0
}
// mode == 0 is rgb controls currently shown
if(mode.val==0)
{
// switch mode
click bColor,1
click bColor,0
}
}
// get Color value
spstr strCommand.txt,tTmp.txt,"~",7
// disable -> isn't supported
if(tTmp.txt=="disable")
{
//vis t0,0
vis bColor,0
vis pColorWheel,0
}else
{
//vis t0,1
//only enable bColor button if color temp is also supported
if(mode_temp.val==1)
{
vis bColor,1
}
if(mode.val==0)
{
vis pColorWheel,1
}
}
// set t0 Color (Localization)
//spstr strCommand.txt,t0.txt,"~",8
// set t4 Temperature (Localization)
//spstr strCommand.txt,t4.txt,"~",9
// set t1 Brightness (Localization)
//spstr strCommand.txt,t1.txt,"~",10
// activate effect button
spstr strCommand.txt,tTmp.txt,"~",11
if(tTmp.txt=="enable")
{
vis bEffect,1
}else
{
vis bEffect,0
}
}
if(tInstruction.txt=="time")
{
// get set time to global variable
spstr strCommand.txt,pageIcons.vaTime.txt,"~",1
}
if(tInstruction.txt=="date")
{
// get set date to global variable
spstr strCommand.txt,pageIcons.vaDate.txt,"~",1
}
if(tInstruction.txt=="dimmode")
{
// get value
spstr strCommand.txt,tTmp.txt,"~",1
covx tTmp.txt,dimValue,0,0
// get value normal
spstr strCommand.txt,tTmp.txt,"~",2
covx tTmp.txt,dimValueNormal,0,0
dim=dimValueNormal
// get background color
spstr strCommand.txt,tTmp.txt,"~",3
if(tTmp.txt!="")
{
covx tTmp.txt,defaultBcoColor,0,0
}
// get font color
spstr strCommand.txt,tTmp.txt,"~",4
if(tTmp.txt!="")
{
covx tTmp.txt,defaultFontColor,0,0
}
}
if(tInstruction.txt=="timeout")
{
//set timeout to global var
spstr strCommand.txt,tTmp.txt,"~",1
covx tTmp.txt,sleepTimeout,0,0
}
if(tInstruction.txt=="pageType")
{
//command format pageType,specialPageName
//write name of speical page to tId
spstr strCommand.txt,tId.txt,"~",1
//save second arg if there's one
spstr strCommand.txt,tTmp.txt,"~",2
//save third arg if there's one
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
udelete payloadLength-1
bufferPos=0
if(tId.txt=="pageStartup")
{
page pageStartup
}
if(tId.txt=="screensaver")
{
page screensaver
}
if(tId.txt=="cardEntities")
{
page cardEntities
}
if(tId.txt=="cardGrid")
{
page cardGrid
}
if(tId.txt=="cardGrid2")
{
page cardGrid2
}
if(tId.txt=="popupLight")
{
pageIcons.tTmp1.txt=tTmp.txt
page popupLight
}
if(tId.txt=="popupShutter")
{
pageIcons.tTmp1.txt=tTmp.txt
page popupShutter
}
if(tId.txt=="popupNotify")
{
page popupNotify
}
if(tId.txt=="cardThermo")
{
page cardThermo
}
if(tId.txt=="cardMedia")
{
page cardMedia
}
if(tId.txt=="cardAlarm")
{
page cardAlarm
}
if(tId.txt=="cardQR")
{
page cardQR
}
if(tId.txt=="cardPower")
{
page cardPower
}
if(tId.txt=="cardChart")
{
page cardChart
}
}
// end of user code
udelete payloadLength-1
bufferPos=0
}
}
}
}
// next character
bufferPos++
}
}
Timer tmSleep
Attributes
ID : 7
Scope : local
Period (ms): 1000
Enabled : yes
Events
Timer Event
if(sleepTimeout!=0)
{
sleepValue+=1
if(sleepTimeout<=sleepValue)
{
sleepValue=0
click b0,1
click b0,0
}
}
TouchCap tc0
Attributes
ID : 6
Scope: local
Value: 0
Events
Touch Press Event
sleepValue=0

View File

@@ -581,7 +581,7 @@ Timer tmSerial
covx tTmp.txt,defaultFontColor,0,0
}
}
if(tInstruction.txt=="timeout")
if(tInstruction.txt=="timeout2")
{
//set timeout to global var
spstr strCommand.txt,tTmp.txt,"~",1
@@ -672,6 +672,10 @@ Timer tmSerial
{
page cardChart
}
if(tId.txt=="cardLChart")
{
page cardLChart
}
}
// end of user code
udelete payloadLength-1

Some files were not shown because too many files have changed in this diff Show More