Migrate from version 1.1.2

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

Moderator: leecollings

Post Reply
User avatar
DewGew
Posts: 581
Joined: Thursday 21 April 2016 12:01
Target OS: Raspberry Pi / ODroid
Domoticz version: V4.10618
Location: Sweden
Contact:

Migrate from version 1.1.2

Post by DewGew »

Great that DzVents is now integrated into Domoticz.
How do I change this code to DzVents 2.1.0 ?

Code: Select all

for i, v in pairs(devicechanged) do phone = i end
domoticz.log('<font color="green">' ..phone.. ' är hemma</font>',domoticz.LOG_ERROR)
Raspberry Pi 3 | domoticz | Aeon Labs Z-Stick GEN5 | RFlink gateway
NanoPi NEO-air | REGO6XX interface | Machinon theme | Homebridge | Domoticz Google Assistant | ideAlarm
User avatar
DewGew
Posts: 581
Joined: Thursday 21 April 2016 12:01
Target OS: Raspberry Pi / ODroid
Domoticz version: V4.10618
Location: Sweden
Contact:

Re: Migrate from version 1.1.2

Post by DewGew »

I also got this error when I try to update my uservariable ...
Error opening url: http://127.0.0.1:8080/json.htm?type=com ... &vname=Tid hemma av&vtype=0&vvalue=112&idx=5
Is this a bug ?
Raspberry Pi 3 | domoticz | Aeon Labs Z-Stick GEN5 | RFlink gateway
NanoPi NEO-air | REGO6XX interface | Machinon theme | Homebridge | Domoticz Google Assistant | ideAlarm
User avatar
Westcott
Posts: 423
Joined: Tuesday 09 December 2014 17:04
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: UK - Glos
Contact:

Re: Migrate from version 1.1.2

Post by Westcott »

That old one!
It's the browser intercepting '&para' and converting it to the paragraph symbol
Zwave - Sigma Z+ stick, Fibaro, Horstmann, Neo Coolcam, EUROtronic
RFlink - IR detectors and temperatures
Wifi - YeeLights, ESP32s, Anoop sockets
Zigbee - lots with zigbee2mqtt and ZbBridge
User avatar
DewGew
Posts: 581
Joined: Thursday 21 April 2016 12:01
Target OS: Raspberry Pi / ODroid
Domoticz version: V4.10618
Location: Sweden
Contact:

Re: Migrate from version 1.1.2

Post by DewGew »

Westcott wrote:That old one!
It's the browser intercepting '&para' and converting it to the paragraph symbol
I found the problem with updating my uservariables. dzVents 2.1.0 does not support spaces in the uservariable names anymore. It worked with 1.1.2..
Raspberry Pi 3 | domoticz | Aeon Labs Z-Stick GEN5 | RFlink gateway
NanoPi NEO-air | REGO6XX interface | Machinon theme | Homebridge | Domoticz Google Assistant | ideAlarm
dannybloe
Posts: 1355
Joined: Friday 29 August 2014 11:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Ermelo
Contact:

Re: Migrate from version 1.1.2

Post by dannybloe »

Ah, that's a bug indeed. I'll fix it. On the other hand.. who uses spaces in variable names anyway??? Bad practise actually. Domoticz shouldn't allow this in the first place.
Creator dzVents - RPi3, loads of zwave devices, esp8266, evohome.
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 1 guest