Migrating to Haystack 4

The Haystack 4 tag dictionary contains an action that adds Haystack 4 equivalents for Haystack 3 tags, tag groups, and relations. The Haystack 3 items are not removed. The equivalent tags and relations are mostly copies of the Haystack 3 versions with the distinction of the Haystack 4 h4 namespace. To see the required item modifications, see “Changes3to4 – Project Haystack” at https:// project-haystack.org/doc/docHaystack/Changes3to4.

These modifications are captured in a configuration file packaged with the haystack-rt module.

Tag groups

There are no exact equivalents for Haystack 3 tag groups. Some require only an additional “point” tag such as the Haystack 3 dischargeAirTempSensor group that results in adding the Haystack 4 proto dischargeAirTempSensorPoint. Others require an explicit mapping such as energyNetSensor to totalNetAcElecActiveEnergySensorPoint. Some Haystack 3 tag groups, such as steamEnteringFlowSensor, cannot be mapped and Haystack 4 equivalent tags are added for those tag group tags.

Value tags are not included in Haystack 4 tag groups. Therefore as an example, the voltAnglePhaseSensorAB tag is equivalent to the acElecVoltAngleSensorPoint tag plus a “phase” tag set to “AB”.