Skip to content

Unit fuel meters#2138

Open
joseph-robertson wants to merge 55 commits intoext-lights-elec-equipfrom
unit-fuel-meters
Open

Unit fuel meters#2138
joseph-robertson wants to merge 55 commits intoext-lights-elec-equipfrom
unit-fuel-meters

Conversation

@joseph-robertson
Copy link
Collaborator

@joseph-robertson joseph-robertson commented Jan 7, 2026

Pull Request Description

Addresses #1499. Adds custom meters to calculate energy use for each dwelling unit.

Checklist

Not all may apply:

  • Schematron validator (EPvalidator.sch) has been updated
  • Sample files have been added/updated (openstudio tasks.rb update_hpxmls)
  • Tests have been added/updated (e.g., HPXMLtoOpenStudio/tests/test*.rb and/or workflow/tests/test*.rb)
  • Documentation has been updated
  • Changelog has been updated
  • openstudio tasks.rb update_measures has been run
  • No unexpected changes to simulation results of sample files

@joseph-robertson joseph-robertson changed the base branch from master to battery-resilience-refactor January 13, 2026 20:00
@joseph-robertson joseph-robertson marked this pull request as ready for review February 6, 2026 19:13
…HPXML into unit-fuel-meters

# Conflicts:
#	HPXMLtoOpenStudio/measure.xml
Copy link
Contributor

@shorowit shorowit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Starting to poke around. I haven't reviewed everything yet, but here are some relatively minor initial thoughts/suggestions.

Copy link
Contributor

@shorowit shorowit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job addressing my previous comments. I made my way through the rest of the code changes, this is looking awfully good -- though I don't really understand some of the logic in the create_custom_unit_meters method (see comment below about walking through together).

Comment on lines 1581 to 1591
# The "output variables" returned by get_object_outputs_by_key for interior/exterior lights are actually meter names.
# Meter name "interior lighting:InteriorLights:Electricity", e.g., includes all "UNITX_INTERIOR_LIGHTING:Lights Electricity Energy".
#
# FIXME: We *could*, alternatively, switch to zone level (e.g., "interior lighting:InteriorLights:Electricity:Zone:UNIT1_CONDITIONED_SPACE")
# like we already use for InteriorEquipment (e.g., "misc plug loads:InteriorEquipment:Electricity:Zone:UNIT1_CONDITIONED_SPACE").
if output_var.include? 'InteriorLights:Electricity'
output_var = 'Lights Electricity Energy'
end
if output_var.include? 'ExteriorLights:Electricity'
output_var = 'Exterior Lights Electricity Energy'
end
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@shorowit Does this help to clarify #2138 (comment)?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This gets removed in ccbf802.

@joseph-robertson joseph-robertson changed the base branch from master to ext-lights-elec-equip February 16, 2026 17:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In progress

Development

Successfully merging this pull request may close these issues.

2 participants

Comments