Skip to content

Instantly share code, notes, and snippets.

@HalEEfacts
Created February 17, 2020 02:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save HalEEfacts/de17ed5356fe955bb84bf21d7e70c7cf to your computer and use it in GitHub Desktop.
Save HalEEfacts/de17ed5356fe955bb84bf21d7e70c7cf to your computer and use it in GitHub Desktop.
Break up message

Testing breaking up a message into parts

[{"id":"dca6aa71.628478","type":"server-state-changed","z":"793eef6f.03a41","name":"","server":"5253889.fa04678","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"input_boolean.notify_exterior","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"output_only_on_state_change":true,"x":250,"y":1420,"wires":[["b02deea7.22f","cdd18690.0621a8"]]},{"id":"b02deea7.22f","type":"debug","z":"793eef6f.03a41","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":650,"y":1500,"wires":[]},{"id":"cdd18690.0621a8","type":"split","z":"793eef6f.03a41","name":"","splt":"\\n","spltType":"bin","arraySplt":1,"arraySpltType":"len","stream":false,"addname":"1","x":500,"y":1580,"wires":[["26bf60a9.91891","dc8d8a71.8c2258","915abdd8.46dc3","2a1eac0.fb7ff54","37dda327.714afc"]]},{"id":"26bf60a9.91891","type":"debug","z":"793eef6f.03a41","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":710,"y":1580,"wires":[]},{"id":"dc8d8a71.8c2258","type":"debug","z":"793eef6f.03a41","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"data.old_state.attributes.friendly_name","targetType":"msg","x":810,"y":1620,"wires":[]},{"id":"915abdd8.46dc3","type":"debug","z":"793eef6f.03a41","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"data.entity_id","targetType":"msg","x":730,"y":1660,"wires":[]},{"id":"2a1eac0.fb7ff54","type":"debug","z":"793eef6f.03a41","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"data.old_state.last_changed","targetType":"msg","x":780,"y":1700,"wires":[]},{"id":"37dda327.714afc","type":"debug","z":"793eef6f.03a41","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"data.old_state.attributes.icon","targetType":"msg","x":780,"y":1740,"wires":[]},{"id":"5253889.fa04678","type":"server","z":"","name":"Home Assistant","legacy":false,"hassio":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment