-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Samsung SmartThings Arrival Sensor support #459
Comments
I discovered the existence of the networkmap feature : it keeps saying that my device is online, even though i pulled it's battery out. I guess i'm gonna have to return this sensor to Amazon soon unless i get some help figuring this out ? :) @Koenkk can you have a look ? |
@pixeye33 the sensors is probably working fine, my first guess is that it requires extra configuration to work. Could you share your |
@Koenkk i've created a clean docker instance only adding my sensor to make it easier to debug. here is the database.db file (with my unique ID edited) Device was on and did not move during the whole time (at least 5 min). For info it's supposed to send a packet every 30s. |
Can you try with the following added to {
zigbeeModel: ['tagv4'],
model: 'tagv4',
vendor: 'Samsung',
description: 'SmartThings arrival sensor',
supports: 'TODO',
fromZigbee: [],
toZigbee: [],
configure: (ieeeAddr, shepherd, coordinator, callback) => {
const device = shepherd.find(ieeeAddr, 1);
const actions = [
(cb) => device.report('genBinaryInput', 'presentValue', 10, 30, 1, cb),
];
execute(device, actions, callback);
},
}, |
Looks like we're making progress 👍 exactly every 30sec (as this device is supposed to do !) i got a log saying i've seen no new input in database.db |
Could you try with: cd node_modules
rm -rf zigbee-shepherd-converters
git clone https://github.com/Koenkk/zigbee-shepherd-converters.git -b F-ARR-US-2
cd zigbee-shepherd-converters
npm install -> Start zigbee2mqtt |
We are almost there 👍 i've got the presence mqtt messages (one each 30sec) : The logic to detect the device not being there is gonna be in Node-red for me (so i can change the delay for example). Some additional observations : |
btw, looks like the device sends battery info + can beep when reeving something. but i'm fine with partial support instead of none at all 👍 |
We also mock the |
Can you update and check if the battery is reported now (a warning no known converter should be displayed now); this can take up to one hour. |
i agree on the comment about the occupancy false for motion sensors. It makes sense to do this implementation the same way. about the battery : here is the output i got about the beeping feature if you wanna try something : |
Let's first focus on the battery, what kind of battery does this device contain? |
Its a CR2032 Coin with 3V. I use the same reporting for 4x EU-Lightyfy with My Voltage Converter:
|
I've made some updates, can you verify this:
|
Well i'm impressed : it mostly works 👍
battery inserted
notice how battery voltage is provided, but presence is still false (it does that every time battery is inserted), maybe presence should be set as true not matter what message is received ? (but it's also fine as it is)
when i pushed "{"beep": 5}"
when i pushed "{"beep": 20}"
funny how device seems to respond duration asked then duration-1 (it does not countdown more than this) : you could just respond with "beeping":true and ignore this second message ?
battery pulled out at 22:39:07
works perfectly ! 100 sec is a good default (a little above 3 messages not sent), occupancy_timeout default is 90 sec, that confused me at first.
3000 = 66% thanks for your awesome project, and for your time to integrate this device :) |
Re: "battery inserted" results Weird how you still get the "No converter available" message though. Re: battery percentage |
For the converter message just Insert |
Can you test? If everything is OK I can merge it. |
Hello, just noticed one last thing : when i started zigbee2mqtt i got a presence true mqtt message. Battery was pulled out. After that it should be OK to merge 👍 |
@pixeye33 currently there is no way to disable this. But it's hard to end up in this state right? Happens when the |
You're right this should not happen that often. presence: true should really be sent only if the device did as its kind a security device. |
* Support F-ARR-US-2. Koenkk/zigbee2mqtt#459 * STS-PRS-251 report battery. Koenkk/zigbee2mqtt#459 * Update STS_PRS_251. Koenkk/zigbee2mqtt#459 * Update. Koenkk/zigbee2mqtt#459 * Update fromZigbee.js * Update fromZigbee.js
merged thanks! |
* Support F-ARR-US-2. Koenkk/zigbee2mqtt#459 * STS-PRS-251 report battery. Koenkk/zigbee2mqtt#459 * Update STS_PRS_251. Koenkk/zigbee2mqtt#459 * Update. Koenkk/zigbee2mqtt#459 * Update fromZigbee.js * Update fromZigbee.js
Hello,
I just received a Samsung SmartThings Arrival Sensor and i've tried to add support for it without success...
I've followed the "How to support new devices" page and the issue is not related to me not being able to read :)
This device is kind of special : it doen't have any input/output i can interact with (except a reset button witch sends a "devLeaving"). And that's probably the reason why i can't follow the standard procedure.
As soon as the device is first paired i've got this :
zigbee2mqtt:debug 2018-10-8 17:38:56 Recieved zigbee message of type 'devInterview' with data '"0x24xxxxxxxxxxxxxx"' zigbee2mqtt:debug 2018-10-8 17:38:57 Recieved zigbee message of type 'devInterview' with data '"0x24xxxxxxxxxxxxxx"' zigbee2mqtt:debug 2018-10-8 17:39:01 Recieved zigbee message of type 'devInterview' with data '"0x24xxxxxxxxxxxxxx"' zigbee2mqtt:debug 2018-10-8 17:39:02 Recieved zigbee message of type 'devInterview' with data '"0x24xxxxxxxxxxxxxx"' zigbee2mqtt:debug 2018-10-8 17:39:02 Recieved zigbee message of type 'devInterview' with data '"0x24xxxxxxxxxxxxxx"' zigbee2mqtt:debug 2018-10-8 17:39:03 Recieved zigbee message of type 'devInterview' with data '"0x24xxxxxxxxxxxxxx"' zigbee2mqtt:debug 2018-10-8 17:39:03 Recieved zigbee message of type 'devIncoming' with data '"0x24xxxxxxxxxxxxxx"' of device 'tagv4' (0x24xxxxxxxxxxxxxx) zigbee2mqtt:debug 2018-10-8 17:39:03 Recieved zigbee message of type 'devStatus' with data '"online"' of device 'tagv4' (0x24xxxxxxxxxxxxxx)
and the device is paired fine :
zigbee2mqtt:info 2018-10-8 16:54:04 MQTT publish, topic: 'zigbee2mqtt/bridge/log', payload: '{"type":"device_connected","message":"0x24xxxxxxxxxxxxxx"}'
I can also remove it via the reset button :
zigbee2mqtt:debug 2018-10-8 17:38:14 Recieved zigbee message of type 'devLeaving' with data '"0x24xxxxxxxxxxxxxx"'
following that and the modification of devices.js to add tagv4 i've got no new message (even in debug mode)
My guess is that the devices only sends message of type devStatus (or something else) witch zigbee2mqtt chooses to ignore since the device is already paired.
I'm available to help debugging this if anyone wants to give it a try :)
The text was updated successfully, but these errors were encountered: