IoT & Sensors
Smart Home Event JSON Example
A JSON example for a smart home device event — covers door sensors, thermostats, and smart lights with device state, trigger source, and automation metadata.
Field Reference
eventIdstringrequiredUnique identifier for this event instanceeventTypestringrequiredEvent type in dot notation: device.action (e.g. door.opened, light.turned_on)timestampstring (ISO 8601)requiredUTC time the event occurred on the devicestateobjectrequiredCurrent device state after the eventstate.previousContactstringoptionalState before this event — useful for transition-based automationsautomationobjectoptionalAutomation context — which rule fired and what actions were takensourcestringoptionalProtocol the device uses: zigbee, z-wave, wifi, matter, bluetoothVariants
Thermostat ChangedThermostat setpoint changed by the user.
Common Use Cases
- →Triggering webhook notifications to a home automation hub (Home Assistant, Hubitat)
- →Storing device state history in a time-series database
- →Building conditional automation rules based on device state transitions
smart-homeioteventautomationwebhook
Validate or format this JSON
Paste the example above into JSONKit's tools to validate, minify, or explore the structure interactively.
Frequently Asked Questions
Related JSON Examples
IoT & SensorsIoT Device TelemetrySensor readings from an IoT device with GPS, battery, and environmental metrics.API DesignWebhook EventWebhook event envelope with type, resource object, and retry metadata.ContentPush NotificationPush notification with title, body, deep-link data, and platform-specific options.