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

Hello Theo,

first, lots of Thanks for your great work!

Since 1.0.10 the integration won’t start anymore.
I am running on HA 2024.10.1 on a HA green.
Core: 2024.10.1
Supervisor: 2024.10
Operating System: 13.1
Frontend: 20241002.2

The log is showing the following messages:

Any advise how to fix that?

Thanks and best regards,
Stegi

Also got the same error. I checked all my HACS-addons and none had a conflicting requirement in the manifest. Since I am using lot of other add-ons (Zigbee2mqtt, ESPHome, …), perhaps they can also cause that conflict?

Thanks for working on this, much appreciated!

I was getting the same. I tried restarting Home Assistant, but it didn’t solve the issue. I tried removing the X-sense integration altogether from HACS and reinstalling, but when I attempt to add my X-sense account, I get this error message before I can even enter my login info:

Config flow could not be loaded: 500 Internal Server Error Server got itself in trouble

I am also now having issues with a few other integrations: Plex, SABNZBD, and TrueNAS, so perhaps the latest HA update broke something.

Thanks for your work on this, @theosnel and team!

I updated 1.0.10, it should be work now. there was a little mistake in the manifest.json

1 Like

Hi Stegerius,
I mixed up the versions, Home assistant is still on paho-mqtt 1.6.1. Jarnsen has fixed the issue. Can you try if it works now?

1 Like

@lala337 , @kybandy Did it fix the issue for you as well or is there another problem?
Do you see anything in the logs?

I can confirm that it works. temp and humidity values are updated automatically

1 Like

one question, what is with the alarm? is the alarm directly? it´s shown in HA? i ask, because i can not test it yet.

@theosnel can you explain what things are canged with the new MQTT-support?

For now the goal was to have a stable connection and to keep asking for updates for the temperature-sensors.
Now I’ll have to check if it stays stable for a longer period of time. It looks like that the MQTT server will disconnect the client after 24 hours. If everything is working as it should, the client will reconnect automatically.

I’m currently not sure what happens to other devices when an update is received with mqtt. It will to update the internal state. It could work, but haven’t tested anything yet

Did a quick check with the water-sensor, that seems to work properly:

OK, so it is currently being updated when a temperature or humidity sensor is updated. If I have understood that correctly. I am excited to see what happens next. A test alarm triggered via the app is not displayed in HA. But that could also be because I don’t have a temperature sensor. As I said, I am excited to see the next steps. I am eagerly awaiting the activation of the alarm via HA and the integration of the camera.

X-Sense Issue in Integration for Home Assistant

Hi,

here my configuration:

2 of the X-Sense SC07-WX (Single wifi Carbon Monoxide sensor) connected via WiFi in my Network.

2nd User in x-Sense App does exist for Home Assistant.

X-Sense Integration 1.0.7 for Home Assistant (from GitHub - Elwinmage/ha-xsense-component: Home assistant component for X-sense devices).

Installed step by step as described in

The configuration can not be initialized in Home Assistant and I always get the following notice in Home Assistant:

„…

XSense Account

Keine Geräte oder Entitäten

Einrichtung fehlgeschlagen, wird erneut versucht: XSense API Issue: Unable to retrieve station data: 404/{“message”:“No shadow exists with name: ‘SC07-WXEN3C1A37~info_EN3C1A37’”,“traceId”:"79c844e7-473e-caf4-eea8-

…“

I saw, that X-Sense Integration 1.0.8 for Home Assistant exist.

But I don‘t know how to get this Version.

I always get automatically 1.0.7.

Does X-Sense Integration 1.0.8 solve the issue (See description above)?

Thanks a lot for your help.

Best regards

Version 1.0.10 is the newest one, pls use my repo.

I still have some issues after 24 hours. Now running with extra debugging. Hopefully I can pinpoint the issue quickly. But it is quite annoying that I have to wait 24 hours each time.

THANK YOU VERY MUCH

Works fine
Both SC07-WX were recognized and initialized in Home Assistant

Again, THANK YOU VERY MUCH !!!

1 Like

Hi new to the forum, great that X=Sense is now being supported. I did have the integration working with an XS01-WX and then added an XC04-WX today at which point I’m now getting the failed inilistation will retry message.

This appears to be linked to a shadow request error with XC04

I can see this is all work in progress so will keep an eye out to see if it works again soon. Keep up the good work :slight_smile:

i updated the README, if you like, please check it out.

Is it ok so?

1 Like

I just updates the integration and it work fine now.
Thanks a lot!

Update to My Video: “Home Assistant: Guide to Using X-Sense Security with Home Assistant”

:link: Watch the Video Here: https://youtu.be/3CCKK-qX-YA

Hello everyone,

I’m excited to share an update on my video “Home Assistant: Guide to Using X-Sense Security with Home Assistant”!

What’s New:

  • Multilingual Subtitles: The video now includes subtitles in English, Dutch, French, and Simplified Chinese to reach a wider audience.
  • Multilingual README: The README of the HACS Repo is now available in multiple languages, making it easier for you to follow the guide in your preferred language.
  • Supported Devices: A comprehensive list of supported X-Sense devices is detailed in both the video and the description.

Links:

Why Test:

  • Repo and Video: I encourage you to try out the integration yourself and share your feedback! Your input helps improve both the guide and the components.
  • New Features: Explore the enhanced functionalities of the X-Sense integration with Home Assistant and see how they can make your home smarter and safer.

Chapter Overview in the Video:
00:00 Intro + Disclaimer
00:19 What is X-Sense Security
01:48 X-Sense App Preparation
03:10 Repository
04:37 Installation with HACS
06:07 Installation of the Integration
07:03 Display in Home Assistant
08:16 Something Personal
08:39 Summary
09:23 Outro

Why It’s Important:

By providing multilingual subtitles and a multilingual README, I aim to ensure that everyone, regardless of their preferred language, can benefit from the content. Whether you’re new to Home Assistant or already have experience, these translations are designed to make integrating X-Sense security products easier and more accessible.

How You Can Help:

  • Subscribe: If you find the video helpful and want to stay updated with more tutorials and smart home integration tips, please subscribe to my channel.
  • Like: A thumbs up helps increase the video’s visibility.
  • Feedback: Your feedback is invaluable! Let me know how you like the translations and if there are additional languages you’d like to see.

Thank you for your support and enjoy setting up your X-Sense security products with Home Assistant!

Best regards,

Jarnsen

2 Likes

Just released a new version of the python-xsense module and the home assistant-component. I’ve asked Jarnsen to update the hacs module.

MQTT should now be stable and always be connected (the connection is closed after 24 hours, but will reconnect immediately)
Buttons are added to test the sensors. No feedback in home assistant yet, but the alarms will sound.
The library now has a list of all devices which keeps track of all the actions that are supported for that device and what kind of device it is. We can use that later to customize the alarm-entity in home-assistant. (what @MacPurschi asked)
Stations and stand-alone devices show if there is a connection to MQTT for realtime updates.

There are probably some new bugs, but it is another step forward.

Theo

3 Likes