Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


peejayw

1757 posts

Uber Geek


#311755 12-Feb-2024 10:14
Send private message quote this post

I am trying to use an Aqara Zigbee Vibration sensor to monitor a letterbox door opening.

 

LHA only exposes a vibration sensor, not the tilt sensor I need to use.

 

If I listen to zha_events I can see two events I could possibly use........

 

event_type: zha_event
data:
  device_ieee: 00:15:8d:00:09:d3:44:20
  unique_id: 00:15:8d:00:09:d3:44:20:1:0x0500
  device_id: b5f6a6803fe24e090ff5a333a71ca516
  endpoint_id: 1
  cluster_id: 1280
  command: current_orientation
  args:
    rawValueX: 111
    rawValueY: 64613
    rawValueZ: 146
    X: 0
    "Y": 90
    Z: 0
  params: {}
origin: LOCAL
time_fired: "2024-02-11T20:53:42.656317+00:00"
context:
  id: 01HPCZ4ZM01YP8X1W1SGA16A7X
  parent_id: null
  user_id: null

 

and

 

event_type: zha_event
data:
  device_ieee: 00:15:8d:00:09:d3:44:20
  unique_id: 00:15:8d:00:09:d3:44:20:1:0x0500
  device_id: b5f6a6803fe24e090ff5a333a71ca516
  endpoint_id: 1
  cluster_id: 1280
  command: Tilt
  args:
    degrees: 113
  params: {}
origin: LOCAL
time_fired: "2024-02-11T20:53:38.470496+00:00"
context:
  id: 01HPCZ4VH6JMDV6DZGMM5090XE
  parent_id: null
  user_id: null

 

In Automations I can select Manual Event as a trigger and then I have to provide Event Type and Event Data, this is where I am totally lost, what do I need to put in here?
Thanks.





 I'm supposed to respect my elders, but it's getting harder and harder for me to find one now.


Create new topic
allio
867 posts

Ultimate Geek


  #3194224 12-Feb-2024 10:32
Send private message quote this post

It's probably possible but what you're trying to do is the hardest task to accomplish in HA (in my experience). Unless you're an absolute regex whizz you really want to use states rather than events wherever possible.

 

Have you tried using zigbee2mqtt instead of ZHA? It looks like it will properly expose the tilt measurements as states. Then you can do a straightforward "angle of sensor X > Y" automation.


 
 
 

Free kids accounts - trade shares and funds (NZ, US) with Sharesies (affiliate link).
peejayw

1757 posts

Uber Geek


  #3194227 12-Feb-2024 10:37
Send private message quote this post

No I havent tried it, only ZHA. I have quite a few zigbee devices set up under ZHA, is it possible to install Z2MQTT alongside ZHA nad just use for this sensor? Then if everything looks good I could convert my other devices bit by bit.





 I'm supposed to respect my elders, but it's getting harder and harder for me to find one now.


allio
867 posts

Ultimate Geek


  #3194243 12-Feb-2024 11:16
Send private message quote this post

You certainly can't use them simultaneously unless you have two different coordinators. You'd have to fully disable ZHA before installing and using Z2M. But there shouldn't be any problem with doing that, and if Z2M doesn't solve your problem it would be easy enough to just reenable ZHA and be back where you were.

 

Just make sure you take a fresh backup before you start fiddling.




huckster
745 posts

Ultimate Geek

ID Verified
Lifetime subscriber

  #3194296 12-Feb-2024 12:33
Send private message quote this post

Reddit says there is a Device tilted automation trigger?


peejayw

1757 posts

Uber Geek


  #3194324 12-Feb-2024 13:57
Send private message quote this post

I assume in that example he is using z2mqtt because ZHA (at least for me) does not expose a tilt sensor, only a vibration sensor.





 I'm supposed to respect my elders, but it's getting harder and harder for me to find one now.


Create new topic





News and reviews »

One New Zealand Extends 3G Switch-off Date
Posted 11-Apr-2024 08:56


Amazon Echo Hub Review
Posted 10-Apr-2024 18:57


Epson Launches New Versatile A4 Desktop Scanners
Posted 10-Apr-2024 15:31


Motorola Mobility Launches New Android Phones in New Zealand
Posted 10-Apr-2024 14:59


Logitech G Unveils the PRO X 60 Gaming Keyboard
Posted 9-Apr-2024 19:01


Logitech Unveils Signature Slim Keyboard and Combo
Posted 9-Apr-2024 13:33


ExpressVPN Launches Aircove Go Portable Router With Built-in VPN
Posted 26-Mar-2024 21:25


Shure MoveMic Review
Posted 25-Mar-2024 12:47


reMarkable 2 Launches at JB Hi-Fi New Zealand
Posted 20-Mar-2024 08:36


Samsung Galaxy S24 Ultra review
Posted 19-Mar-2024 11:37


Google Nest Wifi Pro Review
Posted 16-Mar-2024 11:28


Samsung Galaxy A55 5G and Galaxy A35 5G
Posted 12-Mar-2024 12:41


Cricut EasyPress Mini Zen Blue launches at Spotlight New Zealand
Posted 12-Mar-2024 12:32


Logitech Introduces MX Brio Webcam
Posted 12-Mar-2024 12:24


HP Unveils Broadest Consumer Portfolio of AI-Enhanced Laptops
Posted 3-Mar-2024 18:09









Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.







Backblaze unlimited backup