Ik heb een Sonog NSPanel in huis en wil deze toevoegen aan mijn home-assistent setup. Ik heb de stappen doorlopen zoals beschreven in de review (https://tweakers.net/revi...en-vanuit-de-console.html) van Olaf. Echer ik bij het flashen loop ik tegen een error aan waar ik niet uit kom. Kan iemand mij aangeven wat ik fout doe?
Ik draai home-assistent doormiddel van docker onder linux. En op deze machine probeer ik ook het NS-panel te flashen.
Het bestand (wandpaneel.yaml) ziet er als volgt uit:
Als ik dit wil flashen doormiddel van het commando: esphome run wandpaneel.yaml
Dan krijg ik het volgende resultaat:
Wat doe ik hier fout?
Ik draai home-assistent doormiddel van docker onder linux. En op deze machine probeer ik ook het NS-panel te flashen.
Het bestand (wandpaneel.yaml) ziet er als volgt uit:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
| substitutions: ###### DIT GEDEELTE AANPASSEN ###### device_name: wandpaneel wifi_ssid: wifinaam wifi_password: wachtwoord ##### EIND AANPASBARE SECTIE ##### nextion_update_url: "https://raw.githubusercontent.com/Blackymas/NSPanel_HA_Blueprint/main/nspanel_eu.tft" packages: remote_package: url: https://github.com/Blackymas/NSPanel_HA_Blueprint ref: main files: [nspanel_esphome.yaml] refresh: 300s |
Als ik dit wil flashen doormiddel van het commando: esphome run wandpaneel.yaml
Dan krijg ik het volgende resultaat:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
| INFO Reading configuration wandpaneel.yaml... INFO Updating https://github.com/Blackymas/NSPanel_HA_Blueprint@main WARNING GPIO4 is a Strapping PIN and should be avoided. Attaching external pullup/down resistors to strapping pins can cause unexpected failures. See https://esphome.io/guides/faq.html#why-am-i-getting-a-warning-about-strapping-pins Failed config esphome: None name: wandpaneel [min_version] is an invalid option for [esphome]. Please check the indentation. min_version: 2022.10.2 build_path: .esphome/build/wandpaneel switch.template: [source .esphome/packages/566b10a3/nspanel_esphome.yaml:735] name: wandpaneel Notification unread platform: template id: notification_unread entity_category: config [restore_mode] is an invalid option for [switch.template]. Did you mean [restore_state]? restore_mode: RESTORE_DEFAULT_OFF optimistic: True switch.template: [source .esphome/packages/566b10a3/nspanel_esphome.yaml:743] name: wandpaneel Notification sound platform: template id: notification_sound entity_category: config optimistic: True [restore_mode] is an invalid option for [switch.template]. Did you mean [restore_state]? restore_mode: RESTORE_DEFAULT_OFF switch.template: [source .esphome/packages/566b10a3/nspanel_esphome.yaml:751] name: wandpaneel Confirmation Message platform: template id: confirmation_message entity_category: config [restore_mode] is an invalid option for [switch.template]. Did you mean [restore_state]? restore_mode: RESTORE_DEFAULT_OFF optimistic: True switch.template: [source .esphome/packages/566b10a3/nspanel_esphome.yaml:786] name: wandpaneel Sleep mode platform: template device_class: switch id: sleep_mode entity_category: config [restore_mode] is an invalid option for [switch.template]. Did you mean [restore_state]? restore_mode: RESTORE_DEFAULT_OFF optimistic: False turn_on_action: - logger.log: Sleep mode - Turn on - lambda: id(disp1).send_command_printf("home.sleepmodus.val=1"); - lambda: id(disp1).set_component_value("settings.bt1",1); - switch.template.publish: id: sleep_mode state: True turn_off_action: - logger.log: Sleep mode - Turn off - lambda: id(disp1).send_command_printf("home.sleepmodus.val=0"); - lambda: id(disp1).set_component_value("settings.bt1",0); - switch.template.publish: id: sleep_mode state: False switch.template: [source .esphome/packages/566b10a3/nspanel_esphome.yaml:809] name: wandpaneel Relay 1 Local Fallback platform: template id: relay1_fallback entity_category: config optimistic: True [restore_mode] is an invalid option for [switch.template]. Did you mean [restore_state]? restore_mode: RESTORE_DEFAULT_OFF switch.template: [source .esphome/packages/566b10a3/nspanel_esphome.yaml:816] name: wandpaneel Relay 2 Local Fallback platform: template id: relay2_fallback entity_category: config optimistic: True [restore_mode] is an invalid option for [switch.template]. Did you mean [restore_state]? restore_mode: RESTORE_DEFAULT_OFF script: [source .esphome/packages/566b10a3/nspanel_esphome.yaml:937] 'id' is a required option for [script]. - Unable to find action with the name 'id'. id: page_timer mode: restart parameters: delay: int then: - lambda: ESP_LOGD("nspanel", "start page-timer delay %i", int(id(page_timeout).state)); - delay: !lambda |- return delay *1000; - lambda: |- DynamicJsonDocument doc(1024); deserializeJson(doc, id(disp1_nspanel_event).state); std::string page = doc["page"]; if (page == "home" or page == "screensaver" or page == "boot" or int(id(page_timeout).state) == 0) { ESP_LOGD("nspanel", "no page-jump"); } else { ESP_LOGD("nspanel", "timer->home"); id(disp1).send_command_printf("page 0"); } |
Wat doe ik hier fout?