Page 1 of 1

Syntax for OpenHAB folder

Posted: 02 Oct 2018, 14:35
by Sasch600xt
Hello all :)

i try to get an folder after root.
but i am not sure how the correct syntax will be ?

i did try :

Testbereich
/Testbereich
/Testbereich/

but nothing worked so far :(

here is a screenshot:
Screenshot 2018-10-02 14.30.46.png
Screenshot 2018-10-02 14.30.46.png (95.5 KiB) Viewed 3002 times
thank you so much for your help
Sascha

Re: Syntax for OpenHAB folder

Posted: 02 Oct 2018, 14:39
by grovkillen
That setting got noting to do with folders or root. It's the topic settings for the MQTT protocol.

Re: Syntax for OpenHAB folder

Posted: 02 Oct 2018, 14:41
by Sasch600xt
oh, ok.

then it was a missunderstood of my head :)

Re: Syntax for OpenHAB folder

Posted: 02 Oct 2018, 14:50
by waspie
what is it you're trying to do?

if you want to see what ESP is sending to MQTT so you know how to define your items in openhab then you can sub to mqtt like:

mosquitto_sub -h IPofYOURbroker -t '#'

and then get the ESP to send something. then you'll see exactly what's happening and you can transfer that to openhab

output from mosquitto:

Code: Select all

/UtilityRoom/Furnace_Temp/FUR_IN 71.71
/UtilityRoom/furnaceTemp/FUR_OUT 70.81
/UtilityRoom/Evaporator_Temp/EVP_TEMP 71.94
/UtilityRoom/uptime/urUptime 4238.00
/beacon/sensor/journey-signal/state -71
so an item definition in openhab would look like:

Code: Select all

Number	Evap 						"Furnace evap Temp [%.1f °F]"		<temperature>	(nestTemps1,gTemps)		{ mqtt="<[oh2:/UtilityRoom/Evaporator_Temp/EVP_TEMP:state:default]" }