ioBroker.esphome icon indicating copy to clipboard operation
ioBroker.esphome copied to clipboard

status is wrong

Open arteck opened this issue 3 years ago • 3 comments

online status is wrong in objects grafik

wifi: power_save_mode: none

arteck avatar Sep 27 '21 17:09 arteck

is the ESP really offline or only shown in dashboard offline ? The dashboard needs MDNS for its query, adapter user direct IP & socket connection I have seen this couple of time in situations with VLAN's

DutchmanNL avatar Feb 18 '22 12:02 DutchmanNL

its REALLY OFFLINE.. its not pingable

arteck avatar Feb 23 '22 07:02 arteck

Same here:

The Online status is shown different in the instance view compared with object view:

the connection attribute is always indicated with true even if I turn of the ESP. The _online attribute stays false even if esp is online and marked as online in instance view

image

The ESP script looks like this

`esphome: name: little_wemos platform: ESP8266 board: d1_mini

wifi: ssid: !secret wifi_ssid password: !secret wifi_password

Enable fallback hotspot (captive portal) in case wifi connection fails ap: ssid: "Little Wemos Fallback Hotspot" password: "************"

captive_portal:

Enable logging logger:

api: services:

  • service: control_servo variables: level: float then:
  • servo.write: id: my_servo level: !lambda 'return level / 1000.0;'

ota:

output:

platform: esp8266_pwm id: pwm_output pin: D3 frequency: 50 Hz servo:

id: my_servo output: pwm_output `

maxpd1 avatar Mar 18 '22 13:03 maxpd1

feeler gefunden und korrigiert, wird in v0.3.1 released. Das problem trat auf wen ein ESP im betrieb des adapters online war, der adapter abgeschaltet wurde, der ESP getrennt und dan der adapter gestartet dabei hat er die online states nicht richtig mitgenommen.

Um das zu vermeiden habe ich:

  • sicher gestellt das der online status beim stoppen und starten des adapter auf FALSE gesetzt wird
  • Bei der Gelegenheit den online status sichtbar in den objecten eingebaut

DutchmanNL avatar Oct 31 '23 16:10 DutchmanNL