You can download and run the work in progress. There are dozens of issues open and being worked. The new UI has been posted about on openHAB’s twitter feed. There is a thread to start working on a getting started guide with lots of screen shots.
I have very clearly been looking in the wrong places! I’ve been looking in the “announcements” and “development” categories, and there’s not much there.
I have just been reading through trying to get my item attributes sorted for HABot but I must be missing something here.
I am going through my /var/lib/openhab2/jsondb/org.eclipse.smarthome.core.items.Item.json.
Where should these Semantic tags be deployed, am I barking up the wrong tree?
Here is a current item I have in my above json should I be inserting here, and if so where?
Hi Dan
Thanks for the the response.
OK, so, yes thats what i thought “they are right there” but when I stopped the hab edited the file (by hand which I have done before to bring things into google) and restarted, the “tags” were not in the HABot > Item attributes review window. Which API are you referring to, paper?
Thanks!
I was trying to adapt my existing setup to HABot by adding all relevant tags to the existing groups, but for some reason HABot is unable to find any Locations that I pass. Given the Example below, I get a positive response for entering e.g. “Temperatur” with a card containing all the temperature relevant items, but a negative one for “Wohnzimmer” (Living Room) complaining that no Tag related to wohnzimmer was found. Trying combinations of both tag types, such as “What is the Temperature in the Living Room” (and its german counterpart), are also unsuccessful.
// Location Groups
Group gAll "All"
Group gIndoor "Indoor" (gAll) ["Indoor"] {synonyms="Im Haus"}
Group gEG "Erdgeschoss" <groundfloor> (gIndoor) ["GroundFloor"] {synonyms="Erdgeschoss"}
Group gLivingRoom "Wohnzimmer" <sofa> (gEG) ["LivingRoom"] {synonyms="Wohnzimmer"}
// Device Groups
Group gActor "Aktoren" (gAll)
Group gSensor "Sensoren" (gAll)
Group gTemperature "Temperatur" <temperature> ["RadiatorControl", "Temperature"]
Group gTempSensor "Temperaturmessung" (gTemperature, gSensor) ["Measurement"]
Group gTempSetpoint "Temperatureinstellung" (gTemperature, gActor) ["Setpoint"]
// Devices
Number LivingRoomWTHIsTemperature "Temperatur (ist) [%.1f °C]" (gLivingRoom, gTempSensor) {channel="homematic:...#ACTUAL_TEMPERATURE"}
Number LivingRoomWTHSetTemperature "Temperatur (soll) [%.1f °C]" (gLivingRoom, gTempSetpoint) {channel="homematic:...#SET_POINT_TEMPERATURE"}
Any idea what I am missing here? I was wondering if locaton tags are inherited at all from any parent groups (and if so, if the tags are fetched recursively, i.e. is “Wohnzimmer” only location-tagged as [“LivingRoom”}, or [“Indoor”, “GroundFloor”, “LivingRoom”]).
I’ve already tried to investigate the issue by myself and activated logging for HABot by setting the log level for org.openhab.ui.habot to ALL, but this resulted in yet another strange behavior:
Whenever a text input leads to a positive response (e.g. “Temperatur”), there is no log entry at all.
However, for each negative one (e.g. “Wohnzimmer”), I only get the following entries:
I think it might be related to your use of “device groups”, to work best with HABot the semantic model should normally be something like:
Group Location [<LocationTag>]
\
Group SubLocation [<LocationTag>]
\
Group Equipment [<EquipmentTag>] // represents a single equipment
\
Non-Group Point [<PointTag>, <PropertyTag>]
So:
You shouldn’t give groups Point or Property tags;
You can’t give both an Equipment and a Property tag to the same item (if you attach a Property tag it implies that the item is a Point, and it can’t be both an Equipment and a Point);
In your example the last 2 non-group items (LivingRoomWTHIsTemperature, LivingRoomWTHSetTemperature) should have Point & Property tags (["Measurement", "Temperature"] & ["Setpoint", "Temperature"]) and be direct members of either an Equipment group or a Location group.
An Equipment isn’t really directly controllable as far as HABot is concerned. Point/Properties are controllable. So you need to create an Equipment for the Desk Light as a Group and then add the actual Switch as a member of the Group with a Switch/Light pair of tags. Alternatively, you can tag that Desk Light Item with Switch/Light and make it a Point/Property directly on the Location.
The dimmer item has an “Equipment” Tag "Lightbulb and a Property Tag “Light”. No Point Tag (does it need one?).
The item is part of the groups with the locations.
I’m still not sure what is wrong here. Can you fix it for me?
This is the item and group definition.
Group gTradfri "Tradfri" <ikeatradfri> (gAll)
Group gGroundFloor "Ground Floor" <groundfloor> (gAll) ["GroundFloor"]
Group gGF_Office "Office" <office> (gGroundFloor) ["Office"]
Dimmer TRADFRIE14Schreibtisch_Brightness "Desk Light" <desklamp> (gTradfri,gGF_Office) ["Lightbulb","Light"] {channel="tradfri:0100:gwdcefcaba8de9:65558:brightness"}
Yes. Equipment doesn’t have Properties so that “Light” tag is simply ignored. Only Points with Properties can be controlled. The Locations and Equipment tell HABot what and where but the actual control needs to be a Point/Property.
In OH 3’s MainUI it won’t even let you set a Property tag on an Equipment.
As I said, your Dimmer Item needs to be tagged with a Point tag (e.g. Switch or Control) and a Property Tag (i.e. Light). Not an Equipment Tag.
You might need to add some synonyms to the Items to help it understand what you are referring to. I bet it will work using “turn off the desk light” and possible “turn off the desk light in the office”.
When I did a lot of stuff with HABot in OH 2.5 I had to create a lot of synonyms. I’ve not gone back in OH 3 to see how it works though. But it seems the synonyms are still needed. Queries like “light in the front room” and “lights” will show the Items as expected. But when I want to just command an Item I have to use the Item’s label as written.
For example if I enter
query
result
lights
a list of all the lights with toggles to control them
family room
a list of all the stuff in the family room including the lights
family room lights
a list of all the lights in the family room
lights in the family room
“I am sorry, I’ve got nothing on that.”
turn on the lights in the family room
“There doesn’t seem to be anything matching your query.”
turn on Family Room Lamp1 (the Item’s actual label)
successfully turns on the light
I think you need to add synonyms to your Items so that your office light is seen by HABot with that name in addition to the Item’s actual label.