84 Commits

Author SHA1 Message Date
Blackymas
3211f44770 Merge pull request #468 from Blackymas/beta
v.3.2 - New features and custom configurations
2023-03-19 13:22:58 +01:00
Blackymas
bd5b1303f2 Merge pull request #466 from Blackymas/dev
fix value 03 position
2023-03-19 13:21:21 +01:00
Blackymas
8ff0cad379 fix value 03 position 2023-03-19 13:20:54 +01:00
Blackymas
fdcd37c6d0 Merge pull request #458 from Blackymas/dev
fixes
2023-03-18 00:56:56 +01:00
Blackymas
6a464325d7 remove obsolete spaces 2023-03-18 00:50:29 +01:00
Blackymas
3af0c20670 Merge pull request #456 from Floppe/homesensor
Fix so homepage works when one of home values 01-03 is unavailable.
2023-03-18 00:37:10 +01:00
Blackymas
7ee10d4ca6 Merge pull request #445 from edwardtfn/patch-4
Fix warning on settings_entity_value
2023-03-18 00:36:17 +01:00
Blackymas
884c8d91e6 Merge pull request #457 from Blackymas/dev
changed component id boot and sleep
2023-03-17 23:18:10 +01:00
Blackymas
07b8e99b01 change component id boot and sleep 2023-03-17 23:17:16 +01:00
Blackymas
d74b70f864 change component id for repot and sleep 2023-03-17 23:13:47 +01:00
Joachim Wickman
e70fcd54eb Fix so home page works when one of home values 01-03 is unavailable.
Signed-off-by: Joachim Wickman <joachim@wickman.in>
2023-03-17 09:00:34 +02:00
Blackymas
ea5b80e3b8 Merge pull request #450 from Blackymas/dev
fixed heating button
2023-03-15 20:39:13 +01:00
Blackymas
b5cd83240f fixed heating button 2023-03-15 20:37:37 +01:00
Edward Firmo
7d241d1400 Fix warning on settings_entity_value
Fix warning message: 
Template variable warning: list object has no element 3 when rendering '{%- if settings_entity_value != "unknown" -%} {{ settings_entity_value.split(',')[3] }} {%- else -%} unknown {%- endif -%}'
2023-03-15 08:29:08 +01:00
Blackymas
ee2e1d53d2 Merge pull request #441 from Blackymas/dev
fix lightslider
2023-03-14 22:18:13 +01:00
Blackymas
36e0344345 fix lightslider 2023-03-14 22:17:37 +01:00
Blackymas
eb6eebfd46 Merge pull request #427 from Blackymas/dev
fix button issue
2023-03-13 00:31:25 +01:00
Blackymas
0de7850c39 fix button issue 2023-03-13 00:31:02 +01:00
Blackymas
5f1d2b9d10 Merge pull request #424 from Blackymas/dev
rdy for 3.2
2023-03-12 21:51:17 +01:00
Blackymas
0abd5531cb bug fixes 2023-03-12 21:29:41 +01:00
Blackymas
0fdcd088ec tft rdy for v3.2 2023-03-12 21:20:56 +01:00
Blackymas
29df75263b Merge pull request #395 from Blackymas/dev
lightslider jump to page change
2023-03-06 08:50:52 +01:00
Blackymas
5035b89956 lightslider jump to page change 2023-03-06 08:48:26 +01:00
Blackymas
9de5abff25 Merge pull request #394 from Blackymas/dev
new slider function for brightness, temp color, color and cover
2023-03-06 01:12:05 +01:00
Blackymas
a113e0cd43 new function slider brightness, temp, color, cover 2023-03-06 01:11:10 +01:00
Blackymas
a2f5e69b76 new slider function brightness, temp, color, cover 2023-03-06 01:09:09 +01:00
Blackymas
0e41a87659 Merge pull request #393 from Blackymas/dev
reworked code and new functions
2023-03-05 11:32:25 +01:00
Blackymas
f6a6a7adb0 chips, values, button, reworked code 2023-03-05 11:19:48 +01:00
Blackymas
8abfee7b54 chips, free value, bugs, reworked code 2023-03-05 11:18:19 +01:00
Blackymas
70038014a2 add Wifi icon and long press settings page 2023-02-26 22:42:35 +01:00
Blackymas
268c6a7e23 Merge branch 'dev' of https://github.com/Blackymas/NSPanel_HA_Blueprint into dev 2023-02-22 20:27:56 +01:00
Blackymas
133165e79e chips mapping 2023-02-22 20:27:51 +01:00
Blackymas
99f2b2815d rdy for climate 2023-02-22 20:27:13 +01:00
Blackymas
d6f0958652 Merge branch 'dev' of https://github.com/Blackymas/NSPanel_HA_Blueprint into dev 2023-02-22 01:05:09 +01:00
Blackymas
6704e320da rebuild home page done 2023-02-22 01:05:05 +01:00
Blackymas
d0d09b93a4 finish home page 2023-02-22 00:56:47 +01:00
Blackymas
155ab33086 position change 2023-02-22 00:50:07 +01:00
Blackymas
55ed836400 home button command 2023-02-22 00:44:43 +01:00
Blackymas
6ac6a25803 Merge branch 'dev' of https://github.com/Blackymas/NSPanel_HA_Blueprint into dev 2023-02-22 00:36:46 +01:00
Blackymas
26844cd290 change home Button, icons, color 2023-02-22 00:36:42 +01:00
Blackymas
7dc0f49809 change font size 2023-02-21 23:31:38 +01:00
Blackymas
71cd913135 change home button to icon font 2023-02-21 23:01:32 +01:00
Blackymas
dfa3ee901a last click variable local to global 2023-02-21 08:41:51 +01:00
Blackymas
f7131aaca0 add 7 free chips with icon - change chips 01-03 2023-02-21 01:02:28 +01:00
Blackymas
fefb1374fd Merge branch 'dev' of https://github.com/Blackymas/NSPanel_HA_Blueprint into dev 2023-02-20 12:50:42 +01:00
Blackymas
8f5165bd1b fix trigger wrong input home_value03 2023-02-20 12:50:38 +01:00
Blackymas
94a51da6fe outdoor temp size 2023-02-20 01:51:20 +01:00
Blackymas
e422a158ca positions home page 2023-02-20 01:45:43 +01:00
Blackymas
b43d83291b Merge branch 'dev' of https://github.com/Blackymas/NSPanel_HA_Blueprint into dev 2023-02-20 01:20:06 +01:00
Blackymas
e751938cdd 3 new values on home page with icon 2023-02-20 01:19:59 +01:00
Blackymas
b8321807dc positions home page 2023-02-20 01:15:59 +01:00
Blackymas
3a42c12c00 home page portions 2023-02-20 01:09:29 +01:00
Blackymas
d552fb458b fix default icon buttons 2023-02-20 01:03:05 +01:00
Blackymas
a7b96d8582 change icon field home page 2023-02-20 00:55:47 +01:00
Blackymas
18f188bb32 change TFT Home page 2023-02-19 23:35:34 +01:00
Blackymas
f44d3fd8d1 Merge branch 'dev' of https://github.com/Blackymas/NSPanel_HA_Blueprint into dev 2023-02-19 22:39:42 +01:00
Blackymas
a0b8697a4f New Button Design + Weather Icon change 2023-02-19 22:39:31 +01:00
Blackymas
de8f463968 delete dim in preinit 2023-02-17 22:53:51 +01:00
deejaybeam
6642a46a04 upd: button-pages 2023-02-17 18:06:33 +01:00
Blackymas
0b856cbb83 rebuild buttons v.1 2023-02-17 08:21:55 +01:00
Blackymas
e41c02e883 v.3.2 rebuild for change from icons to font 2023-02-15 23:11:33 +01:00
Blackymas
6f3dc4a010 rebuild HMI and TFT for Font Icon
rebuild for change from icons to font for the pages -> home page, weather01-04, buttonpage01-04
2023-02-15 23:07:25 +01:00
Blackymas
d46eecc57c Merge pull request #335 from edwardtfn/patch-3
Convert "Update TFT display" into a button
2023-02-15 22:36:53 +01:00
Blackymas
7223103905 Merge pull request #343 from Blackymas/dev
update 3.1.1
2023-02-14 16:10:28 +01:00
Edward Firmo
547338c5b1 Convert "Update TFT display" into a button
* This is a breaking change. Existing automation using the Switch version will need an update to use the button version instead.

This was originally set as a switch, but in reality it behaves as a button, as when the user click it runs an action (in this case, update the TFT display file). Switches should be used only when an entity will remain in one of the two states (on/off), which is not the case here.

This is related to #328.
2023-02-13 15:56:40 +01:00
Chris
811aca8cfa Merge pull request #334 from deejaybeam/dev
fix: apply climate-settings
2023-02-13 09:08:19 +01:00
Chris
0465a9eb8b Merge branch 'Blackymas:dev' into dev 2023-02-13 09:07:24 +01:00
Chris
45907e1ce5 fix: applying climate-settings 2023-02-13 09:05:08 +01:00
Blackymas
3ff82ef8cd change Climate Label, Climate Back, Sleep QR/Noti 2023-02-12 23:40:48 +01:00
Chris
5f6cc373fe Merge pull request #330 from deejaybeam/dev
upd: use new tft multi-climate
2023-02-12 12:24:10 +01:00
deejaybeam
4801f6c6b9 upd: use new tft multi-climate 2023-02-12 12:23:41 +01:00
Blackymas
02b4f6e178 Notification and QR code wake up after sleep 2023-02-12 11:45:57 +01:00
Blackymas
b0161d41f8 new fields climate page 2023-02-12 11:36:16 +01:00
Chris
d1702ccacf Merge pull request #327 from edwardtfn/patch-2
Fix default language input
2023-02-11 21:59:19 +01:00
Edward Firmo
281be927a7 Fix default language input
Fix default language so it can be used when no selection is done (like when upgrading from earlier version when language input was not available).
2023-02-11 20:53:16 +01:00
Chris
c352047991 Merge pull request #325 from deejaybeam/dev
upd: open climate on short_press too
2023-02-11 19:03:02 +01:00
deejaybeam
c058fd4fb1 upd: open climate on short_press too 2023-02-11 19:02:19 +01:00
Chris
e4e5cb0f51 Merge pull request #324 from deejaybeam/dev
upd: multi-climate
2023-02-11 18:33:21 +01:00
deejaybeam
da611e384a upd: multi-climate 2023-02-11 18:28:41 +01:00
Chris
5292bbff8b Merge pull request #321 from deejaybeam/dev
upd: prep for release 3.1.1
2023-02-10 20:58:29 +01:00
deejaybeam
a22311c4e8 upd: prep for release 3.1.1 2023-02-10 20:56:14 +01:00
Chris
0d250fb56b Merge pull request #315 from deejaybeam/dev
fixes in blueprint
2023-02-08 22:27:25 +01:00
deejaybeam
5ba5d2fb08 fix: issue on ha-restart 2023-02-08 22:24:17 +01:00
deejaybeam
51170c514d fix: ignore unassigned hw-buttons 2023-02-07 19:33:02 +01:00
6 changed files with 8520 additions and 5786 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -107,12 +107,22 @@ uart:
baud_rate: 115200
id: tf_uart
###### REBOOT BUTTON #####
##### START - BUTTON CONFIGURATION #####
button:
###### REBOOT BUTTON #####
- platform: restart
name: ${device_name} Restart
id: restart_nspanel
##### UPDATE TFT DISPLAY #####
- platform: template
name: ${device_name} Update TFT display
icon: mdi:file-sync
id: tft_update
entity_category: config
on_press:
- delay: 16ms
- lambda: id(disp1).upload_tft();
##### START - API CONFIGURATION #####
api:
@@ -161,7 +171,7 @@ api:
- lambda: 'id(disp1).set_component_value(component.c_str(), message);'
##### Service to send a command "hide componente" directly to the display #####
- service: send_command_hide
- service: send_command_hide ### unused ###
variables:
component: string
then:
@@ -170,7 +180,7 @@ api:
- lambda: 'id(disp1).hide_component(component.c_str());'
##### Service to send a command "show componente" directly to the display #####
- service: send_command_show
- service: send_command_show ### unused ###
variables:
component: string
then:
@@ -178,6 +188,13 @@ api:
switch.is_on: nextion_init
- lambda: 'id(disp1).show_component(component.c_str());'
##### Service to send a command "show ALL componente" directly to the display #####
- service: send_command_show_all ### unused ###
then:
- wait_until:
switch.is_on: nextion_init
- lambda: 'id(disp1).show_component("255");'
##### Service to send a command "font color" directly to the display #####
- service: send_command_font_color
variables:
@@ -229,6 +246,16 @@ api:
id(notification_text).publish_state("");
- switch.turn_off: notification_unread
##### Service to set entity-information for settings-page(s)
- service: set_settings_entity
variables:
entity: string
then:
- wait_until:
switch.is_on: nextion_init
- lambda: |-
id(settings_entity).publish_state(entity.c_str());
##### Service to play a rtttl tones #####
# Example tones : https://codebender.cc/sketch:109888#RTTTL%20Songs.ino
- service: play_rtttl
@@ -338,18 +365,13 @@ binary_sensor:
###### LEFT BUTTON BELOW DISPLAY TO TOGGLE RELAY#####
- platform: gpio
# name: ${device_name} Left Button
name: ${device_name} Left Button
id: left_button
pin:
number: 14
inverted: true
on_click:
- min_length: 50ms
max_length: 1000ms
then:
- binary_sensor.template.publish:
id: left_button_short
state: ON
- if:
condition:
and:
@@ -365,50 +387,17 @@ binary_sensor:
switch.is_on: relay_1
then:
- lambda: id(disp1).send_command_printf("home.icon_top_01.pic=105");
- delay: 500ms
- binary_sensor.template.publish:
id: left_button_short
state: OFF
on_press:
then:
- lambda: |-
if (id(disp1_currentpage).state == "lightsettings" or id(disp1_currentpage).state == "coversettings") {
ESP_LOGD("nspanel", "settingspage -> no press");
} else {
// ESP_LOGD("nspanel", "release button");
id(disp1_lastclick_general).set_state("pressbuttonleft",true,true);
}
on_release:
then:
- lambda: |-
if (id(disp1_currentpage).state == "lightsettings" or id(disp1_currentpage).state == "coversettings") {
ESP_LOGD("nspanel", "settingspage -> no release");
} else {
// ESP_LOGD("nspanel", "release button");
id(disp1_lastclick_general).set_state("releasebuttonleft",true,true);
}
- platform: template
name: ${device_name} Left Button
id: left_button_short
lambda: |-
return {};
##### RIGHT BUTTON BELOW DISPLAY TO TOGGLE RELAY #####
- platform: gpio
# name: ${device_name} Right Button
name: ${device_name} Right Button
id: right_button
pin:
number: 27
inverted: true
on_click:
- min_length: 50ms
max_length: 1000ms
then:
- binary_sensor.template.publish:
id: right_button_short
state: ON
- if:
condition:
and:
@@ -424,40 +413,24 @@ binary_sensor:
switch.is_on: relay_2
then:
- lambda: id(disp1).send_command_printf("home.icon_top_02.pic=106");
- delay: 500ms
- binary_sensor.template.publish:
id: right_button_short
state: OFF
on_press:
then:
- lambda: |-
if (id(disp1_currentpage).state == "lightsettings" or id(disp1_currentpage).state == "coversettings") {
ESP_LOGD("nspanel", "settingspage -> no press");
} else {
// ESP_LOGD("nspanel", "release button");
id(disp1_lastclick_general).set_state("pressbuttonright",true,true);
}
on_release:
then:
- lambda: |-
if (id(disp1_currentpage).state == "lightsettings" or id(disp1_currentpage).state == "coversettings") {
ESP_LOGD("nspanel", "settingspage -> no release");
} else {
// ESP_LOGD("nspanel", "release button");
id(disp1_lastclick_general).set_state("releasebuttonright",true,true);
}
- platform: template
name: ${device_name} Right Button
id: right_button_short
lambda: |-
return {};
##### JUMP PAGE TO SETTING PAGE #####
- platform: nextion
name: $device_name setting page
page_id: 0
component_id: 53
internal: true
on_multi_click:
- timing:
- ON for at least 1s #LONG Press
then:
- lambda: 'id(disp1).send_command_printf("page settings");'
##### Restart NSPanel Button - Setting Page #####
- platform: nextion
name: ${device_name} Restart
page_id: 7
component_id: 8
component_id: 15
internal: true
on_click:
- button.press: restart_nspanel
@@ -475,7 +448,7 @@ binary_sensor:
- platform: nextion
name: ${device_name} Sleep Modus
page_id: 7
component_id: 3
component_id: 16
internal: true
on_click:
- switch.toggle: sleep_modus
@@ -504,6 +477,14 @@ sensor:
- platform: wifi_signal
name: ${device_name} RSSI
update_interval: 60s
on_value:
- if:
condition:
wifi.connected:
then:
- lambda: id(disp1).set_component_text_printf("home.wifi_icon", "%s", "\U0000E5A8");
else:
- lambda: id(disp1).set_component_text_printf("home.wifi_icon", "%s", "\U0000FFFF");
##### INTERNAL TEMPERATURE SENSOR, ADC VALUE #####
- platform: adc
@@ -616,6 +597,10 @@ text_sensor:
name: ${device_name} Notification Text
id: notification_text
- platform: template
name: ${device_name} Settings Entity
id: settings_entity
##### last click sensor, the main action variable - push to HA #####
- platform: nextion
nextion_id: disp1
@@ -800,16 +785,6 @@ switch:
restore_state: false
optimistic: true
##### UPDATE TFT DISPLAY #####
- platform: template
name: ${device_name} Update TFT display
id: tft_update
entity_category: config
turn_on_action:
- delay: 16ms
- lambda: id(disp1).upload_tft();
- switch.turn_off: tft_update
##### PHYSICAL SWITCH 1 #####
- platform: gpio
name: ${device_name} Relay 1
@@ -950,11 +925,11 @@ display:
on_setup:
then:
- lambda: id(disp1).send_command_printf("page 8");
- lambda: id(disp1).set_component_text_printf("boot.esph_version", "%s", "3.1.0"); ### esphome-version ###
- lambda: id(disp1).set_component_text_printf("boot.esph_version", "%s", "3.2"); ### esphome-version ###
- wait_until:
api.connected
- lambda: id(disp1).set_component_text_printf("boot.ip_addr", "%s", id(ip_address).state.c_str());
- delay: 0.5s
- delay: 1s
- number.set:
id: display_brightness
value: !lambda 'return id(display_brightness_global);'
@@ -967,7 +942,7 @@ display:
- lambda: id(disp1).send_command_printf("settings.dimslider.val=%i", id(display_dim_brightness_global));
- lambda: id(disp1).send_command_printf("home.sleepmodus.val=%i", id(sleep_modus_global));
- lambda: id(disp1).set_component_value("settings.a02", id(sleep_modus_global) == 1);
- delay: 0.5s
- delay: 1s
- switch.template.publish:
id: nextion_init
state: on
@@ -988,4 +963,3 @@ script:
ESP_LOGD("nspanel", "timer->home");
id(disp1).send_command_printf("page 0");
}

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.