Get trigger User

Easy to use, 100% Lua-based event scripting framework.

Moderator: leecollings

Post Reply
azonneveld
Posts: 189
Joined: Wednesday 02 October 2019 7:37
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Location: Netherlands
Contact:

Get trigger User

Post by azonneveld »

In the logs the user is shown that activated a device.
Is there a way to get that data in dzvents?

The usecase is: RFXCom is a manual action, the others are automated actions

Image
rpi4 - zigbee2mqtt - roborock - espeasy - rfxcom - homewizard p1 - otgw - homebridge - surveillance station - egardia - goodwe (sems&modbus) - open weather map - wol - BBQ detection - rsync backup - zendure
User avatar
habahabahaba
Posts: 283
Joined: Saturday 18 March 2023 14:44
Target OS: Windows
Domoticz version: 2024.4
Contact:

Re: Get trigger User

Post by habahabahaba »

Via the api call

Code: Select all

http://<domoticzURL>/json.htm?type=command&param=getlightlog&idx=<id_of the switch>
if it is the switch
Post Reply