Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot call CurrentTemperature characteristic properly #141

Open
ilyamordasov opened this issue Jul 18, 2018 · 3 comments
Open

Cannot call CurrentTemperature characteristic properly #141

ilyamordasov opened this issue Jul 18, 2018 · 3 comments

Comments

@ilyamordasov
Copy link

ilyamordasov commented Jul 18, 2018

My implementation is here:
self.char_get = serv_kettle.configure_char('CurrentTemperature', setter_callback=self.get_temperature)

def get_temperature(self, value): run_cmd() print("Current temperature was called")

And when I tell Siri 'what's current temperature of Bridge?' the get_temperature() function isn't called (print isn't displayed) and Siri answers smth like 'Current temperature at your home is 0 degrees'

Any ideas why it's working so?

@cdce8p
Copy link
Contributor

cdce8p commented Jul 18, 2018

I think you're looking for the getter_callback.

@ilyamordasov
Copy link
Author

exactly, thank you!
But have got new uncomfortable state, so when I still ask what's current temperature of Bridge? - where Bridge is my accessory - Siri answers 'The temperature at My Home is ...' is it possible to point that answer would have keyword Bridge, not My Home? It returns the correct number

@cdce8p
Copy link
Contributor

cdce8p commented Jul 19, 2018

Assign the accessory to the specific room the sensor is in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants