Skip to content

Commit

Permalink
refactor(current-state): Small fixes
Browse files Browse the repository at this point in the history
Added tooltip for the second output of the node. Fixed hmtl entity, and
set override topic default to unchecked
  • Loading branch information
zachowj committed Feb 2, 2019
1 parent 362761c commit c543c67
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions nodes/current-state/current-state.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
color: "#52C0F2",
inputs: 1,
outputs: 1,
outputLabels: ["", "halt if"],
icon: "code.png",
paletteLabel: "current state",
label: function() {
Expand All @@ -16,7 +17,7 @@
halt_if: { value: "" },
halt_if_type: { value: "str" },
halt_if_compare: { value: "is" },
override_topic: { value: true },
override_topic: { value: false },
entity_id: { value: "" },
state_type: { value: "str" },
state_location: { value: "payload" },
Expand Down Expand Up @@ -218,7 +219,7 @@ <h3>Configuration</h3>
<dd>Convert the state of the entity to the selected type. Boolean will be convert to true based on if the string is equial by default to (y|yes|true|on|home|open). Original value stored in msg.data.original_state</dd>

<dt>State Location<span class="property-type">string</span></dt>
<dd>Customizable location for the entity's state. Defaults to <code>msg.payload</code></dd>
<dd>Customizable location for the entity&#8217;s state. Defaults to <code>msg.payload</code></dd>

<dt>Entity Location<span class="property-type">string</span></dt>
<dd>Customizable location for the <a href="https://www.home-assistant.io/docs/configuration/state_object/" target="_blank">entity object</a>. Defaults to <code>msg.data</code></dd>
Expand Down

0 comments on commit c543c67

Please sign in to comment.