Giter Site home page Giter Site logo

stagg-ekg-plus's People

Contributors

calvinmclean avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

stagg-ekg-plus's Issues

How to find MAC address

Hello! This isn't really an issue per se but wanted to add this in case it helps anyone else. The iOS app at least (not sure about Android) doesn't tell you the MAC address so here's how I found it.

From a terminal on the Pi where I'm running homebridge I ran hcitool lescan. and look for a line that looks something like "41:55:55:93:3A:79 FELLOW". That will be the MAC address you want to put into api.py.

With that setup the homebridge plugin is working, so thanks!

Not pulling data via bluetooth

I keep getting the following in the homebridge log:

[4/2/2023, 8:30:10 PM] [Kettle] calling getTargetHeatingCoolingStateCharacteristicHandler
[4/2/2023, 8:30:10 PM] [Kettle] calling getCurrentTemperatureHandler
[4/2/2023, 8:30:10 PM] [Kettle] calling getTargetTemperatureHandler
[4/2/2023, 8:30:10 PM] [Kettle] calling getTemperatureDisplayUnitsHandler 1
[4/2/2023, 8:30:10 PM] [Kettle] getTargetHeatingCoolingState result: undefined
[4/2/2023, 8:30:10 PM] [homebridge-kettle] This plugin generated a warning from the characteristic 'Target Heating Cooling State': characteristic value expected valid finite number and received "undefined" (undefined). See https://homebridge.io/w/JtMGR for more info.
[4/2/2023, 8:30:10 PM] [Kettle] getCurrentTemperatureHandler result: undefined
[4/2/2023, 8:30:10 PM] [homebridge-kettle] This plugin generated a warning from the characteristic 'Current Temperature': characteristic value expected valid finite number and received "NaN" (number). See https://homebridge.io/w/JtMGR for more info.
[4/2/2023, 8:30:10 PM] [Kettle] getTargetTemperatureHandler result: undefined
[4/2/2023, 8:30:10 PM] [homebridge-kettle] This plugin generated a warning from the characteristic 'Target Temperature': characteristic value expected valid finite number and received "NaN" (number). See https://homebridge.io/w/JtMGR for more info.

Is there any way to confirm that the stagg-ekg-plus scrypt is connecting to the kettle via bluetooth? I put the mac address of the kettle into api.py.

Thank you! Would love to make this work.

State is always on – is this normal?

Hey there!

I have successfully installed your plugin – thank you for making it, it works great!

I just have one question – every time I go into control center/the home app activate the kettle, the kettle is reporting as 'on' (e.g. 'heating to 212°'). I then have to press the button to turn it 'off', and then again to turn it on (which then, will actually turn it on).

Is this normal? I also find that when I go to IPADDRESS:8000/state, that it is always displaying '1'.

Cheers!

After some time the API is not connected to the Stag EKG?

This seems to work for a short period of time but it loses connection. Is there something I am missing?

POST REQUEST RECEIVED
/state
Received request: {'value': '1'}
Turning kettle ON
----------------------------------------
Exception happened during processing of request from ('127.0.0.1', 41938)
Traceback (most recent call last):
  File "/usr/lib/python3.7/socketserver.py", line 316, in _handle_request_noblock
    self.process_request(request, client_address)
  File "/usr/lib/python3.7/socketserver.py", line 347, in process_request
    self.finish_request(request, client_address)
  File "/usr/lib/python3.7/socketserver.py", line 360, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/usr/lib/python3.7/http/server.py", line 646, in __init__
    super().__init__(*args, **kwargs)
  File "/usr/lib/python3.7/socketserver.py", line 720, in __init__
    self.handle()
  File "/usr/lib/python3.7/http/server.py", line 426, in handle
    self.handle_one_request()
  File "/usr/lib/python3.7/http/server.py", line 414, in handle_one_request
    method()
  File "api.py", line 44, in do_POST
    stagg.on()
  File "/home/pi/stagg-ekg-plus/stagg_ekg_plus/ekg.py", line 78, in on
    self.characteristic.write(bytes.fromhex("efdd0a0000010100"), withResponse=False)
  File "/usr/local/lib/python3.7/dist-packages/bluepy/btle.py", line 200, in write
    return self.peripheral.writeCharacteristic(self.valHandle, val, withResponse)
  File "/usr/local/lib/python3.7/dist-packages/bluepy/btle.py", line 542, in writeCharacteristic
    self._writeCmd("%s %X %s\n" % (cmd, handle, binascii.b2a_hex(val).decode('utf-8')))
  File "/usr/local/lib/python3.7/dist-packages/bluepy/btle.py", line 302, in _writeCmd
    raise BTLEInternalError("Helper not started (did you call connect()?)")
bluepy.btle.BTLEInternalError: Helper not started (did you call connect()?)
----------------------------------------

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.