Re: Mini-PV und Leistungsregelungen/Begrenzungen für Bestandsgeräte
Verfasst: 21. Feb 2023 02:15
Sorry, mein Fehler 0-1023 ist richtig (Einbildung ist auch eine Bildung
Hallo,
Code: Alles auswählen
*** PAYLOAD IS NOT VALID JSON DATA ***
Unexpected character ('O' (code 79)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')
at [Source: java.io.StringReader@6d936cba; line: 2, column: 2]
Code: Alles auswählen
{
"log" : "GPIO: 14 duty: 265",
"plugin" : 1,
"pin" : 14,
"mode" : "PWM",
"state" : 265
}
Code: Alles auswählen
2023-02-21 11:33:13.717 [WARN ] [t.generic.ChannelStateTransformation] - Executing the JSONPATH-transformation failed: Invalid path '$.state' in '
OK'
Irgendwo hast Du eine Transformation eingestellt, die Du aber anscheinend nicht verwendest. Zeig mal Deine Konfiguration vom Thingvioline21 hat geschrieben: ↑21. Feb 2023 11:39
Das Zweite hat die obige Meldung zum Inhalt und führt auf OH-Seite zu einem Log-Eintrag:Das ist auch nur ein Schönheitsfehler, ich weiss ja, woher das stammt.Code: Alles auswählen
2023-02-21 11:33:13.717 [WARN ] [t.generic.ChannelStateTransformation] - Executing the JSONPATH-transformation failed: Invalid path '$.state' in ' OK'
Evtl. könnte man das mit einer REGEX-Regel noch ausfiltern, so dass die Meldung nicht auftritt.
Allerdings stehe ich mit REGEX auf Kriegsfuss. Da gelingt mir nur ganz selten etwas.
Code: Alles auswählen
UID: mqtt:topic:01144906ea:M240
label: M240_ESPEasy
thingTypeUID: mqtt:topic
configuration: {}
bridgeUID: mqtt:broker:01144906ea
location: Test
channels:
- id: m240_dimmer
channelTypeUID: mqtt:dimmer
label: Dimmer
description: null
configuration:
commandTopic: M240/PWM_1/pwmout/cmd
min: 0
formatBeforePublish: PWM,14,%s
stateTopic: M240/PWM_1/status
transformationPattern: JSONPATH:$.state
max: 1023
- id: m240_status
channelTypeUID: mqtt:string
label: Status DIO
description: null
configuration:
stateTopic: M240/status
transformationPattern: JSONPATH:$.state
Gibts hier schon erfolge??