NodeRED Italia - Presence faker - Creazione Filippo B.

Creazione Filippo B.

Condivido il mio ultimo flow, quando sono via posso attivare tramite uno switch (input boolean) un flusso che inizia ad accendere le luci in maniera random e mai ripetitiva in una fascia oraria prestabilita. In questo modo fa sembrare che in casa ci sia qualcuno.

[{"id":"88bf0c21.26223","type":"presence-faker","z":"db71cb44.aba468","name":"","onPayload":"on","onPayloadType":"str","onTopic":"","offPayload":"off","offPayloadType":"str","offTopic":"","windowBegin":"00:00","windowEnd":"23:59","minDurationHours":0,"minDurationMinutes":"0","minDurationSeconds":"30","minDuration":"30","maxDurationHours":0,"maxDurationMinutes":"6","maxDurationSeconds":0,"maxDuration":"360","minCount":1,"maxCount":"80","startupBehavior":"onMsg","actionOnDisable":"off","x":380,"y":160,"wires":[["ec0e5eaa.09b3b"]]},{"id":"7e8e7239.0ec26c","type":"api-call-service","z":"db71cb44.aba468","name":"Soppalco 1","server":"964c1732.b698c8","service_domain":"light","service":"turn_on","data":"{\"entity_id\":\"light.soppalco_1\"}","render_data":false,"mergecontext":"","output_location":"payload","output_location_type":"msg","x":750,"y":140,"wires":[[]]},{"id":"6912f78d.8c79f8","type":"api-call-service","z":"db71cb44.aba468","name":"Soppalco 1","server":"964c1732.b698c8","service_domain":"light","service":"turn_off","data":"{\"entity_id\":\"light.soppalco_1\"}","render_data":false,"mergecontext":"","output_location":"payload","output_location_type":"msg","x":750,"y":180,"wires":[[]]},{"id":"ec0e5eaa.09b3b","type":"switch","z":"db71cb44.aba468","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"on","vt":"str"},{"t":"eq","v":"off","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":570,"y":160,"wires":[["7e8e7239.0ec26c"],["6912f78d.8c79f8"]]},{"id":"b09a4f2.e0b77b","type":"server-state-changed","z":"db71cb44.aba468","name":"Presence faker","server":"964c1732.b698c8","entityidfilter":"sensor.timer1","entityidfiltertype":"substring","outputinitially":false,"state_type":"habool","haltifstate":"","halt_if_type":"","halt_if_compare":"is","outputs":1,"x":180,"y":160,"wires":[["eb35c7b3.a04d48","88bf0c21.26223","f395ee10.edf71","11c2f911.a98327"]]},{"id":"f395ee10.edf71","type":"presence-faker","z":"db71cb44.aba468","name":"","onPayload":"on","onPayloadType":"str","onTopic":"","offPayload":"off","offPayloadType":"str","offTopic":"","windowBegin":"00:00","windowEnd":"23:59","minDurationHours":0,"minDurationMinutes":"0","minDurationSeconds":"30","minDuration":"30","maxDurationHours":0,"maxDurationMinutes":"6","maxDurationSeconds":0,"maxDuration":"360","minCount":1,"maxCount":"80","startupBehavior":"onMsg","actionOnDisable":"off","x":380,"y":240,"wires":[["93245c1f.484a5"]]},{"id":"d62711ac.da2b1","type":"api-call-service","z":"db71cb44.aba468","name":"Bagno P1","server":"964c1732.b698c8","service_domain":"light","service":"turn_on","data":"{\"entity_id\":\"light.bagno_p1\"}","render_data":false,"mergecontext":"","output_location":"payload","output_location_type":"msg","x":740,"y":220,"wires":[[]]},{"id":"4a6eb4e0.6e445c","type":"api-call-service","z":"db71cb44.aba468","name":"Bagno P1","server":"964c1732.b698c8","service_domain":"light","service":"turn_off","data":"{\"entity_id\":\"light.bagno_p1\"}","render_data":false,"mergecontext":"","output_location":"payload","output_location_type":"msg","x":740,"y":260,"wires":[[]]},{"id":"93245c1f.484a5","type":"switch","z":"db71cb44.aba468","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"on","vt":"str"},{"t":"eq","v":"off","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":570,"y":240,"wires":[["d62711ac.da2b1"],["4a6eb4e0.6e445c"]]},{"id":"11c2f911.a98327","type":"presence-faker","z":"db71cb44.aba468","name":"","onPayload":"on","onPayloadType":"str","onTopic":"","offPayload":"off","offPayloadType":"str","offTopic":"","windowBegin":"00:00","windowEnd":"23:59","minDurationHours":0,"minDurationMinutes":"0","minDurationSeconds":"30","minDuration":"30","maxDurationHours":0,"maxDurationMinutes":"6","maxDurationSeconds":0,"maxDuration":"360","minCount":1,"maxCount":"80","startupBehavior":"onMsg","actionOnDisable":"off","x":380,"y":320,"wires":[["95e2ab21.843578"]]},{"id":"9201fd89.992bf","type":"api-call-service","z":"db71cb44.aba468","name":"Matrimoniale","server":"964c1732.b698c8","service_domain":"light","service":"turn_on","data":"{\"entity_id\":\"light.matrimoniale\"}","render_data":false,"mergecontext":"","output_location":"payload","output_location_type":"msg","x":750,"y":300,"wires":[[]]},{"id":"976e5829.c2cc88","type":"api-call-service","z":"db71cb44.aba468","name":"Matrimoniale","server":"964c1732.b698c8","service_domain":"light","service":"turn_off","data":"{\"entity_id\":\"light.matrimoniale\"}","render_data":false,"mergecontext":"","output_location":"payload","output_location_type":"msg","x":750,"y":340,"wires":[[]]},{"id":"95e2ab21.843578","type":"switch","z":"db71cb44.aba468","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"on","vt":"str"},{"t":"eq","v":"off","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":570,"y":320,"wires":[["9201fd89.992bf"],["976e5829.c2cc88"]]},{"id":"8499cbc9.70f528","type":"presence-faker","z":"db71cb44.aba468","name":"","onPayload":"on","onPayloadType":"str","onTopic":"","offPayload":"off","offPayloadType":"str","offTopic":"","windowBegin":"00:00","windowEnd":"23:59","minDurationHours":0,"minDurationMinutes":"0","minDurationSeconds":"30","minDuration":"30","maxDurationHours":0,"maxDurationMinutes":"6","maxDurationSeconds":0,"maxDuration":"360","minCount":1,"maxCount":"80","startupBehavior":"onMsg","actionOnDisable":"off","x":380,"y":400,"wires":[["e174638.b6951a"]]},{"id":"a522d5f5.9e3a08","type":"api-call-service","z":"db71cb44.aba468","name":"Ufficio","server":"964c1732.b698c8","service_domain":"light","service":"turn_on","data":"{\"entity_id\":\"light.ufficio\"}","render_data":false,"mergecontext":"","output_location":"payload","output_location_type":"msg","x":730,"y":380,"wires":[[]]},{"id":"b0d7cf23.28ac","type":"api-call-service","z":"db71cb44.aba468","name":"Ufficio","server":"964c1732.b698c8","service_domain":"light","service":"turn_off","data":"{\"entity_id\":\"light.ufficio\"}","render_data":false,"mergecontext":"","output_location":"payload","output_location_type":"msg","x":730,"y":420,"wires":[[]]},{"id":"e174638.b6951a","type":"switch","z":"db71cb44.aba468","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"on","vt":"str"},{"t":"eq","v":"off","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":570,"y":400,"wires":[["a522d5f5.9e3a08"],["b0d7cf23.28ac"]]},{"id":"eb35c7b3.a04d48","type":"chatbot-conversation","z":"db71cb44.aba468","name":"","botTelegram":"da9c8802.d22798","botTelegramProduction":"","botSlack":"","botSlackProduction":"","botFacebook":"","botFacebookProduction":"","botViber":"","botViberProduction":"","botUniversal":"","botUniversalProduction":"","botTwilio":"","botTwilioProduction":"","botDiscord":"","botDiscordProduction":"","chatId":"12345","transport":"telegram","messageId":"","contextMessageId":false,"store":"","x":370,"y":500,"wires":[["a097e95f.68d958"]]},{"id":"e03510da.0fbed","type":"debug","z":"db71cb44.aba468","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":710,"y":580,"wires":[]},{"id":"56cc7e6c.528","type":"chatbot-telegram-send","z":"db71cb44.aba468","bot":"da9c8802.d22798","botProduction":"","track":false,"passThrough":false,"outputs":0,"x":870,"y":500,"wires":[]},{"id":"b1070041.0b3d6","type":"chatbot-message","z":"db71cb44.aba468","name":"","message":[{"message":":thumbsup: Presence faker ATTIVO"}],"answer":false,"silent":false,"x":670,"y":480,"wires":[["56cc7e6c.528","e03510da.0fbed"]]},{"id":"77499d9b.b8b074","type":"chatbot-message","z":"db71cb44.aba468","name":"","message":[{"message":":thumbsdown: Presence faker NON ATTIVO"}],"answer":false,"silent":false,"x":670,"y":520,"wires":[["56cc7e6c.528","e03510da.0fbed"]]},{"id":"a097e95f.68d958","type":"switch","z":"db71cb44.aba468","name":"","property":"payload","propertyType":"msg","rules":[{"t":"true"},{"t":"false"}],"checkall":"true","repair":false,"outputs":2,"x":530,"y":500,"wires":[["b1070041.0b3d6"],["77499d9b.b8b074"]]},{"id":"964c1732.b698c8","type":"server","z":"","name":"Home Assistant","legacy":true,"hassio":false,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open"},{"id":"da9c8802.d22798","type":"chatbot-telegram-node","z":"","botname":"Home","usernames":"12345","providerToken":"","polling":"1000","store":"","log":"","parseMode":"","debug":false,"webHook":"","connectMode":"polling"}]

Flow Info

Created 5 years, 11 months ago
Rating: not yet rated

Actions

Rate:

Node Types

Core
  • debug (x1)
  • switch (x5)
Other

Tags

  • presence
  • faker
  • nodered
  • italia
  • node
  • red
  • presenze
  • finte
  • in
  • casa
  • accensione
  • luci
  • random
  • flusso
  • automazione
  • home
  • assistant
Copy this flow JSON to your clipboard and then import into Node-RED using the Import From > Clipboard (Ctrl-I) menu option