siod
(John Doe)
December 31, 2020, 11:22am
1
Hi,
unfortunately one channel from my generic MQTT Thing disappears after refreshing the page or navigating to somewhere else. This is my YAML code:
UID: mqtt:topic:broker:Trockner
label: Trockner
thingTypeUID: mqtt:topic
configuration:
payloadNotAvailable: offline
availabilityTopic: tele/sonoff/trockner/LWT
payloadAvailable: online
bridgeUID: mqtt:broker:broker
location: Waschküche
channels:
- id: Trockner Verbrauch Aktuell
channelTypeUID: mqtt:number
label: Energy
description: ""
configuration:
stateTopic: tele/sonoff/trockner/SENSOR
transformationPattern: JSONPATH($.ENERGY.Power)
unit: W
Any idea?
siod:
disappears
Disappears from where? Is that the YAML before the Channel disappears? Are you clicking Save after making any changes? Have you edited any of the properties which have a UID
in the name?
Also, your transformation pattern syntax is wrong: check the other thread again!
siod
(John Doe)
December 31, 2020, 11:38am
3
Yes, JSONPATH is wrong, but that´s not the source of the problem.
I added a blank channel for testing, but it also disappears completely from the things channel list.
The YAML code is the code before it disappears.
Yes, I saved.
Have not edited any other properties
This must not contain spaces.
1 Like
siod
(John Doe)
December 31, 2020, 11:41am
5
yeah, that´s what I was just guessing after I tested this now and that channel disappeared only:
label: Trockner
thingTypeUID: mqtt:topic
configuration:
payloadNotAvailable: offline
availabilityTopic: tele/sonoff/trockner/LWT
payloadAvailable: online
bridgeUID: mqtt:broker:broker
location: Waschküche
channels:
- id: test
channelTypeUID: mqtt:number
label: test
description: ""
configuration: {}
- id: Trockner Verbrauch Aktuell
channelTypeUID: mqtt:number
label: Energy
description: ""
configuration: {}
Ok, let´s see if this is just the solution…