dzVents script runs but nothing happens  [Solved]

Easy to use, 100% Lua-based event scripting framework.

Moderator: leecollings

User avatar
Hesitated
Posts: 42
Joined: Monday 04 June 2018 21:40
Target OS: Raspberry Pi / ODroid
Domoticz version: V4.11665
Location: Ede
Contact:

Re: dzVents script runs but nothing happens

Post by Hesitated »

If I set the On Action and Off Action urls:
Image

with the urls :

Code: Select all

http://192.168.2.169:8080/json.htm?type=command&param=switchlight&idx=126&switchcmd=On
http://192.168.2.169:8080/json.htm?type=command&param=switchlight&idx=126&switchcmd=Off
Then the blinds go up and down, but that is like cycling from Amsterdam to Rotterdam via Brussels, Paris and Berlin... :(
Domoticz 2020.2 - RPi3B+ - RFXtrx433XL - P1 - CC2531 - Somfy - Xiaomi - Hue - Omron - MQTT
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: dzVents script runs but nothing happens

Post by waaren »

Hesitated wrote: Thursday 26 December 2019 20:27 2019-12-26 20:25:00.264 Error: Switch command not send!, Hardware device disabled or not found!
My guess is that this error messages shows what is really going wrong on your system. If you can you confirm that the RFtrx433 is connected to the usb on your list and does work for other devices ?
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
User avatar
Hesitated
Posts: 42
Joined: Monday 04 June 2018 21:40
Target OS: Raspberry Pi / ODroid
Domoticz version: V4.11665
Location: Ede
Contact:

Re: dzVents script runs but nothing happens

Post by Hesitated »

waaren wrote: Thursday 26 December 2019 20:59 My guess is that this error messages shows what is really going wrong on your system. If you can you confirm that the RFtrx433 is connected to the usb on your list and does work for other devices ?
Yes, it does work!

For example a temperature sensor is sending its data through the RFXtrx433XL:
Image
Spoiler: show
Ignore the temperature reading, it is not mounted outside yet... :)
And I use to switch a lightbulb with an 433MHz switch.

And if I couldn't send the blinds up and down with Domoticz, you're probably right. But I can! So the only problem is the events...
Domoticz 2020.2 - RPi3B+ - RFXtrx433XL - P1 - CC2531 - Somfy - Xiaomi - Hue - Omron - MQTT
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: dzVents script runs but nothing happens  [Solved]

Post by waaren »

Hesitated wrote: Thursday 26 December 2019 21:16 Yes, it does work!
And if I couldn't send the blinds up and down with Domoticz, you're probably right. But I can! So the only problem is the events...
I understand that you see that the problem only occurs when triggered by an event. Fact is that the message you see here does not come from the event system but is generated by the mainworker code (around line 11290 of mainworker.cpp) when the hardware cannot be found.

So if the blinds do work from the API but not when triggered from a switch or script, the only thing I can think of is a problem in your database.
If you know how, I would be very interested in the content of the devicestatus - and hardware tables. If not, I am happy to help but best to do this via a DM
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
User avatar
Hesitated
Posts: 42
Joined: Monday 04 June 2018 21:40
Target OS: Raspberry Pi / ODroid
Domoticz version: V4.11665
Location: Ede
Contact:

Re: dzVents script runs but nothing happens

Post by Hesitated »

waaren wrote: Thursday 26 December 2019 21:47 So if the blinds do work from the API but not when triggered from a switch or script, the only thing I can think of is a problem in your database.
If you know how, I would be very interested in the content of the devicestatus - and hardware tables. If not, I am happy to help but best to do this via a DM
DM is now send.
Domoticz 2020.2 - RPi3B+ - RFXtrx433XL - P1 - CC2531 - Somfy - Xiaomi - Hue - Omron - MQTT
User avatar
Hesitated
Posts: 42
Joined: Monday 04 June 2018 21:40
Target OS: Raspberry Pi / ODroid
Domoticz version: V4.11665
Location: Ede
Contact:

Re: dzVents script runs but nothing happens

Post by Hesitated »

It turns out that I disabled the RLink hardware device, but left the devices active.

In the devices tab the devices are not shown if the hardware they belong to is disabled.

But when scripting Domoticz still can reference them.

Thanks to @waaren for his help!
Domoticz 2020.2 - RPi3B+ - RFXtrx433XL - P1 - CC2531 - Somfy - Xiaomi - Hue - Omron - MQTT
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest