openHAB 5.0 Milestone discussion

@fibu-freak I have a few observations..

  1. In general you should try to follow the OH tagging schema

  2. The large part of your tags do seem to follow this schema. But there are a couple of errors e.g. ‘Point’ is not a tag but rather a CLASS of tag, neither is ‘Point_Control’ a tag. Furthermore sometimes you have applied an Equipment tag e.g. ‘SmokeDetector’ or ‘Window’ where perhaps you should apply (also) a point/property tag e.g. ‘Alarm’ / ‘Smoke’ resp. ‘Control’ / ‘OpenLevel’

  3. But finally – to pick up @Mherwege 's intimation – there are indeed a couple of tags that shifted from being Point tags to being Property tags; however @Mherwege it is not clear to me that this is the cause of the issue; surely the tags are treated as strings at this point? or are they being cast back to Java classes before the badges are applied?

  4. Just one thought: I see that in some cases you applied just a Property tag e.g. ‘VOC,’ or ‘AirQuality’ whereas in OH 5 we have added a rule that it is not allowed to have just a Property (object) tag without a Point (verb) tag. So in your cases they should probably become ‘Measurement’ / ‘VOC’, ‘Measurement’ / ‘AirQuality’ .. (or ‘Alarm’ / ‘VOC’ etc.) @Mherwege do we have a mechanism in OH core now that refuses such ‘naked’ Property tags? And if so, perhaps we should implement a log output on that? (Indeed maybe we did that already? => @fibu-freak can you please advise if you see such warnings in your logs?

As I’m no programmer it will take a while to understand the XML-Scheme, but I will try to learn :thinking: :innocent:
In my thinking “Point” was a placeholder for not defined properties, so I will have a look an that.

I do not quite understand what is meant.
“SmokeDetector” and “Window” are tags to declare an Equipment(with item-type Group) and that’s what a window-sensor or a smoke-detector is ??? or not ??? (also AirqualitySensor in OH5)

VOC or Airquality are new in OH5 and I implemented those tags in my OH4.3.5 SetUp so not to have any problems when upgrading .

In the problems I described here, Ididn’t find warnings in the log. I only observed that the badges are not anymore present in OH5.
I will give the properties “VOC and Co² and Airquality” a point-tag like “Measurement” and see what happens.

Thx in advance.

Cheers - Peter

I believe we need a list of all removed or renamed semantic tags and include that in the release notes
I don’t think we need the added tags as it will not break anything existing.
We also need to mention those that changed “type”.

1 Like

Can you post your upgraderecord json (located in userdata/jsondb/)? Note I don’t know whether there may be sensitive information there, so please take a look yourself before posting.

I like this idea and it will make it easier to spot problems.

@AndrewFG as you are the one who made all these changes, can you provide this list please?

You don’t need programming skills. You should just check that you use only tags which appear in the Point, Property, or Equipment tags lists in the schema file.

1 Like

Sure.

This was indeed allowed before.

They are Strings in core, but get interpreted in the UI. If the UI widgets relied on specific semantic tags to render certain elements, changes in these tags may have broken the rendering.

Jumping in here because I have the same problem with CO2 and open Blinds in M2 & M3:

This works:
image

This does not work (In my opinion correct setting?):
image

Card:
image

With the Blinds it is a bit different because I want to see inverted badge (blinds closed). For that I have customized it according that:

          config:
            badges:
              blinds:
                expression: Number.parseInt(state) > 0

Configuration:

Group Blinds:
image

And in Group:
image

This has worked in 4.x.x, in OH5 not anymore

These are the files listed in userdata/jsondb:

org.openhab.binding.systeminfo.internal.SystemInfoThingTypeProvider-ThingType.json
org.openhab.core.config.discovery.DiscoveryResult.json
org.openhab.core.items.Item.json
org.openhab.core.items.Metadata.json
org.openhab.core.persistence.PersistenceServiceConfiguration.json
org.openhab.core.thing.link.ItemChannelLink.json
org.openhab.core.thing.Thing.json
org.openhab.core.tools.UpgradeTool
org.openhab.core.transform.Transformation.json
org.openhab.jsonaddonservice.json
org.openhab.marketplace.json
StorageHandler.For.OAuthClientService.json
thing_status_storage.json
uicomponents_system_sitemap.json
uicomponents_ui_page.json
uicomponents_ui_widget.json
users.json

Which one is the one you are asking for?

Equipment Tags Added

AccentLight
AirConditioner
AirFilter
AirFryer
AirQualitySensor
AlarmDevice
AlarmZone
Application
Aquarium
AudioVisual
Bed
Button
CO2Sensor
COSensor
Chandelier
Chlorinator
CoffeeMaker
Computer
ContactSensor
ControlDevice
Cooktop
Dehumidifier
Dial
Display
Downlight
Drapes
DrinkingWater
EVSE
ElectricMeter
ExhaustFan
FireDetector
Firewall
FlameDetector
FloodLight
FloorHeating
FoodProcessor
Fryer
Furnace
GasMeter
Generator
GlassBreakDetector
HeatDetector
HeatPump
HeatRecovery
Horticulture
HotWaterFaucet
Humidifier
HumiditySensor
IceMaker
IlluminanceSensor
Irrigation
Jacuzzi
Keypad
Lamp
LeakSensor
LightSource
LightStrip
MediaPlayer
Microwave
Mixer
NetworkSwitch
OccupancySensor
Pendant
PetCare
PetFeeder
PetFlap
PoolCover
PoolHeater
PowerSupply
Printer
Printer3D
Range
Router
Sauna
Sconce
Shower
Slider
SmartVent
SoilSensor
SolarPanel
SpotLight
SwimmingPool
TemperatureSensor
Thermostat
Toaster
Tool
TrackLight
Tracker
TransferSwitch
UPS
Vehicle
VibrationSensor
WallLight
WaterFeature
WaterFilter
WaterHeater
WaterMeter
WaterQualitySensor
WaterSoftener
WeatherStation
Wellness
WindGenerator
WindowCovering
WirelessAccessPoint
Zone

Property Tags Added

AQI
AirQuality
Airconditioning
Airflow
App
Brightness
Channel
Color
Enabled
GeoLocation
Heating
Illuminance
Info
LowBattery
MediaControl
Mode
Moisture
Motion
OpenLevel
OpenState
Ozone
ParticulateMatter
Pollen
Position
Precipitation
Progress
QualityOfService
RSSI
Radon
SignalStrength
Speed
Tampered
Tilt
VOC
Ventilation

Point Tags Added

Calculation
Forecast

Tags Moved from Point to Property

LowBattery
OpenLevel
OpenState
Tampered
Tilt

1 Like

I guess nobody wrote a badge for CO2 yet?

This could be the result of moving OpenState from (wrongly) being a Point to (correctly) being a Property. Indeed it is a perfect example of why we had to move it (since Point.Control plus Point.OpenState is a syntactically forbidden combo).

1 Like

@Mherwege can you please why on earth one would/should allow Point.Point or Property.Point as a placeholder for anything? Either there is a valid tag applied or there isn’t..

I guess nobody wrote a badge for CO2 yet?

I mean this one (ppm):

And it worked in 4.x.x:

image

I didn’t know when I saw it first in a thread here, but you can find it in the location-card docs

I believe Point, Equipment and Location were considered valid tags before, to classify them as one of these without being more specific. I am in doubt about the usefulness, but I believe these then did show up int the automatic widgets on the Locations/Equipment/Points tabs. Property does not have relevance in this context.

I have made several tests with the badges (open window and co²).

First a cutout of my semantic model (Büro/Arbeitszimmer) where the Equipments (Smokedetector and Window) are used.
snapshot semantic model

Now the two Window-Sensors with open windows but no Badge in the Location card. I used one with and on without the Point “Measurement”
window north
window east

When using the tag “CO²” the Item isn’t shown in the semantic model !!!

And again the Location Card with no Badges
location-Card

Only the combination OpenState/Alarm works, but not as expected in this case.
openstate_alarm

Hope my information can help a bit.
Cheers - Peter

@AndrewFG : no tags were removed? Even locations?

This change might be the problem for the UI, IIRC the code correctly, it depends on the type of the semantic tag as well.
This needs to be checked, can you please create an UI issue?