init(timestamp:measurement:session:device:)
Creates an electric HVAC load event.
Declaration
init(timestamp: Date, measurement: ElectricHVACLoadEvent.ElectricalMeasurement, session: ElectricHVACLoadEvent.Session, device: ElectricalLoadDevice)Parameters
- timestamp:
The time when the event occurs.
- measurement:
The electricity consumption of the device.
- session:
The session information.
- device:
The device identifier created with Electricalloaddevice.