X-Sense Security - is it possible to create an integration?

Just created an account to say thanks!

Today I received my X-Sense base station with smoke alarms, and it works prefectly from within Home Assistant. Thank you very much again. Have a nice weekend!

2 Likes

New goodies have arrived, sponsored by my company.

3 Likes

:heart::+1:t2::heart:very good

I’m in the market for a security cam as well. If you can give some more information about his one, I might be buying a x-sense one…

and I just came here to see if the Home Security System was supported

Side comment - they need to work their bundles
I already own the SBS050 base station but its cheaper to buy the bundle with ANOTHER base station than buy the components themselves

Hi Theo, Can I ask do you plan on supporting these for HA? Hoping to buy some security system over the next couple of days, will appreciate your response?

Hi there, i Found this brilliant integration and i was wondering if i could use my smoke detectors for the alarm of home assistant.
I think i can kind of mcgyver with all test buttons and some time delays, but was hoping for a more clean and easy way to do this.
Thanks in advance

Btw i have the sbs50 base station and 6 XS01-M detectors

@theosnel is Working on it, i also Hope it will be come. But there is no realy Button for the alarm :rotating_light:, Its al Little Bit tricky.

hi all,

I started with the security cam, but that is quite complicated. I have to learn webrtc first and figure out how to include that in Home Assistant. There is a plugin for webRTC, which might be reused or can act as inspiration.
At least I have all the access-tokens I need. Maybe I should start with things like movement-detection.

I haven’t started with the alarm yet, but I think that should be easier to implement. My first impression was that it uses the protocol that is already supported, just have to figure out which api’s to implement.
I’m not yet sure how to integrate it with Home Assistant, it has an alarm panel, but don’t know yet which other integration options are available.
The easiest solution would be the same as the smoke-sensors, just some states, events and a few buttons to toggle the alarm. Maybe that would be a good starting point for the alarm.

I also would really like to use the smoke-alarms as an alarm, because they are so loud. But I’m not sure if that is possible. I’m currently only emulating the app, so all things that are possible in the app should be possible to implement.
Maybe if we are able to emulate an extra fake smoke sensor, which then sends a signal to the base-station that a fire is detected. Or maybe it is possible to override some values in the status of an existing sensor to force an alarm. I don’t know yet, but it will be a lot trial and error.

Would it be possible for someone to test if it is possible to link wifi-devices with other devices so they all give an alarm if smoke is detected?

3 Likes

Hello,
i am using the python-xsense module for my integration. However i am still having the issue with my STH51 devices not getting updated data if not after opening the app on the phone.

api = XSense()
api.init()
api.login(config.xsense_username, security.decrypt(config.xsense_password))
api.load_all()
for _, h in api.houses.items():
for _, s in h.stations.items():
try:
api.get_station_state(s)
api.get_state(s)
except APIFailure as e:
print(f’ERROR: {e}')
return api

Am i doing something wrong ?

Would it be possible to find somewhere some instruction in how to use the mqtt for realtime updates ? that would make my life 1000 times easier :slight_smile:

did you install it the latest as a HACS integration in HA? then it will work.

Got that thank you. I was more intersted in the issue like: It doesn't return latest data · Issue #7 · theosnel/python-xsense · GitHub
for the usage of the python-xsense outside of the HACS

However it does not seems to be updating for me.

It took a while but it started working. However i noticed that if i remove the batteries from the TEMP sensor it takes almost 1 hr for the hub to understand the device is offline. Is there any solution for this? like requesting the hub to verify connection to all devices on demand ?

Hi there,

First of all, thanks for the good work.

I’ve been struggeling to get my HA to run consitantly and I’m not entirely sure yet, but sometimes it seems to crash because of xsense. I’ll have to dive into the logs a bit more in order to be sure of it. If I have more info I’ll let you guys know.

I do seem to have a weird problem though. I’m unable to update through HACS?

If I try to update through settings it says: Failed to perform the action update/install. The version be0ba7b for this integration can not be used with HACS.

If I try to redownload via HACS itself, first it says Commit be0ba7b will be downloaded, but then when I click download it says The version be0ba7b for this integration can not be used with HACS..

Any idea how to solve this? I read a few posts earlier that somebody had the same issue, removed the entire integration and then redownloaded it? But I can imagine this should not be happening at all?

Please let me know.

Ps.
Running on a Pi5. As we speak from a SD/NVMe combi, but I’ll soon switch to 100% NVMe as I have a feeling my SD is broken.

Edit:
So apparantly I was running on a different xsense repository (GitHub - Elwinmage/ha-xsense-component: Home assistant component for X-sense devices). It worked till a couple of days ago, therefore I never quite noticed. So I removed that one and added the correct one. This at least fixed the update problem.

How far did you get with the camera? Will it be possible to access the stream locally? I have the same camera, but so far I haven’t found an open port (tried with nmap) that would allow ONVIF or RTSP.

Hello,
installed this set https://www.amazon.de/dp/B0BMQ52BC8?ref=ppx_yo2ov_dt_b_fed_asin_title today with the app and also made the integration to Home Assistant. Now i will combine the XS01-M with the ALARMO integration. My question is: I can not found the trigger for enable the Alarm when “Alarm ist ausgelöst”. Just the Button for Testing I can find.
Who can help me . Thank you. Oliver

.

Hi, I am the proud owner of XS0B-MR smoke alarms and have been able to integrate them into Home Assistant with your great work.

The thing is that I don’t have a test button within Home Assistant and when I press the Test button on one of the smoke alarms itself, I don’t see any status changes.

Does this sound familiar to anybody?

It’s working in the app (I receive notifications on my phone). I am using a second account for Home Assistant and am using v1.0.13 of the X-Sense integration and I am using the last stable version of Home Assistant

I did have a test button for the XS01-M. It seems there is a bug though - after adding the Heat Detector XHO2-M and CO/Smoke Combined detector SC07-MR, it is now greyed out and no longer provided by the integration.

Can a test button also be added for the XHO2-M and SC07-MR?