Custom Home Assistant integration for X-Sense Home Security devices. This repository packages the newer upstream xsense Home Assistant work as a HACS-installable custom integration.
This is an initial HACS-ready slice. The component code is imported from Theo Snel's homeassistant-core xsense branch and uses python-xsense[async]==0.0.16 plus paho-mqtt==2.1.0.
Live validation with an X-Sense account and real devices is still required before treating this as production-ready.
The upstream library includes mappings for base station and sensor families such as:
SBS50base stationXS0B-MR,XS01-M,XS01-WX,XS03-WX,XS03-iWXsmoke alarmsXP0A-MR,XP02S-MR,SC07-WX,SC07-MRsmoke/CO alarmsXC01-M,XC04-WXCO alarmsXH02-Mheat alarmSWS51water leak sensorSTH0A,STH0B,STH51thermometer/hygrometer devices
Device support depends on what the X-Sense cloud API returns for your account.
Create a second X-Sense account for Home Assistant in the X-Sense Home Security app. From your primary account, share only supported devices to the second X-Sense account. Use that second account's email and password in Home Assistant.
This keeps Home Assistant automation access separate from your owner account and matches the setup model used by the prior community integration.
- In Home Assistant, open HACS.
- Add this repository as a custom repository with category
Integration. - Install
X-Sense Home Security. - Restart Home Assistant.
- Go to Settings > Devices & services > Add integration.
- Search for
X-Sense Home Security. - Enter the second X-Sense account credentials.
HACS updates also require a restart Home Assistant cycle before updated integration code is loaded.
Copy custom_components/xsense into your Home Assistant config directory:
/config/custom_components/xsense
Restart Home Assistant, then add the integration from Settings > Devices & services.
The imported integration includes binary_sensor, sensor, and button platforms. Expected entities include alarm state, connectivity, life-end status, mute/activation state, Wi-Fi diagnostics, CO, temperature, humidity, battery, RF level, and test button support where the device exposes those capabilities.
- Confirm login with current X-Sense credentials.
- Confirm device discovery for the user's actual devices.
- Confirm polling and MQTT update behavior in Home Assistant logs.
- Confirm entity availability after Home Assistant restart.
- Decide whether to publish as a public HACS repository after live testing.
Integration code baseline:
theosnel/homeassistant-core, branchxsense, pathhomeassistant/components/xsensetheosnel/python-xsense
This repo keeps the Apache-2.0 license inherited from Home Assistant Core.