Shellly Plus Smoke en MQTT

Salut,

Je viens vers vous car comme je suis une bille la dedans j’ai besoin d’un petit coup de main
J’ai un Shelly Plus Smoke en détecteur de fumée.

J’ai bien configuré le bignou pour le Mqtt et j’ai réussi à obtenir l’état Online dans MQTT Manager

Je souhaite à présent pouvoir avoir le status de l’alarme et la couper si elle se déclenche
Mais je n’arrive à rien
J’ai bien lu ça et regardé vis à vis des autres shelly que j’ai mais bon c’est pas mon truc

Merki

une piste

Smoke.GetStatus

Smoke.GetConfig

Smoke.SetConfig

Salut,

Voici le log dans mqtt manager

3143|[2024-02-11 08:45:55] DEBUG  : Received message on topic : shellies/smoke/online => true
3144|[2024-02-11 08:45:55] DEBUG  : Received message on topic : shellies/smoke/status/ble => {}
3145|[2024-02-11 08:45:55] DEBUG  : Received message on topic : shellies/smoke/status/cloud => {"connected":false}
3146|[2024-02-11 08:45:55] DEBUG  : Received message on topic : shellies/smoke/status/devicepower:0 => {"id": 0,"battery":{"V":2.99, "percent":98}}
3148|[2024-02-11 08:45:55] DEBUG  : Received message on topic : shellies/smoke/status/mqtt => {"connected":true}
3149|[2024-02-11 08:45:55] DEBUG  : Received message on topic : shellies/smoke/status/smoke:0 => {"id":0,"alarm":false, "mute":false}
3151|[2024-02-11 08:45:55] DEBUG  : Received message on topic : shellies/smoke/status/wifi => {"sta_ip":"192.168.1.62","status":"got ip","ssid":"GiGa24","rssi":-54}
3152|[2024-02-11 08:45:55] DEBUG  : Received message on topic : shellies/smoke/status/ws => {"connected":false}
3154|[2024-02-11 08:45:55] DEBUG  : Received message on topic : shellies/smoke/status/mqtt => {"connected":true}
3155|[2024-02-11 08:45:55] DEBUG  : Received message on topic : shellies/smoke/events/rpc => {"src":"shellyplussmoke-80646fd08588","dst":"shellies/smoke/events","method":"NotifyFullStatus","params":{"ts":1.56,"ble":{},"cloud":{"connected":false},"devicepower:0":{"id": 0,"battery":{"V":2.99, "percent":98}},"mqtt":{"connected":true},"smoke:0":{"id":0,"alarm":false, "mute":false},"sys":{"mac":"80646FD08588","restart_required":false,"time":null,"unixtime":null,"uptime":1,"ram_size":262444,"ram_free":155144,"fs_size":458752,"fs_free":172032,"cfg_rev":13,"kvs_rev":1,"webhook_rev":0,"available_updates":{},"wakeup_reason":{"boot":"poweron","cause":"undefined"},"wakeup_period":86400,"reset_reason":1},"wifi":{"sta_ip":"192.168.1.62","status":"got ip","ssid":"GiGa24","rssi":-54},"ws":{"connected":false}}}
3156|[2024-02-11 08:45:55] DEBUG  : Received message on topic : shellies/smoke/events/rpc => {"src":"shellyplussmoke-80646fd08588","dst":"shellies/smoke/events","method":"NotifyStatus","params":{"ts":1.56,"mqtt":{"connected":true}}}
3197|[2024-02-11 08:45:58] DEBUG  : Received message on topic : shellies/smoke/events/rpc => {"src":"shellyplussmoke-80646fd08588","dst":"shellies/smoke/events","method":"NotifyStatus","params":{"ts":1707641158.21,"smoke:0":{"id":0,"alarm":true}}}
3198|[2024-02-11 08:45:58] DEBUG  : Received message on topic : shellies/smoke/status/smoke:0 => {"id":0,"alarm":true, "mute":false}
3199|[2024-02-11 08:45:58] DEBUG  : Received message on topic : shellies/smoke/status/sys => {"mac":"80646FD08588","restart_required":false,"time":"09:45","unixtime":1707641158,"uptime":3,"ram_size":262408,"ram_free":154876,"fs_size":458752,"fs_free":172032,"cfg_rev":13,"kvs_rev":1,"webhook_rev":0,"available_updates":{},"wakeup_reason":{"boot":"poweron","cause":"alarm"},"wakeup_period":86400,"reset_reason":1}
3200|[2024-02-11 08:45:58] DEBUG  : Received message on topic : shellies/smoke/events/rpc => {"src":"shellyplussmoke-80646fd08588","dst":"shellies/smoke/events","method":"NotifyStatus","params":{"ts":1707641158.21,"sys":{"wakeup_reason":{"cause":"alarm"}}}}
3505|[2024-02-11 08:46:06] DEBUG  : Received message on topic : shellies/smoke/events/rpc => {"src":"shellyplussmoke-80646fd08588","dst":"shellies/smoke/events","method":"NotifyStatus","params":{"ts":1707641166.75,"sys":{"available_updates":{"beta":{"version":"1.2.0-beta1"}}}}}
3507|[2024-02-11 08:46:06] DEBUG  : Received message on topic : shellies/smoke/status/sys => {"mac":"80646FD08588","restart_required":false,"time":"09:46","unixtime":1707641166,"uptime":12,"ram_size":262388,"ram_free":153968,"fs_size":458752,"fs_free":172032,"cfg_rev":13,"kvs_rev":1,"webhook_rev":0,"available_updates":{"beta":{"version":"1.2.0-beta1"}},"wakeup_reason":{"boot":"poweron","cause":"alarm"},"wakeup_period":86400,"reset_reason":1}
3974|[2024-02-11 08:46:24] DEBUG  : Received message on topic : shellies/smoke/events/rpc => {"src":"shellyplussmoke-80646fd08588","dst":"shellies/smoke/events","method":"NotifyStatus","params":{"ts":1707641184.37,"smoke:0":{"id":0,"mute":true}}}
3975|[2024-02-11 08:46:24] DEBUG  : Received message on topic : shellies/smoke/status/smoke:0 => {"id":0,"alarm":true, "mute":true}
7799|[2024-02-11 08:48:20] DEBUG  : Received message on topic : shellies/smoke/events/rpc => {"src":"shellyplussmoke-80646fd08588","dst":"shellies/smoke/events","method":"NotifyStatus","params":{"ts":1707641300.25,"smoke:0":{"id":0,"alarm":false}}}
7800|[2024-02-11 08:48:20] DEBUG  : Received message on topic : shellies/smoke/status/smoke:0 => {"id":0,"alarm":false, "mute":true}
7840|[2024-02-11 08:48:20] DEBUG  : Received message on topic : shellies/smoke/online => false

Et ceux du démon

0023|[2024-02-11 08:44:26] DEBUG  : Received message on topic : shellies/Smoke/online => true
0024|[2024-02-11 08:44:26] DEBUG  : Received message on topic : shellies/smoke/online => false
3143|[2024-02-11 08:45:55] DEBUG  : Received message on topic : shellies/smoke/online => true
3144|[2024-02-11 08:45:55] DEBUG  : Received message on topic : shellies/smoke/status/ble => {}
3145|[2024-02-11 08:45:55] DEBUG  : Received message on topic : shellies/smoke/status/cloud => {"connected":false}
3146|[2024-02-11 08:45:55] DEBUG  : Received message on topic : shellies/smoke/status/devicepower:0 => {"id": 0,"battery":{"V":2.99, "percent":98}}
3148|[2024-02-11 08:45:55] DEBUG  : Received message on topic : shellies/smoke/status/mqtt => {"connected":true}
3149|[2024-02-11 08:45:55] DEBUG  : Received message on topic : shellies/smoke/status/smoke:0 => {"id":0,"alarm":false, "mute":false}
3150|[2024-02-11 08:45:55] DEBUG  : Received message on topic : shellies/smoke/status/sys => {"mac":"80646FD08588","restart_required":false,"time":null,"unixtime":null,"uptime":1,"ram_size":262388,"ram_free":154412,"fs_size":458752,"fs_free":172032,"cfg_rev":13,"kvs_rev":1,"webhook_rev":0,"available_updates":{},"wakeup_reason":{"boot":"poweron","cause":"undefined"},"wakeup_period":86400,"reset_reason":1}
3151|[2024-02-11 08:45:55] DEBUG  : Received message on topic : shellies/smoke/status/wifi => {"sta_ip":"192.168.1.62","status":"got ip","ssid":"GiGa24","rssi":-54}
3152|[2024-02-11 08:45:55] DEBUG  : Received message on topic : shellies/smoke/status/ws => {"connected":false}
3154|[2024-02-11 08:45:55] DEBUG  : Received message on topic : shellies/smoke/status/mqtt => {"connected":true}
3155|[2024-02-11 08:45:55] DEBUG  : Received message on topic : shellies/smoke/events/rpc => {"src":"shellyplussmoke-80646fd08588","dst":"shellies/smoke/events","method":"NotifyFullStatus","params":{"ts":1.56,"ble":{},"cloud":{"connected":false},"devicepower:0":{"id": 0,"battery":{"V":2.99, "percent":98}},"mqtt":{"connected":true},"smoke:0":{"id":0,"alarm":false, "mute":false},"sys":{"mac":"80646FD08588","restart_required":false,"time":null,"unixtime":null,"uptime":1,"ram_size":262444,"ram_free":155144,"fs_size":458752,"fs_free":172032,"cfg_rev":13,"kvs_rev":1,"webhook_rev":0,"available_updates":{},"wakeup_reason":{"boot":"poweron","cause":"undefined"},"wakeup_period":86400,"reset_reason":1},"wifi":{"sta_ip":"192.168.1.62","status":"got ip","ssid":"GiGa24","rssi":-54},"ws":{"connected":false}}}
3156|[2024-02-11 08:45:55] DEBUG  : Received message on topic : shellies/smoke/events/rpc => {"src":"shellyplussmoke-80646fd08588","dst":"shellies/smoke/events","method":"NotifyStatus","params":{"ts":1.56,"mqtt":{"connected":true}}}
3197|[2024-02-11 08:45:58] DEBUG  : Received message on topic : shellies/smoke/events/rpc => {"src":"shellyplussmoke-80646fd08588","dst":"shellies/smoke/events","method":"NotifyStatus","params":{"ts":1707641158.21,"smoke:0":{"id":0,"alarm":true}}}
3198|[2024-02-11 08:45:58] DEBUG  : Received message on topic : shellies/smoke/status/smoke:0 => {"id":0,"alarm":true, "mute":false}
3199|[2024-02-11 08:45:58] DEBUG  : Received message on topic : shellies/smoke/status/sys => {"mac":"80646FD08588","restart_required":false,"time":"09:45","unixtime":1707641158,"uptime":3,"ram_size":262408,"ram_free":154876,"fs_size":458752,"fs_free":172032,"cfg_rev":13,"kvs_rev":1,"webhook_rev":0,"available_updates":{},"wakeup_reason":{"boot":"poweron","cause":"alarm"},"wakeup_period":86400,"reset_reason":1}
3200|[2024-02-11 08:45:58] DEBUG  : Received message on topic : shellies/smoke/events/rpc => {"src":"shellyplussmoke-80646fd08588","dst":"shellies/smoke/events","method":"NotifyStatus","params":{"ts":1707641158.21,"sys":{"wakeup_reason":{"cause":"alarm"}}}}
3201|[2024-02-11 08:45:58] DEBUG  : Send data to jeedom : {"shellies":{"smoke":{"events":{"rpc":{"src":"shellyplussmoke-80646fd08588","dst":"shellies/smoke/events","method":"NotifyStatus","params":{"ts":1707641158.21,"smoke:0":{"id":0,"alarm":true},"sys":{"wakeup_reason":{"cause":"alarm"}}}}},"status":{"smoke:0":{"id":0,"alarm":true,"mute":false},"sys":{"mac":"80646FD08588","restart_required":false,"time":"09:45","unixtime":1707641158,"uptime":3,"ram_size":262408,"ram_free":154876,"fs_size":458752,"fs_free":172032,"cfg_rev":13,"kvs_rev":1,"webhook_rev":0,"available_updates":{},"wakeup_reason":{"boot":"poweron","cause":"alarm"},"wakeup_period":86400,"reset_reason":1}}}}}
3505|[2024-02-11 08:46:06] DEBUG  : Received message on topic : shellies/smoke/events/rpc => {"src":"shellyplussmoke-80646fd08588","dst":"shellies/smoke/events","method":"NotifyStatus","params":{"ts":1707641166.75,"sys":{"available_updates":{"beta":{"version":"1.2.0-beta1"}}}}}
3507|[2024-02-11 08:46:06] DEBUG  : Received message on topic : shellies/smoke/status/sys => {"mac":"80646FD08588","restart_required":false,"time":"09:46","unixtime":1707641166,"uptime":12,"ram_size":262388,"ram_free":153968,"fs_size":458752,"fs_free":172032,"cfg_rev":13,"kvs_rev":1,"webhook_rev":0,"available_updates":{"beta":{"version":"1.2.0-beta1"}},"wakeup_reason":{"boot":"poweron","cause":"alarm"},"wakeup_period":86400,"reset_reason":1}
3975|[2024-02-11 08:46:24] DEBUG  : Received message on topic : shellies/smoke/status/smoke:0 => {"id":0,"alarm":true, "mute":true}
7800|[2024-02-11 08:48:20] DEBUG  : Received message on topic : shellies/smoke/status/smoke:0 => {"id":0,"alarm":false, "mute":true}
7807|[2024-02-11 08:48:20] DEBUG  : Received message on topic : shellies/smoke/events/rpc => {"src":"shellyplussmoke-80646fd08588","dst":"shellies/smoke/events","method":"NotifyEvent","params":{"ts":1707641300.34,"events":[{"component":"sys", "event":"sleep", "ts":1707641300.34}]}}
7840|[2024-02-11 08:48:20] DEBUG  : Received message on topic : shellies/smoke/online => false

Donc le Online fonctionne, mute aussi on le voit dans les logs
Par contre l’état alarme non mais j’ai mis une action ca devrait etre une info non ?

Info

Je regarde pour le reste

Ce sujet a été automatiquement fermé après 24 heures suivant le dernier commentaire. Aucune réponse n’est permise dorénavant.