Can anyone assist me on how to get my alarm zones to show open/close instead of on/off?
Thanks
Can anyone assist me on how to get my alarm zones to show open/close instead of on/off?
Thanks
You should be able to do this using Template Binary Sensor. But as mentioned above, it’s simpler to stick with the HASS default.
HASS default?
Are you referring to the the Enviasalink Componet?
If so, that’s the way I did the configuration.
.
Yes, I am referring to Envisalink. To change them to open/close you will need to create new Binary Switch, replacing all your Envisalink sensors. Not worth the hassle IMO. See the binary template link above.
Thanks you, much appreciated.
Only been using HASS for a week, not truly understanding configuration format.
Most of the links from a component page take you to a a hole new topic or component without guidelines pertaining to the initial component.
Losing my mind, but getting there.
I did templates with mine. I included a sensors directory in the configuration.yaml and put templates.yaml in that folder.
sensor: !include_dir_list sensors
Here’s how I addressed the envisalink devices in templates.yaml and changed their state. The else statement is important otherwise it’ll generate errors in the log on startup. They don’t stop it from working I just don’t like false alarms.
platform: template
sensors:
front_door:
value_template: >-
{% if states.binary_sensor.front_door.state == 'on' %}
Open
{% elif states.binary_sensor.front_door.state == 'off' %}
Closed
{% else %}
n/a
{% endif %}
patio_door:
value_template: >-
{% if states.binary_sensor.patio_door.state == 'on' %}
Open
{% elif states.binary_sensor.patio_door.state == 'off' %}
Closed
{% else %}
n/a
{% endif %}
house_garage_door:
value_template: >-
{% if states.binary_sensor.house_garage_door.state == 'on' %}
Open
{% elif states.binary_sensor.house_garage_door.state == 'off' %}
Closed
{% else %}
n/a
{% endif %}
back_garage_door:
value_template: >-
{% if states.binary_sensor.back_garage_door.state == 'on' %}
Open
{% elif states.binary_sensor.back_garage_door.state == 'off' %}
Closed
{% else %}
n/a
{% endif %}
basement_smoke:
value_template: >-
{% if states.binary_sensor.basement_smoke.state == 'on' %}
Smoke Detected!
{% elif states.binary_sensor.basement_smoke.state == 'off' %}
OK
{% else %}
n/a
{% endif %}
first_floor_smoke:
value_template: >-
{% if states.binary_sensor.first_floor_smoke.state == 'on' %}
Smoke Detected!
{% elif states.binary_sensor.first_floor_smoke.state == 'off' %}
OK
{% else %}
n/a
{% endif %}
second_floor_smoke:
value_template: >-
{% if states.binary_sensor.second_floor_smoke.state == 'on' %}
Smoke Detected!
{% elif states.binary_sensor.second_floor_smoke.state == 'off' %}
OK
{% else %}
n/a
{% endif %}
kitchen_motion:
value_template: >-
{% if states.binary_sensor.kitchen_motion.state == 'on' %}
Motion Detected!
{% elif states.binary_sensor.kitchen_motion.state == 'off' %}
OK
{% else %}
n/a
{% endif %}
high_water:
value_template: >-
{% if states.binary_sensor.high_water.state == 'on' %}
Water Detected!
{% elif states.binary_sensor.high_water.state == 'off' %}
OK
{% else %}
n/a
{% endif %}
low_temp:
value_template: >-
{% if states.binary_sensor.low_temp.state == 'on' %}
Low Temp Detected!
{% elif states.binary_sensor.low_temp.state == 'off' %}
OK
{% else %}
n/a
{% endif %}
Thanks to you both @hass, @akajester .
Got it working by applying the following:
"- platform: template
sensors:
front_door:
value_template: ‘{% if is_state(“binary_sensor.front_door”, “on”) %}Open{% else %}Closed{% endif %}’
friendly_name: ‘Front Door’
back_door:
value_template: ‘{% if is_state(“binary_sensor.back_door”, “on”) %}Open{% else %}Closed{% endif %}’
friendly_name: ‘Back Door’
The only issue now is, since I applied the template I lost icon animation.
Icon animation worked before applying the template.
Guess I have to figure out the code for icon automation.
Thanks again for your input, just what I needed to get started in the right direction.
Sorry I forgot to mention loss of icon animation. I don’t think that’s something you can fix though. If you find out otherwise let me know! Also make sure when you post code you use the “preformatted text” button, so your code is detected by the forum and formatting is preserved. Just to help others that may want to use your code.
Sure, thanks.
Any reason why 2 zones will not show up?
I have 19 zones and noticed zone 8 & 9 isn’t showing up.
So, been trying to figure out why 2 zones isn’t showing up, removed my alarm config HASS and setup from the beginning, still not showing zone 8 & 9.
Config:
### Alarm System Configuration ###
host: 192.168.200.200
panel_type: DSC
user_name: user
password: user
code: ‘XXXX’
port: 4025
evl_version: 3
keepalive_interval: 30
zonedump_interval: 15
panic_type: Police
zones:
001:
name: ‘Z01 Front Door’
type: ‘opening’
002:
name: ‘Z02 Front Window 1’
type: ‘opening’
003:
name: ‘Z03 Front Window 2’
type: ‘opening’
004:
name: ‘Z04 Back Door’
type: ‘opening’
005:
name: ‘Z05 Back Window 1’
type: ‘opening’
006:
name: ‘Z06 Back Window 2’2’
type: ‘opening’
007:
name: ‘Z07 Side Door Bsmt’
type: ‘opening’
008:
name: ‘Z08 Garage Door’
type: ‘opening’
009:
name: ‘Z09 Garage Window’
type: ‘opening’
010:
name: ‘Z10 Basement Door’
type: ‘opening’
011:
name: ‘Z11 Basement Window 1’
type: ‘opening’
012:
name: ‘Z12 Basement Window 2’
type: ‘opening’
013:
name: ‘Z13 Basement Window 3’
type: ‘opening’
014:
name: ‘Z14 Basement Window 4’
type: ‘opening’
015:
name: ‘Z15 Basement Window 5’
type: ‘opening’
016:
name: ‘Z16 2FL Front Door’
type: ‘opening’
017:
name: ‘Z17 1FL West Side Window’
type: ‘opening’
018:'2
name: ‘Z18 1FL Living Room Motion’
type: ‘motion’
019:
name: ‘Z19 1FL Kitchen Motion’
type: ‘motion’
partitions:
01:
name: ‘1st Floor’
02:
name: ‘Basement’
03:
name: ‘2nd Floor’
Entity List:
binary_sensor.z01_front_door
binary_sensor.z02_front_window_1
binary_sensor.z03_front_window_2
binary_sensor.z04_back_door
binary_sensor.z05_back_window_1
binary_sensor.z06_back_window_2
binary_sensor.z07_side_door_bsmt
binary_sensor.z10_basement_door
binary_sensor.z11_basement_window_1
binary_sensor.z12_basement_window_2
binary_sensor.z13_basement_window_3
binary_sensor.z14_basement_window_4
binary_sensor.z15_basement_window_5
binary_sensor.z16_2fl_front_door
binary_sensor.z17_1fl_west_side_window
binary_sensor.z18_1fl_living_room_motion
binary_sensor.z19_1fl_kitchen_motion
Anyone?
This part looks wrong to me, do you get errors?
006:
name: 'Z06 Back Window 2'2'
type: 'opening'
Manual typo.
No, nothing in error log, except for the following:
17-04-27 21:54:50 WARNING (Thread-10) [homeassistant.components.emulated_hue] Alexa type is deprecated and will be removed in a future version
All zones except 8 & 9 shows up.
perhaps you can post with the formatting as that might be an issue. Also, my zone numbers are 1,2,3 not 001, 002, 003 otherwise it looks similar.
envisalink: !include alarm_system.yaml
host: 192.168.200.200
panel_type: DSC
user_name: user
password: user
code: 'XXXX'
port: 4025
evl_version: 3
keepalive_interval: 30
zonedump_interval: 15
panic_type: Police
zones:
001:
name: 'Z01 Front Door'
type: 'opening'
002:
name: 'Z02 Front Window 1'
type: 'opening'
003:
name: 'Z03 Front Window 2'
type: 'opening'
004:
name: 'Z04 Back Door'
type: 'opening'
005:
name: 'Z05 Back Window 1'
type: 'opening'
006:
name: 'Z06 Back Window 2'
type: 'opening'
007:
name: 'Z07 Side Door Bsmt'
type: 'opening'
008:
name: 'Z08 Garage Door'
type: 'opening'
009:
name: 'Z09 Garage Window'
type: 'opening'
010:
name: 'Z10 Basement Door'
type: 'opening'
011:
name: 'Z11 Basement Window 1'
type: 'opening'
012:
name: 'Z12 Basement Window 2'
type: 'opening'
013:
name: 'Z13 Basement Window 3'
type: 'opening'
014:
name: 'Z14 Basement Window 4'
type: 'opening'
015:
name: 'Z15 Basement Window 5'
type: 'opening'
016:
name: 'Z16 2FL Front Door'
type: 'opening'
017:
name: 'Z17 1FL West Side Window'
type: 'opening'
018:
name: 'Z18 1FL Living Room Motion'
type: 'motion'
019:
name: 'Z19 1FL Kitchen Motion'
type: 'motion'
partitions:
01:
name: '1st Floor'
02:
name: 'Basement'
03:
name: '2nd Floor'
Entity ID’s:
binary_sensor.z01_front_door
binary_sensor.z02_front_window_1
binary_sensor.z03_front_window_2
binary_sensor.z04_back_door
binary_sensor.z05_back_window_1
binary_sensor.z06_back_window_2
binary_sensor.z07_side_door_bsmt
binary_sensor.z10_basement_door
binary_sensor.z11_basement_window_1
binary_sensor.z12_basement_window_2
binary_sensor.z13_basement_window_3
binary_sensor.z14_basement_window_4
binary_sensor.z15_basement_window_5
binary_sensor.z16_2fl_front_door
binary_sensor.z17_1fl_west_side_window
binary_sensor.z18_1fl_living_room_motion
binary_sensor.z19_1fl_kitchen_motion
Oddly enough, if I delete all zones except 8 & 9, they show up in the Entity List.
zones:
008:
name: 'Z08 Garage Door'
type: 'opening'
009:
name: 'Z09 Garage Window'
type: 'opening'
binary_sensor.z08_garage_door
binary_sensor.z09_garage_window
EDIT:-
Added Zones 1 by 1 back to my config and sure enough Zone 8 disappeared when I added Zone 10, then Zone 9 disappeared when I added Zone 11.
I have no idea what is going on, some help will be really appreciated.
Its your numbers, remove the front 0 from the zone numbers. I copied your config into mine and corrected the numbers and it works.
That was it.
Why would it only affect 8 & 9 though?
hello guys, I have setup my envisalink in home assistant and was able to setup automation successfully. but my home assistant app does not show “last trip time” for any zones. any help would be greatly appreciated. I am using basic envisalink integration code from homeassistant website, I did not do anything with sensors yet.