Search found 520 matches

by Kedi
Tuesday 18 February 2025 15:02
Forum: dzVents
Topic: Why is dzvents device lookup using name instead of idx
Replies: 13
Views: 447

Re: Why is dzvents device lookup using name instead of idx

I know, but generally speaking any application that has ID and Name labels uses the ID as primary look ups not the names I do not agree. Numbers are for computers and Names are for humans. The numbers are unique, so should the names be. If you use Google (dzga) You can call your lights, switches or ...
by Kedi
Thursday 13 February 2025 13:38
Forum: LUA
Topic: Is there a select statement?
Replies: 11
Views: 2169

Re: Is there a select statement?

Why run through all changed variables, instead of

Code: Select all

return {
    on = {
        variables = { 'NFC' }
    },
    execute = function(dz, item)
        ... do stuff
    end
}
by Kedi
Tuesday 11 February 2025 10:11
Forum: Other questions and discussions
Topic: Replacing Device question
Replies: 9
Views: 1489

Re: Replacing Device question

What happens to the error if you select something else then 'average' in the compare graph.
by Kedi
Tuesday 11 February 2025 9:20
Forum: Other questions and discussions
Topic: Replacing Device question
Replies: 9
Views: 1489

Re: Replacing Device question

Why not create 2 dummy devices, which you can delete later on, and test what happens when you replace one by the other. So simple. ;)
by Kedi
Friday 07 February 2025 16:13
Forum: Show your projects
Topic: Energy Dashboard (Build in)
Replies: 268
Views: 31336

Re: Energy Dashboard (Build in)

The content of %eventvalue1% should be 2 values separated by a ;
See https://wiki.domoticz.com/Domoticz_API/ ... d_counter)
The doc of espeasy writes that there should be a comma between SentToHTTP and the first parameter.

@waltervl was quicker.
by Kedi
Friday 07 February 2025 15:52
Forum: Show your projects
Topic: Energy Dashboard (Build in)
Replies: 268
Views: 31336

Re: Energy Dashboard (Build in)

Try

Code: Select all

 SendToHTTP 192.168.178.50:8080/json.htm?type=command&param=udevice&idx=915&nvalue=0&svalue=%eventvalue1%
I suppose %eventvalue1% is transleted to a value. B.t.w. what is that value? And is it a string?
Or should those comma's separate the values for the function?
by Kedi
Wednesday 05 February 2025 13:08
Forum: General Discussion
Topic: New project, a small wall display to control Domoticz using CYD (Cheap ESP32 touchscreen)
Replies: 232
Views: 27703

Re: New project, a small wall display to control Domoticz using CYD (Cheap ESP32 touchscreen)

I love it :D , but just a few remarks: 1. Personnal is incorrect, it should be personal with just 1 'n' 2. Personally I like the black background beter, perhaps that var could be transfered to the personal_settings.h file. So everybody could use its own personal background color more easily. 3. I ...
by Kedi
Wednesday 05 February 2025 9:15
Forum: LUA
Topic: Is there a select statement?
Replies: 11
Views: 2169

Re: Is there a select statement?

In https://www.lua.org/manual/5.1/manual.html you can see that the select statement is used for somewhat different.
What would be the benefit over "if then elseif end" method?
by Kedi
Tuesday 04 February 2025 10:54
Forum: dzVents
Topic: dzvents reset a timer with a switch for air filter swap
Replies: 10
Views: 4382

Re: dzvents reset a timer with a switch for air filter swap

WOW, so that is what Claude.ai does? So complicated. I use my phone agenda for this.
by Kedi
Tuesday 04 February 2025 9:07
Forum: Zigbee
Topic: Cannot get zigbee running
Replies: 25
Views: 2787

Re: Cannot get zigbee running

If you put more that 1 service in 1 compose file, I always put some healthchecks and depends_on in those files.
You can have race conditions for starting up the different services.
Beter is to have separate compose files for each service, than you have at first manual control about the startup order.
by Kedi
Saturday 25 January 2025 9:42
Forum: General Discussion
Topic: manual browse, de-bug and restore database?
Replies: 14
Views: 330

Re: manual browse, de-bug and restore database?

Look in the 'corrupt' database at devices 2584 and 2592 and look for some data inconsistancy e.g. string or nil And I don't think the database is corrupt, but some of the data might be not consistant. I don't think device have a status 'deleted', so if the device is deleted you can't delete it 'for ...
by Kedi
Friday 24 January 2025 16:46
Forum: General Discussion
Topic: manual browse, de-bug and restore database?
Replies: 14
Views: 330

Re: manual browse, de-bug and restore database?

NaN means Not a Number. So the database has not a number where the program expects one.
You can't just have the program delete records based on that error.
by Kedi
Friday 24 January 2025 10:02
Forum: General Discussion
Topic: manual browse, de-bug and restore database?
Replies: 14
Views: 330

Re: manual browse, de-bug and restore database?

Domoticz uses a SQLite database. SQLite transactions are ACID. ( https://en.wikipedia.org/wiki/ACID ) So this could not have happened. " Somehow, deleting them was halfway interrupted " Cause must have been something else. B.T.W. you don't need to stop Domoticz to execute those 3 SQL commands. I ...
by Kedi
Thursday 23 January 2025 18:50
Forum: Bugs and Problems
Topic: New install with errors.
Replies: 6
Views: 145

Re: New install with errors.

Error tab is only present if there are errors. Check the differences between the 2 mosquitto services. Especially the contents of /etc/mosquitto/mosquitto.conf and other included files. There might a difference, look for "allow_anonymous true" Otherwise put full debugging on the mosquitto service by ...
by Kedi
Thursday 23 January 2025 13:00
Forum: Bugs and Problems
Topic: New install with errors.
Replies: 6
Views: 145

Re: New install with errors.

As I see it, it is about IPv6. IPv4 works as it should and the Domoticz GUI is accesseble on both ports.
So should MQTT work on IPv4.
by Kedi
Thursday 23 January 2025 12:48
Forum: Bugs and Problems
Topic: New install with errors.
Replies: 6
Views: 145

Re: New install with errors.

On the picture you showed there are no errors. Errors are in the Error Tab.
Is in Zigbee2MQTT the Home Assistant integration enabled?
by Kedi
Tuesday 21 January 2025 19:43
Forum: dzVents
Topic: Failing to understand
Replies: 25
Views: 746

Re: Failing to understand

"if switch2 is on" is static --> so do nothing is valid
"if switch2 is turned on" is an action/trigger --> so "switch1 should turn off" is valid

Making a flowchart could help.
by Kedi
Tuesday 21 January 2025 15:17
Forum: General Discussion
Topic: manual browse, de-bug and restore database?
Replies: 14
Views: 330

Re: manual browse, de-bug and restore database?

waltervl wrote: Monday 20 January 2025 11:56 Yes, works fine. On Linux you have to run sglitebrowser with the same rights as the database owner (eg root) else it cannot open it.
Just as extra info for Linux.
If you have a webserver running then you can use "phpLiteAdmin" and view/change the Domoticz database.
by Kedi
Tuesday 21 January 2025 10:07
Forum: General Discussion
Topic: manual browse, de-bug and restore database?
Replies: 14
Views: 330

Re: manual browse, de-bug and restore database?

A domoticz_crash.log is created at the moment of the crash and is something different that domoticz logging.