Created
April 29, 2020 19:53
-
-
Save Snipercaine/af5a0f218c3e1391654c0cd79f02b65f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[{"id":"f4a2cd.0d31bd3","type":"tab","label":"Cube Media Player","disabled":false,"info":""},{"id":"f6a19daf.6e603","type":"server-events","z":"f4a2cd.0d31bd3","name":"Deconz","server":"93e2a4eb.23bc48","event_type":"deconz_event","exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"x":110,"y":140,"wires":[["476186c0.508f88"]]},{"id":"476186c0.508f88","type":"switch","z":"f4a2cd.0d31bd3","name":"Cube","property":"payload.event.id","propertyType":"msg","rules":[{"t":"eq","v":"switch_13","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":150,"y":240,"wires":[["75031d1c.369954"]]},{"id":"75031d1c.369954","type":"switch","z":"f4a2cd.0d31bd3","name":"Right Twist","property":"payload.event.gesture","propertyType":"msg","rules":[{"t":"eq","v":"7","vt":"num"}],"checkall":"true","repair":false,"outputs":1,"x":250,"y":380,"wires":[["6c7e09b9.beca78"]]},{"id":"e90c78e0.6e37e8","type":"function","z":"f4a2cd.0d31bd3","name":"Volume Up","func":"var data = msg.data.attributes.volume_level\ndata = data + 0.1;\nmsg.payload = data;\nreturn msg;","outputs":1,"noerr":0,"x":530,"y":140,"wires":[["45ca9a1d.be3f64"]]},{"id":"6c7e09b9.beca78","type":"api-current-state","z":"f4a2cd.0d31bd3","name":"Echo Plus","server":"93e2a4eb.23bc48","version":1,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"media_player.justin_s_echo_plus","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":460,"y":280,"wires":[["e90c78e0.6e37e8"],["e90c78e0.6e37e8"]]},{"id":"45ca9a1d.be3f64","type":"api-call-service","z":"f4a2cd.0d31bd3","name":"Volume Up","server":"93e2a4eb.23bc48","version":1,"debugenabled":false,"service_domain":"media_player","service":"volume_set","entityId":"media_player.justin_s_echo_plus","data":"{ \"volume_level\":{{payload}}}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":690,"y":220,"wires":[[]]},{"id":"93e2a4eb.23bc48","type":"server","z":"","name":"Home Assistant Zzs","legacy":false,"addon":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
Part of this video (Xiaomi Cube in NodeRed)
https://www.youtube.com/watch?v=1RBewRUYZMA