mitch7391 / homebridge-cmd4-AdvantageAir

Catered shell script to integrate air conditioner control units by Advantage Air into HomeKit using the plug-in homebridge-cmd4.
MIT License
38 stars 4 forks source link

[Feature Request] Temperature from external sources #2

Closed sushenmathur closed 2 years ago

sushenmathur commented 3 years ago

@mitch7391 My aircon does not have temperature sensors hence the measuredTemp is always zero. Is there a way we can read the temperature from external sources or may be even a temp file. I have aqara temp sensors that are api enabled and I can GET the temp value from that or the other thing I do is to hit openweather api to get the temperature in the area and writes it to a text file in the homebridge folder and it refreshes every 15 mins, so can we use the value from this text file to report the currenttemp on the thermostat ?

some thing similar is done on this plugin https://lprhodes.github.io/slate/#air-conditioner image

Food for thought.

mitch7391 commented 3 years ago

Oh that may change a few things for me in your other issue! I should have asked that actually instead of assuming you have them haha... So essentially with the method of creating this bash shell script, we can do anything you can execute at the terminal level (and probably more, but this is as much as I know how to do so far). For example I am working on a shell script for my Hisense TV as well and that uses both MQTT subscribe/publish methods and WOL (both of these are things I can install on the RPi); whereas if I was to try and integrate my TV into a plug-in that does only those methods then I could not have the full functionality I need to run my TV...

So in a roundabout answer, currently I cannot implement the use of the broadlink into this as I would not know where to begin; BUT, if you are able to 'get' the value of Aqara temp sensors from some sort of command that you can run from your terminal, then yes I may be able to implement them. So I should be asking, how do you currently 'get' the values for them (I assume a plug-in they already have)? And can you execute some sort of command from your terminal to 'get' the values?

mitch7391 commented 3 years ago

Sorry I got carried away and just read over your comment again and have seen you did just suggest a potential method... Long day at work... I believe we could potentially do this, I would have to work out how, but as long as we have a method to read the value from the file, then yes, it would make sense that we can use it :)

mitch7391 commented 2 years ago

Closing out for the time being due to lack of interest. Can always be re-opened if more users are interested.