To najbardziej banalna a zarazem sprytna rzecz jaką kupiłem! Tym przyciskiem jesteśmy w stanie zrobić dosłownie wszystko od gaszenia świateł, po włączanie kina domowego jak i otwierania sejfu kombinacją przyciśnięć ;) A do tego jest taki ładny!
Przycisk Mijia Aqara - kupisz za mniej niż 8$ / 30zł
Gdy zobaczyłem ten przycisk w promocji, pomyślałem fajna sprawa, do czegoś to na pewno wykorzystam - zamawiam! Dopiero gdy przyszły i je podłączyłem dotarło do mnie jakie możliwości się przede mną otwarły!
Na początku muszę poinformować, że urządzenie łączyłem z Home Assistant - Zigbee2mqtt (CC2531) a więc nie wykorzystywałem bramki od Xiaomi (Aqara). Najlepszą cenę na te przyciski znajdziesz u nas na blogu w dziale Promocje!
Specyfikacja
Symbol: WXKG01LM
Wykrywanie zdarzeń: single, double, triple, quadruple, many, long, long_release click
Zasilanie: CR2032 starczy na minimum 2 lata.
Możliwości
Ja wykorzystałem podstawowe funkcje do zapalania świateł i zestawu świateł a długie przyciśnięcie gasi mi wszystko - nic nie stoi na przeszkodzie aby ustawić 15 sekund opóźnienia na wyjście z pokoju.
Jak widzicie każdy rodzaj wbudowane kliknięcia obsługuje mi inne światło i w zależności czy jest zapalone czy zgaszone to wykonuje odpowiednią akcję na to. Poniżej kod do importu u siebie w nodeRED.
[
{
"id": "6cf5aca7.9b7284",
"type": "api-call-service",
"z": "3caea190.4f720e",
"name": "Desk Light Off",
"server": "b3e9b226.7fd0c",
"version": 1,
"debugenabled": false,
"service_domain": "switch",
"service": "turn_off",
"entityId": "switch.sonoff_100059c494",
"data": "",
"dataType": "json",
"mergecontext": "",
"output_location": "",
"output_location_type": "none",
"mustacheAltTags": false,
"x": 680,
"y": 1580,
"wires": [
[]
]
},
{
"id": "cc7918c3.6f9528",
"type": "api-current-state",
"z": "3caea190.4f720e",
"name": "Black light on?",
"server": "b3e9b226.7fd0c",
"version": 1,
"outputs": 2,
"halt_if": "on",
"halt_if_type": "str",
"halt_if_compare": "is",
"override_topic": false,
"entity_id": "switch.sonoff_100059c494",
"state_type": "str",
"state_location": "payload",
"override_payload": "msg",
"entity_location": "data",
"override_data": "msg",
"blockInputOverrides": false,
"x": 440,
"y": 1600,
"wires": [
[
"6cf5aca7.9b7284"
],
[
"b0eb3d2.91409c"
]
]
},
{
"id": "e171f61.864d308",
"type": "server-state-changed",
"z": "3caea190.4f720e",
"name": "Living Button SINGLE",
"server": "b3e9b226.7fd0c",
"version": 1,
"exposeToHomeAssistant": false,
"haConfig": [
{
"property": "name",
"value": ""
},
{
"property": "icon",
"value": ""
}
],
"entityidfilter": "sensor.0x00158d0003d18c0b_click",
"entityidfiltertype": "exact",
"outputinitially": false,
"state_type": "str",
"haltifstate": "single",
"halt_if_type": "str",
"halt_if_compare": "is",
"outputs": 2,
"output_only_on_state_change": true,
"x": 220,
"y": 1560,
"wires": [
[
"cc7918c3.6f9528"
],
[]
]
},
{
"id": "2310c0bf.24063",
"type": "server-state-changed",
"z": "3caea190.4f720e",
"name": "Livin Button TRIPLE",
"server": "b3e9b226.7fd0c",
"version": 1,
"exposeToHomeAssistant": false,
"haConfig": [
{
"property": "name",
"value": ""
},
{
"property": "icon",
"value": ""
}
],
"entityidfilter": "sensor.0x00158d0003d18c0b_click",
"entityidfiltertype": "exact",
"outputinitially": false,
"state_type": "str",
"haltifstate": "triple",
"halt_if_type": "str",
"halt_if_compare": "is",
"outputs": 2,
"output_only_on_state_change": true,
"x": 190,
"y": 1400,
"wires": [
[
"694b802a.834ba"
],
[]
]
},
{
"id": "98c53d6b.ed233",
"type": "api-current-state",
"z": "3caea190.4f720e",
"name": "Bricks light on?",
"server": "b3e9b226.7fd0c",
"version": 1,
"outputs": 2,
"halt_if": "on",
"halt_if_type": "str",
"halt_if_compare": "is",
"override_topic": false,
"entity_id": "switch.sonoff_10008c937e",
"state_type": "str",
"state_location": "payload",
"override_payload": "msg",
"entity_location": "data",
"override_data": "msg",
"blockInputOverrides": false,
"x": 460,
"y": 1500,
"wires": [
[
"53ed865e.b289f8"
],
[
"e42bbec0.18118"
]
]
},
{
"id": "e42bbec0.18118",
"type": "api-call-service",
"z": "3caea190.4f720e",
"name": "Bricks Light On",
"server": "b3e9b226.7fd0c",
"version": 1,
"debugenabled": false,
"service_domain": "switch",
"service": "turn_on",
"entityId": "switch.sonoff_10008c937e",
"data": "",
"dataType": "json",
"mergecontext": "",
"output_location": "",
"output_location_type": "none",
"mustacheAltTags": false,
"x": 680,
"y": 1520,
"wires": [
[]
]
},
{
"id": "53ed865e.b289f8",
"type": "api-call-service",
"z": "3caea190.4f720e",
"name": "Bricks Light Off",
"server": "b3e9b226.7fd0c",
"version": 1,
"debugenabled": false,
"service_domain": "switch",
"service": "turn_off",
"entityId": "switch.sonoff_10008c937e",
"data": "",
"dataType": "json",
"mergecontext": "",
"output_location": "",
"output_location_type": "none",
"mustacheAltTags": false,
"x": 680,
"y": 1460,
"wires": [
[]
]
},
{
"id": "2e507333.fdcfcc",
"type": "server-state-changed",
"z": "3caea190.4f720e",
"name": "Living Button DOUBLE",
"server": "b3e9b226.7fd0c",
"version": 1,
"exposeToHomeAssistant": false,
"haConfig": [
{
"property": "name",
"value": ""
},
{
"property": "icon",
"value": ""
}
],
"entityidfilter": "sensor.0x00158d0003d18c0b_click",
"entityidfiltertype": "exact",
"outputinitially": false,
"state_type": "str",
"haltifstate": "double",
"halt_if_type": "str",
"halt_if_compare": "is",
"outputs": 2,
"output_only_on_state_change": true,
"x": 200,
"y": 1480,
"wires": [
[
"98c53d6b.ed233"
],
[]
]
},
{
"id": "694b802a.834ba",
"type": "api-current-state",
"z": "3caea190.4f720e",
"name": "Table light on?",
"server": "b3e9b226.7fd0c",
"version": 1,
"outputs": 2,
"halt_if": "on",
"halt_if_type": "str",
"halt_if_compare": "is",
"override_topic": false,
"entity_id": "switch.sonoff_10005d905a",
"state_type": "str",
"state_location": "payload",
"override_payload": "msg",
"entity_location": "data",
"override_data": "msg",
"blockInputOverrides": false,
"x": 440,
"y": 1400,
"wires": [
[
"509256a0.9b7098"
],
[
"762fd862.f1e1f8"
]
]
},
{
"id": "762fd862.f1e1f8",
"type": "api-call-service",
"z": "3caea190.4f720e",
"name": "Table Light On",
"server": "b3e9b226.7fd0c",
"version": 1,
"debugenabled": false,
"service_domain": "switch",
"service": "turn_on",
"entityId": "switch.sonoff_10005d905a",
"data": "",
"dataType": "json",
"mergecontext": "",
"output_location": "",
"output_location_type": "none",
"mustacheAltTags": false,
"x": 680,
"y": 1400,
"wires": [
[
"d088863e.e18c48"
]
]
},
{
"id": "509256a0.9b7098",
"type": "api-call-service",
"z": "3caea190.4f720e",
"name": "Table Light Off",
"server": "b3e9b226.7fd0c",
"version": 1,
"debugenabled": false,
"service_domain": "switch",
"service": "turn_off",
"entityId": "switch.sonoff_10005d905a",
"data": "",
"dataType": "json",
"mergecontext": "",
"output_location": "",
"output_location_type": "none",
"mustacheAltTags": false,
"x": 680,
"y": 1340,
"wires": [
[
"d27305d6.caa5d8"
]
]
},
{
"id": "b352b32c.2b0a8",
"type": "server-state-changed",
"z": "3caea190.4f720e",
"name": "Living Button LONG",
"server": "b3e9b226.7fd0c",
"version": 1,
"exposeToHomeAssistant": false,
"haConfig": [
{
"property": "name",
"value": ""
},
{
"property": "icon",
"value": ""
}
],
"entityidfilter": "sensor.0x00158d0003d18c0b_click",
"entityidfiltertype": "exact",
"outputinitially": false,
"state_type": "str",
"haltifstate": "long",
"halt_if_type": "str",
"halt_if_compare": "is",
"outputs": 2,
"output_only_on_state_change": true,
"x": 170,
"y": 1240,
"wires": [
[
"509256a0.9b7098",
"53ed865e.b289f8",
"6cf5aca7.9b7284",
"a9238bb8.c41768",
"b14e1a4b.e50478"
],
[]
]
},
{
"id": "b0eb3d2.91409c",
"type": "api-call-service",
"z": "3caea190.4f720e",
"name": "Black Light On",
"server": "b3e9b226.7fd0c",
"version": 1,
"debugenabled": false,
"service_domain": "switch",
"service": "turn_on",
"entityId": "switch.sonoff_100059c494",
"data": "",
"dataType": "json",
"mergecontext": "",
"output_location": "",
"output_location_type": "none",
"mustacheAltTags": false,
"x": 680,
"y": 1640,
"wires": [
[]
]
},
{
"id": "d27305d6.caa5d8",
"type": "api-call-service",
"z": "3caea190.4f720e",
"name": "Table 1 i 2 Light Off",
"server": "b3e9b226.7fd0c",
"version": 1,
"debugenabled": false,
"service_domain": "switch",
"service": "turn_off",
"entityId": "switch.bf721c04108428c9abtqq6_2, switch.bf721c04108428c9abtqq6_1",
"data": "",
"dataType": "json",
"mergecontext": "",
"output_location": "",
"output_location_type": "none",
"mustacheAltTags": false,
"x": 930,
"y": 1340,
"wires": [
[]
]
},
{
"id": "d088863e.e18c48",
"type": "api-call-service",
"z": "3caea190.4f720e",
"name": "Table 1 i 2Light On",
"server": "b3e9b226.7fd0c",
"version": 1,
"debugenabled": false,
"service_domain": "switch",
"service": "turn_on",
"entityId": "switch.bf721c04108428c9abtqq6_1, switch.bf721c04108428c9abtqq6_2",
"data": "",
"dataType": "json",
"mergecontext": "",
"output_location": "",
"output_location_type": "none",
"mustacheAltTags": false,
"x": 930,
"y": 1400,
"wires": [
[]
]
},
{
"id": "70e62001.a2c83",
"type": "api-current-state",
"z": "3caea190.4f720e",
"name": "Sofa light on?",
"server": "b3e9b226.7fd0c",
"version": 1,
"outputs": 2,
"halt_if": "on",
"halt_if_type": "str",
"halt_if_compare": "is",
"override_topic": false,
"entity_id": "switch.bfedc66f8aa777336d6xwk_1",
"state_type": "str",
"state_location": "payload",
"override_payload": "msg",
"entity_location": "data",
"override_data": "msg",
"blockInputOverrides": false,
"x": 420,
"y": 1320,
"wires": [
[
"a9238bb8.c41768"
],
[
"e2b9a9b5.d7bcf8"
]
]
},
{
"id": "a9238bb8.c41768",
"type": "api-call-service",
"z": "3caea190.4f720e",
"name": "Sofa Light Off",
"server": "b3e9b226.7fd0c",
"version": 1,
"debugenabled": false,
"service_domain": "switch",
"service": "turn_off",
"entityId": "switch.bfedc66f8aa777336d6xwk_1, switch.bfedc66f8aa777336d6xwk_2",
"data": "",
"dataType": "json",
"mergecontext": "",
"output_location": "",
"output_location_type": "none",
"mustacheAltTags": false,
"x": 680,
"y": 1220,
"wires": [
[]
]
},
{
"id": "e2b9a9b5.d7bcf8",
"type": "api-call-service",
"z": "3caea190.4f720e",
"name": "Sofa Light On",
"server": "b3e9b226.7fd0c",
"version": 1,
"debugenabled": false,
"service_domain": "switch",
"service": "turn_on",
"entityId": "switch.bfedc66f8aa777336d6xwk_1, switch.bfedc66f8aa777336d6xwk_2",
"data": "",
"dataType": "json",
"mergecontext": "",
"output_location": "",
"output_location_type": "none",
"mustacheAltTags": false,
"x": 680,
"y": 1280,
"wires": [
[]
]
},
{
"id": "db468206.93af7",
"type": "server-state-changed",
"z": "3caea190.4f720e",
"name": "Livin Button quadruple",
"server": "b3e9b226.7fd0c",
"version": 1,
"exposeToHomeAssistant": false,
"haConfig": [
{
"property": "name",
"value": ""
},
{
"property": "icon",
"value": ""
}
],
"entityidfilter": "sensor.0x00158d0003d18c0b_click",
"entityidfiltertype": "exact",
"outputinitially": false,
"state_type": "str",
"haltifstate": "quadruple",
"halt_if_type": "str",
"halt_if_compare": "is",
"outputs": 2,
"output_only_on_state_change": true,
"x": 180,
"y": 1320,
"wires": [
[
"70e62001.a2c83"
],
[]
]
},
{
"id": "b14e1a4b.e50478",
"type": "api-call-service",
"z": "3caea190.4f720e",
"name": "LED, Christmas, Flower Light Off",
"server": "b3e9b226.7fd0c",
"version": 1,
"debugenabled": false,
"service_domain": "switch",
"service": "turn_off",
"entityId": "switch.led, switch.77772360cc50e3cf97d9, switch.70032564b4e62d5ce1fc",
"data": "",
"dataType": "json",
"mergecontext": "",
"output_location": "",
"output_location_type": "none",
"mustacheAltTags": false,
"x": 740,
"y": 1160,
"wires": [
[]
]
},
{
"id": "b3e9b226.7fd0c",
"type": "server",
"z": "",
"name": "Home Assistant"
}
]
Bonus
Po czym pomyślałem a czemu by nie wykorzystać kombinacji klawiszy do czegoś więcej! I tak powstał ten potworek:
Wykorzystuję tutaj wirtualny przycisk Movie Time który wszystko mi uruchamia (całą automatyzację kina). Dodatkowo mam zaprogramowaną obsługę dumb projektora przez Broadlink RM Mini 3 / PRO - pilot/hub IR / RF - lokalnie, nie wymaga chmury! Andromeda to ekran rozwijany. Cinema to zasilanie oparte na Sonoff POW 2 ponieważ subwoofer nawet w czasie spoczynku potrafi pobierać 15W!
[
{
"id": "fc5701b7.c45e9",
"type": "server-state-changed",
"z": "3caea190.4f720e",
"name": "Living Button many",
"server": "b3e9b226.7fd0c",
"version": 1,
"exposeToHomeAssistant": false,
"haConfig": [
{
"property": "name",
"value": ""
},
{
"property": "icon",
"value": ""
}
],
"entityidfilter": "sensor.0x00158d0003d18c0b_click",
"entityidfiltertype": "exact",
"outputinitially": false,
"state_type": "str",
"haltifstate": "many",
"halt_if_type": "str",
"halt_if_compare": "is",
"outputs": 2,
"output_only_on_state_change": true,
"x": 130,
"y": 1840,
"wires": [
[
"e6d5e817.02bb68"
],
[]
]
},
{
"id": "dfea2857.64c358",
"type": "api-call-service",
"z": "3caea190.4f720e",
"name": "Włączam kino",
"server": "b3e9b226.7fd0c",
"version": 1,
"debugenabled": false,
"service_domain": "tts",
"service": "google_translate_say",
"entityId": "media_player.mini_hallway",
"data": "{\"message\":\"Włączam kino\",\"language\":\"pl\"}",
"dataType": "json",
"mergecontext": "",
"output_location": "payload",
"output_location_type": "msg",
"mustacheAltTags": false,
"x": 540,
"y": 2260,
"wires": [
[]
]
},
{
"id": "a5a9428f.7e74f",
"type": "looptimer",
"z": "3caea190.4f720e",
"duration": "1",
"units": "Second",
"maxloops": "60",
"maxtimeout": "1",
"maxtimeoutunits": "Minute",
"name": "1 sekunda przez 1 minutę",
"x": 410,
"y": 1720,
"wires": [
[
"e6d5e817.02bb68"
],
[]
]
},
{
"id": "e6d5e817.02bb68",
"type": "api-current-state",
"z": "3caea190.4f720e",
"name": "Living Button Long?",
"server": "b3e9b226.7fd0c",
"version": 1,
"outputs": 2,
"halt_if": "long",
"halt_if_type": "str",
"halt_if_compare": "is",
"override_topic": false,
"entity_id": "sensor.0x00158d0003d18c0b_click",
"state_type": "str",
"state_location": "payload",
"override_payload": "msg",
"entity_location": "data",
"override_data": "msg",
"blockInputOverrides": false,
"x": 400,
"y": 1840,
"wires": [
[
"aa65cb79.6bf288",
"45e06159.366ee"
],
[
"a5a9428f.7e74f"
]
]
},
{
"id": "aa65cb79.6bf288",
"type": "change",
"z": "3caea190.4f720e",
"name": "STOP",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "STOP",
"tot": "str"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 650,
"y": 1820,
"wires": [
[
"a5a9428f.7e74f"
]
]
},
{
"id": "b422ec4b.0185e",
"type": "api-call-service",
"z": "3caea190.4f720e",
"name": "Yamaha Movie",
"server": "b3e9b226.7fd0c",
"version": 1,
"debugenabled": false,
"service_domain": "script",
"service": "turn_on",
"entityId": "script.yamaha_movie",
"data": "",
"dataType": "json",
"mergecontext": "",
"output_location": "payload",
"output_location_type": "msg",
"mustacheAltTags": false,
"x": 840,
"y": 2200,
"wires": [
[]
]
},
{
"id": "624b2fb8.8896d",
"type": "api-call-service",
"z": "3caea190.4f720e",
"name": "Cinema ",
"server": "b3e9b226.7fd0c",
"version": 1,
"debugenabled": false,
"service_domain": "switch",
"service": "turn_on",
"entityId": "switch.sonoff_cinema",
"data": "",
"dataType": "json",
"mergecontext": "",
"output_location": "",
"output_location_type": "none",
"mustacheAltTags": false,
"x": 520,
"y": 2320,
"wires": [
[
"64ebd081.c4096"
]
]
},
{
"id": "f02bef97.76391",
"type": "api-call-service",
"z": "3caea190.4f720e",
"name": "Projector",
"server": "b3e9b226.7fd0c",
"version": 1,
"debugenabled": false,
"service_domain": "switch",
"service": "turn_on",
"entityId": "switch.projector",
"data": "",
"dataType": "json",
"mergecontext": "",
"output_location": "",
"output_location_type": "none",
"mustacheAltTags": false,
"x": 840,
"y": 2320,
"wires": [
[]
]
},
{
"id": "49b6cb04.f944a4",
"type": "api-call-service",
"z": "3caea190.4f720e",
"name": "Andromeda",
"server": "b3e9b226.7fd0c",
"version": 1,
"debugenabled": false,
"service_domain": "cover",
"service": "close_cover",
"entityId": "cover.4446311768c63ae1ffb3",
"data": "",
"dataType": "json",
"mergecontext": "",
"output_location": "",
"output_location_type": "none",
"mustacheAltTags": false,
"x": 530,
"y": 2200,
"wires": [
[
"73257859.c42378"
]
]
},
{
"id": "64ebd081.c4096",
"type": "trigger",
"z": "3caea190.4f720e",
"op1": "",
"op2": "",
"op1type": "nul",
"op2type": "payl",
"duration": "2",
"extend": true,
"units": "s",
"reset": "",
"bytopic": "all",
"name": "",
"x": 680,
"y": 2320,
"wires": [
[
"f02bef97.76391"
]
]
},
{
"id": "8ef0f44.1120d08",
"type": "api-call-service",
"z": "3caea190.4f720e",
"name": "Wyłączam kino",
"server": "b3e9b226.7fd0c",
"version": 1,
"debugenabled": false,
"service_domain": "tts",
"service": "google_translate_say",
"entityId": "media_player.mini_hallway",
"data": "{\"message\":\"Wyłączam kino\",\"language\":\"pl\"}",
"dataType": "json",
"mergecontext": "",
"output_location": "payload",
"output_location_type": "msg",
"mustacheAltTags": false,
"x": 500,
"y": 2120,
"wires": [
[]
]
},
{
"id": "a595ec6e.c85d6",
"type": "api-call-service",
"z": "3caea190.4f720e",
"name": "Andromeda",
"server": "b3e9b226.7fd0c",
"version": 1,
"debugenabled": false,
"service_domain": "cover",
"service": "open_cover",
"entityId": "cover.4446311768c63ae1ffb3",
"data": "",
"dataType": "json",
"mergecontext": "",
"output_location": "",
"output_location_type": "none",
"mustacheAltTags": false,
"x": 810,
"y": 1940,
"wires": [
[]
]
},
{
"id": "bc3e9b38.3490e8",
"type": "api-call-service",
"z": "3caea190.4f720e",
"name": "Yamaha Off",
"server": "b3e9b226.7fd0c",
"version": 1,
"debugenabled": false,
"service_domain": "media_player",
"service": "turn_off",
"entityId": "media_player.living_room_main",
"data": "",
"dataType": "json",
"mergecontext": "",
"output_location": "payload",
"output_location_type": "msg",
"mustacheAltTags": false,
"x": 650,
"y": 1880,
"wires": [
[]
]
},
{
"id": "406cc005.1b6a3",
"type": "api-call-service",
"z": "3caea190.4f720e",
"name": "Projector S",
"server": "b3e9b226.7fd0c",
"version": 1,
"debugenabled": false,
"service_domain": "script",
"service": "projector_off",
"entityId": "",
"data": "",
"dataType": "json",
"mergecontext": "",
"output_location": "",
"output_location_type": "none",
"mustacheAltTags": false,
"x": 470,
"y": 2000,
"wires": [
[
"cc331bcc.1a4518"
]
]
},
{
"id": "acfe611a.0879",
"type": "api-call-service",
"z": "3caea190.4f720e",
"name": "Projector S",
"server": "b3e9b226.7fd0c",
"version": 1,
"debugenabled": false,
"service_domain": "script",
"service": "projector_off",
"entityId": "",
"data": "",
"dataType": "json",
"mergecontext": "",
"output_location": "",
"output_location_type": "none",
"mustacheAltTags": false,
"x": 790,
"y": 2000,
"wires": [
[
"85e29118.5994e"
]
]
},
{
"id": "cc331bcc.1a4518",
"type": "trigger",
"z": "3caea190.4f720e",
"op1": "",
"op2": "",
"op1type": "nul",
"op2type": "payl",
"duration": "1",
"extend": true,
"units": "s",
"reset": "",
"bytopic": "all",
"name": "",
"x": 640,
"y": 2000,
"wires": [
[
"acfe611a.0879"
]
]
},
{
"id": "31ff36bf.641aba",
"type": "api-call-service",
"z": "3caea190.4f720e",
"name": "Projector",
"server": "b3e9b226.7fd0c",
"version": 1,
"debugenabled": false,
"service_domain": "switch",
"service": "turn_off",
"entityId": "switch.projector",
"data": "",
"dataType": "json",
"mergecontext": "",
"output_location": "",
"output_location_type": "none",
"mustacheAltTags": false,
"x": 900,
"y": 2060,
"wires": [
[]
]
},
{
"id": "85e29118.5994e",
"type": "trigger",
"z": "3caea190.4f720e",
"op1": "",
"op2": "",
"op1type": "nul",
"op2type": "payl",
"duration": "1",
"extend": true,
"units": "s",
"reset": "",
"bytopic": "all",
"name": "",
"x": 740,
"y": 2060,
"wires": [
[
"31ff36bf.641aba"
]
]
},
{
"id": "45e06159.366ee",
"type": "api-current-state",
"z": "3caea190.4f720e",
"name": "Cinema on?",
"server": "b3e9b226.7fd0c",
"version": 1,
"outputs": 2,
"halt_if": "on",
"halt_if_type": "str",
"halt_if_compare": "is",
"override_topic": false,
"entity_id": "switch.sonoff_cinema",
"state_type": "str",
"state_location": "payload",
"override_payload": "msg",
"entity_location": "data",
"override_data": "msg",
"blockInputOverrides": false,
"x": 830,
"y": 1820,
"wires": [
[
"2ab5bcb6.1b3a04"
],
[
"47927f64.c6af9"
]
]
},
{
"id": "cba8b4ff.b20ca8",
"type": "api-call-service",
"z": "3caea190.4f720e",
"name": "Bricks Light On",
"server": "b3e9b226.7fd0c",
"version": 1,
"debugenabled": false,
"service_domain": "switch",
"service": "turn_on",
"entityId": "switch.sonoff_10008c937e",
"data": "",
"dataType": "json",
"mergecontext": "",
"output_location": "",
"output_location_type": "none",
"mustacheAltTags": false,
"x": 500,
"y": 2060,
"wires": [
[]
]
},
{
"id": "73257859.c42378",
"type": "trigger",
"z": "3caea190.4f720e",
"op1": "",
"op2": "",
"op1type": "nul",
"op2type": "payl",
"duration": "1",
"extend": true,
"units": "s",
"reset": "",
"bytopic": "all",
"name": "",
"x": 680,
"y": 2200,
"wires": [
[
"b422ec4b.0185e"
]
]
},
{
"id": "546d9d3b.f457d4",
"type": "trigger",
"z": "3caea190.4f720e",
"op1": "",
"op2": "",
"op1type": "nul",
"op2type": "payl",
"duration": "1",
"extend": true,
"units": "s",
"reset": "",
"bytopic": "all",
"name": "",
"x": 620,
"y": 1940,
"wires": [
[
"a595ec6e.c85d6"
]
]
},
{
"id": "f232003e.80e47",
"type": "server-state-changed",
"z": "3caea190.4f720e",
"name": "Movie Time",
"server": "b3e9b226.7fd0c",
"version": 1,
"exposeToHomeAssistant": false,
"haConfig": [
{
"property": "name",
"value": ""
},
{
"property": "icon",
"value": ""
}
],
"entityidfilter": "switch.movie_time",
"entityidfiltertype": "exact",
"outputinitially": false,
"state_type": "str",
"haltifstate": "on",
"halt_if_type": "str",
"halt_if_compare": "is",
"outputs": 2,
"output_only_on_state_change": true,
"x": 150,
"y": 1920,
"wires": [
[
"e5ba62ec.17f8d"
],
[
"a731e0c4.a508e"
]
]
},
{
"id": "e5ba62ec.17f8d",
"type": "trigger",
"z": "3caea190.4f720e",
"op1": "",
"op2": "",
"op1type": "nul",
"op2type": "payl",
"duration": "1",
"extend": true,
"units": "s",
"reset": "",
"bytopic": "all",
"name": "",
"x": 340,
"y": 2200,
"wires": [
[
"49b6cb04.f944a4",
"dfea2857.64c358",
"624b2fb8.8896d"
]
]
},
{
"id": "a731e0c4.a508e",
"type": "trigger",
"z": "3caea190.4f720e",
"op1": "",
"op2": "",
"op1type": "nul",
"op2type": "payl",
"duration": "1",
"extend": true,
"units": "s",
"reset": "",
"bytopic": "all",
"name": "",
"x": 420,
"y": 1940,
"wires": [
[
"bc3e9b38.3490e8",
"406cc005.1b6a3",
"546d9d3b.f457d4",
"cba8b4ff.b20ca8",
"8ef0f44.1120d08"
]
]
},
{
"id": "47927f64.c6af9",
"type": "api-call-service",
"z": "3caea190.4f720e",
"name": "Movie Time ON",
"server": "b3e9b226.7fd0c",
"version": 1,
"debugenabled": false,
"service_domain": "switch",
"service": "turn_on",
"entityId": "switch.movie_time",
"data": "",
"dataType": "json",
"mergecontext": "",
"output_location": "",
"output_location_type": "none",
"mustacheAltTags": false,
"x": 1040,
"y": 1840,
"wires": [
[]
]
},
{
"id": "2ab5bcb6.1b3a04",
"type": "api-call-service",
"z": "3caea190.4f720e",
"name": "Movie Time OFF",
"server": "b3e9b226.7fd0c",
"version": 1,
"debugenabled": false,
"service_domain": "switch",
"service": "turn_off",
"entityId": "switch.movie_time",
"data": "",
"dataType": "json",
"mergecontext": "",
"output_location": "",
"output_location_type": "none",
"mustacheAltTags": false,
"x": 1040,
"y": 1800,
"wires": [
[]
]
},
{
"id": "b3e9b226.7fd0c",
"type": "server",
"z": "",
"name": "Home Assistant"
}
]
Podsumowanie
Za taką cenę? Brać do sypialni, do pokoju, do kuchni, do korytarza, jako dzwonek do drzwi - wszędzie - zamówcie więcej niż 3 sztuki, bo mnie już zabrało ;) Znajdziesz je w dziale Promocje.
PROTIP: jak macie je luźno to podpiszcie je sobie je od spodu, bo jak się pomieszają to jest niezła zabawa ;)
Chcesz wiedzieć więcej? Dołącz do grupy na FB. Będzie nam też miło jak polubisz Fanpage!

Oczyszczacz Xiaomi Air Purifier Pro
Od: 1117 zł 2516 zł | Powiadom gdy cena spadnie
Najmocniejsza wersja oczyszcza ze stajni Xiaomi - wersja PRO to przepływ 500m³/h czyli według producenta wystarczy na 60m2. Zupełnie inna budowa wiatraków (bardzo ciche podwójne). Oczywiście filtry pasują naprzemiennie z modeli 2h/3H/PRO.
Dziwi brak reklam? Przeczytaj dlaczego i wesprzyj bloga na lub