73_PRESENCE Force report

Begonnen von gabvoir, 31 Oktober 2018, 12:32:26

Vorheriges Thema - Nächstes Thema

gabvoir

Hello,
I'm french, so i'll speak in english :)
I installed recently FHEM with lepresenced in order to communicate with my eedomus box.
All is okey for a normal use but I would like to improve the interface.

I would like from my box, therefore through an HTTP API, to force the presence report.
Actually I set time report to "30/60", but I would like send a report when for instance my entrance door is opened.
Is it possible ?

Thank's for helping

PatrickR

Bonsoir!

set presencedevice statusRequest
should do the trick.

Patrick


Von unterwegs gesendet.
lepresenced - Tracking von Bluetooth-LE-Tags (Gigaset G-Tag) mittels PRESENCE

"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to produce bigger and better idiots. So far, the universe is winning." - Rich Cook

gabvoir

Thank you for trick !
Then I would like to do through WEB API and return result in XML format.
I set :
define WEBeedomus FHEMWEB [PORT] global
attr WEBeedomus allowfrom [IPBOX]
attr WEBeedomus csrfToken none

And then :
http://[IPFHEM]:[PORT]/fhem?cmd=set%20Pebblebee_Gab%20statusRequest%201

But how could I have Pebblebee_Gab status in XML ?

Thank you