GithubHelp home page GithubHelp logo

domoticz-xiaomi-led-lamp's People

Contributors

deennoo avatar samaelranger avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

vincpad wisefang

domoticz-xiaomi-led-lamp's Issues

E14

Hi,

Is it working with the e14 bulb ?

Error on level 100

i found an error.

when i try to set level to 100 the call failed

Error: (spot) Call command failed: Command '['./MyBulb.py', '192.168.201.72', '654f182f6b98342ed15b1de364717ae5', '--level', '100']' returned non-zero exit status 2

in fact the python lib andle level vrem 0 to 99 not 100

MyBulb.py: error: argument --level: invalid choice: 100 (choose from 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99)

offline error - non-zero exit

Im using your scripts to control xiaomi philips downlight and I setup my enviroment that im shuting down power by phisical switch. This gives error in domoticz log every status refresh time. So log is full of that logs:

2019-01-24 10:25:09.089 Error: (DEVICE_NAME) Unrecognized error: Command '['bash', '-c', './MyBulb.py 192.168.1.11 b812f21927XXXXX']' returned non-zero exit status 1

Get status failed

Hello
I installed the script, the following error message is in the domoticz log:
Get status failed: Command '['bash', '-c', './MyBulb.py', '192.168.11.245', '91a16af204463e97f429435cef6494e6']' returned non-zero exit status 2
2019-02-03 12:50:07.064 (P1) Update status failed: 'BulbStatus' object has no attribute 'color_temperature'
2019-02-03 12:50:07.082 (P1) Problem with P1 - CCCW
2019-02-03 12:50:07.089 (P1) Problem with P1 - Scenes
2019-02-03 12:50:07.089 (P1) Starting device update
2019-02-03 12:50:10.795 (P1) onCommand called for Unit 2 cmd 'On' Level '0' Color ''
2019-02-03 12:50:10.775 Status: User: Admin initiated a switch command (2/P1 - CCCW/On)
2019-02-03 12:50:12.711 Error: (P1) Call command failed: Command '['bash', '-c', './MyBulb.py', '192.168.11.245', '91a16af204463e97f429435cef6494e6', '--power', 'ON']' returned non-zero exit status 2

Device status is red.

Please help!

(sorry my english)

Big time delay between execution.

I have four light bulbs added to the Domoticz. I have created a script for DzVents.

return {
    active = true,
    on = {
        devices = { 
                         'Downlight', 
                      }
    },
    execute = function(dz, item)
        
        
    if item.state == 'Bright' then
        dz.devices('Downlight levá - Scenes').dimTo(10)
        dz.devices('Downlight střed levá - Scenes').dimTo(10)
        dz.devices('Downlight střed pravá - Scenes').dimTo(10)
        dz.devices('Downlight pravá - Scenes').dimTo(10)
    elseif item.state == 'TV' then
        dz.devices('Downlight levá - Scenes').dimTo(20)
        dz.devices('Downlight střed levá - Scenes').dimTo(20)
        dz.devices('Downlight střed pravá - Scenes').dimTo(20)
        dz.devices('Downlight pravá - Scenes').dimTo(20)
    elseif item.state == 'Warm' then
        dz.devices('Downlight levá - Scenes').dimTo(30)
        dz.devices('Downlight střed levá - Scenes').dimTo(30)
        dz.devices('Downlight střed pravá - Scenes').dimTo(30)
        dz.devices('Downlight pravá - Scenes').dimTo(30)
    elseif item.state == 'Midnight' then
        dz.devices('Downlight levá - Scenes').dimTo(40)
        dz.devices('Downlight střed levá - Scenes').dimTo(40)
        dz.devices('Downlight střed pravá - Scenes').dimTo(40)
        dz.devices('Downlight pravá - Scenes').dimTo(40)    
     end
    end
}

If I execute a command, the time delay between each bulb is about 8 seconds. The same thing when I create a scene to turn all the bulbs on and off at once, the time delay between the bulbs is 8-10 seconds. Is there anything we can do about it?

Plugin works but constantly throwing an error - dictionary update sequence

The plugin works if I send commands to it. On/off/brightness/color works but the status isn't updated in the domoticz and in the logs I am being spammed constantly with just one thing:

Unrecognized error: dictionary update sequence element #0 has length 1; 2 is required

after each action.
Do you have any idea what might cause it?

2019-06-16 21:02:41.899 (Sypialnia) Debug logging mask set to: PYTHON PLUGIN QUEUE IMAGE DEVICE CONNECTION MESSAGE ALL
2019-06-16 21:02:41.899 (Sypialnia) 'HardwareID':'9'
2019-06-16 21:02:41.899 (Sypialnia) 'HomeFolder':'/config/plugins/PhilipsE27-Led/'
2019-06-16 21:02:41.899 (Sypialnia) 'StartupFolder':'/var/lib/domoticz/'
2019-06-16 21:02:41.899 (Sypialnia) 'UserDataFolder':'/config/'
2019-06-16 21:02:41.899 (Sypialnia) 'WebRoot':'domoticz'
2019-06-16 21:02:41.899 (Sypialnia) 'Database':'/config/domoticz.db'
2019-06-16 21:02:41.899 (Sypialnia) 'Language':'pl'
2019-06-16 21:02:41.899 (Sypialnia) 'Version':'0.1.2'
2019-06-16 21:02:41.899 (Sypialnia) 'Author':'Deennoo'
2019-06-16 21:02:41.899 (Sypialnia) 'Name':'Sypialnia'
2019-06-16 21:02:41.899 (Sypialnia) 'Address':'192.168.1.15'
2019-06-16 21:02:41.899 (Sypialnia) 'Port':'0'
2019-06-16 21:02:41.899 (Sypialnia) 'Key':'XiaomiPhilipsLEDBallLamp'
2019-06-16 21:02:41.899 (Sypialnia) 'Mode1':'d33e8067b3e224c61397e62195440ee1'
2019-06-16 21:02:41.900 (Sypialnia) 'Mode3':'1'
2019-06-16 21:02:41.900 (Sypialnia) 'Mode6':'Debug'
2019-06-16 21:02:41.900 (Sypialnia) 'DomoticzVersion':'4.10914'
2019-06-16 21:02:41.900 (Sypialnia) 'DomoticzHash':'c0edefe51'
2019-06-16 21:02:41.900 (Sypialnia) 'DomoticzBuildTime':'2019-06-15 17:53:20'
2019-06-16 21:02:41.900 (Sypialnia) Device count: 2
2019-06-16 21:02:41.900 (Sypialnia) Device: 1 - ID: 65, Name: 'Sypialnia - Scenes', nValue: 0, sValue: '0'
2019-06-16 21:02:41.900 (Sypialnia) Device ID: '65'
2019-06-16 21:02:41.900 (Sypialnia) Device Name: 'Sypialnia - Scenes'
2019-06-16 21:02:41.900 (Sypialnia) Device nValue: 0
2019-06-16 21:02:41.900 (Sypialnia) Device sValue: '0'
2019-06-16 21:02:41.900 (Sypialnia) Device LastLevel: 0
2019-06-16 21:02:41.900 (Sypialnia) Device: 2 - ID: 66, Name: 'Sypialnia', nValue: 0, sValue: '0'
2019-06-16 21:02:41.900 (Sypialnia) Device ID: '66'
2019-06-16 21:02:41.900 (Sypialnia) Device Name: 'Sypialnia'
2019-06-16 21:02:41.900 (Sypialnia) Device nValue: 0
2019-06-16 21:02:41.900 (Sypialnia) Device sValue: '0'
2019-06-16 21:02:41.900 (Sypialnia) Device LastLevel: 0
2019-06-16 21:02:41.900 (Sypialnia) Pushing 'PollIntervalDirective' on to queue
2019-06-16 21:02:41.900 (Sypialnia) Device UNIT_SCENES with id 1 exist
2019-06-16 21:02:41.900 (Sypialnia) Device UNIT_CCCW with id 2 exist
2019-06-16 21:02:41.900 (Sypialnia) onHeartbeat called, fetch False
2019-06-16 21:02:41.900 (Sypialnia) sensor_measurement
2019-06-16 21:02:41.737 Status: (Sypialnia) Stop directive received.
2019-06-16 21:02:41.737 Status: (Sypialnia) Stopping threads.
2019-06-16 21:02:41.737 Status: (Sypialnia) Stopped.
2019-06-16 21:02:41.738 Status: (Sypialnia) Started.
2019-06-16 21:02:41.897 Status: (Sypialnia) Initialized version 0.1.2, author 'Deennoo'
2019-06-16 21:02:41.898 Status: (Sypialnia) Entering work loop.
2019-06-16 21:02:42.681 (Sypialnia)
2019-06-16 21:02:42.682 (Sypialnia) onHeartbeat finished
2019-06-16 21:02:42.682 (Sypialnia) Processing 'PollIntervalDirective' message
2019-06-16 21:02:42.682 (Sypialnia) Heartbeat interval set to: 20.
2019-06-16 21:02:42.682 Error: (Sypialnia) Unrecognized error: dictionary update sequence element #0 has length 1; 2 is required 

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.