1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- <oadr:oadrReportDescription xmlns:emix="http://docs.oasis-open.org/ns/emix/2011/06" xmlns:power="http://docs.oasis-open.org/ns/emix/2011/06/power">
- <ei:rID>{{ report_description.r_id }}</ei:rID>
- {% if report_description.report_subject and report_description.report_subject.end_device_asset.mrid %}
- <ei:reportSubject>
- <power:endDeviceAsset>
- <power:mrid>{{ report_description.report_subject.end_device_asset.mrid }}</power:mrid>
- </power:endDeviceAsset>
- </ei:reportSubject>
- {% endif %}
- {% if report_description.report_data_source %}
- <ei:reportDataSource>
- {% if report_description.report_data_source.emix_interfaces %}
- {% for emix_interface in target.emix_interface %}
- {% include 'parts/emixInterface.xml' %}
- {% endfor %}
- {% endif %}
- {% if report_description.report_data_source.group_id %}
- <ei:groupID>{{ report_description.report_data_source.group_id }}</ei:groupID>
- {% endif %}
- {% if report_description.report_data_source.group_name %}
- <ei:groupName>{{ report_description.report_data_source.group_name }}</ei:groupName>
- {% endif %}
- {% if report_description.report_data_source.resource_id %}
- <ei:resourceID>{{ report_description.report_data_source.resource_id }}</ei:resourceID>
- {% endif %}
- {% if report_description.report_data_source.ven_id %}
- <ei:venID>{{ report_description.report_data_source.ven_id }}</ei:venID>
- {% endif %}
- {% if report_description.report_data_source.party_id %}
- <ei:partyID>{{ report_description.report_data_source.party_id }}</ei:partyID>
- {% endif %}
- </ei:reportDataSource>
- {% endif %}
- <ei:reportType>{{ report_description.report_type }}</ei:reportType>
- {% include 'parts/reportDescriptionEmix.xml' %}
- <ei:readingType>{{ report_description.reading_type }}</ei:readingType>
- {% if report_description.market_context %}
- <emix:marketContext>{{ report_description.market_context }}</emix:marketContext>
- {% endif %}
- {% if report_description.sampling_rate %}
- <oadr:oadrSamplingRate>
- <oadr:oadrMinPeriod>{{ report_description.sampling_rate.min_period|timedeltaformat }}</oadr:oadrMinPeriod>
- <oadr:oadrMaxPeriod>{{ report_description.sampling_rate.max_period|timedeltaformat }}</oadr:oadrMaxPeriod>
- <oadr:oadrOnChange>{{ report_description.sampling_rate.on_change|booleanformat }}</oadr:oadrOnChange>
- </oadr:oadrSamplingRate>
- {% endif %}
- </oadr:oadrReportDescription>
|