problem using json in container
Posted: Wednesday 18 February 2026 12:10
Hi! I am facing problems when I try to use json
Domoticz in docker.
This does not work (404 error) (input from browser IP# and port are correct)
Chatgpt says
any idea? chatgpt propose to downgrade to older container which I don't think being a real solution
any suggestions?
Domoticz in docker.
Code: Select all
services:
domoticz:
image: domoticz/domoticz:stable
container_name: domoticz
restart: unless-stopped
# Pass devices to container
devices:
- "/dev/serial/by-id/usb-RFXCOM_RFXtrx433_A1BFAMG-if00-port0:/dev/ttyUSB0"
ports:
- "8080:8080"
volumes:
- ./config:/opt/domoticz/userdata/
# regel toegevoegd om extra schermen (custom) te bereiken
- ./custom:/opt/domoticz/www/custom
environment:
- TZ=Europe/Amsterdam
#- LOG_PATH=/opt/domoticz/userdata/domoticz.log
Code: Select all
http://192.168.2.100:8080/domoticz/json.htm?type=devicesCode: Select all
🔹 Important Point
In the Domoticz Docker image domoticz/domoticz:stable from version 2025.2:
The old /json.htm API is not available in this container build.
This image is mainly intended for GUI + plugins.
Any scripts that try to fetch data via /json.htm will always return 404.
So, regardless of roomplan or idx, you cannot use this API.any suggestions?