Search found 27 matches

by edgarhildering
Tuesday 10 October 2023 16:10
Forum: Other questions and discussions
Topic: Custom fields for devices
Replies: 4
Views: 1551

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: 2838

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: 2838

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: 2838

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: 2838

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: 1856

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: 4347

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
Monday 27 December 2021 19:23
Forum: Cameras
Topic: connect smart life camera?
Replies: 6
Views: 10047

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: 10047

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: 10047

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: 1092

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: 1092

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: 1092

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: 1092

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: 1092

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: 489

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 ...
by edgarhildering
Sunday 12 January 2020 16:31
Forum: Switches and Scenes
Topic: Smartwares SH5-TBR-A with domoticz/rfxcom?
Replies: 2
Views: 1021

Smartwares SH5-TBR-A with domoticz/rfxcom?

Guys, I recently got hold of a Smartwares SH5-TBR-A transmitter. Needs to be placed parallel to a lightswitch. Up to now i did not manage to get it recognized by Domoticz/RFXCOM. I cannot even see if it workes... Anyone has experience with this?

Kind regards, --Edgar
by edgarhildering
Sunday 22 July 2018 21:59
Forum: Temperature and Weather
Topic: TFA 30.3148 rain meter raw data...
Replies: 5
Views: 2906

Re: TFA 30.3148 rain meter raw data...

Hi @waaren, that is a bit strange, since the value is *reported to* domoticz straight from the rain meter. My guess is - since the amount is always a multiple of 0.7 that it is the total mm of rain of all measurements since the last reset of the meter... the last reported values are Rain-WWH-Buiten ...
by edgarhildering
Sunday 22 July 2018 15:39
Forum: Temperature and Weather
Topic: TFA 30.3148 rain meter raw data...
Replies: 5
Views: 2906

TFA 30.3148 rain meter raw data...

Hello all, I have a TFA rain meter in operation, type TFA 30.3148. Works fine! Sometimes you just want it to rain to see it work :lol: . When I look at the devices, I see that the data it reports has two values: Rain-WWH-Buiten Rain TFA 1190;42.7 The first value corresponds with the amount of rain ...
by edgarhildering
Sunday 22 July 2018 14:54
Forum: Switches and Scenes
Topic: lighting 5 kangtai / cotech motion sensor sends 'Off' value when detecting movement
Replies: 5
Views: 1497

Re: lighting 5 kangtai / cotech motion sensor sends 'Off' value when detecting movement

Hi Guys, There is always a possibility to catch the off-signal in a lua script and turn a motion sensor (virtual device) on: it 'negates' the 'off' to 'on' which can then be turned 'of' again after 10 secs or so. I have done lots of tricks in LUA, so that is not the problem. But as Gus (@ramnol ...