Search found 15 matches

by lucasub
Saturday 24 October 2020 16:09
Forum: Python
Topic: Python script from events console
Replies: 5
Views: 2724

Re: Python script from events console

Hello, I cannot resolve the problem: how I can change properties of device by python script ? Example in my virtual device "dimmer" i need to set "MaxDimLevel" paramenter, how can set this by Python script? 80: AddjMulti 1 AddjMulti2 1 AddjValue 0 AddjValue2 0 BatteryLevel 255 CustomImage 11 Data ...
by lucasub
Saturday 17 October 2020 10:38
Forum: Python
Topic: Python script from events console
Replies: 5
Views: 2724

Re: Python script from events console

Another question: I set Light/Switch how dimmer. To change state from "On" and "Off" the command is: Dz.Command( 'Your device Name', "On") # To switch on Dz.Command( 'Your device Name', "Off") # To switch off But, how can change by Python Script on domoticz events all properties how Level, Image ...
by lucasub
Saturday 17 October 2020 9:00
Forum: Python
Topic: Python script from events console
Replies: 5
Views: 2724

Re: Python script from events console

Thank you very much. Work well.
by lucasub
Thursday 01 October 2020 18:21
Forum: Python
Topic: Python script from events console
Replies: 5
Views: 2724

Re: Python script from events console

Hello, nobody know how command On / Off Switch with python Events directly in Domoticz interface?
Thank you

Luca
by lucasub
Monday 28 September 2020 10:51
Forum: Python
Topic: Python script from events console
Replies: 5
Views: 2724

Python script from events console

Hello, I am looking to write script from events console inside Domoticz but default example script not working. I have look also for infomrations on Domoticz wiki but thare are not, there are only python plugin informations. This is the question: how can switch On of Off a device with ID 250 and ...
by lucasub
Sunday 27 September 2020 21:48
Forum: Python
Topic: Python template script error
Replies: 1
Views: 427

Re: Python template script error

Use:

import DomoticzEvents as DE

DE.Log("bla bla bla")

Bye
by lucasub
Wednesday 02 October 2019 9:25
Forum: Python
Topic: Set Used device in Update function
Replies: 5
Views: 789

Re: Set Used device in Update function

Thank you very much for answer.

Bye
Luca
by lucasub
Tuesday 01 October 2019 20:38
Forum: Python
Topic: Set Used device in Update function
Replies: 5
Views: 789

Re: Set Used device in Update function

Nobody have solution?

Bye
by lucasub
Sunday 29 September 2019 21:27
Forum: Python
Topic: Set Used device in Update function
Replies: 5
Views: 789

Re: Set Used device in Update function

I checked better the problem: When create new devices with Used=1 or Used=0 they work well with right Used state. Example: Domoticz.Device(Name=name, Unit=Unit, TypeName=dtype, Description=description, DeviceID=DeviceID, Used=1 ).Create() all devices created are visible on the TABS if: Domoticz ...
by lucasub
Saturday 28 September 2019 12:39
Forum: Python
Topic: Set Used device in Update function
Replies: 5
Views: 789

Set Used device in Update function

Hello, I try to set Used flag to 0 or 1 in Update() function but not working. Device is always in state of Create() device. I try this in my script: Devices[Unit].Update(Name=name, TypeName=TypeName, Description=description, nValue=value, sValue=sValue, Used=0) but device is always visible in switch ...
by lucasub
Saturday 25 May 2019 15:59
Forum: Third party and supplementary tools
Topic: Plugin to control DL485 expander boards on RS485 up to 1000 meters
Replies: 1
Views: 1388

Re: Plugin to control DL485 expander boards on RS485 up to 1000 meters

Hello, here http://my-tek.it:8060/shop/product/dl48 ... stom-13479 a miniboard with ATMEGA328PB with 1 TTL serial, 1 RS485, I2C and switching power supply from 6 to about 20Vdc. Dimenions only 41x31x12mm-tek.it
by lucasub
Wednesday 10 April 2019 12:43
Forum: Third party and supplementary tools
Topic: Plugin to control DL485 expander boards on RS485 up to 1000 meters
Replies: 1
Views: 1388

Plugin to control DL485 expander boards on RS485 up to 1000 meters

Hello, below the video that show the plugin for Domoticz that can control expander I/O board series DL485x, working by RS485 up to 1000 distance meters. The boards support to digital and analog inputs, digital and PWM outputs, OneWire protocol for DS18B20 and I2C for BME280, TSL2561 and AM2320 ...
by lucasub
Monday 21 May 2018 11:44
Forum: Python
Topic: Python plugin.py module error
Replies: 3
Views: 721

Re: Python plugin.py module error

Thank you for quick answer.

I'll have to look for another way to import data from the DJANGO database

Bye
Luca
by lucasub
Sunday 20 May 2018 20:41
Forum: Python
Topic: Python plugin.py module error
Replies: 3
Views: 721

Python plugin.py module error

Hello, I have this problem: when I import sqlite3 module into python plugin, Domoticz invoke the plugin and apparently there are no errors. The problem is that Domoticz call never onStart() and all other functions on Class. With others import module (Ex. sys, os, pprint....) the plugin work well ...
by lucasub
Sunday 06 November 2016 16:30
Forum: ESP8266
Topic: Esp8266
Replies: 0
Views: 744

Esp8266

Esp

Inviato dal mio Nexus 4 utilizzando Tapatalk