Search found 7 matches
- Tuesday 21 May 2019 14:21
- Forum: Python
- Topic: Add custom icons from pyhton plugin
- Replies: 6
- Views: 1412
Add custom icons from pyhton plugin
Hi, I've been trying to add custom icons for a plugin as described in the wiki page https://www.domoticz.com/wiki/Developing_a_Python_plugin#Images but it doesn't work as expected. Here's my code in the onStart callback: if 'girl' not in Images: Domoticz.Image( Filename='girl_icons.zip' ).Create ...
- Monday 20 May 2019 17:42
- Forum: Python
- Topic: Custom Image for text devices or custom text for contact switches
- Replies: 0
- Views: 652
Custom Image for text devices or custom text for contact switches
Hi, I'm developping a plugin using the Python API. I tried to create contact switch devices but when I update their numerical values and string values of the devices the string values are ignored and only Open or Close is displayed. For example : Devices[ idx ].Update( nValue = 1, sValue="custom ...
- Friday 17 May 2019 10:15
- Forum: dzVents
- Topic: [SOLVED] Opening/Closing Venetian Blinds with dzVents
- Replies: 8
- Views: 1962
- Wednesday 15 May 2019 16:35
- Forum: dzVents
- Topic: [SOLVED] Opening/Closing Venetian Blinds with dzVents
- Replies: 8
- Views: 1962
Re: Opening/Closing Venetian Blinds with dzVents
I can contribute through Github and using a pull request but I'm not sure this should be done in these functions or elsewhere in a more generic function or using an array of specific devices with a callback.
That's why I think domoticz dev will do it in much more cleaner way.
That's why I think domoticz dev will do it in much more cleaner way.
- Wednesday 15 May 2019 15:11
- Forum: dzVents
- Topic: [SOLVED] Opening/Closing Venetian Blinds with dzVents
- Replies: 8
- Views: 1962
Re: Opening/Closing Venetian Blinds with dzVents
Here a quick fix on how open() and close() could be implemented. I know there's a better and cleaner way too improve open() and close() but I don't know the internals of the dzVents engine cause this quick fix works for my use case which uses generic Venetian blinds but domoticz developpers could ...
- Wednesday 15 May 2019 13:52
- Forum: dzVents
- Topic: [SOLVED] Opening/Closing Venetian Blinds with dzVents
- Replies: 8
- Views: 1962
Re: Opening/Closing Venetian Blinds with dzVents
I understand your point of view and you're right but it doesn't mean dzVent can't be improved because people already wrote plugins. I think my request is not incompatible with your point of view. device.open() and device.close() are high level functions that should not only issue simple On or Off ...
- Wednesday 15 May 2019 11:02
- Forum: dzVents
- Topic: [SOLVED] Opening/Closing Venetian Blinds with dzVents
- Replies: 8
- Views: 1962
[SOLVED] Opening/Closing Venetian Blinds with dzVents
Hi all, I'm developping a small dzVents script to automate my venetian blinds. In domoticz v4.10717, if I want to open a blind I have issue a Off command and a On command if I want to close it. So with dzVents if I call domoticz.devices( 'blind' ).switchOn() it closes the blind and domoticz.devices ...