diff --git a/atom.xml b/atom.xml index cebbc12f33..4dec65d4a7 100644 --- a/atom.xml +++ b/atom.xml @@ -4,7 +4,7 @@
A note on friendly_name
:
When set, the friendly_name
had been previously used for API calls and backend configuration instead of the object_id
(“identifier”), but this behavior is changing to make the friendly_name
for display purposes only. This allows users to set an identifier
that emphasizes uniqueness and predictability for API and config purposes but have a prettier friendly_name
still show up in the UI. As an additional benefit, if a user wanted to change the friendly_name
/ display name (e.g. from “Kitchen Lightswitch” to “Kitchen Switch” or “Living Room Light”, or remove the friendly_name
altogether), he or she could do so without needing to change existing automations or API calls. See aREST device below for an example.
In this section you find some real life examples of how to use this switch.
@@ -134,15 +138,17 @@ switch: platform: command_line switches: - arest_pin4: + arest_pin_four: command_on: "/usr/bin/curl -X GET http://192.168.1.10/digital/4/1" command_off: "/usr/bin/curl -X GET http://192.168.1.10/digital/4/0" command_state: "/usr/bin/curl -X GET http://192.168.1.10/digital/4" value_template: '{{ return_value == "1" }}' - friendly_name: aREST Pin 4 + friendly_name: Kitchen Lightswitch +Given this example, in the UI one would see the friendly_name
of “Kitchen Light”. However, the identifier
is arest_pin_four
, making the entity_id
switch.arest_pin_four
, which is what one would use in automation
or in API calls.
This switch will shutdown your system that is hosting Home Assistant.
diff --git a/developers/server_sent_events/index.html b/developers/server_sent_events/index.html index 72dfddf61e..afa823e239 100644 --- a/developers/server_sent_events/index.html +++ b/developers/server_sent_events/index.html @@ -143,25 +143,7 @@ -«««< HEAD -The simplest script to consume the SSE looks like the following snippet. -======= -The simplest script to consume the SSE in Python looks like this:
--+------------current
-
A simple script to consume SSE in Python looks like this:
from sseclient import SSEClient
@@ -172,7 +154,6 @@ The simplest script to consume the SSE in Python looks like this: