Search found 31 matches

by edgarhildering
Saturday 03 February 2024 12:10
Forum: Bugs and Problems
Topic: problem with basic auth to upstream domoticz server
Replies: 3
Views: 426

Re: problem with basic auth to upstream domoticz server

If it can't be done the way it should be done, then it should be done the way it can be done... ;) So I have chosen not to use the authentication of NGINX reverse proxy for security for domoticz, but the authentication that domoticz itself offers. It means that in NGINX the authentication is enabled ...
by edgarhildering
Friday 02 February 2024 19:36
Forum: Bugs and Problems
Topic: problem with basic auth to upstream domoticz server
Replies: 3
Views: 426

Re: problem with basic auth to upstream domoticz server

A friend of mine also pointed me in that direction. I'll have a look... --- bad luck, did not work, same errors. From the web_server doc: for example: https://www.mydomain.com/domoticz/ ===> http://192.168.0.210:8080 This is exactly what I do... I have copied the nginx settings into the location ...
by edgarhildering
Friday 02 February 2024 15:27
Forum: Bugs and Problems
Topic: problem with basic auth to upstream domoticz server
Replies: 3
Views: 426

problem with basic auth to upstream domoticz server

If you have problems related to the web gui, clear your browser cache + appcache first -> done! Use the following template when posting here: Version: 2024.4 (latest stable version) Build Hash: 731719420 Compile Date: 2024-01-30 09:16:34 dzVents Version: 3.1.8 Python Version: 3.11.2 (main, Mar 13 ...
by edgarhildering
Tuesday 10 October 2023 16:10
Forum: Other questions and discussions
Topic: Custom fields for devices
Replies: 4
Views: 1457

Re: Custom fields for devices

Hi Juankar, Even though this is a somewhat older post, I still have an answer. The options field consists of a chain of keyword=value pairs, separated by ';'. For example, for a selector switch you will find the following content in the DeviceStatus table, options column: LevelActions:fHx8 ...
by edgarhildering
Wednesday 04 October 2023 20:08
Forum: Suggestions
Topic: setting battery level with API/JSON and/or MQTT
Replies: 8
Views: 2475

Re: setting battery level with API/JSON and/or MQTT

Hi @waltervl, thanks for the explanation. This works like charm when sending a message with MQTT with all other parameters present. Then there is no need to add this feature . I must have overlooked the remark on additional parameters. Maybe the header of that section in the wiki needs 'some ...
by edgarhildering
Tuesday 03 October 2023 19:29
Forum: Suggestions
Topic: setting battery level with API/JSON and/or MQTT
Replies: 8
Views: 2475

Re: setting battery level with API/JSON and/or MQTT

2023-10-03 19:27:35.669 Error: ge-MQTT: Invalid/Unhandled data received! (Topic: domoticz/in, Message: {"idx": 1402, "Battery":75}) That doesn't look better... I also tried: http://ge-domoticz/json.htm?type=command&param=udevice&idx=1402&batterylevel=75 http://ge-domoticz/json.htm?type=command ...
by edgarhildering
Tuesday 03 October 2023 18:47
Forum: Suggestions
Topic: setting battery level with API/JSON and/or MQTT
Replies: 8
Views: 2475

Re: setting battery level with API/JSON and/or MQTT

after sending: mosquitto_pub -h localhost -p 1883 -t "domoticz/in" -m "{\"idx\": 1402, \"BatteryLevel\":75}" I get this response 2023-10-03 18:43:57.259 Error: ge-MQTT: Invalid/Unhandled data received! (Topic: domoticz/in, Message: {"idx": 1402, "BatteryLevel":75}) open for MQTT-suggestions!
by edgarhildering
Tuesday 03 October 2023 16:15
Forum: Suggestions
Topic: setting battery level with API/JSON and/or MQTT
Replies: 8
Views: 2475

setting battery level with API/JSON and/or MQTT

My request is simple: I would like to set the battery level with an MQTT message. Example: topic= Domoticz/in message = { "idx" : <idx>, "BatteryLevel" : <blevel> } with 0 <= blevel <= 100 a comparable JSON approach would be: /json.htm?type=command&param=udevice&idx=IDX&batterylevel=<BATTERLYLEVEL ...
by edgarhildering
Monday 06 March 2023 12:15
Forum: Temperature and Weather
Topic: Darksky still in forecast after switch OpenWeather.
Replies: 12
Views: 1668

Re: Darksky still in forecast after switch OpenWeather.

Hi everyone, today I opened the forecast in the domoticz weather screen again and to my surprise I still got a Darksky weather overview :roll: . I just looked at the PR from a few years ago and I couldn't make out what the status is now :?: . I installed the OpenWeatherMap plugin and it works fine ...
by edgarhildering
Monday 06 February 2023 15:13
Forum: LUA
Topic: Lua script to update counter needs modernization
Replies: 13
Views: 3974

Re: Lua script to update counter needs modernization

Pls look at this: Lua 5.3.3 Copyright (C) 1994-2016 Lua.org, PUC-Rio > dev=1423 > value1=1 > string.format("%d|0|%d",dev,value1) 1423|0|1 > value1=1.1 > string.format("%d|0|%d",dev,value1) stdin:1: bad argument #3 to 'format' (number has no integer representation) stack traceback: [C]: in function ...
by edgarhildering
Saturday 04 February 2023 14:19
Forum: General Discussion
Topic: The future of Domoticz?
Replies: 49
Views: 11913

Re: The future of Domoticz?

Hi All, although I did not read all the comments in detail, I just want to give you my humble opinion on Domoticz: it is a great engine, has a good user interface and lots of possibilites to script (dzVents, blocky, LUA, bash etc). Of course for advanced users there are always features left to be ...
by edgarhildering
Monday 27 December 2021 19:23
Forum: Cameras
Topic: connect smart life camera?
Replies: 6
Views: 8051

Re: connect smart life camera?

https://www.kruidvat.nl/kruidvat-smart-indoor-ip-camera/p/5314114 This is the camera I am talking about. It is called a Smart Life camera, which you operate through the smart life app... Since all works through the app (which is handy if you are not into programming, no offence!) there is no URL ...
by edgarhildering
Monday 27 December 2021 17:48
Forum: Cameras
Topic: connect smart life camera?
Replies: 6
Views: 8051

Re: connect smart life camera?

Smart Life Camera's are Internet Of Things camera's. This camera is tuya-based, which means: - it sends its 'stream' to the cloud. - my phone picks up the 'stream' from the cloud. Furthermore: TUYA devices have an id, an IP-address and... an encryption key. I know all three but I don't know the ...
by edgarhildering
Monday 27 December 2021 13:16
Forum: Cameras
Topic: connect smart life camera?
Replies: 6
Views: 8051

connect smart life camera?

Hello everyone, Santa has been generous to me: a (tuya based) Smart Camera. The camera works fine with my smart phone. The quality of the image is not bad at all... But I want more :D and for that I need some help: I want to connect it ot Domoticz. For an IP camera it is clear how to do that. But ...
by edgarhildering
Monday 09 August 2021 10:03
Forum: Utility
Topic: General Text Device: which table in the database?
Replies: 8
Views: 942

Re: General Text Device: which table in the database?

I did not check it. However, I have my history log settings on 30 days for light switches, short log sensors on 7 days and that is ok. The general text switch turned out to behave like a light switch; i'd rather see it behave as a shortlog sensor!

--Edgar
by edgarhildering
Sunday 08 August 2021 22:18
Forum: Utility
Topic: General Text Device: which table in the database?
Replies: 8
Views: 942

Re: General Text Device: which table in the database?

Although I am not a promotor of changing the database through the back door, here is the statement to do some cleanup.

Code: Select all

delete from LightingLog where DeviceRowID=<insert-ID-here> and date < date("now","-7 days");
by edgarhildering
Sunday 08 August 2021 21:45
Forum: Utility
Topic: General Text Device: which table in the database?
Replies: 8
Views: 942

Re: General Text Device: which table in the database?

The script helped me after all... I discovered that the table containing the messages is LightingLog; not where the name invited me to look... ;) I've detected 14000 messages as a result of 1 month of operation. I think i need to create a script to remove excessive messages from the database ...
by edgarhildering
Sunday 08 August 2021 20:41
Forum: Utility
Topic: General Text Device: which table in the database?
Replies: 8
Views: 942

Re: General Text Device: which table in the database?

As I understand it you remove the contents of the text variable if it is older than 20 minutes. But I get feedback from different switches and I want to keep these different feedbacks for at least 24 hours. So: every 5-10 minutes the content of the switch changes. I see there's at least a month in ...
by edgarhildering
Sunday 08 August 2021 14:19
Forum: Utility
Topic: General Text Device: which table in the database?
Replies: 8
Views: 942

General Text Device: which table in the database?

Ok, I think the subject is pretty clear on my question. My general text device receives device status messages via MQTT and I want to clear these messages if older than 14 days... But where are they in the database :roll: ? Or is there a setting so that this is done automaticly :roll: ? kind regards ...
by edgarhildering
Thursday 12 November 2020 12:19
Forum: Utility
Topic: Domoticz container for battery
Replies: 2
Views: 445

Domoticz container for battery

Hi all, one of the elements of my photovoltaic installation is a battery. The inverter starts to load the battery before pushing the excess energy to the grid. And of course the inverter will use the energy in the battery before pulling it from the grid. So the battery is a device with inflow and ...