Sonoff NSPanel ESPHome Flashing lukt niet

Pagina: 1
Acties:

Vraag


Acties:
  • 0 Henk 'm!

  • pingelhoek
  • Registratie: December 2010
  • Laatst online: 17:00
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:

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?

Alle reacties


Acties:
  • 0 Henk 'm!

  • Septillion
  • Registratie: Januari 2009
  • Laatst online: 22:56

Septillion

Moderator Wonen & Mobiliteit
Waarom probeer je het niet via de UI? Net even getest, dat compiled zonder fouten.

Acties:
  • 0 Henk 'm!

  • pingelhoek
  • Registratie: December 2010
  • Laatst online: 17:00
Bedankt voor snelle reactie, maar welke UI bedoel je en hoe kom ik daarbij?

Acties:
  • 0 Henk 'm!

  • Septillion
  • Registratie: Januari 2009
  • Laatst online: 22:56

Septillion

Moderator Wonen & Mobiliteit
99% van de mensen draait ESPhome als addon van Home Assistant. Val jij onder de andere 1%?

Acties:
  • 0 Henk 'm!

  • pingelhoek
  • Registratie: December 2010
  • Laatst online: 17:00
Schijnbaar val ik onder die andere 1%, maar ik zal me dan daar maar eens in verdiepen.

Acties:
  • 0 Henk 'm!

  • JamesB009
  • Registratie: Juni 2008
  • Laatst online: 15-05 20:19

JamesB009

Sjimmeh!!

Dan vallen wij samen onder die 1%, ik kan weinig met ESP, dat ligt aan mijn kennis gok ik, maar ik vind het altijd een groot gedoe.

1337 | RLVANT | Canon EOS 5D Mark II + 500D | 70-200 F4 L IS | 100mm L F2.8 IS macro | 17-40 F4 L | 50mm F1.8


Acties:
  • 0 Henk 'm!

  • Septillion
  • Registratie: Januari 2009
  • Laatst online: 22:56

Septillion

Moderator Wonen & Mobiliteit
Ah, dat maakt het wel lastiger ja. Draai je wel HA of ook niet? Gezien wat je wilt flashen zou ik zeggen van wel, maar dan zeker geen HA OS?

Acties:
  • 0 Henk 'm!

  • JamesB009
  • Registratie: Juni 2008
  • Laatst online: 15-05 20:19

JamesB009

Sjimmeh!!

Hij draait HA in een docker op linux, dus inderdaad geen HA OS.
ESP docker zou dan nodig zijn gok ik?

1337 | RLVANT | Canon EOS 5D Mark II + 500D | 70-200 F4 L IS | 100mm L F2.8 IS macro | 17-40 F4 L | 50mm F1.8


Acties:
  • +1 Henk 'm!

  • Septillion
  • Registratie: Januari 2009
  • Laatst online: 22:56

Septillion

Moderator Wonen & Mobiliteit
Oei, daar ben ik niet bekend mee en valt ook tegen hoeveel documentatie er over is :/

Maar ik zie wel dat ESPhome dashboard ook met een docker install zou moeten kunnen.

Acties:
  • +1 Henk 'm!

  • jj85
  • Registratie: Januari 2002
  • Laatst online: 22:49
Misschien een oude versie van ESPHome?
code:
1
[min_version] is an invalid option for [esphome].

Deze optie zit er volgens mij sinds 2022.10 pas in.

Draai ESPHome ook in een eigen docker met dashboard.
Volgens mij moet je gewoon naar http://[ipadres]:6052 gaan.

Ter info, m'n docker compose
YAML:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
version: '3'

services:
  esphome:
    image: esphome/esphome:latest
    container_name: esphome
    volumes:
      - /volume1/docker/esphome:/config
      - /etc/localtime:/etc/localtime:ro
    network_mode: host
    restart: always
    environment:
      - USERNAME=admin
      - PASSWORD=xxx
Pagina: 1