Skip to content
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

Missing arm states #1

Closed
petrleocompel opened this issue Feb 20, 2023 · 15 comments
Closed

Missing arm states #1

petrleocompel opened this issue Feb 20, 2023 · 15 comments
Assignees

Comments

@petrleocompel
Copy link
Owner

On request of "Wifi75"
There are missing states of "system"
see https://developers.home-assistant.io/docs/core/entity/alarm-control-panel#states

@petrleocompel petrleocompel self-assigned this Feb 20, 2023
@petrleocompel petrleocompel changed the title Missing states Missing arm states Feb 20, 2023
@petrleocompel
Copy link
Owner Author

@wifi75
Currently seems it is not possible to get simple response with "info" about "arming type"
Normal system status sends

{'ArmStatusList': [{'ArmStatus': {'id': 1, 'name': '-', 'status': 'armed'}}]}

And full system status

{
	"SubSysList": [{
		"SubSys": {
			"id": 1,
			"arming": "away",
			"alarm": false,
			"enabled": true,
			"name": "Oblast 1",
			"delayTime": 0
		}
	}, {
		"SubSys": {
			"id": 2,
			"arming": "away",
			"alarm": false,
			"enabled": true,
			"name": "Oblast 2",
			"delayTime": 0
		}
	}, {
		"SubSys": {
			"id": 3,
			"arming": "away",
			"alarm": false,
			"enabled": true,
			"name": "Oblast 3",
			"delayTime": 0
		}
	}, {
		"SubSys": {
			"id": 4,
			"arming": "away",
			"alarm": false,
			"enabled": true,
			"name": "Oblast 4",
			"delayTime": 0
		}
	}, {
		"SubSys": {
			"id": 5,
			"arming": "away",
			"alarm": false,
			"enabled": true,
			"name": "Oblast 5",
			"delayTime": 0
		}
	}, {
		"SubSys": {
			"id": 6,
			"arming": "away",
			"alarm": false,
			"enabled": true,
			"name": "Oblast 6",
			"delayTime": 0
		}
	}, {
		"SubSys": {
			"id": 7,
			"arming": "away",
			"alarm": false,
			"enabled": true,
			"name": "Oblast 7",
			"delayTime": 0
		}
	}, {
		"SubSys": {
			"id": 8,
			"arming": "away",
			"alarm": false,
			"enabled": true,
			"name": "Oblast 8",
			"delayTime": 0
		}
	}, {
		"SubSys": {
			"id": 9,
			"arming": "away",
			"alarm": false,
			"enabled": true,
			"name": "Oblast 9",
			"delayTime": 0
		}
	}, {
		"SubSys": {
			"id": 10,
			"arming": "away",
			"alarm": false,
			"enabled": true,
			"name": "10 Kanceláře",
			"delayTime": 0
		}
	}, {
		"SubSys": {
			"id": 11,
			"arming": "away",
			"alarm": false,
			"enabled": true,
			"name": "Oblast 11",
			"delayTime": 0
		}
	}, {
		"SubSys": {
			"id": 12,
			"arming": "away",
			"alarm": false,
			"enabled": true,
			"name": "Oblast 12",
			"delayTime": 0
		}
	}, {
		"SubSys": {
			"id": 13,
			"arming": "away",
			"alarm": false,
			"enabled": true,
			"name": "Oblast 13",
			"delayTime": 0
		}
	}, {
		"SubSys": {
			"id": 14,
			"arming": "away",
			"alarm": false,
			"enabled": true,
			"name": "14 - Grafik",
			"delayTime": 0
		}
	}, {
		"SubSys": {
			"id": 15,
			"arming": "away",
			"alarm": false,
			"enabled": true,
			"name": "Oblast 15",
			"delayTime": 0
		}
	}, {
		"SubSys": {
			"id": 16,
			"arming": "away",
			"alarm": false,
			"enabled": true,
			"name": "Oblast 16",
			"delayTime": 0
		}
	}, {
		"SubSys": {
			"id": 17,
			"arming": "away",
			"alarm": false,
			"enabled": true,
			"name": "Oblast 17",
			"delayTime": 0
		}
	}, {
		"SubSys": {
			"id": 18,
			"arming": "disarm",
			"alarm": false,
			"enabled": false,
			"name": "Vrata",
			"delayTime": 0
		}
	}, {
		"SubSys": {
			"id": 19,
			"arming": "disarm",
			"alarm": false,
			"enabled": false,
			"name": "Oblast 19",
			"delayTime": 0
		}
	}, {
		"SubSys": {
			"id": 20,
			"arming": "disarm",
			"alarm": false,
			"enabled": false,
			"name": "Oblast 20",
			"delayTime": 0
		}
	}, {
		"SubSys": {
			"id": 21,
			"arming": "disarm",
			"alarm": false,
			"enabled": false,
			"name": "Oblast 21",
			"delayTime": 0
		}
	}, {
		"SubSys": {
			"id": 22,
			"arming": "disarm",
			"alarm": false,
			"enabled": false,
			"name": "Oblast 22",
			"delayTime": 0
		}
	}, {
		"SubSys": {
			"id": 23,
			"arming": "disarm",
			"alarm": false,
			"enabled": false,
			"name": "Oblast 23",
			"delayTime": 0
		}
	}, {
		"SubSys": {
			"id": 24,
			"arming": "disarm",
			"alarm": false,
			"enabled": false,
			"name": "Oblast 24",
			"delayTime": 0
		}
	}, {
		"SubSys": {
			"id": 25,
			"arming": "disarm",
			"alarm": false,
			"enabled": false,
			"name": "Oblast 25",
			"delayTime": 0
		}
	}, {
		"SubSys": {
			"id": 26,
			"arming": "disarm",
			"alarm": false,
			"enabled": false,
			"name": "Oblast 26",
			"delayTime": 0
		}
	}, {
		"SubSys": {
			"id": 27,
			"arming": "disarm",
			"alarm": false,
			"enabled": false,
			"name": "Oblast 27",
			"delayTime": 0
		}
	}, {
		"SubSys": {
			"id": 28,
			"arming": "disarm",
			"alarm": false,
			"enabled": false,
			"name": "Oblast 28",
			"delayTime": 0
		}
	}, {
		"SubSys": {
			"id": 29,
			"arming": "disarm",
			"alarm": false,
			"enabled": false,
			"name": "Oblast 29",
			"delayTime": 0
		}
	}, {
		"SubSys": {
			"id": 30,
			"arming": "disarm",
			"alarm": false,
			"enabled": false,
			"name": "Oblast 30",
			"delayTime": 0
		}
	}, {
		"SubSys": {
			"id": 31,
			"arming": "disarm",
			"alarm": false,
			"enabled": false,
			"name": "Oblast 31",
			"delayTime": 0
		}
	}, {
		"SubSys": {
			"id": 32,
			"arming": "disarm",
			"alarm": false,
			"enabled": false,
			"name": "Oblast 32",
			"delayTime": 0
		}
	}]
}

It would be possible from full system status but we don't have zones in HA.
Only possible way is if any of zones is in state:

  • "away" it will be full away (ignore next)
  • any "home" it will be home all
  • "all disarmed" = "disarmed"

Is it OK solution ?

@wifi75
Copy link

wifi75 commented Feb 20, 2023 via email

@wifi75
Copy link

wifi75 commented Feb 20, 2023 via email

@petrleocompel
Copy link
Owner Author

It should leave trace in log for this purpose please provide the logs 😇

@wifi75
Copy link

wifi75 commented Feb 20, 2023 via email

@petrleocompel
Copy link
Owner Author

There should be an "Error getting status: " or Axpro status: (this one in "debug" of integration - can be enabled in "devices" clicking on integration 3 dots)
image
Provided log helped with 1 sensor from #2 but not with your alarm state

@wifi75
Copy link

wifi75 commented Feb 21, 2023 via email

@petrleocompel
Copy link
Owner Author

petrleocompel commented Feb 21, 2023 via email

@wifi75
Copy link

wifi75 commented Feb 21, 2023 via email

@petrleocompel
Copy link
Owner Author

petrleocompel commented Feb 21, 2023 via email

@wifi75
Copy link

wifi75 commented Feb 21, 2023 via email

@petrleocompel
Copy link
Owner Author

Mistake with naming of that type. "Armed home" is not "home" but "stay" fixed now.
Also #2 fixed. (should have magnetic presence) Update and you should be good to go. If everything works don't forget to disable debug logging.

And also next time use Web interface on github with proper formating 😇 that plain text log has lines broken and it is nightmare to read and use...

@wifi75
Copy link

wifi75 commented Feb 21, 2023

ok you're right sorry, next time i won't reply via email, but from here.
I run tests and then write to you so you can update the documentation of what your integration can do!

@wifi75
Copy link

wifi75 commented Feb 21, 2023

you are the best now there are status changes...
now i can't try to alarm the panel to see if the status becomes triggered.

I let you know for that

you are number 1 Peter Thank you so much!

@wifi75
Copy link

wifi75 commented Feb 21, 2023

a question but why do the Wireless PIR AM curtain detectors only display the temperature, not the presence?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants