Comments (4)
I went ahead and added the Model to the thermostat.py and init.py files but the error still comes up.
from radiotherm.
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.
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.
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)
- setting the target temp on the thermostat CT80 B2 Rev v1.09 HOT 2
- CT50 V1.92 Support HOT 2
- radiotherm fails silently HOT 6
- Caching needed HOT 8
- Documentation doesn't seem correct for instantiating a Radio Thermostat object? HOT 2
- Rolling Up PRs? HOT 2
- Handle the API transient error condition(-1) HOT 5
- Is this project abandoned? HOT 11
- Radio Thermostat CT80 Rev B1 V1.00 error updating in home assistant HOT 13
- Migrate to gitlab HOT 3
- Need new maintainer for PyPI HOT 7
- Need to add another CT80 class HOT 5
- Security issues HOT 4
- Support for CT100/CT101 HOT 3
- Connect a Python Script to IFTTT? HOT 5
- Unable to maintain project going forward HOT 2
- Multiple thermostats HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from radiotherm.