var template = `
Attribute Value
Entity ID {{response.entity_id}}
State {{response.state}}
Account Fetch Interval {{response.attributes.account_fetch_interval}}
Device Name {{response.attributes.device_name}}
Device Status {{response.attributes.device_status}}
Owner Fullname {{response.attributes.owner_fullname}}
Battery Status {{response.attributes.battery_status}}
Battery {{response.attributes.battery}}
Low Power Mode {{response.attributes.low_power_mode}}
Unit of Measurement {{response.attributes.unit_of_measurement}}
Device Class {{response.attributes.device_class}}
Icon {{response.attributes.icon}}
Friendly Name {{response.attributes.friendly_name}}
Last Changed {{response.last_changed}}
Last Reported {{response.last_reported}}
Last Updated {{response.last_updated}}
Context ID {{response.context.id}}
Context Parent ID {{response.context.parent_id}}
Context User ID {{response.context.user_id}}
`; function constructVisualizerPayload() { return { response: pm.response.json() } } pm.visualizer.set(template, constructVisualizerPayload());