Search found 62 matches

by Melotron
Monday 14 February 2022 17:06
Forum: dzVents
Topic: Backup of domoticz.db by means of dzVents-script
Replies: 15
Views: 1430

Re: Backup of domoticz.db by means of dzVents-script

Now upcoming hurdle is tuning&clean-up of the main script For this so would I turn my eyes to a python script. I have started to look little at it. I have a few minor script in python, but a friend are fluent in it and its an amazing. You can do whatever you want with a database and filter alot out ...
by Melotron
Sunday 13 February 2022 19:15
Forum: dzVents
Topic: Backup of domoticz.db by means of dzVents-script
Replies: 15
Views: 1430

Re: Backup of domoticz.db by means of dzVents-script

Im using an external bash file to backup the database and another for the whole domoticz folder. Daily backup. #!/bin/bash sudo cp /home/domoticz/domoticz/domoticz.db /mnt/Backup/Esprino/Domoticz/domoticz_"$(date '+%Y-%m-%d').db" sudo /usr/bin/find /mnt/Backup/Esprino/Domoticz/ -name '*.db*' -mtime ...
by Melotron
Wednesday 23 September 2020 17:39
Forum: dzVents
Topic: Set Light to On based on motion detection between time [Solved]
Replies: 29
Views: 2413

Re: Set Light to On based on motion detection between time [Solved]

Or would this work? local Kelvin ['at 18:01-07:00'] = 75, ['at 07:01-18:00'] = 45 domoticz.devices(101).setKelvin(Kelvin) No that is not the right syntaxis. use something like local Kelvin = domoticz.time.matchesRule('at 18:01-07:00') and 75 or 45 -- 75 during nighttime and 45 during day domoticz ...
by Melotron
Wednesday 23 September 2020 11:26
Forum: dzVents
Topic: Set Light to On based on motion detection between time [Solved]
Replies: 29
Views: 2413

Re: Set Light to On based on motion detection between time [Solved]

Or would this work?

local Kelvin ['at 18:01-07:00'] = 75, ['at 07:01-18:00'] = 45

domoticz.devices(101).setKelvin(Kelvin)
by Melotron
Wednesday 23 September 2020 10:50
Forum: dzVents
Topic: Set Light to On based on motion detection between time [Solved]
Replies: 29
Views: 2413

Re: Set Light to On based on motion detection between time [Solved]

I want to have a low Kelvin during daytime and a higher Kelvin after the sun goes down. I can achieve that with 2 scripts, but I could shrink my scripts down by setting times when a specific lamp should be on in a script. Like this? return { on = { timer = { 'at sunset', 'at sunrise', }, }, logging ...
by Melotron
Wednesday 23 September 2020 6:51
Forum: dzVents
Topic: Set Light to On based on motion detection between time [Solved]
Replies: 29
Views: 2413

Re: Set Light to On based on motion detection between time [Solved]

I want to have a low Kelvin during daytime and a higher Kelvin after the sun goes down.
I can achieve that with 2 scripts, but I could shrink my scripts down by setting times when a specific lamp should be on in a script.
by Melotron
Tuesday 22 September 2020 21:56
Forum: dzVents
Topic: Set Light to On based on motion detection between time [Solved]
Replies: 29
Views: 2413

Re: Set Light to On based on motion detection between time [Solved]

Hi. I've been trying to get a similar script running for myself for a few motion sensors. I'am getting the following error : 2020-09-22 18:52:11.225 ...ticz/scripts/dzVents/generated_scripts/dz timer test.lua:4: '}' expected near '=' Syntax to use is return { on = { devices = { [118] = { 'between ...
by Melotron
Tuesday 22 September 2020 19:05
Forum: dzVents
Topic: Set Light to On based on motion detection between time [Solved]
Replies: 29
Views: 2413

Re: Set Light to On based on motion detection between time [Solved]

Hi. I've been trying to get a similar script running for myself for a few motion sensors. I'am getting the following error : 2020-09-22 18:52:11.225 ...ticz/scripts/dzVents/generated_scripts/dz timer test.lua:4: '}' expected near '=' The script that I'am using are this: return { on = { devices ...
by Melotron
Wednesday 01 July 2020 22:01
Forum: Zigbee
Topic: deCONZ and Ikea tradfri E1743
Replies: 1
Views: 780

deCONZ and Ikea tradfri E1743

Greetings. Atm I have a Hue bridge with a few lamps and a few on 433mhz, but I want to add ikeas on/off button to my system. And have them to set a virtual switch for us when we are going to sleep. I've installed the ConBee II and got it to work on domoticz, ive also added the button. But when I ...
by Melotron
Sunday 22 March 2020 9:48
Forum: Python
Topic: Python plugin: Presence detection from wireless router
Replies: 1108
Views: 201851

Re: Python plugin: Presence detection from wireless router

@Melotron It looks like the wireless interfaces are named eth*, so that should not be a problem. I don’t know why the wl command is not able to query them. Using the #type=forcegeneric configuration is a work-around. More research is needed to find the correct way to find connected clients on a a ...
by Melotron
Saturday 21 March 2020 16:05
Forum: Python
Topic: Python plugin: Presence detection from wireless router
Replies: 1108
Views: 201851

Re: Python plugin: Presence detection from wireless router

From memory (I am not at a computer right now): can you run ifconfig on the router and share the output? admin@RT-AX88U-97B0:/tmp/home/root# ifconfig br0 Link encap:Ethernet HWaddr 04:D9:F5:FA:97:B0 inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0 UP BROADCAST RUNNING ALLMULTI MULTICAST ...
by Melotron
Saturday 21 March 2020 12:39
Forum: Python
Topic: Python plugin: Presence detection from wireless router
Replies: 1108
Views: 201851

Re: Python plugin: Presence detection from wireless router

It looks like ssh is working just fine and the autodetection does find a suitable command to use on your router (wl). However, it does not find an interface te use the command on. Maybe the ax88u has some unusual interface names that I need to add to the plugin? Your custom tracker string is using ...
by Melotron
Saturday 21 March 2020 9:29
Forum: Python
Topic: Python plugin: Presence detection from wireless router
Replies: 1108
Views: 201851

Re: Python plugin: Presence detection from wireless router

Greetings. I have installed a new router a home, a AX88U and reinstalled the script. But now I'am getting a ssh error. 2020-03-21 09:33:17.307 Status: (iDetect) Started. 2020-03-21 09:33:17.596 Status: (iDetect) Entering work loop. 2020-03-21 09:33:17.599 Status: (iDetect) Initialized version 2.0 ...
by Melotron
Wednesday 15 May 2019 11:34
Forum: dzVents
Topic: No file
Replies: 2
Views: 325

Re: No file

Thanks!
I added a a dot on two scipts name to signal that they should be run at when we get home.

I removed the dots and now everything are working as it should be =)
by Melotron
Tuesday 14 May 2019 21:33
Forum: dzVents
Topic: No file
Replies: 2
Views: 325

No file

Greetings. I have alot of no files in my logs after Ive reinstalled and started off fresh. My install was a few years old from a Rasp B+ that I migated over to a Rasp 3B+ last summer. I had the same error on my old rasp but figured it was from the migation. Here are my logs: 2019-05-14 21:24:24.852 ...
by Melotron
Sunday 12 May 2019 22:59
Forum: dzVents
Topic: dzvents performance big script or multiple small ones
Replies: 6
Views: 1012

Re: dzvents performance big script or multiple small ones

I'm using several smal scripts. One for each room controlled with different lux. And for leaving the apartment. And a few other minor one, 14 scripts totally. Its easy to manage individual and if I mess up a script it's only a smal part off the apartment that gets effected. Also no big change on ...
by Melotron
Friday 10 May 2019 10:08
Forum: Python
Topic: Python plugin: Presence detection from wireless router
Replies: 1108
Views: 201851

Re: Python plugin: Presence detection from wireless router

Nm on my error.
Its something wrong with my db file.
Reinstalled Domoticz and added the dB file and I get the same error.
So I'm going to rebuild everything from scratch.
Got my scripts saved and a list of my virtual switches.

//Magnus Svensson
by Melotron
Thursday 09 May 2019 19:05
Forum: Python
Topic: Python plugin: Presence detection from wireless router
Replies: 1108
Views: 201851

Re: Python plugin: Presence detection from wireless router

Greetings. I had to change my phone due to damage, but when I was trying to update my new mac address there was a problem with my hardware. Tried to update with git pull but the same. SO I removed it, removes the ssh key and redid the key and tried to reinstall the plugin. But I am still getting the ...
by Melotron
Thursday 23 August 2018 18:05
Forum: Other questions and discussions
Topic: Detect a tv
Replies: 6
Views: 796

Re: Detect a tv

Thanks.
That one was really cool. Thanks alot =)
by Melotron
Thursday 23 August 2018 16:37
Forum: Python
Topic: Python plugin: Presence detection from wireless router
Replies: 1108
Views: 201851

Re: Python plugin: Presence detection from wireless router

Solved it.

Figured out at work that I needed to delete the old ssh key and get a new one.

Code: Select all

sudo ssh-keygen -f "/root/.ssh/known_hosts" -R 192.168.1.1