mirror of
https://github.com/esphome/esphome.git
synced 2025-09-01 19:02:18 +01:00
Nextion upload and sensors (#1464)
Co-authored-by: Senex Crenshaw <senexcrenshaw@gmail.com>
This commit is contained in:
@@ -1055,10 +1055,6 @@ binary_sensor:
|
||||
pin: GPIO27
|
||||
threshold: 1000
|
||||
id: btn_left
|
||||
- platform: nextion
|
||||
page_id: 0
|
||||
component_id: 2
|
||||
name: 'Nextion Component 2 Touch'
|
||||
- platform: template
|
||||
name: 'Garage Door Open'
|
||||
id: garage_door
|
||||
@@ -1882,11 +1878,6 @@ display:
|
||||
intensity: 3
|
||||
lambda: |-
|
||||
it.print("1234");
|
||||
- platform: nextion
|
||||
uart_id: uart0
|
||||
lambda: |-
|
||||
it.set_component_value("gauge", 50);
|
||||
it.set_component_text("textview", "Hello World!");
|
||||
- platform: pcd8544
|
||||
cs_pin: GPIO23
|
||||
dc_pin: GPIO23
|
||||
|
@@ -269,6 +269,7 @@ wled:
|
||||
|
||||
adalight:
|
||||
|
||||
|
||||
sensor:
|
||||
- platform: apds9960
|
||||
type: proximity
|
||||
@@ -534,6 +535,15 @@ sensor:
|
||||
export_reactive_energy:
|
||||
name: 'Export Reactive Energy'
|
||||
|
||||
- platform: nextion
|
||||
id: testnumber
|
||||
name: 'testnumber'
|
||||
variable_name: testnumber
|
||||
- platform: nextion
|
||||
id: testwave
|
||||
name: 'testwave'
|
||||
component_id: 2
|
||||
wave_channel_id: 1
|
||||
time:
|
||||
- platform: homeassistant
|
||||
|
||||
@@ -605,7 +615,14 @@ binary_sensor:
|
||||
binary_sensors:
|
||||
- id: custom_binary_sensor
|
||||
name: Custom Binary Sensor
|
||||
|
||||
- platform: nextion
|
||||
page_id: 0
|
||||
component_id: 2
|
||||
name: 'Nextion Component 2 Touch'
|
||||
- platform: nextion
|
||||
id: r0_sensor
|
||||
name: 'R0 Sensor'
|
||||
component_name: page0.r0
|
||||
globals:
|
||||
- id: my_global_string
|
||||
type: std::string
|
||||
@@ -653,6 +670,11 @@ text_sensor:
|
||||
text_sensors:
|
||||
- id: custom_text_sensor
|
||||
name: Custom Text Sensor
|
||||
- platform: nextion
|
||||
name: text0
|
||||
id: text0
|
||||
update_interval: 4s
|
||||
component_name: text0
|
||||
|
||||
script:
|
||||
- id: my_script
|
||||
@@ -704,6 +726,10 @@ switch:
|
||||
switches:
|
||||
- id: custom_switch
|
||||
name: Custom Switch
|
||||
- platform: nextion
|
||||
id: r0
|
||||
name: 'R0 Switch'
|
||||
component_name: page0.r0
|
||||
|
||||
custom_component:
|
||||
lambda: |-
|
||||
@@ -1086,6 +1112,16 @@ display:
|
||||
id: my_matrix
|
||||
lambda: |-
|
||||
it.printdigit("hello");
|
||||
- platform: nextion
|
||||
uart_id: uart1
|
||||
tft_url: 'http://esphome.io/default35.tft'
|
||||
update_interval: 5s
|
||||
on_sleep:
|
||||
then:
|
||||
lambda: 'ESP_LOGD("display","Display went to sleep");'
|
||||
on_wake:
|
||||
then:
|
||||
lambda: 'ESP_LOGD("display","Display woke up");'
|
||||
|
||||
http_request:
|
||||
useragent: esphome/device
|
||||
|
Reference in New Issue
Block a user