Search found 105 matches

by paul402
Sunday 30 November 2025 11:14
Forum: dzVents
Topic: Easiest way to play a mp3 audio file on Raspi with Dzvents?
Replies: 16
Views: 358

Re: Easiest way to play a mp3 audio file on Raspi with Dzvents?

Well blow me down! That worked on both my Domoticz Pi3 and Pi4 installations. Thank you.
I only had to add the Python exit() command to the script.
Thanks
by paul402
Monday 24 November 2025 11:26
Forum: dzVents
Topic: Easiest way to play a mp3 audio file on Raspi with Dzvents?
Replies: 16
Views: 358

Re: Easiest way to play a mp3 audio file on Raspi with Dzvents?

I eventually found a solution on stackexchange....
So you need to add this after the play() command then it works from the cli and Domoticz.

while pygame.mixer.music.get_busy() == True:
pass


Who knows why!.... but I've wasted a lot of time on this.
I'm falling out of love with Raspis and its ...
by paul402
Sunday 23 November 2025 22:36
Forum: dzVents
Topic: Easiest way to play a mp3 audio file on Raspi with Dzvents?
Replies: 16
Views: 358

Re: Easiest way to play a mp3 audio file on Raspi with Dzvents?

I guess you mean this format domoticz.executeShellCommand('some shell command')
So I should use
domoticz.executeShellCommand('home/pi/Documents/01pythonPlayAudioCheckFridgeDoor.py')

which executes without error but without sound. I think that it's time for bed. Enough for tonight.
by paul402
Sunday 23 November 2025 15:42
Forum: dzVents
Topic: Easiest way to play a mp3 audio file on Raspi with Dzvents?
Replies: 16
Views: 358

Re: Easiest way to play a mp3 audio file on Raspi with Dzvents?


return {
active = true,

logging = {
level = domoticz.LOG_DEBUG,
marker = 'audio output'
},

on = {
timer = {'Every minute'}
},


execute = function(domoticz)

local cde = "home/pi/Documents/01pythonPlayAudioCheckFridgeDoor.py"
domoticz.executeShellCommand({
command = cde ...
by paul402
Saturday 22 November 2025 22:03
Forum: dzVents
Topic: Easiest way to play a mp3 audio file on Raspi with Dzvents?
Replies: 16
Views: 358

Re: Easiest way to play a mp3 audio file on Raspi with Dzvents?

Well it didn't end up being easy!
This audio file in the /scripts directory
sh01CheckFridgeDoor.mp3

This python file in /scripts with all permissions

#!/usr/bin/python3
import sys
sys.path.append('/home/pi/domoticz/scripts/python')
# to check path is updated
print (sys.path)
### File name here
af ...
by paul402
Friday 14 November 2025 23:34
Forum: dzVents
Topic: Easiest way to play a mp3 audio file on Raspi with Dzvents?
Replies: 16
Views: 358

Re: Easiest way to play a mp3 audio file on Raspi with Dzvents?

Thanks for that. It's so easy when you know!
by paul402
Friday 14 November 2025 17:52
Forum: dzVents
Topic: Easiest way to play a mp3 audio file on Raspi with Dzvents?
Replies: 16
Views: 358

Easiest way to play a mp3 audio file on Raspi with Dzvents?

I have a warning script when the bathroom roof window is open for more than 30 minutes and when the outside temperature is less than 17C it sends a Telegram message. I have an amp and speaker attached to the Raspi but haven't worked out yet how to play an audio file with Dzvents. The file works fine ...
by paul402
Thursday 30 October 2025 16:30
Forum: Other questions and discussions
Topic: 433 MHz Door Open/Close Tamper Switch
Replies: 1
Views: 77

433 MHz Door Open/Close Tamper Switch

I had some from Kerui which worked great but they no longer seem to be available. The latest Kerui switches only seem to send an open alarm signal but no close signal.
Any recommendations?
Also I found a no brand switch here
https://www.amazon.de/-/en/Magnetic-Contact-Wireless-Detector-Security ...
by paul402
Thursday 11 September 2025 19:03
Forum: General Discussion
Topic: How to build a better front end
Replies: 2
Views: 168

How to build a better front end

Is there a tutorial. I've invested lots of time over the years getting Domoticz to do what I want but I really don't like the way the data is displayed.
Before I start looking at alternative automation systems how would I be able to pull the data out in the way that I would like to see it.
What ...
by paul402
Friday 21 February 2025 12:56
Forum: dzVents
Topic: Identify a switching sequence
Replies: 8
Views: 2090

Re: Identify a switching sequence

Thank you. I've learned something new!
Much appreciated. Can't wait to try this on another project I have in mind to create a touch screen Raspi with rotating info/photo screens.
by paul402
Sunday 16 February 2025 6:28
Forum: dzVents
Topic: Identify a switching sequence
Replies: 8
Views: 2090

Re: Identify a switching sequence

Thanks. I've never used AI/ChatGPT before how do you phrase a request for code? Do you have an example of what you entered to reply to my initial post?
by paul402
Friday 14 February 2025 15:28
Forum: dzVents
Topic: Identify a switching sequence
Replies: 8
Views: 2090

Re: Identify a switching sequence

Wow! Thank you. I never expected so much help!
Can I be cheeky and ask how I would change this if the motion sequence went sensor1, sensor2 and back to sensor1 as the alternative possible exit.
by paul402
Friday 14 February 2025 14:31
Forum: dzVents
Topic: Identify a switching sequence
Replies: 8
Views: 2090

Identify a switching sequence

I would like to know if 3 movement sensors are triggered in a sequence with max 5 minutes gap between each of the triggers for the data to be valid.
I not sure how to go about this so would appreciate some hints on how to do it.
I'm not asking someone to do it for me, just give me a clue. For ...
by paul402
Monday 09 December 2024 10:09
Forum: Design, usability and languages
Topic: Incomplete text shown on dashboard
Replies: 8
Views: 13492

Re: Incomplete text shown on dashboard

I have a long header for some alert boxes which are over written by the status
header.png
header.png (12.17 KiB) Viewed 12793 times
. I tried this approach but it had no affect on the header. Has something changed or am I looking in the wrong place?
by paul402
Monday 11 November 2024 18:58
Forum: Other questions and discussions
Topic: Physically lockable window handles with switches that can report..
Replies: 0
Views: 1802

Physically lockable window handles with switches that can report..

.. their open/closed/tilted/locked/unlocked status.
I can find a few which will report open/closed/tilt but as far as I can tell I cannot find any that can report a locked status. That is that the key lockable pin is engaged. I'm currently using Hoppe lockable window handles on tilt and turn windows ...
by paul402
Wednesday 02 October 2024 14:56
Forum: dzVents
Topic: Dzvent Read Triangle Alert Value/Colour
Replies: 2
Views: 920

Re: Dzvent Read Triangle Alert Value/Colour

Thank you! I have 20 other scripts running ok but I just couldn't see the wood for the trees.
by paul402
Wednesday 02 October 2024 14:39
Forum: dzVents
Topic: Dzvent Read Triangle Alert Value/Colour
Replies: 2
Views: 920

Dzvent Read Triangle Alert Value/Colour

Having read and obviously misunderstood the documentation I assumed that this would work.

Code: Select all

if (Devices(3732).color== 1) then
but in the error log I get attempt to call a nil value (global 'Devices')
The device number exists.
Any feedback appreciated.
by paul402
Wednesday 29 May 2024 14:22
Forum: dzVents
Topic: Am I doing this wrong?
Replies: 4
Views: 860

Re: Am I doing this wrong?

Well thanks for the answers.
@jvdz how do functions = subroutines. I cannot find this functionality.
Anyhow here is a very simplified schema of my python script.

Python
setup array
read in data (tuples)

=========
example data for one shutter device
# device, time1, time2, offset-time, up/down-on ...
by paul402
Wednesday 29 May 2024 13:03
Forum: dzVents
Topic: Am I doing this wrong?
Replies: 4
Views: 860

Am I doing this wrong?

This post is not about criticism. It may be that I cannot see the wood for the trees and need help.

So I have a single perfectly running python script that controls 35 IP devices with over 100 command rules. I send the results to Domoticz dummy devices for display using json.
The python initial ...
by paul402
Wednesday 29 May 2024 12:45
Forum: dzVents
Topic: http command to shelly
Replies: 3
Views: 939

Re: http command to shelly

Thanks. Yes I have already been using python to send http commands from on/off actions but wanted to incorporate the functionality in Dzvents.
I now have another issue but I will post that seperately.