Syntax for OpenHAB folder

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
Sasch600xt
Normal user
Posts: 62
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 462 times
thank you so much for your help
Sascha

User avatar
grovkillen
Core team member
Posts: 3141
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:

Sasch600xt
Normal user
Posts: 62
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 :)

waspie
Normal user
Posts: 110
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 5 guests