Bonjour
Alors je suis dans une phase de découverte de OMG mais aussi de NodeRed.
Je viens de flasher un ESP32 avec la version 1.0.0 d’OMG
Je cherche à capter un fois et une seule fois mon tag nut find 3 lors de la sortie de la zone de détection et même chose lors de mon entrée dans la zone.
Pour ce faire j’utilise enfin je tente d’utiliser NodeRed avec un flow de la sorte :
En paramétrage de l’ESP j’ai mis une liste blanche ainsi que d’autres paramètres :
{"white-list":["xx:xx:xx:xx:xx:xx",.........."yy:yy:yy:yy:yy:yy","discovery":false,"hasspresence":true,"interval":59000}
Code du Flow
[
{
"id": "9e7218e06f5f6d73",
"type": "mqtt in",
"z": "12b9999b.7256a6",
"name": "BLE NUT 2",
"topic": "OMG/OMG_Test/BTtoMQTT/D3E2D7F95ED9",
"qos": "0",
"datatype": "auto-detect",
"broker": "dcad48e57379680d",
"nl": false,
"rap": true,
"rh": 0,
"inputs": 0,
"x": 110,
"y": 2200,
"wires": [
[
"e4a564a7ec84163d",
"6897612d0dcdfa90"
]
]
},
{
"id": "e4a564a7ec84163d",
"type": "timeouttrigger",
"z": "12b9999b.7256a6",
"ontimeouttype": "str",
"ontimeoutval": "absent",
"duration": "65",
"units": "s",
"passthrough": true,
"name": "absent",
"x": 290,
"y": 2200,
"wires": [
[
"b401b8f660a529ba",
"c566ebea2807f081"
]
]
},
{
"id": "c9a831a205d6e524",
"type": "switch",
"z": "12b9999b.7256a6",
"name": "Si Absent",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "absent",
"vt": "str"
},
{
"t": "else"
}
],
"checkall": "true",
"repair": false,
"outputs": 2,
"x": 760,
"y": 2200,
"wires": [
[
"35a5cadfda35e074",
"bc54d2eb6b1fbc82"
],
[
"2c34854193359481",
"f9dbeb0ed7a2daba"
]
]
},
{
"id": "27e420e957267523",
"type": "moment",
"z": "12b9999b.7256a6",
"name": "Jour Heure",
"topic": "",
"input": "",
"inputType": "date",
"inTz": "Europe/Paris",
"adjAmount": 0,
"adjType": "days",
"adjDir": "add",
"format": "DD/MM/YYYY à HH:mm:ss",
"locale": "fr-FR",
"output": "mytime",
"outputType": "msg",
"outTz": "Europe/Paris",
"x": 590,
"y": 2200,
"wires": [
[
"c9a831a205d6e524",
"0d2534918cd56c0f"
]
]
},
{
"id": "b401b8f660a529ba",
"type": "rbe",
"z": "12b9999b.7256a6",
"name": "Filtre Etat",
"func": "rbe",
"gap": "",
"start": "",
"inout": "in",
"septopics": true,
"property": "payload",
"topi": "topic",
"x": 440,
"y": 2200,
"wires": [
[
"27e420e957267523",
"97107978f86b5b49"
]
]
},
{
"id": "155e5627177cd29a",
"type": "comment",
"z": "12b9999b.7256a6",
"name": "OMG",
"info": "",
"x": 90,
"y": 2160,
"wires": []
},
{
"id": "6897612d0dcdfa90",
"type": "debug",
"z": "12b9999b.7256a6",
"name": "debug 82",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 240,
"y": 2160,
"wires": []
},
{
"id": "c566ebea2807f081",
"type": "debug",
"z": "12b9999b.7256a6",
"name": "debug 84",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 400,
"y": 2160,
"wires": []
},
{
"id": "97107978f86b5b49",
"type": "debug",
"z": "12b9999b.7256a6",
"name": "debug 85",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 560,
"y": 2160,
"wires": []
},
{
"id": "0d2534918cd56c0f",
"type": "debug",
"z": "12b9999b.7256a6",
"name": "debug 86",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 720,
"y": 2160,
"wires": []
},
{
"id": "dcad48e57379680d",
"type": "mqtt-broker",
"name": "Mosquitto Docker",
"broker": "192.168.1.139",
"port": "1883",
"clientid": "",
"autoConnect": true,
"usetls": false,
"protocolVersion": "5",
"keepalive": "60",
"cleansession": true,
"birthTopic": "",
"birthQos": "0",
"birthRetain": "false",
"birthPayload": "",
"birthMsg": {},
"closeTopic": "",
"closeQos": "0",
"closePayload": "",
"closeMsg": {},
"willTopic": "",
"willQos": "0",
"willPayload": "",
"willMsg": {},
"userProps": "",
"sessionExpiry": ""
}
]
Je dois passer à coté de beaucoup de chose car :
- J’ai une message absent / présent par alternance quasi toute les minutes
- J’ai aussi eu 2 messages identiques malgré l’intervalle de 59s mais seulement sur la présence !
Mais surtout comment faire pour ne pas avoir cette alternance de message et vraiment avoir une présence et une absence quand je sors de la zone ?
Je dois mettre au point ceci pour gérer la présence de mon fils qui n’a pas de téléphone avec un forfait data.
Merci par avance de votre aide sur le sujet
System Information
version | core-2022.11.1 |
---|---|
installation_type | Home Assistant OS |
dev | false |
hassio | true |
docker | true |
user | root |
virtualenv | false |
python_version | 3.10.7 |
os_name | Linux |
os_version | 5.15.74 |
arch | x86_64 |
timezone | Europe/Paris |
config_dir | /config |
Home Assistant Community Store
GitHub API | ok |
---|---|
GitHub Content | ok |
GitHub Web | ok |
GitHub API Calls Remaining | 5000 |
Installed Version | 1.28.3 |
Stage | running |
Available Repositories | 1143 |
Downloaded Repositories | 76 |
Home Assistant Cloud
logged_in | true |
---|---|
subscription_expiration | 1 janvier 2018 à 01:00 |
relayer_connected | false |
remote_enabled | true |
remote_connected | false |
alexa_enabled | false |
google_enabled | false |
remote_server | null |
can_reach_cert_server | ok |
can_reach_cloud_auth | ok |
can_reach_cloud | ok |
Home Assistant Supervisor
host_os | Home Assistant OS 9.3 |
---|---|
update_channel | stable |
supervisor_version | supervisor-2022.10.2 |
agent_version | 1.4.1 |
docker_version | 20.10.18 |
disk_total | 30.8 GB |
disk_used | 16.1 GB |
healthy | true |
supported | true |
board | ova |
supervisor_api | ok |
version_api | ok |
installed_addons | Samba share (10.0.0), File editor (5.4.1), Terminal & SSH (9.6.1), Studio Code Server (5.4.0), Check Home Assistant configuration (3.11.0), Network UPS Tools (0.11.0), Samba Backup (5.2.0), Home Assistant Google Drive Backup (0.108.4), Dropbox Sync (1.3.0), Node-RED (13.5.1), TheengsGateway (1.3.0), ESPHome (2022.10.2) |
Dashboards
dashboards | 3 |
---|---|
resources | 47 |
views | 39 |
mode | storage |
Recorder
oldest_recorder_run | 29 octobre 2022 à 13:39 |
---|---|
current_recorder_run | 3 novembre 2022 à 20:48 |
estimated_db_size | 3693.72 MiB |
database_engine | sqlite |
database_version | 3.38.5 |