Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broken MQTT Topic #2035

Closed
do2sz opened this issue Feb 16, 2023 · 4 comments
Closed

Broken MQTT Topic #2035

do2sz opened this issue Feb 16, 2023 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@do2sz
Copy link

do2sz commented Feb 16, 2023

The Problem

Moin,
mein HA gibt mir seit dem 14.0.3 Release den folgenden Fehler beim Start. Ich habe in der Watermeter Config geschaut, konnte aber keine Fehler feststellen. So wie ich das verstehe, liegt das Problem im doppelten / nach sensor. Ich fürchte, das muss im Code gefixt werden.

Home Assistant Log:

Received message on illegal discovery topic 'homeassistant/sensor//rate_per_time_unit/config'. The topic contains not allowed characters. For more information see https://www.home-assistant.io/docs/mqtt/discovery/#discovery-topic
Received message on illegal discovery topic 'homeassistant/sensor//rate_per_digitalization_round/config'. The topic contains not allowed characters. For more information see https://www.home-assistant.io/docs/mqtt/discovery/#discovery-topic
Received message on illegal discovery topic 'homeassistant/sensor//timestamp/config'. The topic contains not allowed characters. For more information see https://www.home-assistant.io/docs/mqtt/discovery/#discovery-topic
Received message on illegal discovery topic 'homeassistant/sensor//json/config'. The topic contains not allowed characters. For more information see https://www.home-assistant.io/docs/mqtt/discovery/#discovery-topic
Received message on illegal discovery topic 'homeassistant/binary_sensor//problem/config'. The topic contains not allowed characters. For more information see https://www.home-assistant.io/docs/mqtt/discovery/#discovery-topic

Version

14.0.3

Logfile

[0d06h32m41s] 2023-02-16T02:23:47	<ERR>	[POSTPROC] main: Raw: 2906.4, Value: , Status: Neg. Rate - Read:  - Raw: 2906.4 - Pre: 2906.6 
[0d09h02m40s] 2023-02-16T04:53:45	<ERR>	[POSTPROC] main: Raw: 2906.0, Value: , Status: Neg. Rate - Read:  - Raw: 2906.0 - Pre: 2906.9 
[0d09h03m40s] 2023-02-16T04:54:45	<ERR>	[POSTPROC] main: Raw: 2906.0, Value: , Status: Neg. Rate - Read:  - Raw: 2906.0 - Pre: 2906.9 
[0d09h04m40s] 2023-02-16T04:55:45	<ERR>	[POSTPROC] main: Raw: 2906.0, Value: , Status: Neg. Rate - Read:  - Raw: 2906.0 - Pre: 2906.9 
[0d09h05m40s] 2023-02-16T04:56:45	<ERR>	[POSTPROC] main: Raw: 2906.0, Value: , Status: Neg. Rate - Read:  - Raw: 2906.0 - Pre: 2906.9 
[0d00h00m04s] 2023-02-16T07:26:48	<INF>	[SNTP] TimeServer not defined, using default: pool.ntp.org
[0d00h00m04s] 2023-02-16T07:26:48	<INF>	[SNTP] Configuring NTP Client...
[0d00h00m04s] 2023-02-16T08:26:48	<INF>	[SNTP] Time zone set to CET-1CEST
[0d00h00m04s] 2023-02-16T08:26:48	<INF>	[SNTP] Time is already set: 2023-02-16 08:26:48
[0d00h00m04s] 2023-02-16T08:26:48	<INF>	[MAIN] =================================================
[0d00h00m04s] 2023-02-16T08:26:48	<INF>	[MAIN] ==================== Startup ====================
[0d00h00m04s] 2023-02-16T08:26:48	<INF>	[MAIN] =================================================
[0d00h00m04s] 2023-02-16T08:26:48	<INF>	[MAIN] Release: v14.0.3 (Commit: 6c891ab+), Date/Time: 2023-02-05 19:36, Web UI: Release: v14.0.3 (Commit: 6c891ab+)
[0d00h00m04s] 2023-02-16T08:26:48	<INF>	[MAIN] Reset reason: Via esp_restart
[0d00h00m05s] 2023-02-16T08:26:49	<INF>	[MAIN] WLAN-Settings - RSSI-Threashold: 0
[0d00h00m08s] 2023-02-16T08:26:52	<INF>	[MAIN] =================================================
[0d00h00m08s] 2023-02-16T08:26:52	<INF>	[MAIN] ================== Main Started =================
[0d00h00m08s] 2023-02-16T08:26:52	<INF>	[MAIN] =================================================
[0d00h00m08s] 2023-02-16T08:26:52	<INF>	[MAIN] The device has 8 MBytes of PSRAM
[0d00h00m09s] 2023-02-16T08:33:08	<INF>	[SNTP] Time is now successfully synced with NTP Server pool.ntp.org: 2023-02-16 08:33:08
[0d00h00m10s] 2023-02-16T08:33:09	<INF>	[MAIN] Initialization completed successfully!

Expected Behavior

Nutzen der korrekten Topics

  • topic 'homeassistant/sensor/rate_per_time_unit/config'
  • topic 'homeassistant/sensor/rate_per_digitalization_round/config'
  • topic 'homeassistant/sensor/timestamp/config'
  • topic 'homeassistant/sensor//json/config'
  • topic 'homeassistant/binary_sensor//problem/config'

Screenshots

grafik

Additional Context

config.ini

[MakeImage]
;LogImageLocation = /log/source
WaitBeforeTakingPicture = 4
;LogfileRetentionInDays = 15
;Demo = false
Brightness = -30
Contrast = 50
Saturation = 0
LEDIntensity = 10
ImageQuality = 12
ImageSize = VGA
FixedExposure = false

[Alignment]
InitialRotate = 88
InitialMirror = false
SearchFieldX = 20
SearchFieldY = 20
AlignmentAlgo = default
FlipImageSize = false
/config/ref0.jpg 433 413
/config/ref1.jpg 173 293

[Digits]
Model = /config/dig-class100-0150_s2_q.tflite
CNNGoodThreshold = 0.5
;LogImageLocation = /log/digit
;LogfileRetentionInDays = 3
main.dig1 127 342 60 108 false
main.dig2 205 342 60 108 false
main.dig3 283 342 60 108 false
main.dig4 366 342 60 108 0
main.decimal 467 338 59 107 0

;[Analog]
Model = /config/ana-cont_11.3.0_s2.tflite
;LogImageLocation = /log/analog
;LogfileRetentionInDays = 3
main.ana1 432 230 92 92 false
main.ana2 379 332 92 92 false
main.ana3 283 374 92 92 false
main.ana4 155 328 92 92 false

[PostProcessing]
main.DecimalShift = -1
main.AnalogDigitalTransitionStart = 9.2
PreValueUse = true
PreValueAgeStartup = 720
main.AllowNegativeRates = false
main.MaxRateValue = 10
;main.MaxRateType = AbsoluteChange
;main.ExtendedResolution = false
;main.IgnoreLeadingNaN = true
ErrorMessage = true
CheckDigitIncreaseConsistency = false

[MQTT]
Uri = mqtt://192.168.250.205:1883
MainTopic = wattzaehler
;ClientID = wasser
user = mqtt
password = mqtt
;SetRetainFlag = true
HomeassistantDiscovery = true
MeterType = energy_kwh

;[InfluxDB]
;Uri = undefined
;Database = 
;Measurement = undefined
;user = undefined
;password = undefined

;[GPIO]
;IO0 = input disabled 10 false false 
;IO1 = input disabled 10 false false 
;IO3 = input disabled 10 false false 
;IO4 = built-in-led disabled 10 false false 
;IO12 = input-pullup disabled 10 false false 
;IO13 = input-pullup disabled 10 false false 
LEDType = WS2812
LEDNumbers = 2
LEDColor = 150 150 150

[AutoTimer]
AutoStart = true
Intervall = 1

[DataLogging]
DataLogActive = true
DataLogRetentionInDays = 3

[Debug]
Logfile = 1
LogfileRetentionInDays = 3

[System]
TimeZone = CET-1CEST,M3.5.0,M10.5.0/3
;TimeServer = pool.ntp.org
;AutoAdjustSummertime = false
;Hostname = undefined
;RSSIThreashold = 
SetupMode = false
@do2sz do2sz added the bug Something isn't working label Feb 16, 2023
@caco3
Copy link
Collaborator

caco3 commented Feb 18, 2023

der hostname in deiner wlan.ini scheint leer zu sein!
so wärs korrekt:
homeassistant/sensor/wasserzaehler/uptime/config

@caco3
Copy link
Collaborator

caco3 commented Feb 18, 2023

korrektur:
du solltest die client ID im MQTT aktivieren, dann gehts.

dennoch ist intern etwas verbrochen, werde es nächste Woche anschauen.

@caco3 caco3 self-assigned this Feb 18, 2023
@do2sz
Copy link
Author

do2sz commented Feb 23, 2023

Moin, schaue ich mir die Tage Mal an.
Danke für den Tipp!

@caco3
Copy link
Collaborator

caco3 commented Feb 27, 2023

The missing default maintopic be fixed in #2091

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants