So I have the vibration sensor now, and it detects tilt/vibration/drop and reports through a single action payload. As well as this it sends details on 3 axis rotation. The payload is this.
- Code: Select all
{"battery":100,"voltage":3095,"linkquality":99,"angle":77,"angle_x":3,"angle_y":0,"angle_z":87,"angle_x_absolute":87,"angle_y_absolute":90,"strength":72,"action":"vibration"}
"action" can take value of vibration or tilt or drop. It takes a few minutes for the action payload to be cleared after vibration is sent. However on drop and tit, the message with blank action payload is sent immediately.
What I cant seem to do is trigger a generic sensor to turn on if the action changes. I have tried generic and motion, and putting On Value as either vibration or "vibration" with payload key as action.
Does this still expect boolean? Is it possible to just build a trigger on the change in the payload? I guess I dont really need a sensor device change for this, I think what I really want to do is trigger a notification? Its unlikely that anyone is going to be watching the device as one of the actions occurs.
Cheers