Comments (3)
cc @andr3a88
from ha-econnect-alarm.
Reopening the issue as the "Unavailable" state has been fixed in #150, but automations are still triggered when the reconnection happens. In that case, we have the following situation:
State -> Disarmed -> State
This blip happens after the reconnection when the integration, while keeping the previous state correctly, sends an incorrect update to Home Assistant, triggering automations when another update happens.
from ha-econnect-alarm.
The fact that the device goes in Disarmed
state, is because when there is a reconnection the Cloud API provides an empty state regardless of what are the actual armed sectors. After the reconnection, this is an example of what the backend returns:
{
"last_id":1,
"sectors":{
"0":{
"id":1,
"index":0,
"element":1,
"name":"S1",
"activable":false,
"status":false
},
"1":{
"id":1,
"index":1,
"element":2,
"name":"S2",
"activable":false,
"status":false
},
"2":{
"id":1,
"index":2,
"element":3,
"name":"S3",
"activable":false,
"status":false
},
"3":{
"id":1,
"index":3,
"element":4,
"name":"S4",
"activable":false,
"status":false
}
}
}
In this example, S4 should had status: true
. At this point we can assume that when last_id == 1
, the backend returns the actual empty state (connection reset).
from ha-econnect-alarm.
Related Issues (20)
- Error logs are not describing the real issue returned by the cloud API
- Configuration failed after update to 2.2 HOT 1
- Unable to arm/disarm when scan interval is used HOT 3
- Invalid authentication HOT 6
- Constant deprecated in future HA Core 2025.1 HOT 1
- Several logging of "Centrale non connessa" and sensors unavailable during reconnection HOT 2
- Collecting DEBUG logs requires too many manual steps
- Unable to disarm alarm for units that require a `userId` HOT 1
- HASS testing fixtures must be aligned with a stable release
- HASS fixtures turn on `DEBUG` logging if `pytest` is launched with `-v`
- Implement a binary sensor to expose the connectivity status HOT 1
- Config flow could not be loaded: {"message":"Invalid handler specified"} HOT 9
- HomeKit instructions are not correct HOT 2
- Ensure support for Python 3.12
- Alarm state moves between states when activated via HomeKit HOT 2
- Address deprecation warnings for Home Assistant `2024.3.0`
- feat: store alarm code during integration setup (optional) HOT 1
- Add a button to force-update the state HOT 6
- Deprecated constant HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ha-econnect-alarm.