Search found 15 matches
- 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 ...
- 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 ...
- 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.
- 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
Thank you
Luca
- 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 ...
- 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
import DomoticzEvents as DE
DE.Log("bla bla bla")
Bye
- 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
Bye
Luca
- 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
Bye
- 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 ...
- 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 ...
- 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
- 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 ...
- 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
I'll have to look for another way to import data from the DJANGO database
Bye
Luca
- 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 ...
Esp8266
Esp
Inviato dal mio Nexus 4 utilizzando Tapatalk
Inviato dal mio Nexus 4 utilizzando Tapatalk