Giter VIP home page Giter VIP logo

Comments (7)

adamkempenich avatar adamkempenich commented on May 16, 2024

Thanks for posting this! I've been away from the development of this as I get settled in at a new job, city, and lifestyle. I've been ramping up a bit more lately to get back into home automation again.

For some reason, the RGB strips seem to exhibit strange behavior across the board, even when I send raw packets to the device. What version firmware is your RGB device on?

from magichome-python.

ybarigou avatar ybarigou commented on May 16, 2024

Does it control brightness ?

Thanks!

Youcef

from magichome-python.

XilefTech avatar XilefTech commented on May 16, 2024

Got the same problem, but at the moment my app isn't working so if there is another way to get the firmware version except for the app please tell me

from magichome-python.

adamkempenich avatar adamkempenich commented on May 16, 2024

Sorry --- I've been away from this. Maybe the Flux python package that Home Assistant uses will work?

from magichome-python.

Sidewinder-2011 avatar Sidewinder-2011 commented on May 16, 2024

Got the same problem, but at the moment my app isn't working so if there is another way to get the firmware version except for the app please tell me

to turn on and off , i edited magichome.py

and changed on/off to this

def turn_on(self):
"""Turn a device on."""
if self.device_type <= 1:

        self.send_bytes(0x71, 0x23, 0x0F, 0xA3)

    elif self.device_type == 2:
      
       
         self.send_bytes(0x71, 0x23, 0x0F, 0xA3)

    elif self.device_type == 3:
        
       
         self.send_bytes(0x71, 0x23, 0x0F, 0xA3)

    elif self.device_type == 4:
        
          self.send_bytes(0xCC, 0x23, 0x33)
    else:
        # Incompatible device received
        print("Incompatible device type received...")

def turn_off(self):
    """Turn a device off."""
    if self.device_type <= 1:
       
        
        
        self.send_bytes(0x71, 0x24, 0x0F, 0xA4)

    elif self.device_type == 2:
      
       
         self.send_bytes(0x71, 0x24, 0x0F, 0xA4)

    elif self.device_type == 3:
        
       
         self.send_bytes(0x71, 0x24, 0x0F, 0xA4)

    elif self.device_type == 4:
        
          self.send_bytes(0xCC, 0x24, 0x33)
    else:
        # Incompatible device received
        print("Incompatible device type received...")

my device type 0 and it works now

from magichome-python.

Sidewinder-2011 avatar Sidewinder-2011 commented on May 16, 2024

Does it control brightness ?

Thanks!

Youcef

brightness is do like this eg for bright red controller1.update_device(255, 0, 0).
for dimmer reduce the red to a lower value eg controller1.update_device(50, 0, 0)

from magichome-python.

XilefTech avatar XilefTech commented on May 16, 2024

from magichome-python.

Related Issues (7)

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.