Syntax for OpenHAB folder

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
User avatar
Sasch600xt
Normal user
Posts: 103
Joined: 10 Sep 2018, 16:37

Syntax for OpenHAB folder

#1 Post by Sasch600xt » 02 Oct 2018, 14:35

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 604 times
thank you so much for your help
Sascha
"the flat earth society has members all around the globe"

User avatar
grovkillen
Core team member
Posts: 3332
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: Syntax for OpenHAB folder

#2 Post by grovkillen » 02 Oct 2018, 14:39

That setting got noting to do with folders or root. It's the topic settings for the MQTT protocol.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

User avatar
Sasch600xt
Normal user
Posts: 103
Joined: 10 Sep 2018, 16:37

Re: Syntax for OpenHAB folder

#3 Post by Sasch600xt » 02 Oct 2018, 14:41

oh, ok.

then it was a missunderstood of my head :)
"the flat earth society has members all around the globe"

waspie
Normal user
Posts: 117
Joined: 09 Feb 2017, 19:35

Re: Syntax for OpenHAB folder

#4 Post by waspie » 02 Oct 2018, 14:50

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]" }

Post Reply

Who is online

Users browsing this forum: No registered users and 27 guests