Created
May 22, 2020 22:05
-
-
Save airborn/394d4730e86ca665bba1ee530dcd4afd to your computer and use it in GitHub Desktop.
Aqara Cube flow
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": "3a6394a.593ef6c", | |
"type": "tab", | |
"label": "Magic Cube", | |
"disabled": false, | |
"info": "" | |
}, | |
{ | |
"id": "fc1b8212.63403", | |
"type": "server-state-changed", | |
"z": "3a6394a.593ef6c", | |
"name": "Cube State Changed", | |
"server": "d3c1eeca.5888", | |
"version": 1, | |
"exposeToHomeAssistant": false, | |
"haConfig": [ | |
{ | |
"property": "name", | |
"value": "" | |
}, | |
{ | |
"property": "icon", | |
"value": "" | |
} | |
], | |
"entityidfilter": "sensor.0x00158d0002a372e8_action", | |
"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": 110, | |
"y": 300, | |
"wires": [ | |
[ | |
"4c1043a.d2006bc" | |
] | |
] | |
}, | |
{ | |
"id": "4c1043a.d2006bc", | |
"type": "switch", | |
"z": "3a6394a.593ef6c", | |
"name": "Action Type", | |
"property": "data.new_state.state", | |
"propertyType": "msg", | |
"rules": [ | |
{ | |
"t": "eq", | |
"v": "tap", | |
"vt": "str" | |
}, | |
{ | |
"t": "eq", | |
"v": "slide", | |
"vt": "str" | |
}, | |
{ | |
"t": "eq", | |
"v": "shake", | |
"vt": "str" | |
}, | |
{ | |
"t": "eq", | |
"v": "fall", | |
"vt": "str" | |
}, | |
{ | |
"t": "else" | |
} | |
], | |
"checkall": "true", | |
"repair": false, | |
"outputs": 5, | |
"x": 310, | |
"y": 300, | |
"wires": [ | |
[ | |
"57984842.d7af58" | |
], | |
[ | |
"57984842.d7af58" | |
], | |
[ | |
"57984842.d7af58" | |
], | |
[ | |
"ff5ca87f.4e9378" | |
], | |
[ | |
"c2a10a0.e97e3f8" | |
] | |
] | |
}, | |
{ | |
"id": "57984842.d7af58", | |
"type": "switch", | |
"z": "3a6394a.593ef6c", | |
"name": "Side", | |
"property": "data.new_state.attributes.side", | |
"propertyType": "msg", | |
"rules": [ | |
{ | |
"t": "eq", | |
"v": "1", | |
"vt": "num" | |
}, | |
{ | |
"t": "eq", | |
"v": "2", | |
"vt": "str" | |
}, | |
{ | |
"t": "eq", | |
"v": "3", | |
"vt": "str" | |
}, | |
{ | |
"t": "eq", | |
"v": "4", | |
"vt": "str" | |
}, | |
{ | |
"t": "eq", | |
"v": "5", | |
"vt": "str" | |
}, | |
{ | |
"t": "eq", | |
"v": "0", | |
"vt": "str" | |
} | |
], | |
"checkall": "true", | |
"repair": false, | |
"outputs": 6, | |
"x": 510, | |
"y": 280, | |
"wires": [ | |
[ | |
"bd916750.8edd18" | |
], | |
[ | |
"2e51620f.e3641e" | |
], | |
[ | |
"1481b8f2.6089c7" | |
], | |
[ | |
"ab10c598.7891b8" | |
], | |
[ | |
"5bd1ca03.51af84" | |
], | |
[ | |
"50477654.9f27d8" | |
] | |
] | |
}, | |
{ | |
"id": "ab10c598.7891b8", | |
"type": "api-call-service", | |
"z": "3a6394a.593ef6c", | |
"name": "Toggle Living Room Floor Lamp", | |
"server": "d3c1eeca.5888", | |
"version": 1, | |
"debugenabled": false, | |
"service_domain": "light", | |
"service": "toggle", | |
"entityId": "light.salon_lampka", | |
"data": "", | |
"dataType": "json", | |
"mergecontext": "", | |
"output_location": "", | |
"output_location_type": "none", | |
"mustacheAltTags": false, | |
"x": 810, | |
"y": 300, | |
"wires": [ | |
[] | |
] | |
}, | |
{ | |
"id": "1481b8f2.6089c7", | |
"type": "api-call-service", | |
"z": "3a6394a.593ef6c", | |
"name": "Toggle Living Room Cabinet External", | |
"server": "d3c1eeca.5888", | |
"version": 1, | |
"debugenabled": false, | |
"service_domain": "light", | |
"service": "toggle", | |
"entityId": "light.salon_meble_rant", | |
"data": "", | |
"dataType": "json", | |
"mergecontext": "", | |
"output_location": "", | |
"output_location_type": "none", | |
"mustacheAltTags": false, | |
"x": 830, | |
"y": 260, | |
"wires": [ | |
[] | |
] | |
}, | |
{ | |
"id": "2e51620f.e3641e", | |
"type": "api-call-service", | |
"z": "3a6394a.593ef6c", | |
"name": "Toggle Living Room Cabinet Internal", | |
"server": "d3c1eeca.5888", | |
"version": 1, | |
"debugenabled": false, | |
"service_domain": "light", | |
"service": "toggle", | |
"entityId": "light.salon_meble_wew", | |
"data": "", | |
"dataType": "json", | |
"mergecontext": "", | |
"output_location": "", | |
"output_location_type": "none", | |
"mustacheAltTags": false, | |
"x": 830, | |
"y": 220, | |
"wires": [ | |
[] | |
] | |
}, | |
{ | |
"id": "bd916750.8edd18", | |
"type": "api-call-service", | |
"z": "3a6394a.593ef6c", | |
"name": "Toggle Living Room Light", | |
"server": "d3c1eeca.5888", | |
"version": 1, | |
"debugenabled": false, | |
"service_domain": "light", | |
"service": "toggle", | |
"entityId": "light.salon_swiatlo", | |
"data": "", | |
"dataType": "json", | |
"mergecontext": "", | |
"output_location": "", | |
"output_location_type": "none", | |
"mustacheAltTags": false, | |
"x": 790, | |
"y": 180, | |
"wires": [ | |
[] | |
] | |
}, | |
{ | |
"id": "ff5ca87f.4e9378", | |
"type": "api-call-service", | |
"z": "3a6394a.593ef6c", | |
"name": "Turn Off All Living Room Lights", | |
"server": "d3c1eeca.5888", | |
"version": 1, | |
"debugenabled": false, | |
"service_domain": "light", | |
"service": "turn_off", | |
"entityId": "group.living_room", | |
"data": "", | |
"dataType": "json", | |
"mergecontext": "", | |
"output_location": "", | |
"output_location_type": "none", | |
"mustacheAltTags": false, | |
"x": 810, | |
"y": 460, | |
"wires": [ | |
[] | |
] | |
}, | |
{ | |
"id": "c2a10a0.e97e3f8", | |
"type": "debug", | |
"z": "3a6394a.593ef6c", | |
"name": "", | |
"active": true, | |
"tosidebar": true, | |
"console": false, | |
"tostatus": false, | |
"complete": "true", | |
"targetType": "full", | |
"x": 500, | |
"y": 480, | |
"wires": [] | |
}, | |
{ | |
"id": "5bd1ca03.51af84", | |
"type": "api-call-service", | |
"z": "3a6394a.593ef6c", | |
"name": "Toggle Kitchen Light", | |
"server": "d3c1eeca.5888", | |
"version": 1, | |
"debugenabled": false, | |
"service_domain": "light", | |
"service": "toggle", | |
"entityId": "light.shelly_shsw_25_10ca0d_1", | |
"data": "", | |
"dataType": "json", | |
"mergecontext": "", | |
"output_location": "", | |
"output_location_type": "none", | |
"mustacheAltTags": false, | |
"x": 780, | |
"y": 340, | |
"wires": [ | |
[] | |
] | |
}, | |
{ | |
"id": "50477654.9f27d8", | |
"type": "api-call-service", | |
"z": "3a6394a.593ef6c", | |
"name": "Toggle Kitchen LED Light", | |
"server": "d3c1eeca.5888", | |
"version": 1, | |
"debugenabled": false, | |
"service_domain": "light", | |
"service": "toggle", | |
"entityId": "light.shelly_shsw_25_10ca0d_2", | |
"data": "", | |
"dataType": "json", | |
"mergecontext": "", | |
"output_location": "", | |
"output_location_type": "none", | |
"mustacheAltTags": false, | |
"x": 790, | |
"y": 380, | |
"wires": [ | |
[] | |
] | |
}, | |
{ | |
"id": "d3c1eeca.5888", | |
"type": "server", | |
"z": "", | |
"name": "Home Assistant" | |
} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment