JonasPed

Untitled

Jul 29th, 2021 (edited)
150
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. template:
  2.   - trigger:
  3.     - platform: event
  4.       event_type: "MY_EVENT"
  5.     sensor:
  6.         - name: "Test Name"
  7.           state: "{{ trigger.event.data.args[0].strength }} "
  8.  
  9. {
  10.     "event_type": "MY_EVENT",
  11.     "data": {
  12.         "args": [
  13.             {
  14.                 "strength": 16
  15.             }
  16.         ],
  17.         "other_value": 289
  18.     },
  19.     "origin": "REMOTE",
  20.     "time_fired": "2021-07-29T13:04:51.531943+00:00",
  21.     "context": {
  22.         "id": "dc2aa96aca162aea466f9375d99c74d1",
  23.         "parent_id": null,
  24.         "user_id": "9183bd9494d04367bfeb4b6fcf686564"
  25.     }
  26. }
  27.  
RAW Paste Data