Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2020
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.98 KB | None | 0 0
  1. [{"id":"e0e3ea00.8c4978","type":"server-state-changed","z":"2dd4cd23.d09922","name":"waskamerknop","server":"8f2d0333.86ab5","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"sensor.0x00158d0002b7e5ae_click","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":80,"y":920,"wires":[["55248899.794c58","280abba.650cb44"]]},{"id":"280abba.650cb44","type":"switch","z":"2dd4cd23.d09922","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"single","vt":"str"},{"t":"eq","v":"double","vt":"str"},{"t":"eq","v":"triple","vt":"str"},{"t":"eq","v":"quadruple","vt":"str"},{"t":"eq","v":"long","vt":"str"}],"checkall":"true","repair":false,"outputs":5,"x":370,"y":940,"wires":[["54dcb8eb.79e258"],["1bc317f4.248bd8"],["e5dc7556.91be38"],[],["86eb9c01.aa1fd"]]},{"id":"1bc317f4.248bd8","type":"api-call-service","z":"2dd4cd23.d09922","name":"50% brightness","server":"8f2d0333.86ab5","version":1,"debugenabled":false,"service_domain":"light","service":"turn_on","entityId":"light.waskamer","data":"{\"brightness_pct\": \"50\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":540,"y":980,"wires":[[]]},{"id":"55248899.794c58","type":"function","z":"2dd4cd23.d09922","name":"ratelimiter","func":"var interval = (1000); // minimum interval between messages (ms)\ncontext.lastTime = context.lastTime || 0;\n\nvar now = Date.now();\n\nif (now-context.lastTime > interval) {\n context.lastTime = now;\n return msg;\n} else {\n return null;\n}","outputs":1,"noerr":0,"x":240,"y":920,"wires":[[]]},{"id":"e5dc7556.91be38","type":"api-call-service","z":"2dd4cd23.d09922","name":"10% brightness","server":"8f2d0333.86ab5","version":1,"debugenabled":false,"service_domain":"light","service":"turn_on","entityId":"light.waskamer","data":"{\"brightness_pct\": \"10\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":540,"y":1040,"wires":[[]]},{"id":"c4817ce9.2f314","type":"api-call-service","z":"2dd4cd23.d09922","name":"FULL brightness","server":"8f2d0333.86ab5","version":1,"debugenabled":false,"service_domain":"light","service":"turn_on","entityId":"light.waskamer","data":"{\"brightness_pct\": \"100\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":760,"y":920,"wires":[[]]},{"id":"54dcb8eb.79e258","type":"api-current-state","z":"2dd4cd23.d09922","name":"is the light off?","server":"8f2d0333.86ab5","version":1,"outputs":2,"halt_if":"off","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"light.waskamer","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":540,"y":920,"wires":[["c4817ce9.2f314"],["e096f462.24d788"]]},{"id":"e096f462.24d788","type":"api-call-service","z":"2dd4cd23.d09922","name":"light OFF","server":"8f2d0333.86ab5","version":1,"debugenabled":false,"service_domain":"light","service":"turn_off","entityId":"light.waskamer","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":740,"y":980,"wires":[[]]},{"id":"86eb9c01.aa1fd","type":"api-call-service","z":"2dd4cd23.d09922","name":"FULL brightness","server":"8f2d0333.86ab5","version":1,"debugenabled":false,"service_domain":"light","service":"turn_on","entityId":"light.waskamer","data":"{\"brightness_pct\": \"100\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":540,"y":1100,"wires":[[]]},{"id":"8f2d0333.86ab5","type":"server","z":"","name":"hass.io working","legacy":false,"hassio":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":false,"cacheJson":true}]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement