How do I delete the multiple/duplicate instances and keep only 1 instance of the sensor.
I would like to start with a basic notification like the front door status (similar to the demo mode). Is there any specific direction that you can guide me. I have a number of questions:
what type of event do I configure in the yaml file.
how do i configure the order of the subsequent events
Here are my multiple attempts to accomplish this:
automation:
trigger:
platform: state
entity_id: binary_sensor.ecolink_unknown_type0004_id0002_sensor_2_0
action:
service: notify.notify
data_template:
message: >
#{% if is_state(‘binary_sensor.ecolink_unknown_type0004_id0002_sensor_2_0’, ‘off’) %} #Front Door opened!!
#{% endif %}
{{ states(‘binary_sensor.ecolink_unknown_type0004_id0002_sensor_2_0’) }}
As you can see from the getting started with automations tutorial your trigger needs a platform, the ID to watch and of course the event-trigger itself on which it shall react. This is fully missing in your approach.
Open and close your door to see wich sensor ID it is that changes its state and see how the state value changes (for example from 22 to 8 representing 22 closed and 8 open). Then create your automation based on this information.
So you will end up with somthing like:
trigger:
platform: state
entity_id: binary_sensor.ecolink_unknown_type0004_id0002_sensor_2_0
state: 8
action:
....
No, that’s definitely not the case - they all have different IDs!
yes - look at grouping. Put the sensors into a group that gets them off of the row at the top. Then you can either show that group with all of the sensors in it on your main page, or create another group with selected sensors in it.
you will need a template to translate the 22 and probably 23 into open/closed (I forget which is which)
you can then use that template to either change what is displayed in the sensor, or make it control another type of display like an input boolean or something.
Can any one let me know what I am doing wrong here. I am trying to get the the Door Sensor under the Home, and would like to update the device name under Front Door to e.g Front Door Status, and replace 23 or 22 with Open or Closed.
group:
default_view:
view: yes
entities:
- group.front_door_locked
front_doot_locked_other:
name: Other Front Door
view: no
entities:
- sensor.ecolink_unknown_type0004_id0002_sourcenodeid_2_2
- sensor.ecolink_unknown_type0004_id0002_power_management_2_1
- sensor.ecolink_unknown_type0004_id0002_burglar_2_10
- sensor.ecolink_unknown_type0004_id0002_alarm_type_2_0
- sensor.ecolink_unknown_type0004_id0002_alarm_level_2_1
- binary_sensor.ecolink_unknown_type0004_id0002_sensor_2_0
front_door_locked:
name: Front Door
view: no
entities:
- sensor.ecolink_unknown_type0004_id0002_access_control_2_9
sensor:
platform: template
sensors:
door_state:
value_template: ‘{% if is_state(“sensor.ecolink_unknown_type0004_id0002_access_control_2_9”, “23”) %}closed{% else %}open {% endif %}’
friendly_name: ‘Front Door Status’