core/homeassistant/components/alarm_control_panel
jnimmo 1a117d0bea Add keypress & output control services to Envisalink component (#3932)
* Add keypress & output control services to Envisalink component

Add services to allow sending custom keypresses and activating
programmable outputs on an alarm control panel.
Implemented for the Envisalink alarm, and moving to new version of
pyenvisalink to support this.

Replicated the service handler mapping code from Cover component into
Alarm Control Panel to allow handling alternative schemas if required
by new services.

* Update requirements_all.txt

* Updated services.yaml

* Removed requirement to enter code in HA UI

Incorporated changes suggested by @sriram
https://github.com/srirams/home-assistant/commit/2f8deb70cb5f3621a69b6b9
acb72f8e29123650c

Including pending state for exit/entry delay

Clarified services to use the code passed to them as a first priority,
otherwise use the code from configuration

Swapped back to using NotImplementedError for the service definitions

* - Add support for alarm_keypress to manual alarm (functions like a standard alarm keypad where entering the code disarms or arms the alarm)
- Add tests for alarm_keypress to manual alarm
- Style corrections (too many returns, comment & whitespace issues)

* Removed alarm_output_control service as unable to incorporate in the demo/test in a meaningful way

* Add keypress & output control services to Envisalink component

Add services to allow sending custom keypresses and activating
programmable outputs on an alarm control panel.
Implemented for the Envisalink alarm, and moving to new version of
pyenvisalink to support this.

Replicated the service handler mapping code from Cover component into
Alarm Control Panel to allow handling alternative schemas if required
by new services.

* Update requirements_all.txt

* Updated services.yaml

* Removed requirement to enter code in HA UI

Incorporated changes suggested by @sriram
https://github.com/srirams/home-assistant/commit/2f8deb70cb5f3621a69b6b9
acb72f8e29123650c

Including pending state for exit/entry delay

Clarified services to use the code passed to them as a first priority,
otherwise use the code from configuration

Swapped back to using NotImplementedError for the service definitions

* - Add support for alarm_keypress to manual alarm (functions like a standard alarm keypad where entering the code disarms or arms the alarm)
- Add tests for alarm_keypress to manual alarm
- Style corrections (too many returns, comment & whitespace issues)

* Removed alarm_output_control service as unable to incorporate in the demo/test in a meaningful way

* Moved the Alarm_Keypress service into Envisalink component out of the generic

* Update envisalink.py

* Update services.yaml
2016-11-17 22:13:22 -08:00
..
__init__.py add changed_by attribute to alarm control panel (#2737) 2016-08-08 09:00:20 -07:00
alarmdotcom.py Fix alarm.com I/O inside properties (#4307) 2016-11-08 19:57:46 -08:00
concord232.py Maintenance (#4101) 2016-10-29 09:12:43 -07:00
demo.py add disarm_after_trigger to manual alarm panel 2016-08-13 12:53:32 -05:00
envisalink.py Add keypress & output control services to Envisalink component (#3932) 2016-11-17 22:13:22 -08:00
manual.py Migrate callbacks to use schedule_update_ha_state (#4426) 2016-11-17 07:34:46 -08:00
mqtt.py Make services yield (#4187) 2016-11-03 18:32:14 -07:00
nx584.py Moving updates out of state property (#3966) 2016-10-20 22:35:25 -07:00
services.yaml Add keypress & output control services to Envisalink component (#3932) 2016-11-17 22:13:22 -08:00
simplisafe.py Make services yield (#4187) 2016-11-03 18:32:14 -07:00
verisure.py Make services yield (#4187) 2016-11-03 18:32:14 -07:00