Giter Club home page Giter Club logo

Comments (4)

AmpacheUser avatar AmpacheUser commented on August 23, 2024

I went ahead and added the Model to the thermostat.py and init.py files but the error still comes up.

from radiotherm.

AmpacheUser avatar AmpacheUser commented on August 23, 2024

After running the following script:

`import radiotherm

try:
tstat = radiotherm.get_thermostat("192.168.4.75")
print ("Test 1: " + str(tstat))
print (tstat.temp['raw'])
except Exception as e:
print (e)
pass

try:
tstat = radiotherm.thermostat("192.168.4.75")
print ("Test 2: " + str(tstat))
print (tstat.temp['raw'])
except Exception as e:
print (e)
pass

try:
tstat = radiotherm.thermostat.CT80("192.168.4.75")
print ("Test 3: " + str(tstat))
print (tstat.temp['raw'])
except Exception as e:
print (e)
pass

try:
tstat = radiotherm.thermostat.CT80RevB("192.168.4.75")
print ("Test 4: " + str(tstat))
print (tstat.temp['raw'])
except Exception as e:
print (e)
pass`

This is the output:

`Test 1: <radiotherm.thermostat.CT80RevB1v100 object at 0x7fca84286c88>
79.5

'module' object is not callable

Test 3: <radiotherm.thermostat.CT80 object at 0x7fca8432af98>
79.5

Test 4: <radiotherm.thermostat.CT80RevB object at 0x7fca84286c88>
79.0
`

I hope this helps.

from radiotherm.

craftyguy avatar craftyguy commented on August 23, 2024

Can you try with #38 ? This adds support for thermostats that are not explicitly defined in this project, with basic functionality. In your case it should enable functionality that all CT80 devices, regardless of rev and version, support. But since I don't have your device, it would be awesome to get a confirmation that this branch works before I merge it!

from radiotherm.

craftyguy avatar craftyguy commented on August 23, 2024

This should be resolved now. Closing issue, but please re-open if someone continues to experience this after testing the latest in master branch.

from radiotherm.

Related Issues (18)

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.