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
eventIdrequiredstringUnique identifier for this event instanceeventTyperequiredstringEvent type in dot notation: device.action (e.g. door.opened, light.turned_on)timestamprequiredstring (ISO 8601)UTC time the event occurred on the devicestaterequiredobjectCurrent device state after the eventstate.previousContactoptionalstringState before this event — useful for transition-based automationsautomationoptionalobjectAutomation context — which rule fired and what actions were takensourceoptionalstringProtocol 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
One click loads this exact example into the tool — no copy-paste needed. Format it, validate it, explore the tree, or generate TypeScript types instantly.
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.