Announcement

Collapse
No announcement yet.

new alarm device on xiaomi aquara motion sensor

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • MattL0
    replied
    Good news!!! First time i like errors logs

    Apr-14 17:32:15 JowiHue Warning: Or remove the devices belonging to this sensor
    Apr-14 17:32:15 JowiHue Warning: Did you remove a sensor from the bridge but left the HomeSeer devices? Re-add the sensor to the bridge and your events are save
    Apr-14 17:32:15 JowiHue Warning: Orphaned Sensor Bathroom shelve motion (526) found, not found on any connected bridge
    Apr-14 17:32:15 JowiHue Warning: Or remove the devices belonging to this sensor
    Apr-14 17:32:15 JowiHue Warning: Did you remove a sensor from the bridge but left the HomeSeer devices? Re-add the sensor to the bridge and your events are save
    Apr-14 17:32:15 JowiHue Warning: Orphaned Sensor Xiaomi motion bedroom closet (516) found, not found on any connected bridge
    Apr-14 17:32:15 JowiHue Warning: Or remove the devices belonging to this sensor
    Apr-14 17:32:15 JowiHue Warning: Did you remove a sensor from the bridge but left the HomeSeer devices? Re-add the sensor to the bridge and your events are save
    Apr-14 17:32:15 JowiHue Warning: Orphaned Sensor Bedroom xiaomi wall motion (515) found, not found on any connected bridge
    Apr-14 17:32:15 JowiHue Warning: Or remove the devices belonging to this sensor
    This mean, no more alarm sensor Devices



    *****Just updated deconz to V63*****

    Leave a comment:


  • w.vuyk
    replied
    Don't worry about the lastupdated field, it is only used by the plugin to check if there has been a change. The last change time of the HS3 device is what you should check and this works fine. the plugin thakes care of that.

    I am hoping the extra alarm device will disappear, it has been there for quite some time already (4 months here I believe, and lastupdated stays at 'none' for that is there are no updates.

    Leave a comment:


  • MattL0
    replied
    The alarm sensors issue should be fixed in DeCONZ v.61
    Attached Files

    Leave a comment:


  • MattL0
    replied
    I tried a get request to : MY_IP/api/my_app_KEY/sensors with postman.

    the response still has the wrong time. So this is not a jowihue issue :

    "name": "hue bedroom motion",
    "state": {
    "dark": true,
    "daylight": false,
    "lastupdated": "2019-03-06T08:46:04",
    "lightlevel": 0,
    "lux": 0
    },
    "swversion": "6.1.0.18912",
    "type": "ZHALightLevel",


    I submitted a question to deconz github : https://github.com/dresden-elektroni...in/issues/1327


    edit :

    from this http://dresden-elektronik.github.io/...doc/schedules/

    it seems that the schedule function of deconz use the UTC time format. So I do not know why jowihue get the "lastupdated" from the sensors...?Maybe it is just useful for the author of this plugin , but meaningless for the user?

    Leave a comment:


  • MattL0
    replied
    here is what the deconz rest api return now, after rebooting my server( I removed useless data) :

    Code:
    {
        "UTC": "2019-03-06T08:30:35",
    
    
    
        },
    
        "linkbutton": false,
        "localtime": "2019-03-06T03:30:35",
    
    
    
    
    
        },
        "timeformat": "24h",
        "timezone": "America/Montreal",
    
    }

    And here is what i get from a jowi sensor that the status has been updated:

    Code:
    **************************** Object info *****************************
    {
    "state": {
    "presence": false,
    "lastupdated": "2019-03-06T08:25:30"
    },
    "config": {
    "on": true,
    "battery": 100,
    "duration": 115,
    "reachable": true
    },
    "name": "Bedroom poll xiaomi wall motion",
    "type": "ZHAPresence",
    "modelid": "lumi.sensor_motion.aq2",
    "manufacturername": "LUMI",
    "swversion": "20170627",
    "uniqueid": "00:15:8d:00:02:f8:d8:16-01-0406",
    "ep": 1,
    "etag": "94739329b4361bf8d144e58727a5a0a4"
    }
    ************************* End Object info ***************************
    Even if deconz had the wrong timezone ( now it is the good one), jowihue still has the wrong time for the ''lastupdated' ( the same time as the UTC variable in the json response from deconz api ).

    I do not know why ''localtime'' is not used

    Leave a comment:


  • MattL0
    replied
    ok was able to change the locale time to

    {
    "timezone": "America/Montreal"
    }

    with this via postman

    http://dresden-elektronik.github.io/...configuration/

    I do not know if it will change something

    Leave a comment:


  • bdickhaus
    replied
    The json that the JowiHue plugin displays is the raw data from the deCONZ REST api, that is where the date/time come from. I looked at mine and the time is GMT.

    I have two of the motion sensors without the aq2, and one with. None of them have an alarm device defined.

    So I played around in the deCONZ gui with reading the individual items in the Basic cluster for the aq2 sensor. And I think it was software build that triggered a change, and the alarm device got added. So it looks like deCONZ is not always discovering all of the Basic cluster information, but when it does, it creates an alarm device.

    Leave a comment:


  • MattL0
    replied
    So...since phoscon is just a getting data from deconz.

    This is a deconz or a jowihue plugin issue.

    Leave a comment:


  • MattL0
    replied
    yes that's weird.

    i checked my locale on my server , it is good . Same thing in phoscon.

    Code:
    locale
    LANG=en_CA.UTF-8
    LANGUAGE=
    LC_CTYPE="en_CA.UTF-8"
    LC_NUMERIC="en_CA.UTF-8"
    LC_TIME="en_CA.UTF-8"
    LC_COLLATE="en_CA.UTF-8"
    LC_MONETARY="en_CA.UTF-8"
    LC_MESSAGES="en_CA.UTF-8"
    LC_PAPER="en_CA.UTF-8"
    LC_NAME="en_CA.UTF-8"
    LC_ADDRESS="en_CA.UTF-8"
    LC_TELEPHONE="en_CA.UTF-8"
    LC_MEASUREMENT="en_CA.UTF-8"
    LC_IDENTIFICATION="en_CA.UTF-8"
    LC_ALL=
    Code:
    xxxx@Automation:~# cat /etc/timezone
    America/Toronto
    Attached Files

    Leave a comment:


  • langenet
    replied


    The thing that gets me is the lastupdated value in the json above. Your's is reporting "lastupdated": "2019-03-05T22:19:15". Seeing as you're in Montreal (same time zone) as I am, this doesn't seem to line up correctly.

    Like you, I have some reporting via the plugin in the future. For example below. The current time is 2019-02-05 19:26. Phoscon is reporting correctly, but the plugin is not.
    As well, I only have 2 out of 5 leak sensors reporting battery correctly. It's not March 6th yet...
    Last update: 2019-03-06T00:20:10

    Leave a comment:


  • MattL0
    replied
    Code:
     
    ZHAPresence **************************** Object info ***************************** { "state": { "presence": false, "lastupdated": "2019-03-05T22:42:50" }, "config": { "on": true, "battery": 100, "duration": 90, "reachable": true }, "name": "Xiaomi bed motion ceiling left", "type": "ZHAPresence", "modelid": "lumi.sensor_motion.aq2", "manufacturername": "LUMI", "swversion": "20170627", "uniqueid": "00:15:8d:00:02:e2:77:4f-01-0406", "ep": 1, "etag": "6d4d32da9f8aa926c1b42d71a42d2767" } ************************* End Object info ***************************
    ZHALightLevel **************************** Object info ***************************** { "state": { "daylight": false, "lastupdated": "2019-03-05T22:41:20", "lightlevel": 4772, "dark": true, "lux": 3 }, "config": { "on": false, "battery": 100, "reachable": true, "tholddark": 12000, "tholdoffset": 7000 }, "name": "Xiaomi bed motion ceiling left", "type": "ZHALightLevel", "modelid": "lumi.sensor_motion.aq2", "manufacturername": "LUMI", "swversion": "20170627", "uniqueid": "00:15:8d:00:02:e2:77:4f-01-0400", "ep": 1, "etag": "6d4d32da9f8aa926c1b42d71a42d2767" } ************************* End Object info ***************************
    ZHAAlarm **************************** Object info ***************************** { "state": { "lastupdated": "none" }, "config": { "on": false, "battery": 100, "reachable": true }, "name": "Xiaomi bed motion ceiling left", "type": "ZHAAlarm", "modelid": "lumi.sensor_motion.aq2", "manufacturername": "LUMI", "swversion": "20170627", "uniqueid": "00:15:8d:00:02:e2:77:4f-01-0500", "ep": 1, "etag": "cbb991057596514babeb0ce34eccc610" } ************************* End Object info ***************************

    And this is the sensors without the alarm device

    Code:
     
    ZHAPresence **************************** Object info ***************************** { "state": { "presence": false, "lastupdated": "2019-03-05T22:19:15" }, "config": { "on": true, "battery": 100, "duration": 90, "reachable": true }, "name": "Stair motion xiaomi", "type": "ZHAPresence", "modelid": "lumi.sensor_motion.aq2", "manufacturername": "LUMI", "swversion": "20170627", "uniqueid": "00:15:8d:00:02:f8:d7:ff-01-0406", "ep": 1, "etag": "d812f8fa6819bfa4a64e8510a8d3267f" } ************************* End Object info ***************************
    ZHALightLevel **************************** Object info ***************************** { "state": { "daylight": false, "lastupdated": "2019-03-05T22:19:15", "lightlevel": 0, "dark": true, "lux": 0 }, "config": { "on": false, "battery": 100, "reachable": true, "tholddark": 12000, "tholdoffset": 7000 }, "name": "Stair motion xiaomi light", "type": "ZHALightLevel", "modelid": "lumi.sensor_motion.aq2", "manufacturername": "LUMI", "swversion": "20170627", "uniqueid": "00:15:8d:00:02:f8:d7:ff-01-0400", "ep": 1, "etag": "d812f8fa6819bfa4a64e8510a8d3267f" } ************************* End Object info ***************************

    Leave a comment:


  • MattL0
    replied
    I have added 3 aqara motion sensors yesterday.

    " of them have an alarm device, and one doesn't .

    Attached Files

    Leave a comment:


  • MattL0
    replied
    log sent !

    Leave a comment:


  • MattL0
    replied
    Originally posted by w.vuyk View Post
    Mattlau,

    I wonder what the conditions are to do this.... removed here all battery devices adn restarted the plugin... all battery devices are created, but no doubles at all
    And for you, lots of doubles.... could it be because you are on Linux? Is that maybe why I cannot find it?

    Could you do this once more (sorry!) delete battery devices and switch on detailed tracing to file (before restarting) so I can have the trace and check? You still have my mail address I think?

    Thanks,


    Wim
    do i remove the alarms devices too?

    Leave a comment:


  • w.vuyk
    replied
    Mattlau,

    I wonder what the conditions are to do this.... removed here all battery devices adn restarted the plugin... all battery devices are created, but no doubles at all
    And for you, lots of doubles.... could it be because you are on Linux? Is that maybe why I cannot find it?

    Could you do this once more (sorry!) delete battery devices and switch on detailed tracing to file (before restarting) so I can have the trace and check? You still have my mail address I think?

    Thanks,


    Wim

    Leave a comment:

Working...
X