Log/ history of virtual alert sensor

Please use template to report bugs and problems. Post here your questions when not sure where else to post
Only for bugs in the Domoticz application! other problems go in different subforums!

Moderators: leecollings, remb0

Forum rules
Before posting here, make sure you are on the latest Beta or Stable version.
If you have problems related to the web gui, clear your browser cache + appcache first.

Use the following template when posting here:

Version: xxxx
Platform: xxxx
Plugin/Hardware: xxxx
Description:
.....

If you are having problems with scripts/blockly, always post the script (in a spoiler or code tag) or screenshots of your blockly

If you are replying, please do not quote images/code from the first post

Please mark your topic as Solved when the problem is solved.
Post Reply
John
Posts: 7
Joined: Wednesday 29 November 2023 11:45
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Log/ history of virtual alert sensor

Post by John »

Version: 2024.7
Platform: Raspbian

I made a virtual alert sensor which shows when my doorbell is pressed using rfxcom - nodered - mqtt.

The sensor shows when de doorbell is pressed, but there is no history in the log.

Is there a way to solve this, or is there anonther way to display the history of alerts?
Stepdes
Posts: 26
Joined: Monday 13 November 2017 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1
Location: Belgium
Contact:

Re: Log/ history of virtual alert sensor

Post by Stepdes »

Hi,

I also have a doorbell via rfxcom, mine keeps a log in domoticz.
Why you using node red and mqtt for this?
You could link an action or send a notification from within the domoticz doorbell switch.

Stephan
zicht
Posts: 269
Joined: Sunday 11 May 2014 11:09
Target OS: Windows
Domoticz version: 2023.1+
Location: NL
Contact:

Re: Log/ history of virtual alert sensor

Post by zicht »

Hi

You wrote in the title you use an alert sensor. (Ignore this message if this a false observation)

Alert sensor can be a bit tricky as you need to set the triangle color to ánd its a text sensor...
see : https://wiki.domoticz.com/Domoticz_API/ ... ert_sensor
the best way in lua is by setting : commandArray[#commandArray + 1]={['UpdateDevice']='IDX'..'|'..Alevel..'|'..textvalue
(Note on this that ON/OFF is a binary state and not a text value)

If your set an alert sensor by an on/off doorbell device it probably wont work as it is it cannot handle this.
In lua you can receive the signal from the on/off doorbell and set (with lua) the alert sensor as you wish with the above statement.
Hope this helps.....

As for notifications : test if it works on another sensor as expected and try to find the differences, maybe its not about the doorbel but about the general notification settings ?
Rpi & Win x64. Using : cam's,RFXCom, LaCrosse, RFY, HuE, google, standard Lua, Tasker, Waze traveltime, NLAlert&grip2+,curtains, vacuum, audioreceiver, smart-heating&cooling + many more (= automate all repetitive simple tasks)
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests