senorshaun / homebridge-radiora2

Lutron RadioRA2 plugin for homebridge
MIT License
10 stars 5 forks source link

Feature request: Lutron Thermostat (HVAC CONTROLLER) support #3

Closed jfinestone closed 3 years ago

jfinestone commented 3 years ago

Would be great to add Lutron Thermostats to this HomeBridge integration. Currently, they are unsupported in Lutron's native HomeKit integration so you have to launch the Lutron superslow app everytime you want to change the mode, temp, fan etc....

Lutron calls its thermostat an HVAC CONTROLLER.

See https://www.lutron.com/TechnicalDocumentLibrary/040249.pdf Pages labeled 10-11 for the full telnet integration.

Happy (and eager!) to test.

Thanks.

senorshaun commented 3 years ago

Sure that doesn't sound like a bad idea at all, and ive written an hvac plugin before so it should be that hard to hack them together. Only issue is I dont have any HVAC controllers or wireless temp sensors to test, and I dont think I can create phantom ones. How good are you will home bridge debugging and modifying the files? I can write in the new sections, but there may be a bit of troubleshooting we will have to go through

jfinestone commented 3 years ago

That's great - thank you.

I added a "phantom" HVAC Controller and Wireless Temperature Sensor (linked to the phantom) to my program. Telnet integration works decently with the phantom HVAC Controller - albeit with inconsistent responses (as to be expected since there's not actually a device). Should be good enough for you to build the module and test.

I'm available to install, test and integrate with my real HVAC Controllers whenever you're ready - I'm not great at debugging and modifying files, but we could see how far we get and we could always set a time for you to remote-in and see what's going on.

thecreativeone91 commented 3 years ago

I have the actual HVAC controller and the temp sensors. I would love support for it.

jwp2033 commented 3 years ago

I too would love support for the LR-HWLV-HVAC.

senorshaun commented 3 years ago

Ok I have an update that includes hvac controllers. I dont see anything different about the different types of thermostats, so it should work with all of them. I tested out with a phantom I added to my system, but would one of you be willing to test with a real device for me?

jfinestone commented 3 years ago

Yes. Happy to. Please send me instructions for downloading installing configuring etc.

On Sat, Feb 20, 2021 at 8:18 AM senorshaun notifications@github.com wrote:

Ok I have an update that includes hvac controllers. I dont see anything different about the different types of thermostats, so it should work with all of them. I tested out with a phantom I added to my system, but would one of you be willing to test with a real device for me?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/senorshaun/homebridge-radiora2/issues/3#issuecomment-782708378, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHS7I64FQA5FXYYGLQBLT3S77OHHANCNFSM4VZ2X3IQ .

jwp2033 commented 3 years ago

Of course!

Sent from my iPhone

On Feb 20, 2021, at 11:19 AM, senorshaun notifications@github.com wrote:

 Ok I have an update that includes hvac controllers. I dont see anything different about the different types of thermostats, so it should work with all of them. I tested out with a phantom I added to my system, but would one of you be willing to test with a real device for me?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

senorshaun commented 3 years ago

Awesome. 4 files attached. Go to your node_modules folder and into the homebridge-radiora2 folder. Index.js goes in the root (back up the existing one so you can put it back in to place if testing doesn't work). Radiora2.js goes in the lib folder (back up the existing one as well). hvaccontroller.js and visorcontrolreceiver.js go in the accessories folder inside lib. these are new, nothing to backup. your config now can have a new section within the radiora2 platform (just like "lights" and "keypads")

"hvaccontrollers":[
 {
  "name": "whatever Name You Want",
  "id": <ID from the integration report>,
  "serial": <optional>,
  "model": <optional>
 }
]

If your home bridge crashes, the error message will be super helpful. I loaded in a phantom as I said, but without real data/communication, there could be things I'm missing. New Files.zip

jwp2033 commented 3 years ago

Good news is no crashing! Tstat reads 70, home kit says 158 The system control is a bit off too.. I can change it in from off to heat in hk but the tstat changes to off. Cool sets the tstat to heat Changing setpoint in hk has no effect on the tstat.

senorshaun commented 3 years ago

Whoops, wrote it all in Fahrenheit and HomeKit uses celcuis. updated. and I think I fixed the mode. The only thing I'm not sure about is if the thermostat in HomeKit will show that it is currently cooling and currently heating (blue or orange) Replace these 2 files New Files v2.zip

jwp2033 commented 3 years ago

[2/21/2021, 4:59:11 PM] [RadioRA2] Connected to Lutron! [2/21/2021, 4:59:11 PM] [RadioRA2] Loaded 0 fan(s) [2/21/2021, 4:59:11 PM] [RadioRA2] Loaded 0 light(s) [2/21/2021, 4:59:11 PM] [RadioRA2] Loaded occupancy sensor 'Ronnie's Room Motion Sensor' [2/21/2021, 4:59:11 PM] [RadioRA2] Loaded 1 occupancy sensor(s) [2/21/2021, 4:59:11 PM] [homebridge-radiora2] This plugin generated a warning from the characteristic 'Serial Number': characteristic was supplied illegal value: number instead of string. Supplying illegal values will throw errors in the future! See https://git.io/JtMGR for more info. [2/21/2021, 4:59:11 PM] [RadioRA2] Loaded keypad 'Master Keypad' [2/21/2021, 4:59:11 PM] [homebridge-radiora2] This plugin generated a warning from the characteristic 'Serial Number': characteristic was supplied illegal value: number instead of string. Supplying illegal values will throw errors in the future! See https://git.io/JtMGR for more info. [2/21/2021, 4:59:11 PM] [RadioRA2] Loaded keypad 'Tabletop' [2/21/2021, 4:59:11 PM] [homebridge-radiora2] This plugin generated a warning from the characteristic 'Serial Number': characteristic was supplied illegal value: number instead of string. Supplying illegal values will throw errors in the future! See https://git.io/JtMGR for more info. [2/21/2021, 4:59:11 PM] [RadioRA2] Loaded keypad 'ronniesmote' [2/21/2021, 4:59:11 PM] [homebridge-radiora2] This plugin generated a warning from the characteristic 'Serial Number': characteristic was supplied illegal value: number instead of string. Supplying illegal values will throw errors in the future! See https://git.io/JtMGR for more info. [2/21/2021, 4:59:11 PM] [RadioRA2] Loaded keypad 'DkpdL' [2/21/2021, 4:59:11 PM] [homebridge-radiora2] This plugin generated a warning from the characteristic 'Serial Number': characteristic was supplied illegal value: number instead of string. Supplying illegal values will throw errors in the future! See https://git.io/JtMGR for more info. [2/21/2021, 4:59:11 PM] [RadioRA2] Loaded keypad 'Dining Keypad' [2/21/2021, 4:59:11 PM] [RadioRA2] Loaded 5 keypad(s)

I dont seem to get any tstat to show up in Homekit now. I looked through accessories in config.ui and it is not showing there.

On Feb 21, 2021, at 9:22 AM, senorshaun notifications@github.com wrote:

Whoops, wrote it all in Fahrenheit and HomeKit uses celcuis. updated. and I think I fixed the mode. The only thing I'm not sure about is if the thermostat in HomeKit will show that it is currently cooling and currently heating (blue or orange) Replace these 2 files New Files v2.zip https://github.com/senorshaun/homebridge-radiora2/files/6017856/New.Files.v2.zip — You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/senorshaun/homebridge-radiora2/issues/3#issuecomment-782865809, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASWDQ45OBIE5FNFQ34MOBULTAEJLVANCNFSM4VZ2X3IQ.

jwp2033 commented 3 years ago

Ugh sorry that was user error. I have it now in home kit and for a about 30 seconds it allowed me to adjust the temp in home kit and it adjusted the tstat, but I set it to 70, the tstat would set to 68. 71 in appl, 69 on stat, Mode works for setting OFF or Heat, but Cool does not change the tstat. Also it seems changes made on the tstat dont seem to update HK. After trying this, the tstat stoped responding to Homebridge. logs: [2/21/2021, 5:06:51 PM] [homebridge-radiora2] This plugin generated a warning from the characteristic 'Heating Threshold Temperature': characteristic was supplied illegal value: number 25.7 exceeded maximum of 25. See https://git.io/JtMGR for more info. [2/21/2021, 5:06:51 PM] [homebridge-radiora2] This plugin generated a warning from the characteristic 'Heating Threshold Temperature': characteristic was supplied illegal value: number 25.6 exceeded maximum of 25. See https://git.io/JtMGR for more info.

On Feb 21, 2021, at 5:04 PM, Jimmy Price jwbl@me.com wrote:

[2/21/2021, 4:59:11 PM] [RadioRA2] Connected to Lutron! [2/21/2021, 4:59:11 PM] [RadioRA2] Loaded 0 fan(s) [2/21/2021, 4:59:11 PM] [RadioRA2] Loaded 0 light(s) [2/21/2021, 4:59:11 PM] [RadioRA2] Loaded occupancy sensor 'Ronnie's Room Motion Sensor' [2/21/2021, 4:59:11 PM] [RadioRA2] Loaded 1 occupancy sensor(s) [2/21/2021, 4:59:11 PM] [homebridge-radiora2] This plugin generated a warning from the characteristic 'Serial Number': characteristic was supplied illegal value: number instead of string. Supplying illegal values will throw errors in the future! See https://git.io/JtMGR https://git.io/JtMGR for more info. [2/21/2021, 4:59:11 PM] [RadioRA2] Loaded keypad 'Master Keypad' [2/21/2021, 4:59:11 PM] [homebridge-radiora2] This plugin generated a warning from the characteristic 'Serial Number': characteristic was supplied illegal value: number instead of string. Supplying illegal values will throw errors in the future! See https://git.io/JtMGR https://git.io/JtMGR for more info. [2/21/2021, 4:59:11 PM] [RadioRA2] Loaded keypad 'Tabletop' [2/21/2021, 4:59:11 PM] [homebridge-radiora2] This plugin generated a warning from the characteristic 'Serial Number': characteristic was supplied illegal value: number instead of string. Supplying illegal values will throw errors in the future! See https://git.io/JtMGR https://git.io/JtMGR for more info. [2/21/2021, 4:59:11 PM] [RadioRA2] Loaded keypad 'ronniesmote' [2/21/2021, 4:59:11 PM] [homebridge-radiora2] This plugin generated a warning from the characteristic 'Serial Number': characteristic was supplied illegal value: number instead of string. Supplying illegal values will throw errors in the future! See https://git.io/JtMGR https://git.io/JtMGR for more info. [2/21/2021, 4:59:11 PM] [RadioRA2] Loaded keypad 'DkpdL' [2/21/2021, 4:59:11 PM] [homebridge-radiora2] This plugin generated a warning from the characteristic 'Serial Number': characteristic was supplied illegal value: number instead of string. Supplying illegal values will throw errors in the future! See https://git.io/JtMGR https://git.io/JtMGR for more info. [2/21/2021, 4:59:11 PM] [RadioRA2] Loaded keypad 'Dining Keypad' [2/21/2021, 4:59:11 PM] [RadioRA2] Loaded 5 keypad(s)

I dont seem to get any tstat to show up in Homekit now. I looked through accessories in config.ui and it is not showing there.

On Feb 21, 2021, at 9:22 AM, senorshaun <notifications@github.com mailto:notifications@github.com> wrote:

Whoops, wrote it all in Fahrenheit and HomeKit uses celcuis. updated. and I think I fixed the mode. The only thing I'm not sure about is if the thermostat in HomeKit will show that it is currently cooling and currently heating (blue or orange) Replace these 2 files New Files v2.zip https://github.com/senorshaun/homebridge-radiora2/files/6017856/New.Files.v2.zip — You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/senorshaun/homebridge-radiora2/issues/3#issuecomment-782865809, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASWDQ45OBIE5FNFQ34MOBULTAEJLVANCNFSM4VZ2X3IQ.

senorshaun commented 3 years ago

Put the serials in quotes, that should get rid of the warning. Hmm the latest change shouldn’t have effected it showing up. Can you check that you have the “hvaccontrollers” spelled right if you removed and added it back from your config.json If you want, you can email your config to shaun @ therowan.house and I can double check it

On Feb 21, 2021, at 4:04 PM, jwp2033 notifications@github.com wrote:

 [2/21/2021, 4:59:11 PM] [RadioRA2] Connected to Lutron! [2/21/2021, 4:59:11 PM] [RadioRA2] Loaded 0 fan(s) [2/21/2021, 4:59:11 PM] [RadioRA2] Loaded 0 light(s) [2/21/2021, 4:59:11 PM] [RadioRA2] Loaded occupancy sensor 'Ronnie's Room Motion Sensor' [2/21/2021, 4:59:11 PM] [RadioRA2] Loaded 1 occupancy sensor(s) [2/21/2021, 4:59:11 PM] [homebridge-radiora2] This plugin generated a warning from the characteristic 'Serial Number': characteristic was supplied illegal value: number instead of string. Supplying illegal values will throw errors in the future! See https://git.io/JtMGR for more info. [2/21/2021, 4:59:11 PM] [RadioRA2] Loaded keypad 'Master Keypad' [2/21/2021, 4:59:11 PM] [homebridge-radiora2] This plugin generated a warning from the characteristic 'Serial Number': characteristic was supplied illegal value: number instead of string. Supplying illegal values will throw errors in the future! See https://git.io/JtMGR for more info. [2/21/2021, 4:59:11 PM] [RadioRA2] Loaded keypad 'Tabletop' [2/21/2021, 4:59:11 PM] [homebridge-radiora2] This plugin generated a warning from the characteristic 'Serial Number': characteristic was supplied illegal value: number instead of string. Supplying illegal values will throw errors in the future! See https://git.io/JtMGR for more info. [2/21/2021, 4:59:11 PM] [RadioRA2] Loaded keypad 'ronniesmote' [2/21/2021, 4:59:11 PM] [homebridge-radiora2] This plugin generated a warning from the characteristic 'Serial Number': characteristic was supplied illegal value: number instead of string. Supplying illegal values will throw errors in the future! See https://git.io/JtMGR for more info. [2/21/2021, 4:59:11 PM] [RadioRA2] Loaded keypad 'DkpdL' [2/21/2021, 4:59:11 PM] [homebridge-radiora2] This plugin generated a warning from the characteristic 'Serial Number': characteristic was supplied illegal value: number instead of string. Supplying illegal values will throw errors in the future! See https://git.io/JtMGR for more info. [2/21/2021, 4:59:11 PM] [RadioRA2] Loaded keypad 'Dining Keypad' [2/21/2021, 4:59:11 PM] [RadioRA2] Loaded 5 keypad(s)

I dont seem to get any tstat to show up in Homekit now. I looked through accessories in config.ui and it is not showing there.

On Feb 21, 2021, at 9:22 AM, senorshaun notifications@github.com wrote:

Whoops, wrote it all in Fahrenheit and HomeKit uses celcuis. updated. and I think I fixed the mode. The only thing I'm not sure about is if the thermostat in HomeKit will show that it is currently cooling and currently heating (blue or orange) Replace these 2 files New Files v2.zip https://github.com/senorshaun/homebridge-radiora2/files/6017856/New.Files.v2.zip — You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/senorshaun/homebridge-radiora2/issues/3#issuecomment-782865809, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASWDQ45OBIE5FNFQ34MOBULTAEJLVANCNFSM4VZ2X3IQ.

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub, or unsubscribe.

jfinestone commented 3 years ago

Any update? Is this working yet? Should I test it? Thanks.

On Sun, Feb 21, 2021 at 2:23 PM senorshaun @.***> wrote:

Put the serials in quotes, that should get rid of the warning. Hmm the latest change shouldn’t have effected it showing up. Can you check that you have the “hvaccontrollers” spelled right if you removed and added it back from your config.json If you want, you can email your config to shaun @ therowan.house and I can double check it

On Feb 21, 2021, at 4:04 PM, jwp2033 @.***> wrote:

 [2/21/2021, 4:59:11 PM] [RadioRA2] Connected to Lutron! [2/21/2021, 4:59:11 PM] [RadioRA2] Loaded 0 fan(s) [2/21/2021, 4:59:11 PM] [RadioRA2] Loaded 0 light(s) [2/21/2021, 4:59:11 PM] [RadioRA2] Loaded occupancy sensor 'Ronnie's Room Motion Sensor' [2/21/2021, 4:59:11 PM] [RadioRA2] Loaded 1 occupancy sensor(s) [2/21/2021, 4:59:11 PM] [homebridge-radiora2] This plugin generated a warning from the characteristic 'Serial Number': characteristic was supplied illegal value: number instead of string. Supplying illegal values will throw errors in the future! See https://git.io/JtMGR for more info. [2/21/2021, 4:59:11 PM] [RadioRA2] Loaded keypad 'Master Keypad' [2/21/2021, 4:59:11 PM] [homebridge-radiora2] This plugin generated a warning from the characteristic 'Serial Number': characteristic was supplied illegal value: number instead of string. Supplying illegal values will throw errors in the future! See https://git.io/JtMGR for more info. [2/21/2021, 4:59:11 PM] [RadioRA2] Loaded keypad 'Tabletop' [2/21/2021, 4:59:11 PM] [homebridge-radiora2] This plugin generated a warning from the characteristic 'Serial Number': characteristic was supplied illegal value: number instead of string. Supplying illegal values will throw errors in the future! See https://git.io/JtMGR for more info. [2/21/2021, 4:59:11 PM] [RadioRA2] Loaded keypad 'ronniesmote' [2/21/2021, 4:59:11 PM] [homebridge-radiora2] This plugin generated a warning from the characteristic 'Serial Number': characteristic was supplied illegal value: number instead of string. Supplying illegal values will throw errors in the future! See https://git.io/JtMGR for more info. [2/21/2021, 4:59:11 PM] [RadioRA2] Loaded keypad 'DkpdL' [2/21/2021, 4:59:11 PM] [homebridge-radiora2] This plugin generated a warning from the characteristic 'Serial Number': characteristic was supplied illegal value: number instead of string. Supplying illegal values will throw errors in the future! See https://git.io/JtMGR for more info. [2/21/2021, 4:59:11 PM] [RadioRA2] Loaded keypad 'Dining Keypad' [2/21/2021, 4:59:11 PM] [RadioRA2] Loaded 5 keypad(s)

I dont seem to get any tstat to show up in Homekit now. I looked through accessories in config.ui and it is not showing there.

On Feb 21, 2021, at 9:22 AM, senorshaun @.***> wrote:

Whoops, wrote it all in Fahrenheit and HomeKit uses celcuis. updated. and I think I fixed the mode. The only thing I'm not sure about is if the thermostat in HomeKit will show that it is currently cooling and currently heating (blue or orange) Replace these 2 files New Files v2.zip < https://github.com/senorshaun/homebridge-radiora2/files/6017856/New.Files.v2.zip

— You are receiving this because you commented. Reply to this email directly, view it on GitHub < https://github.com/senorshaun/homebridge-radiora2/issues/3#issuecomment-782865809>, or unsubscribe < https://github.com/notifications/unsubscribe-auth/ASWDQ45OBIE5FNFQ34MOBULTAEJLVANCNFSM4VZ2X3IQ .

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub, or unsubscribe.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/senorshaun/homebridge-radiora2/issues/3#issuecomment-782938388, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHS7IZ47RGMNC7VXZTOPS3TAGBUXANCNFSM4VZ2X3IQ .

thecreativeone91 commented 3 years ago

Any update? Is this working yet? Should I test it? Thanks.

Doesn't work for me as of yet, even with the latest update. It shows up but it just turns off the HVAC Controller no matter the mode, the set temp doesn't take, and the current temp always shows 32 degrees (it's set to Fahrenheit)

senorshaun commented 3 years ago

Yeah. I couldn't get it working right just with guessing. So I have an LR-HWLV-HVAC on order that I'll hook up to get it tested. Once it gets in here and I get it working properly, I'll get another version uploaded

senorshaun commented 3 years ago

Ok I finally got this hammered out. 1.3.0 has this all working. check the read-me, I added an optional switch called heatOnly for some of you.

jfinestone commented 3 years ago

Hello. Just checking to see if this is all working properly now and I should install it? Thanks.

On Wed, Apr 28, 2021 at 7:32 PM senorshaun @.***> wrote:

Ok I finally got this hammered out. 1.3.0 has this all working. check the read-me, I added an optional switch called heatOnly for some of you.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/senorshaun/homebridge-radiora2/issues/3#issuecomment-828901661, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHS7I4TIXOFNJQTKEHGTETTLDAM7ANCNFSM4VZ2X3IQ .

senorshaun commented 3 years ago

yeah. Let me know if you have any issues with it

jfinestone commented 3 years ago

How do I download the most current version? And are there instructions for installing and configuring it?

Thanks.

On Tue, May 25, 2021 at 1:37 PM senorshaun @.***> wrote:

yeah. Let me know if you have any issues with it

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/senorshaun/homebridge-radiora2/issues/3#issuecomment-848243307, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHS7I3RAN7YQVJ4GAJTDJ3TPQDCBANCNFSM4VZ2X3IQ .

senorshaun commented 3 years ago

Should be the same as updating any normal add-in. I pushed 1.3 to NPM. Read-me should have the info you need

jfinestone commented 3 years ago

Can you send me the URL to access the download. I don’t see a current version 1.3

On Fri, Jun 25, 2021 at 7:44 PM senorshaun @.***> wrote:

Should be the same as updating any normal add-in. I pushed 1.3 to NPM. Read-me should have the info you need

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/senorshaun/homebridge-radiora2/issues/3#issuecomment-868932748, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHS7I5FZ43YA63746R7EMDTUU5KPANCNFSM4VZ2X3IQ .

yungeconomist commented 2 years ago

HI @senorshaun. Thanks for all the work on this- I just wanted to let you know I have been using the integration and it's been great. The HVAC controller is still not working yet; as far as I can tell. I've had no issues with my other devices though. If I can help debugging the HVAC controller, let me know. I can send you over some debug logs. The thermostat device that gets created does not end up controlling the HVAC controller at all and stays stuck at a temp in the Home App