Search found 21 matches
- Thursday 01 December 2022 18:40
- Forum: Python
- Topic: Python Plugin: Shelly MQTT
- Replies: 504
- Views: 115805
Re: Python Plugin: Shelly MQTT
But it's not clear to me how I can just turn anything on and off. Or how I can assign the commands somewhere to a lamp or scene. So I'm not sure if that works at all. Have a look at: https://www.domoticz.com/wiki/Events Is MQTT broker (eg mosquitto) running on the same server or a different one? As ...
- Thursday 16 June 2022 16:16
- Forum: dzVents
- Topic: Samsung Washmachine read status from json "SOLVED" [Solved]
- Replies: 71
- Views: 14777
Re: Samsung Washmachine read status from json "SOLVED" [Solved]
This script worked great for some months, but now it keeps throwing a big error in the logs. Anyone with a solution or update please? Also just as of now found out it is not running anymore, after some debugging I found a solution :) It might not be perfect and future proof, but does the job, you ...
- Monday 14 March 2022 15:17
- Forum: Python
- Topic: Python Plugin: Shelly MQTT
- Replies: 504
- Views: 115805
Re: Python Plugin: Shelly MQTT
But it's not clear to me how I can just turn anything on and off. Or how I can assign the commands somewhere to a lamp or scene. So I'm not sure if that works at all. Have a look at: https://www.domoticz.com/wiki/Events Is MQTT broker (eg mosquitto) running on the same server or a different one? As ...
- Monday 07 March 2022 17:47
- Forum: Python
- Topic: Python Plugin: Shelly MQTT
- Replies: 504
- Views: 115805
Re: Python Plugin: Shelly MQTT
Is MQTT broker (eg mosquitto) running on the same server or a different one? As it seems that the disconnecting issue could trigger the crash (it should not). Perhaps another issue in your environment that is triggering this? Wifi issues, Network issues, Memory issues? Yes, running on the same ...
- Monday 07 March 2022 16:22
- Forum: Python
- Topic: Python Plugin: Shelly MQTT
- Replies: 504
- Views: 115805
Re: Python Plugin: Shelly MQTT
There is an issue on running Python plugins on Bullseye but you seem to run Buster so that would not be an issue. Does it stop directly or after a while? What is in the Domoticz log before the crash? It stops after a while, where the "while" is rather unpredictable (1 minute to >24 hours). The log ...
- Sunday 06 March 2022 17:18
- Forum: Python
- Topic: Python Plugin: Shelly MQTT
- Replies: 504
- Views: 115805
Re: Python Plugin: Shelly MQTT
Hi all, I have the Shelly MQTT running rather flawlesly for over a year, or maybe 2 already, now. I just updated to Domoticz 2022.1 stable build, and that is when the problems started. Is see the following error in the Domoticz.log after which Domoticz service goes to "active (exited)": Error ...
- Tuesday 18 May 2021 7:58
- Forum: dzVents
- Topic: Samsung Washmachine read status from json "SOLVED" [Solved]
- Replies: 71
- Views: 14777
Re: Samsung Washmachine read status from json "SOLVED" [Solved]
Well it does send correct information back whilst the machine(s) are powered on only, this is how I decoded the tables of my machines, I did not run each program :D So unfortunately I cannot see where these deviations come from. I do have another general dzVents/Domoticz question: I have set a ...
- Saturday 03 April 2021 13:25
- Forum: dzVents
- Topic: Samsung Washmachine read status from json "SOLVED" [Solved]
- Replies: 71
- Views: 14777
Re: Samsung Washmachine read status from json "SOLVED" [Solved]
So the combined code with the working Daylight Saving Time handling and the JSON deserialization functions waaren suggested: -- SETUP YOUR API CONFIGURATION HERE -- -- API key from https://account.smartthings.com/tokens (You'll need to register first and ensure your machine is on the same account ...
- Friday 02 April 2021 9:58
- Forum: dzVents
- Topic: Samsung Washmachine read status from json "SOLVED" [Solved]
- Replies: 71
- Views: 14777
Re: Samsung Washmachine read status from json "SOLVED" [Solved]
2021-04-02 08:56:01.427 Error: dzVents: Error: (3.0.2) SamsungWashingMachines: An error occurred when calling event handler Samsung 2021-04-02 08:56:01.428 Error: dzVents: Error: (3.0.2) SamsungWashingMachines: ...i/domoticz/scripts/dzVents/generated_scripts/Samsung.lua:207: attempt to index a ...
- Friday 02 April 2021 8:58
- Forum: dzVents
- Topic: Samsung Washmachine read status from json "SOLVED" [Solved]
- Replies: 71
- Views: 14777
Re: Samsung Washmachine read status from json "SOLVED" [Solved]
I must say that I appreciate your contribution! I try to do my part in helping others with this "debugging exersice" as well :) Somehow it seem to work in my place where it should not. Thanx for the log. My persistent attention for this issue is because I want dzVents in the next stable release to ...
- Thursday 01 April 2021 16:32
- Forum: dzVents
- Topic: Samsung Washmachine read status from json "SOLVED" [Solved]
- Replies: 71
- Views: 14777
Re: Samsung Washmachine read status from json "SOLVED" [Solved]
Thx. I now remember that there was something strange with this JSON. It is a serialized JSON inside a normal JSON so for every serialized JSON a subsequent dz.utils.fromJSON needs to be called. I could try to modify the dz.utils.fromJSON to do this in one pass but because I have no access to the ...
- Wednesday 31 March 2021 21:32
- Forum: dzVents
- Topic: Samsung Washmachine read status from json "SOLVED" [Solved]
- Replies: 71
- Views: 14777
Re: Samsung Washmachine read status from json "SOLVED" [Solved]
I still would very much appreciate to have (optional) control over the loglevel of dumpTable, but that is a different topic ;) This since I have set loglevel to error only in /etc/init.d/domoticz.sh. Sorry but that's not going to be implemented. If you want to you can always modify domoticz/dzVents ...
- Wednesday 31 March 2021 18:07
- Forum: dzVents
- Topic: Samsung Washmachine read status from json "SOLVED" [Solved]
- Replies: 71
- Views: 14777
Re: Samsung Washmachine read status from json "SOLVED" [Solved]
Ok I have set enable status logging of domoticz, this does not help.... Sorry but I need the result of the utils.dumpTable() statement to be able to help. No idea why your system does not show the expected lines. You could try to log to an os file. The domoticz logfile location and other settings ...
- Wednesday 31 March 2021 16:32
- Forum: dzVents
- Topic: Samsung Washmachine read status from json "SOLVED" [Solved]
- Replies: 71
- Views: 14777
Re: Samsung Washmachine read status from json "SOLVED" [Solved]
Now the interesting part is why this is not already a Lua subtable of item.json To find out; can you replace the lines dz.log(item.json.main.data.value, dz.LOG_ERROR) dz.utils.dumpTable(dz.utils.fromJSON(item.json.main.data.value)) with dz.log(item.json, dz.LOG_ERROR) dz.log('Type of value ...
- Wednesday 31 March 2021 12:11
- Forum: dzVents
- Topic: Samsung Washmachine read status from json "SOLVED" [Solved]
- Replies: 71
- Views: 14777
Re: Samsung Washmachine read status from json "SOLVED" [Solved]
Same error messages That should not be possible as the dz.log(item.json.main.data.value) does not call the function that contains line 425 of /home/pi/domoticz/dzVents/runtime/Utils.lua Can you share the script as it is now and the complete log? Appologies, I did something wrong somewhere I think ...
- Wednesday 31 March 2021 10:31
- Forum: dzVents
- Topic: Samsung Washmachine read status from json "SOLVED" [Solved]
- Replies: 71
- Views: 14777
Re: Samsung Washmachine read status from json "SOLVED" [Solved]
Error: dzVents: Error: (3.0.2) SamsungWashingMachines: /home/pi/domoticz/dzVents/runtime/Utils.lua:425: bad argument #1 to 'pairs' (table expected, got string) Please try again after removing first of these lines dz.utils.dumpTable(item.json.main.data.value) As mentioned, I did, so first attempt ...
- Wednesday 31 March 2021 10:00
- Forum: dzVents
- Topic: Samsung Washmachine read status from json "SOLVED" [Solved]
- Replies: 71
- Views: 14777
Re: Samsung Washmachine read status from json "SOLVED" [Solved]
In my Domoticz, it is functional, when I applied the suggested changes, it showed similar errors in the log as dizzeenl had with my implementation. Where are these differences coming from? No clue but the complete JSON should already be converted to a Lua (sub)table can you insert these commands to ...
- Tuesday 30 March 2021 20:24
- Forum: dzVents
- Topic: Samsung Washmachine read status from json "SOLVED" [Solved]
- Replies: 71
- Views: 14777
Re: Samsung Washmachine read status from json "SOLVED" [Solved]
Parsing item.json.main.data.value through the JSON parser is wrong and will return nil. In my Domoticz, it is functional, when I applied the suggested changes, it showed similar errors in the log as dizzeenl had with my implementation. Where are these differences coming from? Furthermore, since ...
- Friday 12 March 2021 15:30
- Forum: dzVents
- Topic: Samsung Washmachine read status from json "SOLVED" [Solved]
- Replies: 71
- Views: 14777
Re: Samsung Washmachine read status from json "SOLVED" [Solved]
Hi all on this topic. I have purchased two Samsung Washing machines which were installed yesterday (one dryer actually). I would like to thank anyone who contributed to these scripts. I have both the washing machine as the dryer working with similar scripts! Happy days.... Things I stumbled upon: 1 ...
- Monday 03 June 2019 19:02
- Forum: Python
- Topic: Python Plugin: Chromecast
- Replies: 206
- Views: 49302
Re: Python Plugin: Chromecast
So can anybody explain to me step by step how to send a message to the chromecast? The description of the TS / author of the plugin in one of the first posts on this topic: Just add a value to the created variabele and the text will be spoken. I use it voor voice messages and fill the variable from ...