domoticz with docker, a new dzevent script is without the template Topic is solved

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
acaonweb
Posts: 92
Joined: Thursday 23 March 2017 14:18
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

domoticz with docker, a new dzevent script is without the template

Post by acaonweb »

Version: 2025.2 (build 16818)
Platform: Docker
Description:
i have Domoticz into a container created with this stack

Code: Select all

version: '3.8'

services:
  domoticz:
    image: domoticz/domoticz:stable
    container_name: domoticz
    restart: unless-stopped
    depends_on:
      - mosquitto
    networks:
      myNetwork:
        ipv4_address: DOMOTICZ-IP
    ports:
      - "8080:8080"
    volumes:
      - /srv/dev-disk-by-uuid-36662cd8-800d-4017-83bc-40f63d06148e/domoticz:/opt/domoticz/userdata

  mosquitto:
    image: eclipse-mosquitto
    container_name: mosquitto
    restart: always
    volumes:
      - /srv/dev-disk-by-uuid-36662cd8-800d-4017-83bc-40f63d06148e/mqtt/config:/mosquitto/config
      - /srv/dev-disk-by-uuid-36662cd8-800d-4017-83bc-40f63d06148e/mqtt/data:/mosquitto/data
      - /srv/dev-disk-by-uuid-36662cd8-800d-4017-83bc-40f63d06148e/mqtt/log:/mosquitto/log
    networks:
      myNetwork:
        ipv4_address: MQTT-IP
    ports:
      - 1883:1883
      - 9001:9001
    stdin_open: true 
    tty: true

  homebridge:
    image: homebridge/homebridge:ubuntu
    container_name: homebridge-dz
    restart: always
    depends_on:
      - domoticz
    
    # network_mode: host
    networks:
      myNetwork:
        ipv4_address: HOMEBRIDGE-IP  #add ip here

    ports: 
      - "1968:1968"
              
    environment:
      - HOMEBRIDGE_CONFIG_UI_PORT=1968
    volumes:
      - /srv/dev-disk-by-uuid-83b6a8f9-5b92-4b9f-ab73-81c3cf7cc424/homebridge:/homebridge
      
networks:
  myNetwork:
    external: true
    name: myNetwork
everithing is working good
But when I create a new dzevents script, all the templates are disappered.
How can I have them again?
Screenshot 2025-12-07 alle 15.25.21.png
Screenshot 2025-12-07 alle 15.25.21.png (266.63 KiB) Viewed 61 times
Attachments
Screenshot 2025-12-07 alle 15.25.42.png
Screenshot 2025-12-07 alle 15.25.42.png (71.2 KiB) Viewed 61 times
domja
Posts: 8
Joined: Friday 20 June 2025 19:36
Target OS: Raspberry Pi / ODroid
Domoticz version: 2025.1
Contact:

Re: domoticz with docker, a new dzevent script is without the template

Post by domja »

I had the same problem initially.

According to my setup log:

Code: Select all

docker exec -it domoticz bash
# cp scripts/templates userdata/scripts	// hiermee zijn de templates zichtbaar in de events editor
# cp scripts/dzVents userdata/scripts
# cp scripts/lua* userdata/scripts
# cp scripts/python userdata/scripts
acaonweb
Posts: 92
Joined: Thursday 23 March 2017 14:18
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: domoticz with docker, a new dzevent script is without the template

Post by acaonweb »

Great!!!
it works!!!!
Thanx

F.
Post Reply

Who is online

Users browsing this forum: Amazon [Bot], heggink and 1 guest