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 5 forks source link

[Support] HOOBS Installation Issue #70

Closed QLDRiddler closed 1 year ago

QLDRiddler commented 1 year ago

Hi Mitch, thanks for developing this plugin, just what I am looking for. However, getting stuck at the first hurdle! I'm trying to install on my Hoobs setup, I've already downloaded and installed the CMD4 plugin and then installed the AdvantageAir one.

I accessed the Terminal and followed the instructions but when I enter $config, I get an error messgae back stating ERROR: either your AdvantageAir system is inacessible or your IP address /var/lib/hoobs/cmd4bridge/node_modules/homebridge-cmd4-advantageair/ConfigCreator.sh is invalid! - I thought this step was mean to ask for the ip address of my AA system? What am I doing wrong?

uswong commented 1 year ago

Hi @QLDRiddler,

Please try the following command

/var/lib/hoobs/cmd4bridge/node_modules/homebridge-cmd4-advantageair/ConfigCreator.sh

Then enter your ip address of your AdvantageAir system

QLDRiddler commented 1 year ago

That took me one step further but when I entered the IP address of the AA unit, it still came back as inaccessible or invalid. I've just tried pinging the AA unit directly at xxx.xxx.xxx.xxx:2025/getSystemData and that responds immediately with the JSON data.

On Tue, 16 Aug 2022 at 16:23, uswong @.***> wrote:

Hi @QLDRiddler https://github.com/QLDRiddler,

Please try the following command

/var/lib/hoobs/cmd4bridge/node_modules/homebridge-cmd4-advantageair/ConfigCreator.sh

Then enter your ip address of your AdvantageAir system

β€” Reply to this email directly, view it on GitHub https://github.com/mitch7391/homebridge-cmd4-AdvantageAir/issues/70#issuecomment-1216196971, or unsubscribe https://github.com/notifications/unsubscribe-auth/A2RODLYU2B264CHDKY6HFJLVZMXVBANCNFSM56UQCGDQ . You are receiving this because you were mentioned.Message ID: @.***>

uswong commented 1 year ago

that is a bit strange.

make sure that you are in your home directory, then try this command

/var/lib/hoobs/cmd4bridge/node_modules/homebridge-cmd4-advantageair/ConfigCreator.sh "xxx.xxx.xxx.xxx"

QLDRiddler commented 1 year ago

Thanks for sticking with me here. One step forward, one step back - it now tries to create the file but still doesnt seem to be able to access the unit. Pasted below is a screengrab from the Hoobs terminal, followed by a screen grab of a direct ping of the AA unit from a browser. [image: image.png] [image: image.png]

On Tue, 16 Aug 2022 at 16:50, uswong @.***> wrote:

that is a bit strange.

make sure that you are in your home directory, then try this command

/var/lib/hoobs/cmd4bridge/node_modules/homebridge-cmd4-advantageair/ConfigCreator.sh "xxx.xxx.xxx.xxx"

β€” Reply to this email directly, view it on GitHub https://github.com/mitch7391/homebridge-cmd4-AdvantageAir/issues/70#issuecomment-1216218058, or unsubscribe https://github.com/notifications/unsubscribe-auth/A2RODL5WJ75MHRBEA6WS7B3VZM22FANCNFSM56UQCGDQ . You are receiving this because you were mentioned.Message ID: @.***>

uswong commented 1 year ago

For some reasons, I can't see your screen grab images.

can you please test the following on your terminal?

curl -s -g --max-time 15 --fail --connect-timeout 15 "http://xxx.xxx.xxx.xxx:2025/getSystemData"

If the command returned the Json file, then your ip address xxx.xxx.xxx.xxx must be correct.

If not, then there are two reasons for the inaccessible message.

  1. one is wrong ip address. you have rule that out, I think.
  2. another reason is that your system is running quite slow and took more than 15 seconds.

to overcome the later, edit the line 802 in ConfigCreator.sh myAirData=$(curl -s -g --max-time 15 --fail --connect-timeout 15 "http://${IPA}:2025/getSystemData")

change the number 15 to 60, to become the following: myAirData=$(curl -s -g --max-time 60 --fail --connect-timeout 60 "http://${IPA}:2025/getSystemData")

For your reference, if everything is working well, you should see the following messages:

My installation is on Raspberry Pi and it looks like this:

image

QLDRiddler commented 1 year ago

Pinging the unit with the CURL command generated an immediate JSON response so the bridge can obviously see the unit. I'm attaching teh screen grabs as attachem,ent this time to see if that helps. Otherwise pasted below is the line-by-line output from the Hoobs terminal when I try and run the Configurator.

@.***:~ $ /var/lib/hoobs/cmd4bridge/node_modules/homebridge-cmd4-advantageair/ConfigCreator.sh "192.168.101.164" In the process of creating the Cmd4 configuration file for your AdvantageAir system(s). It may take up to 2 minutes.... Fetching and processing data from your AdvantageAir system (192.168.101.164).... /var/lib/hoobs/cmd4bridge/node_modules/homebridge-cmd4-advantageair/ConfigCreator.sh: line 812: jq: command not found /var/lib/hoobs/cmd4bridge/node_modules/homebridge-cmd4-advantageair/ConfigCreator.sh: line 817: jq: command not found /var/lib/hoobs/cmd4bridge/node_modules/homebridge-cmd4-advantageair/ConfigCreator.sh: line 818: jq: command not found /var/lib/hoobs/cmd4bridge/node_modules/homebridge-cmd4-advantageair/ConfigCreator.sh: line 820: jq: command not found /var/lib/hoobs/cmd4bridge/node_modules/homebridge-cmd4-advantageair/ConfigCreator.sh: line 821: jq: command not found /var/lib/hoobs/cmd4bridge/node_modules/homebridge-cmd4-advantageair/ConfigCreator.sh: line 822: jq: command not found cat: cmd4Config.json.AAaccessories: No such file or directory

Cmd4 configuration file has now been created successfully: cmd4ConfigAA.json.1660635646

This newly created config can be copied to Homebridge config.json automatically The existing Cmd4 configuration pertaining to AdvantageAir system(s) will be overwritten by this new one Do you want to proceed? (y/n) y

Homebridge config.json:

ERROR: no Homebridge config.json found! INFO: the created cmd4ConfigAA.json.1660635646 was unable to be copied to Homebridge-Cmd4 JASON Config Editor!

On Tue, 16 Aug 2022 at 17:21, uswong @.***> wrote:

For some reasons, I can't see your screen grab images.

can you please test the following on your terminal?

curl -s -g --max-time 15 --fail --connect-timeout 15 " http://xxx.xxx.xxx.xxx:2025/getSystemData"

If the command returned the Json file, then your ip address xxx.xxx.xxx.xxx must be correct.

If not, then there are two reasons for the inaccessible message.

  1. one is wrong ip address. you have rule that out, I think.
  2. another reason is that your system is running quite slow and took more than 15 seconds.

to overcome the later, edit the line 802 in ConfigCreator.sh myAirData=$(curl -s -g --max-time 15 --fail --connect-timeout 15 "http:// ${IPA}:2025/getSystemData")

change the number 15 to 60, to become the following: myAirData=$(curl -s -g --max-time 60 --fail --connect-timeout 60 "http:// ${IPA}:2025/getSystemData")

For your reference, if everything is working well, you should see the following messages:

My installation is on Raspberry Pi and it looks like this:

[image: image] https://user-images.githubusercontent.com/96530237/184818009-011249be-7b58-4b78-afc6-a1052f2aa2c8.png

β€” Reply to this email directly, view it on GitHub https://github.com/mitch7391/homebridge-cmd4-AdvantageAir/issues/70#issuecomment-1216245683, or unsubscribe https://github.com/notifications/unsubscribe-auth/A2RODL6GJUB5T5VZGKENJ5DVZM6OTANCNFSM56UQCGDQ . You are receiving this because you were mentioned.Message ID: @.***>

uswong commented 1 year ago

OK, your system is actually running fast, the max-time of 15 seconds is not the issue.

The issue is your jq installation.

try

jq -V

you should see a response something like this: jq-1.6

if not, you have to install jq first

uswong commented 1 year ago

for Raspbian/Hoobs: sudo apt-get install jq

mitch7391 commented 1 year ago

@uswong thanks for jumping on this one for me. I really dislike HOOBS haha if I remember correctly they restrict what commands and access the user has at the terminal with their image... It was a very long time ago I tried HOOBS and I had to do a whole heap of extra steps to use some basic commands. I do not think we have 100% confirmed any users have this working on HOOBS yet, I did have a user who had trouble getting set up before had UI integration and never heard back from them on if they had a win or not in the end.

uswong commented 1 year ago

haha... I never come across HOOBS. I just googled it and this is what I got:

HOOBS is the number one solution for Homebridge.

they restrict what commands and access the user has at the terminal with their image...

If jq is actually installed and if Hoobs restrict the use of jq at the terminal, then I guess our next version of ConfigCreator which is running within Homebridge-ui environment should work better for @QLDRiddler.

mitch7391 commented 1 year ago

HOOBS is the number one solution for Homebridge.

Yeah they would say that lol they are an early fork from homebridge-config-ui-x back in the day and use homebridge to create their own image/platform. It is designed for users who are not tech savvy to jump straight into the RPi and Homebridge world with no experience; this sounded great until I used it and found I could do nothing custom with it and requiring workarounds to elevate privileges.

The problem is they charge (with a mark up) for parts you could buy yourself and use a restricted version of what is a free image you could acquire; as you know. Anyway I should stop distracting from the point and my aim has always been to support HOOBS as well. @QLDRiddler I would suggest if you want a nicer experience with all your plug-ins (earlier updates, more support in the community, etc.) you should swap over to homebridge (but no pressure):

https://github.com/homebridge/homebridge-raspbian-image/wiki/How-to-migrate-from-HOOBS-to-Homebridge

mitch7391 commented 1 year ago

@uswong I am not quite ready to roll out the new version of ConfigCreator just yet as I will have to do all the admin work for it; including grabbing screenshots to update the install instructions (the lengthy part). I have merged and tested it and it works as expected. What I can do in the mean time if @QLDRiddler is keen to give it a go, I could give some instructions on how to install it from 'git clone' so they can test it before it is rolled out.

@QLDRiddler did you want to give that a try? It would tell us if the new integration will get around any limitations applied by HOOBS...

QLDRiddler commented 1 year ago

Sure, happy to be an alpha/beta guinea pig, what could go wrong? 😷


From: Mitch Williams @.> Sent: Tuesday, August 16, 2022 8:09:35 PM To: mitch7391/homebridge-cmd4-AdvantageAir @.> Cc: QLDRiddler @.>; Mention @.> Subject: Re: [mitch7391/homebridge-cmd4-AdvantageAir] Installation issue (Issue #70)

@uswonghttps://github.com/uswong I am not quite ready to roll out the new version of ConfigCreator just yet as I will have to do all the admin work for it; including grabbing screenshots to update the install instructions (the lengthy part). I have merged and tested it and it works as expected. What I can do in the mean time if @QLDRiddlerhttps://github.com/QLDRiddler is keen to give it a go, I could give some instructions on how to install it from 'git clone' so they can test it before it is rolled out.

@QLDRiddlerhttps://github.com/QLDRiddler did you want to give that a try? It would tell us if the new integration will get around any limitations applied by HOOBS...

β€” Reply to this email directly, view it on GitHubhttps://github.com/mitch7391/homebridge-cmd4-AdvantageAir/issues/70#issuecomment-1216434141, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A2RODLZ7WHCRVUM3ROJUIU3VZNSF7ANCNFSM56UQCGDQ. You are receiving this because you were mentioned.Message ID: @.***>

mitch7391 commented 1 year ago

Give me a few secs to type out the instructions for you and worst case is it will not be any worse than what you have now. You will then just re-install the plug-in to revert.

mitch7391 commented 1 year ago
  1. Open your terminal.
  2. Type:
    cd /tmp
  3. Type:
    git clone https://github.com/mitch7391/homebridge-cmd4-AdvantageAir.git
  4. Type:
     cd homebridge-cmd4-AdvantageAir
  5. Type:
    npm pack
  6. Type:
    sudo npm install -g ./homebridge-cmd4-advantageair-3.6.0.tgz --unsafe-perm
  7. Open you plug-ins tab and it should now say you have v3.6.0 and try the ConfigCreator as you were before :)

To revert just re-install the plugin as you had done the first time. Not sure if HOOBS will let you do any of this but worth a shot!

mitch7391 commented 1 year ago

Actually there will be slightly different steps for using the ConfiCreator now, so don't follow the steps on the Wiki again.

  1. On the plug-in page, click SETTINGS for this plug-in and it will bring up a UI.
  2. Scroll to the bottom and type in the name of your system (E-zone, Aircon, Riddler, etc.).
  3. Type in your IP address.
  4. Click SAVE.
  5. You might need to launch the SETTINGS again.
  6. At the top of the UI press Config Creator.
  7. Hopefully everything worked!
  8. If it did, then run the Check Configuration.
uswong commented 1 year ago

Hey Mitch, I tested the above git clone procedure and got an error sh: husky: command not found. when I did npm pack command.

image

What I did to resolve the error was before the npm pack command, I have to do a npm i to install husky first, then everything worked.

image

image

image

ztalbot2000 commented 1 year ago

Hi,

Install the dev dependencies

npm install --dev

I believe

John

On Wed, Aug 17, 2022 at 11:11 PM uswong @.***> wrote:

Hey Mitch, I tested the above git clone procedure and got an error sh: husky: command not found. when I did npm pack command.

[image: image] https://user-images.githubusercontent.com/96530237/185283936-9b234d96-18e2-460c-938e-9b6630803959.png What I did to resolve the error was before the npm pack command, I have to do a npm i to install husky first, then everything worked.

[image: image] https://user-images.githubusercontent.com/96530237/185284184-2aa26558-aa50-46b1-b56b-64c2e8d4941a.png

[image: image] https://user-images.githubusercontent.com/96530237/185284392-0589290b-50da-4859-8bea-ee6f49bdd7fe.png

[image: image] https://user-images.githubusercontent.com/96530237/185284450-7163697a-9151-4edc-b538-226e18282d6a.png

β€” Reply to this email directly, view it on GitHub https://github.com/mitch7391/homebridge-cmd4-AdvantageAir/issues/70#issuecomment-1218996050, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABSBCX5RWOTKJUVNALRVNY3VZWSVPANCNFSM56UQCGDQ . You are receiving this because you are subscribed to this thread.Message ID: @.*** com>

mitch7391 commented 1 year ago

Hey @uswong I was not aware it would need husky installed to just do a npm pack... Just a npm install husky would suffice if that error holds you up, or similar to what John has said about; a npm install --include-dev should do.

@QLDRiddler sorry to pressure you, but did you get a chance to give this a go? Please let us know if you face any troubles or need further guidance.

QLDRiddler commented 1 year ago

Sorry, getting lots of errors in many steps and as I'm not understanding what's being done, not sure what I need to do to resolve. Could you perhaps give definitive insrutctions again as to what should be required (inc the revised npm commands) and I'll give it another go. Is there anything I should need to do beforehand to prepare a clean install environment (delete the old plugin, remove tmp directories from the failed upgrade etc?)

On Thu, 18 Aug 2022 at 20:08, Mitch Williams @.***> wrote:

Hey @uswong https://github.com/uswong I was not aware it would need husky installed to just do a npm pack... Just a npm install husky would suffice if that error holds you up, or similar to what John has said about; a npm install --include-dev should do.

@QLDRiddler https://github.com/QLDRiddler sorry to pressure you, but did you get a chance to give this a go? Please let us know if you face any troubles or need further guidance.

β€” Reply to this email directly, view it on GitHub https://github.com/mitch7391/homebridge-cmd4-AdvantageAir/issues/70#issuecomment-1219301847, or unsubscribe https://github.com/notifications/unsubscribe-auth/A2RODL6PUUO6A2J6GZTY523VZYDP7ANCNFSM56UQCGDQ . You are receiving this because you were mentioned.Message ID: @.***>

mitch7391 commented 1 year ago

Hey @QLDRiddler, completely understandable if the above got confusing and what we have asked you to do still might not actually work.

Just to reassure you that the steps you will be taking will not harm your setup in anyway. The directory we end up creating in β€˜/tmp’ ends up getting deleted once you reboot your RPi. The extra installation of β€˜husky’ or β€˜include-dev’ does not cause any issues to your system and takes up barely any space.

Anyway, revised steps as requested:

  1. Reboot your RPi to clear β€˜/tmp’.
  2. Open your terminal.
  3. Type:
    cd /tmp
  4. Type:
    git clone https://github.com/mitch7391/homebridge-cmd4-AdvantageAir.git
  5. Type:
     cd homebridge-cmd4-AdvantageAir
  6. Type:
    npm pack

    If you have an error here about husky not being installed. Use:

     npm install husky

    Reattempt the npm pack.

  7. If successful, type:
    sudo npm install -g ./homebridge-cmd4-advantageair-3.6.0.tgz --unsafe-perm
  8. Open you plug-ins tab and it should now say you have v3.6.0.
  9. On the plug-in page, click SETTINGS for this plug-in and it will bring up a UI.
  10. Scroll to the bottom and type in the name of your system (E-zone, Aircon, Riddler, etc.).
  11. Type in your IP address.
  12. Click SAVE.
  13. You might need to launch the SETTINGS again.
  14. At the top of the UI press Config Creator.
  15. Hopefully everything worked!
  16. If it did, then run the Check Configuration.

If at any stage of these steps that you get stuck or stopped by some sort of error, please capture a screenshot or copy the error for us so we can further help.

QLDRiddler commented 1 year ago

I followed the steps as directed (I did have to do the husky step as well) but showing v3.5.1 as per the attached screen grab. Pasted below is the response from install process. I noticed that it said that packages are looking for funding, so I ran nnpm fund as sudo and have also pasted that output. Sorry I can be of more technical assistance but more than willing tp keep plugging away.

@.:/tmp/homebridge-cmd4-AdvantageAir $ npm pack npm notice npm notice πŸ“¦ @. npm notice === Tarball Contents === npm notice 1.1kB .eslintrc.json npm notice 1.2kB .github/ISSUE_TEMPLATE/bug-report.md npm notice 954B .github/ISSUE_TEMPLATE/feature-request.md npm notice 1.6kB .github/ISSUE_TEMPLATE/support-request.md npm notice 949B .github/pull_request_template.md npm notice 61B .husky/pre-commit npm notice 44.8kB AdvAir.sh npm notice 16.1kB CHANGELOG.md npm notice 32.5kB ConfigCreator.sh npm notice 1.1kB LICENSE npm notice 8.1kB README.md npm notice 2.0kB config.schema.json npm notice 242B homebridge-ui/public/css/style.css npm notice 74.3kB homebridge-ui/public/images/AdvAir.png npm notice 6.6kB homebridge-ui/public/index.html npm notice 2.2kB homebridge-ui/public/js/main.js npm notice 29.6kB homebridge-ui/server.js npm notice 383B index.js npm notice 3.0kB package.json npm notice === Tarball Details === npm notice name: homebridge-cmd4-advantageair npm notice version: 3.6.0 npm notice filename: homebridge-cmd4-advantageair-3.6.0.tgz npm notice package size: 110.8 kB npm notice unpacked size: 226.7 kB npm notice shasum: 675ad76acfca57b2edd9e44814cbd36f0c572b57 npm notice integrity: sha512-eShtRMAGmaokK[...]V6NYs9EpCUwFg== npm notice total files: 19 npm notice homebridge-cmd4-advantageair-3.6.0.tgz @.***:/tmp/homebridge-cmd4-AdvantageAir $ sudo npm install -g ./homebridge-cmd4-advantageair-3.6.0.tgz --unsafe-perm [sudo] password for hoobs:

changed 16 packages, and audited 17 packages in 4s

51 packages are looking for funding run npm fund for details

found 0 vulnerabilities @.:/tmp/homebridge-cmd4-AdvantageAir $ sudo npm fund [sudo] password for hoobs: @. β”œβ”€β”¬ https://github.com/chalk/chalk?sponsor=1 β”‚ β”‚ └── @. β”‚ └── https://github.com/chalk/ansi-styles?sponsor=1 β”‚ └── @. β”œβ”€β”¬ https://opencollective.com/eslint β”‚ β”‚ └── @. β”‚ β”œβ”€β”€ https://github.com/sponsors/sindresorhus β”‚ β”‚ └── @., @., @., @., @., @., @., @., @., @., @., @., @., @., @., @., @., @., @., @., @., @., @., @., @., @. β”‚ β”œβ”€β”€ https://github.com/sponsors/mysticatea β”‚ β”‚ └── @., @. β”‚ └── https://github.com/sponsors/isaacs β”‚ └── @., @. β”œβ”€β”€ https://github.com/sponsors/typicode β”‚ └── @. β”œβ”€β”¬ https://opencollective.com/mochajs β”‚ β”‚ └── @. β”‚ β”œβ”€β”¬ https://paulmillr.com/funding/ β”‚ β”‚ β”‚ └── @. β”‚ β”‚ └── https://github.com/sponsors/jonschlinkert β”‚ β”‚ └── @. β”‚ └── https://github.com/chalk/supports-color?sponsor=1 β”‚ └── @. β”œβ”€β”€ https://opencollective.com/sinon β”‚ └── @. β”œβ”€β”€ https://github.com/sponsors/feross β”‚ └── @. β”œβ”€β”€ https://github.com/sindresorhus/execa?sponsor=1 β”‚ └── @. β”œβ”€β”€ https://github.com/sponsors/epoberezkin β”‚ └── @. └── https://github.com/chalk/wrap-ansi?sponsor=1 └── @.***

On Fri, 19 Aug 2022 at 11:57, Mitch Williams @.***> wrote:

Hey @QLDRiddler https://github.com/QLDRiddler, completely understandable if the above got confusing and what we have asked you to do still might not actually work.

Just to reassure you that the steps you will be taking will not harm your setup in anyway. The directory we end up creating in β€˜/tmp’ ends up getting deleted once you reboot your RPi. The extra installation of β€˜husky’ or β€˜include-dev’ does not cause any issues to your system and takes up barely any space.

Anyway, revised steps as requested:

  1. Reboot your RPi to clear β€˜/tmp’.

  2. Open your terminal.

  3. Type:

    cd /tmp

  4. Type:

    git clone https://github.com/mitch7391/homebridge-cmd4-AdvantageAir.git

  5. Type:

    cd homebridge-cmd4-AdvantageAir

  6. Type:

    npm pack

    If you have an error here about husky not being installed. Use:

    npm install husky

    Reattempt the npm pack.

  7. If successful, type:

    sudo npm install -g ./homebridge-cmd4-advantageair-3.6.0.tgz --unsafe-perm

  8. Open you plug-ins tab and it should now say you have v3.6.0.

  9. On the plug-in page, click SETTINGS for this plug-in and it will bring up a UI.

  10. Scroll to the bottom and type in the name of your system (E-zone, Aircon, Riddler, etc.).

  11. Type in your IP address.

  12. Click SAVE.

  13. You might need to launch the SETTINGS again.

  14. At the top of the UI press Config Creator.

  15. Hopefully everything worked!

  16. If it did, then run the Check Configuration.

If at any stage of these steps that you get stuck or stopped by some sort of error, please capture a screenshot or copy the error for us so we can further help.

β€” Reply to this email directly, view it on GitHub https://github.com/mitch7391/homebridge-cmd4-AdvantageAir/issues/70#issuecomment-1220153752, or unsubscribe https://github.com/notifications/unsubscribe-auth/A2RODL3OWHFY7PJZFFJND5DVZ3SXDANCNFSM56UQCGDQ . You are receiving this because you were mentioned.Message ID: @.***>

mitch7391 commented 1 year ago

This is an interesting one @QLDRiddler... It looks like everything you have done has worked and is correct, but it is then not reflecting in the plug-in itself. My colleague @uswong says he is experiencing the same strange issue himself on his Homebridge RPi; I am not experiencing the issue and have tried it three times...

I would say at this point we will stop wasting your time by getting you to attempt it over and over. I will get my butt into gear tonight or tomorrow and push forward the release so you can install it the normal way (instead of our dev way). Sorry for all this inconvenience so far!

Also, the npm funding is just npm itself wanting people to fund projects (like a donate button); it will ask you about that every time you do an npm update, so just ignore that as it will not affect anything you are wanting to do.

I have also just dug up a very old HOOBS OS ZIP file download from back when they used to let you have the image for free (hopefully it lets me update for free too); I cannot believe they charge $10 for just the image download! I think it is fair time that I fired this up on my spare RPi3 and make sure I can get through the install myself and update any notes for future users.

ztalbot2000 commented 1 year ago

Hi Mitch,

I've duplicated your success and others failures. Your success is because you might have husky installed globally, or after the 'git clone', you had done a ' npm install --include-dev' before the 'npm pack'. Husky is only for the commit hooks used during development. I.e. running the test scripts.

I am not sure why at the bottom of the package.json file there is an entry: "prepare": "husky install"

If you delete that line and the comma from the end of the preceding line, everything seems happy or do an: npm install --include-dev Before the "npm pack" command

So to be clear, following your steps add step 5B

  1. Type: git clone https://github.com/mitch7391/homebridge-cmd4-AdvantageAir.git

  2. Type:

cd homebridge-cmd4-AdvantageAir

5.B Type: npm install --include-dev

The true fix might be removing the "prepare: husky install" from the package.json. How it got there, I'd have to look back in history. Another reason not to delete history, but that's the other conversation.

Ttyl, John

On Fri, Aug 19, 2022 at 12:23 AM Mitch Williams @.***> wrote:

This is an interesting one @QLDRiddler https://github.com/QLDRiddler... It looks like everything you have done has worked and is correct, but it is then not reflecting in the plug-in itself. My colleague @uswong https://github.com/uswong says he is experiencing the same strange issue himself on his Homebridge RPi; I am not experiencing the issue and have tried it three times...

I would say at this point we will stop wasting your time by getting you to attempt it over and over. I will get my butt into gear tonight or tomorrow and push forward the release so you can install it the normal way (instead of our dev way). Sorry for all this inconvenience so far!

Also, the npm funding is just npm itself wanting people to fund projects (like a donate button); it will ask you about that every time you do an npm update, so just ignore that as it will not affect anything you are wanting to do.

I have also just dug up a very old HOOBS OS ZIP file download from back when they used to let you have the image for free (hopefully it lets me update for free too); I cannot believe they charge $10 for just the image download! I think it is fair time that I fired this up on my spare RPi3 and make sure I can get through the install myself and update any notes for future users.

β€” Reply to this email directly, view it on GitHub https://github.com/mitch7391/homebridge-cmd4-AdvantageAir/issues/70#issuecomment-1220234260, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABSBCX45VIN3XGX2LHHOGWDVZ4D4FANCNFSM56UQCGDQ . You are receiving this because you commented.Message ID: @.***>

QLDRiddler commented 1 year ago

Just to update you all, I tried the added step that John mentions and whilst that took away the install errors, I'm still stuck on 3.5.1 of the plugin :-(

@.:~ $ cd /tmp @.:/tmp $ sudo git clone https://github.com/mitch7391/homebridge-cmd4-AdvantageAir.git [sudo] password for hoobs: Cloning into 'homebridge-cmd4-AdvantageAir'... remote: Enumerating objects: 2194, done. remote: Counting objects: 100% (3/3), done. remote: Compressing objects: 100% (3/3), done. remote: Total 2194 (delta 0), reused 0 (delta 0), pack-reused 2191 Receiving objects: 100% (2194/2194), 7.77 MiB | 8.85 MiB/s, done. Resolving deltas: 100% (1249/1249), done. @.:/tmp $ cd homebridge-cmd4-AdvantageAir @.:/tmp/homebridge-cmd4-AdvantageAir $ sudo npm install --include-dev

@.*** prepare husky install

husky - Git hooks installed

added 350 packages, and audited 351 packages in 14s

51 packages are looking for funding run npm fund for details

found 0 vulnerabilities @.:/tmp/homebridge-cmd4-AdvantageAir $ sudo npm pack npm notice npm notice πŸ“¦ @. npm notice === Tarball Contents === npm notice 1.1kB .eslintrc.json npm notice 1.2kB .github/ISSUE_TEMPLATE/bug-report.md npm notice 954B .github/ISSUE_TEMPLATE/feature-request.md npm notice 1.6kB .github/ISSUE_TEMPLATE/support-request.md npm notice 949B .github/pull_request_template.md npm notice 61B .husky/pre-commit npm notice 44.8kB AdvAir.sh npm notice 16.1kB CHANGELOG.md npm notice 32.6kB ConfigCreator.sh npm notice 1.1kB LICENSE npm notice 8.1kB README.md npm notice 2.0kB config.schema.json npm notice 242B homebridge-ui/public/css/style.css npm notice 74.3kB homebridge-ui/public/images/AdvAir.png npm notice 6.6kB homebridge-ui/public/index.html npm notice 2.2kB homebridge-ui/public/js/main.js npm notice 29.6kB homebridge-ui/server.js npm notice 383B index.js npm notice 3.0kB package.json npm notice === Tarball Details === npm notice name: homebridge-cmd4-advantageair npm notice version: 3.6.0 npm notice filename: homebridge-cmd4-advantageair-3.6.0.tgz npm notice package size: 110.8 kB npm notice unpacked size: 226.9 kB npm notice shasum: d7b26a48082ffeb75136f99b41bb43f1a68219e0 npm notice integrity: sha512-vLiBc55HVr8Rt[...]H3AwXQi7KNHgA== npm notice total files: 19 npm notice homebridge-cmd4-advantageair-3.6.0.tgz @.***:/tmp/homebridge-cmd4-AdvantageAir $ sudo npm install -g ./homebridge-cmd4-advantageair-3.6.0.tgz --unsafe-perm

changed 16 packages, and audited 17 packages in 3s

2 packages are looking for funding run npm fund for details

found 0 vulnerabilities @.***:/tmp/homebridge-cmd4-AdvantageAir $

On Fri, 19 Aug 2022 at 15:11, John Talbot @.***> wrote:

Hi Mitch,

I've duplicated your success and others failures. Your success is because you might have husky installed globally, or after the 'git clone', you had done a ' npm install --include-dev' before the 'npm pack'. Husky is only for the commit hooks used during development. I.e. running the test scripts.

I am not sure why at the bottom of the package.json file there is an entry: "prepare": "husky install"

If you delete that line and the comma from the end of the preceding line, everything seems happy or do an: npm install --include-dev Before the "npm pack" command

So to be clear, following your steps add step 5B

  1. Type: git clone https://github.com/mitch7391/homebridge-cmd4-AdvantageAir.git

  2. Type:

cd homebridge-cmd4-AdvantageAir

5.B Type: npm install --include-dev

The true fix might be removing the "prepare: husky install" from the package.json. How it got there, I'd have to look back in history. Another reason not to delete history, but that's the other conversation.

Ttyl, John

On Fri, Aug 19, 2022 at 12:23 AM Mitch Williams @.***> wrote:

This is an interesting one @QLDRiddler <https://github.com/QLDRiddler ... It looks like everything you have done has worked and is correct, but it is then not reflecting in the plug-in itself. My colleague @uswong https://github.com/uswong says he is experiencing the same strange issue himself on his Homebridge RPi; I am not experiencing the issue and have tried it three times...

I would say at this point we will stop wasting your time by getting you to attempt it over and over. I will get my butt into gear tonight or tomorrow and push forward the release so you can install it the normal way (instead of our dev way). Sorry for all this inconvenience so far!

Also, the npm funding is just npm itself wanting people to fund projects (like a donate button); it will ask you about that every time you do an npm update, so just ignore that as it will not affect anything you are wanting to do.

I have also just dug up a very old HOOBS OS ZIP file download from back when they used to let you have the image for free (hopefully it lets me update for free too); I cannot believe they charge $10 for just the image download! I think it is fair time that I fired this up on my spare RPi3 and make sure I can get through the install myself and update any notes for future users.

β€” Reply to this email directly, view it on GitHub < https://github.com/mitch7391/homebridge-cmd4-AdvantageAir/issues/70#issuecomment-1220234260 , or unsubscribe < https://github.com/notifications/unsubscribe-auth/ABSBCX45VIN3XGX2LHHOGWDVZ4D4FANCNFSM56UQCGDQ

. You are receiving this because you commented.Message ID: @.***>

β€” Reply to this email directly, view it on GitHub https://github.com/mitch7391/homebridge-cmd4-AdvantageAir/issues/70#issuecomment-1220259717, or unsubscribe https://github.com/notifications/unsubscribe-auth/A2RODLY4EBHC5OYBZSKUYGLVZ4JRRANCNFSM56UQCGDQ . You are receiving this because you were mentioned.Message ID: @.***>

ztalbot2000 commented 1 year ago

Hi,

I'm assuming you did step 6

  1. Type:

    sudo npm install -g ./homebridge-cmd4-advantageair-3.6.0.tgz --unsafe-perm

After which you must restart Homebridge to see the updated plugin.

John

On Fri, Aug 19, 2022 at 3:22 AM QLDRiddler @.***> wrote:

Just to update you all, I tried the added step that John mentions and whilst that took away the install errors, I'm still stuck on 3.5.1 of the plugin :-(

@.:~ $ cd /tmp @.:/tmp $ sudo git clone https://github.com/mitch7391/homebridge-cmd4-AdvantageAir.git [sudo] password for hoobs: Cloning into 'homebridge-cmd4-AdvantageAir'... remote: Enumerating objects: 2194, done. remote: Counting objects: 100% (3/3), done. remote: Compressing objects: 100% (3/3), done. remote: Total 2194 (delta 0), reused 0 (delta 0), pack-reused 2191 Receiving objects: 100% (2194/2194), 7.77 MiB | 8.85 MiB/s, done. Resolving deltas: 100% (1249/1249), done. @.:/tmp $ cd homebridge-cmd4-AdvantageAir @.:/tmp/homebridge-cmd4-AdvantageAir $ sudo npm install --include-dev

@.*** prepare husky install

husky - Git hooks installed

added 350 packages, and audited 351 packages in 14s

51 packages are looking for funding run npm fund for details

found 0 vulnerabilities @.:/tmp/homebridge-cmd4-AdvantageAir $ sudo npm pack npm notice npm notice πŸ“¦ @. npm notice === Tarball Contents === npm notice 1.1kB .eslintrc.json npm notice 1.2kB .github/ISSUE_TEMPLATE/bug-report.md npm notice 954B .github/ISSUE_TEMPLATE/feature-request.md npm notice 1.6kB .github/ISSUE_TEMPLATE/support-request.md npm notice 949B .github/pull_request_template.md npm notice 61B .husky/pre-commit npm notice 44.8kB AdvAir.sh npm notice 16.1kB CHANGELOG.md npm notice 32.6kB ConfigCreator.sh npm notice 1.1kB LICENSE npm notice 8.1kB README.md npm notice 2.0kB config.schema.json npm notice 242B homebridge-ui/public/css/style.css npm notice 74.3kB homebridge-ui/public/images/AdvAir.png npm notice 6.6kB homebridge-ui/public/index.html npm notice 2.2kB homebridge-ui/public/js/main.js npm notice 29.6kB homebridge-ui/server.js npm notice 383B index.js npm notice 3.0kB package.json npm notice === Tarball Details === npm notice name: homebridge-cmd4-advantageair npm notice version: 3.6.0 npm notice filename: homebridge-cmd4-advantageair-3.6.0.tgz npm notice package size: 110.8 kB npm notice unpacked size: 226.9 kB npm notice shasum: d7b26a48082ffeb75136f99b41bb43f1a68219e0 npm notice integrity: sha512-vLiBc55HVr8Rt[...]H3AwXQi7KNHgA== npm notice total files: 19 npm notice homebridge-cmd4-advantageair-3.6.0.tgz @.***:/tmp/homebridge-cmd4-AdvantageAir $ sudo npm install -g ./homebridge-cmd4-advantageair-3.6.0.tgz --unsafe-perm

changed 16 packages, and audited 17 packages in 3s

2 packages are looking for funding run npm fund for details

found 0 vulnerabilities @.***:/tmp/homebridge-cmd4-AdvantageAir $

On Fri, 19 Aug 2022 at 15:11, John Talbot @.***> wrote:

Hi Mitch,

I've duplicated your success and others failures. Your success is because you might have husky installed globally, or after the 'git clone', you had done a ' npm install --include-dev' before the 'npm pack'. Husky is only for the commit hooks used during development. I.e. running the test scripts.

I am not sure why at the bottom of the package.json file there is an entry: "prepare": "husky install"

If you delete that line and the comma from the end of the preceding line, everything seems happy or do an: npm install --include-dev Before the "npm pack" command

So to be clear, following your steps add step 5B

  1. Type: git clone https://github.com/mitch7391/homebridge-cmd4-AdvantageAir.git

  2. Type:

cd homebridge-cmd4-AdvantageAir

5.B Type: npm install --include-dev

The true fix might be removing the "prepare: husky install" from the package.json. How it got there, I'd have to look back in history. Another reason not to delete history, but that's the other conversation.

Ttyl, John

On Fri, Aug 19, 2022 at 12:23 AM Mitch Williams @.***> wrote:

This is an interesting one @QLDRiddler <https://github.com/QLDRiddler ... It looks like everything you have done has worked and is correct, but it is then not reflecting in the plug-in itself. My colleague @uswong https://github.com/uswong says he is experiencing the same strange issue himself on his Homebridge RPi; I am not experiencing the issue and have tried it three times...

I would say at this point we will stop wasting your time by getting you to attempt it over and over. I will get my butt into gear tonight or tomorrow and push forward the release so you can install it the normal way (instead of our dev way). Sorry for all this inconvenience so far!

Also, the npm funding is just npm itself wanting people to fund projects (like a donate button); it will ask you about that every time you do an npm update, so just ignore that as it will not affect anything you are wanting to do.

I have also just dug up a very old HOOBS OS ZIP file download from back when they used to let you have the image for free (hopefully it lets me update for free too); I cannot believe they charge $10 for just the image download! I think it is fair time that I fired this up on my spare RPi3 and make sure I can get through the install myself and update any notes for future users.

β€” Reply to this email directly, view it on GitHub <

https://github.com/mitch7391/homebridge-cmd4-AdvantageAir/issues/70#issuecomment-1220234260

, or unsubscribe <

https://github.com/notifications/unsubscribe-auth/ABSBCX45VIN3XGX2LHHOGWDVZ4D4FANCNFSM56UQCGDQ

. You are receiving this because you commented.Message ID: @.***>

β€” Reply to this email directly, view it on GitHub < https://github.com/mitch7391/homebridge-cmd4-AdvantageAir/issues/70#issuecomment-1220259717 , or unsubscribe < https://github.com/notifications/unsubscribe-auth/A2RODLY4EBHC5OYBZSKUYGLVZ4JRRANCNFSM56UQCGDQ

. You are receiving this because you were mentioned.Message ID: @.***>

β€” Reply to this email directly, view it on GitHub https://github.com/mitch7391/homebridge-cmd4-AdvantageAir/issues/70#issuecomment-1220339978, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABSBCXYAR33JQ3HQT6KQLR3VZ4Y5FANCNFSM56UQCGDQ . You are receiving this because you commented.Message ID: @.***>

ztalbot2000 commented 1 year ago

Hi Mitch,

I spent an hour figuring where the line prepare: husky install came from. It seems pull request #40. The line can be deleted as it is not in my Cmd4 package.json

Ttyl, John

On Fri, Aug 19, 2022 at 3:28 AM John Talbot @.***> wrote:

Hi,

I'm assuming you did step 6

  1. Type:

    sudo npm install -g ./homebridge-cmd4-advantageair-3.6.0.tgz --unsafe-perm

After which you must restart Homebridge to see the updated plugin.

John

On Fri, Aug 19, 2022 at 3:22 AM QLDRiddler @.***> wrote:

Just to update you all, I tried the added step that John mentions and whilst that took away the install errors, I'm still stuck on 3.5.1 of the plugin :-(

@.:~ $ cd /tmp @.:/tmp $ sudo git clone https://github.com/mitch7391/homebridge-cmd4-AdvantageAir.git [sudo] password for hoobs: Cloning into 'homebridge-cmd4-AdvantageAir'... remote: Enumerating objects: 2194, done. remote: Counting objects: 100% (3/3), done. remote: Compressing objects: 100% (3/3), done. remote: Total 2194 (delta 0), reused 0 (delta 0), pack-reused 2191 Receiving objects: 100% (2194/2194), 7.77 MiB | 8.85 MiB/s, done. Resolving deltas: 100% (1249/1249), done. @.:/tmp $ cd homebridge-cmd4-AdvantageAir @.:/tmp/homebridge-cmd4-AdvantageAir $ sudo npm install --include-dev

@.*** prepare husky install

husky - Git hooks installed

added 350 packages, and audited 351 packages in 14s

51 packages are looking for funding run npm fund for details

found 0 vulnerabilities @.:/tmp/homebridge-cmd4-AdvantageAir $ sudo npm pack npm notice npm notice πŸ“¦ @. npm notice === Tarball Contents === npm notice 1.1kB .eslintrc.json npm notice 1.2kB .github/ISSUE_TEMPLATE/bug-report.md npm notice 954B .github/ISSUE_TEMPLATE/feature-request.md npm notice 1.6kB .github/ISSUE_TEMPLATE/support-request.md npm notice 949B .github/pull_request_template.md npm notice 61B .husky/pre-commit npm notice 44.8kB AdvAir.sh npm notice 16.1kB CHANGELOG.md npm notice 32.6kB ConfigCreator.sh npm notice 1.1kB LICENSE npm notice 8.1kB README.md npm notice 2.0kB config.schema.json npm notice 242B homebridge-ui/public/css/style.css npm notice 74.3kB homebridge-ui/public/images/AdvAir.png npm notice 6.6kB homebridge-ui/public/index.html npm notice 2.2kB homebridge-ui/public/js/main.js npm notice 29.6kB homebridge-ui/server.js npm notice 383B index.js npm notice 3.0kB package.json npm notice === Tarball Details === npm notice name: homebridge-cmd4-advantageair npm notice version: 3.6.0 npm notice filename: homebridge-cmd4-advantageair-3.6.0.tgz npm notice package size: 110.8 kB npm notice unpacked size: 226.9 kB npm notice shasum: d7b26a48082ffeb75136f99b41bb43f1a68219e0 npm notice integrity: sha512-vLiBc55HVr8Rt[...]H3AwXQi7KNHgA== npm notice total files: 19 npm notice homebridge-cmd4-advantageair-3.6.0.tgz @.***:/tmp/homebridge-cmd4-AdvantageAir $ sudo npm install -g ./homebridge-cmd4-advantageair-3.6.0.tgz --unsafe-perm

changed 16 packages, and audited 17 packages in 3s

2 packages are looking for funding run npm fund for details

found 0 vulnerabilities @.***:/tmp/homebridge-cmd4-AdvantageAir $

On Fri, 19 Aug 2022 at 15:11, John Talbot @.***> wrote:

Hi Mitch,

I've duplicated your success and others failures. Your success is because you might have husky installed globally, or after the 'git clone', you had done a ' npm install --include-dev' before the 'npm pack'. Husky is only for the commit hooks used during development. I.e. running the test scripts.

I am not sure why at the bottom of the package.json file there is an entry: "prepare": "husky install"

If you delete that line and the comma from the end of the preceding line, everything seems happy or do an: npm install --include-dev Before the "npm pack" command

So to be clear, following your steps add step 5B

  1. Type: git clone https://github.com/mitch7391/homebridge-cmd4-AdvantageAir.git

  2. Type:

cd homebridge-cmd4-AdvantageAir

5.B Type: npm install --include-dev

The true fix might be removing the "prepare: husky install" from the package.json. How it got there, I'd have to look back in history. Another reason not to delete history, but that's the other conversation.

Ttyl, John

On Fri, Aug 19, 2022 at 12:23 AM Mitch Williams @.***> wrote:

This is an interesting one @QLDRiddler <https://github.com/QLDRiddler ... It looks like everything you have done has worked and is correct, but it is then not reflecting in the plug-in itself. My colleague @uswong https://github.com/uswong says he is experiencing the same strange issue himself on his Homebridge RPi; I am not experiencing the issue and have tried it three times...

I would say at this point we will stop wasting your time by getting you to attempt it over and over. I will get my butt into gear tonight or tomorrow and push forward the release so you can install it the normal way (instead of our dev way). Sorry for all this inconvenience so far!

Also, the npm funding is just npm itself wanting people to fund projects (like a donate button); it will ask you about that every time you do an npm update, so just ignore that as it will not affect anything you are wanting to do.

I have also just dug up a very old HOOBS OS ZIP file download from back when they used to let you have the image for free (hopefully it lets me update for free too); I cannot believe they charge $10 for just the image download! I think it is fair time that I fired this up on my spare RPi3 and make sure I can get through the install myself and update any notes for future users.

β€” Reply to this email directly, view it on GitHub <

https://github.com/mitch7391/homebridge-cmd4-AdvantageAir/issues/70#issuecomment-1220234260

, or unsubscribe <

https://github.com/notifications/unsubscribe-auth/ABSBCX45VIN3XGX2LHHOGWDVZ4D4FANCNFSM56UQCGDQ

. You are receiving this because you commented.Message ID: @.***>

β€” Reply to this email directly, view it on GitHub < https://github.com/mitch7391/homebridge-cmd4-AdvantageAir/issues/70#issuecomment-1220259717 , or unsubscribe < https://github.com/notifications/unsubscribe-auth/A2RODLY4EBHC5OYBZSKUYGLVZ4JRRANCNFSM56UQCGDQ

. You are receiving this because you were mentioned.Message ID: @.***>

β€” Reply to this email directly, view it on GitHub https://github.com/mitch7391/homebridge-cmd4-AdvantageAir/issues/70#issuecomment-1220339978, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABSBCXYAR33JQ3HQT6KQLR3VZ4Y5FANCNFSM56UQCGDQ . You are receiving this because you commented.Message ID: @.***>

QLDRiddler commented 1 year ago

Yes, did that, you can see towards the bottom of my dump below and then I restarted but Hoobs still only thinks it has 3.5.1 installed.


From: John Talbot @.> Sent: Friday, August 19, 2022 5:29:03 PM To: mitch7391/homebridge-cmd4-AdvantageAir @.> Cc: QLDRiddler @.>; Mention @.> Subject: Re: [mitch7391/homebridge-cmd4-AdvantageAir] [Support] HOOBS Installation Issue (Issue #70)

Hi,

I'm assuming you did step 6

  1. Type:

sudo npm install -g ./homebridge-cmd4-advantageair-3.6.0.tgz --unsafe-perm

After which you must restart Homebridge to see the updated plugin.

John

On Fri, Aug 19, 2022 at 3:22 AM QLDRiddler @.***> wrote:

Just to update you all, I tried the added step that John mentions and whilst that took away the install errors, I'm still stuck on 3.5.1 of the plugin :-(

@.:~ $ cd /tmp @.:/tmp $ sudo git clone https://github.com/mitch7391/homebridge-cmd4-AdvantageAir.git [sudo] password for hoobs: Cloning into 'homebridge-cmd4-AdvantageAir'... remote: Enumerating objects: 2194, done. remote: Counting objects: 100% (3/3), done. remote: Compressing objects: 100% (3/3), done. remote: Total 2194 (delta 0), reused 0 (delta 0), pack-reused 2191 Receiving objects: 100% (2194/2194), 7.77 MiB | 8.85 MiB/s, done. Resolving deltas: 100% (1249/1249), done. @.:/tmp $ cd homebridge-cmd4-AdvantageAir @.:/tmp/homebridge-cmd4-AdvantageAir $ sudo npm install --include-dev

@.*** prepare husky install

husky - Git hooks installed

added 350 packages, and audited 351 packages in 14s

51 packages are looking for funding run npm fund for details

found 0 vulnerabilities @.:/tmp/homebridge-cmd4-AdvantageAir $ sudo npm pack npm notice npm notice πŸ“¦ @. npm notice === Tarball Contents === npm notice 1.1kB .eslintrc.json npm notice 1.2kB .github/ISSUE_TEMPLATE/bug-report.md npm notice 954B .github/ISSUE_TEMPLATE/feature-request.md npm notice 1.6kB .github/ISSUE_TEMPLATE/support-request.md npm notice 949B .github/pull_request_template.md npm notice 61B .husky/pre-commit npm notice 44.8kB AdvAir.sh npm notice 16.1kB CHANGELOG.md npm notice 32.6kB ConfigCreator.sh npm notice 1.1kB LICENSE npm notice 8.1kB README.md npm notice 2.0kB config.schema.json npm notice 242B homebridge-ui/public/css/style.css npm notice 74.3kB homebridge-ui/public/images/AdvAir.png npm notice 6.6kB homebridge-ui/public/index.html npm notice 2.2kB homebridge-ui/public/js/main.js npm notice 29.6kB homebridge-ui/server.js npm notice 383B index.js npm notice 3.0kB package.json npm notice === Tarball Details === npm notice name: homebridge-cmd4-advantageair npm notice version: 3.6.0 npm notice filename: homebridge-cmd4-advantageair-3.6.0.tgz npm notice package size: 110.8 kB npm notice unpacked size: 226.9 kB npm notice shasum: d7b26a48082ffeb75136f99b41bb43f1a68219e0 npm notice integrity: sha512-vLiBc55HVr8Rt[...]H3AwXQi7KNHgA== npm notice total files: 19 npm notice homebridge-cmd4-advantageair-3.6.0.tgz @.***:/tmp/homebridge-cmd4-AdvantageAir $ sudo npm install -g ./homebridge-cmd4-advantageair-3.6.0.tgz --unsafe-perm

changed 16 packages, and audited 17 packages in 3s

2 packages are looking for funding run npm fund for details

found 0 vulnerabilities @.***:/tmp/homebridge-cmd4-AdvantageAir $

On Fri, 19 Aug 2022 at 15:11, John Talbot @.***> wrote:

Hi Mitch,

I've duplicated your success and others failures. Your success is because you might have husky installed globally, or after the 'git clone', you had done a ' npm install --include-dev' before the 'npm pack'. Husky is only for the commit hooks used during development. I.e. running the test scripts.

I am not sure why at the bottom of the package.json file there is an entry: "prepare": "husky install"

If you delete that line and the comma from the end of the preceding line, everything seems happy or do an: npm install --include-dev Before the "npm pack" command

So to be clear, following your steps add step 5B

  1. Type: git clone https://github.com/mitch7391/homebridge-cmd4-AdvantageAir.git

  2. Type:

cd homebridge-cmd4-AdvantageAir

5.B Type: npm install --include-dev

The true fix might be removing the "prepare: husky install" from the package.json. How it got there, I'd have to look back in history. Another reason not to delete history, but that's the other conversation.

Ttyl, John

On Fri, Aug 19, 2022 at 12:23 AM Mitch Williams @.***> wrote:

This is an interesting one @QLDRiddler <https://github.com/QLDRiddler ... It looks like everything you have done has worked and is correct, but it is then not reflecting in the plug-in itself. My colleague @uswong https://github.com/uswong says he is experiencing the same strange issue himself on his Homebridge RPi; I am not experiencing the issue and have tried it three times...

I would say at this point we will stop wasting your time by getting you to attempt it over and over. I will get my butt into gear tonight or tomorrow and push forward the release so you can install it the normal way (instead of our dev way). Sorry for all this inconvenience so far!

Also, the npm funding is just npm itself wanting people to fund projects (like a donate button); it will ask you about that every time you do an npm update, so just ignore that as it will not affect anything you are wanting to do.

I have also just dug up a very old HOOBS OS ZIP file download from back when they used to let you have the image for free (hopefully it lets me update for free too); I cannot believe they charge $10 for just the image download! I think it is fair time that I fired this up on my spare RPi3 and make sure I can get through the install myself and update any notes for future users.

β€” Reply to this email directly, view it on GitHub <

https://github.com/mitch7391/homebridge-cmd4-AdvantageAir/issues/70#issuecomment-1220234260

, or unsubscribe <

https://github.com/notifications/unsubscribe-auth/ABSBCX45VIN3XGX2LHHOGWDVZ4D4FANCNFSM56UQCGDQ

. You are receiving this because you commented.Message ID: @.***>

β€” Reply to this email directly, view it on GitHub < https://github.com/mitch7391/homebridge-cmd4-AdvantageAir/issues/70#issuecomment-1220259717 , or unsubscribe < https://github.com/notifications/unsubscribe-auth/A2RODLY4EBHC5OYBZSKUYGLVZ4JRRANCNFSM56UQCGDQ

. You are receiving this because you were mentioned.Message ID: @.***>

β€” Reply to this email directly, view it on GitHub https://github.com/mitch7391/homebridge-cmd4-AdvantageAir/issues/70#issuecomment-1220339978, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABSBCXYAR33JQ3HQT6KQLR3VZ4Y5FANCNFSM56UQCGDQ . You are receiving this because you commented.Message ID: @.***>

β€” Reply to this email directly, view it on GitHubhttps://github.com/mitch7391/homebridge-cmd4-AdvantageAir/issues/70#issuecomment-1220344606, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A2RODL7N4NV4WTNQQE4C7QLVZ4ZT7ANCNFSM56UQCGDQ. You are receiving this because you were mentioned.Message ID: @.***>

mitch7391 commented 1 year ago

The true fix might be removing the "prepare: husky install" from the package.json. How it got there, I'd have to look back in history. Another reason not to delete history, but that's the other conversation.

Hey @ztalbot2000 this line would have been there from when you created the package.json when we rolled out the Homebridge UI work; I only touch it to update the version number. I will remove that line if it is not required. I was not aware that deleting a beta branch each time I am done with it was wiping the history of commits, as I figured that history would be merged into the master and when a new beta branch was created off the master it would contain that history and so forth.

After which you must restart Homebridge to see the updated plugin.

When I used the above steps, I do not need to restart Homebridge to see the plug-in update; never have and always found that neat. I do not believe that has been the issue and something else is going on here.

I spent an hour figuring where the line prepare: husky install came from. It seems pull request #40. The line can be deleted as it is not in my Cmd4 package.json

I just had a look at this PR and it only has changes to AdvAir.sh, no changes at all to package.json. Just had a very quick look at the history of commits for the package.json and it appears it was added by yourself in this commit.

mitch7391 commented 1 year ago

@QLDRiddler thanks for giving this a real good crack, if you do not mind giving me a day to get things in check and we will roll out a version that you can just install/update the normal way. I would say at this stage any further attempts would be wasting your time and I do not want to do that. Sorry this has been a pain and thanks being so patient though!

ztalbot2000 commented 1 year ago

Hi,

We are all learning here. It is all good.

I pretty much thought I had added the offending line to the package.json. Only when we tried something different, did the issue arise.

So beta has the lint fixes, the branch b_daemonize standardizes the PORT/IP of the test AirConServer and the package.json needs that 1 husky line removed.

If you want I can merge it all to origin/master

Ttyl, John

On Fri, Aug 19, 2022 at 4:52 AM Mitch Williams @.***> wrote:

@QLDRiddler https://github.com/QLDRiddler thanks for giving this a real good crack, if you do not mind giving me a day to get things in check and we will roll out a version that you can just install/update the normal way. I would say at this stage any further attempts would be wasting your time and I do not want to do that. Sorry this has been a pain and thanks being so patient though!

β€” Reply to this email directly, view it on GitHub https://github.com/mitch7391/homebridge-cmd4-AdvantageAir/issues/70#issuecomment-1220423660, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABSBCX3TYRZZZ4HJKFGT3YDVZ5DONANCNFSM56UQCGDQ . You are receiving this because you were mentioned.Message ID: @.***>

mitch7391 commented 1 year ago

Hey @ztalbot2000 I might get you to hold off any merges just for now. I did the silly thing and added commits to the master without realising in your email that you meant you had done the lint fixes on my fork's beta; so now that is ahead 39 but behind 1. I think the easiest solution for me is to copy what you have done there over on the master branch manually.

ztalbot2000 commented 1 year ago

Hi Mitch,

Yeah it's real tricky. It took me two hours to get beta the same as master so I could make recent changes to beta. The tree only shows a merge of"A check for jq" ahead of the beta branch. The merge from beta to master then should be conflict free and the changes are for linting AirConServer affecting commits only. Either way, before any commit you always have to look over every line being changed as a final code inspection. Manually can cause some human errors to creep in.

Ttyl, John

On Fri, Aug 19, 2022 at 5:35 AM Mitch Williams @.***> wrote:

Hey @ztalbot2000 https://github.com/ztalbot2000 I might get you to hold off any merges just for now. I did the silly thing and added commits to the master without realising in your email that you meant you had done the lint fixes on my fork's beta; so now that is ahead 39 but behind 1. I think the easiest solution for me is to copy what you have done there over on the master branch manually.

β€” Reply to this email directly, view it on GitHub https://github.com/mitch7391/homebridge-cmd4-AdvantageAir/issues/70#issuecomment-1220465235, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABSBCXYPGDV6POJUTESFXRDVZ5IO5ANCNFSM56UQCGDQ . You are receiving this because you were mentioned.Message ID: @.***>

ztalbot2000 commented 1 year ago

Hi Mitch,

I just realized your 39 behind because you have not pulled beta from GitHub where it is one behind and one ahead.

Ttyl, John

On Fri, Aug 19, 2022 at 7:59 AM John Talbot @.***> wrote:

Hi Mitch,

Yeah it's real tricky. It took me two hours to get beta the same as master so I could make recent changes to beta. The tree only shows a merge of"A check for jq" ahead of the beta branch. The merge from beta to master then should be conflict free and the changes are for linting AirConServer affecting commits only. Either way, before any commit you always have to look over every line being changed as a final code inspection. Manually can cause some human errors to creep in.

Ttyl, John

On Fri, Aug 19, 2022 at 5:35 AM Mitch Williams @.***> wrote:

Hey @ztalbot2000 https://github.com/ztalbot2000 I might get you to hold off any merges just for now. I did the silly thing and added commits to the master without realising in your email that you meant you had done the lint fixes on my fork's beta; so now that is ahead 39 but behind 1. I think the easiest solution for me is to copy what you have done there over on the master branch manually.

β€” Reply to this email directly, view it on GitHub https://github.com/mitch7391/homebridge-cmd4-AdvantageAir/issues/70#issuecomment-1220465235, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABSBCXYPGDV6POJUTESFXRDVZ5IO5ANCNFSM56UQCGDQ . You are receiving this because you were mentioned.Message ID: @.***>

mitch7391 commented 1 year ago

@QLDRiddler a quick question for you about HOOBS. I had an old early version of HOOBS 3 which had a terminal in the UI like homebridge does; I have upgraded to HOOBS 4 and this terminal now seems to be gone from the UI. HOOBS website says there is another web UI to access it (http://hoobs:9090) but this does not work for me. I found I can easily access the HOOBS terminal through SSH using the program 'Putty'. I am curious how you access the terminal when you are doing all of this on HOOBS?

QLDRiddler commented 1 year ago

Im running HOOBS 4.2.8 on a dedicated RPI v4 connected via ethernet cable to my network. I access the Terminal via Chrome, typing in the IP address of the box. That brings up the Hoobs dashboard from where I click 3 dots in the top right corner which in turn brings up a menu of which one item is Terminal.

On Sat, 20 Aug 2022 at 12:44, Mitch Williams @.***> wrote:

@QLDRiddler https://github.com/QLDRiddler a quick question for you about HOOBS. I had an old early version of HOOBS 3 which had a terminal in the UI like homebridge does; I have upgraded to HOOBS 4 and this terminal now seems to be gone from the UI. HOOBS website says there is another web UI to access it (http://hoobs:9090) but this does not work for me. I found I can easily access the HOOBS terminal through SSH using the program 'Putty'. I am curious how you access the terminal when you are doing all of this on HOOBS?

β€” Reply to this email directly, view it on GitHub https://github.com/mitch7391/homebridge-cmd4-AdvantageAir/issues/70#issuecomment-1221215186, or unsubscribe https://github.com/notifications/unsubscribe-auth/A2RODL6XIPXHVGGORMYXE43V2BA7LANCNFSM56UQCGDQ . You are receiving this because you were mentioned.Message ID: @.***>

mitch7391 commented 1 year ago

Interesting, my setup does not have the option for a terminal where the three dots are; my HOOBS v3 did before I upgraded it to v4.

Ok, using Putty to SSH into my newly set up HOOBS RPi and following my instructions above to install through 'git clone'; I have discovered a few things...

The 'husky' error aside, this installation method is working. When I navigate to /usr/lib/node_modules/homebridge-cmd4-advantageair and run cat package.json, I can see that the version of the plug-in is v3.6.0. Now here is the kicker for why HOOBS UI does not show this correctly. They do not use the Homebridge UI at all any more like back in HOOBS 3; they are using their own UI now and anything we have made for Homebridge UI does and will not work at all. Essentially meaning we no longer support HOOBS at this stage. This is frustrating to discover...

Anyway, what HOOBS UI shows for the plug-in is actually my GitHub page README, which due to me not officially publishing this yet, will continue to show v3.5.1 until then. @uswong I know this does not explain why you are not seeing it installed on your RPi...

As @QLDRiddler had found, the original instructions from the Wiki using the config=$(find / -name 'ConfigCreator.sh' 2>&1 | grep -v find | grep node_modules) does also error for me on HOOBS. It may be worth us discovering why in the meantime while we do not have HOOBS UI support as a work around as I do not see that to be a quick one to resolve.

uswong commented 1 year ago

Hey Mitch,

I only got it installed properly on my Mac using 'git clone' but not on my RPi. I am still scratching my head on that one.

If the homebridge-UI is not working for @QLDRiddler , one option is to continue to use v3.5.1 and run the script ConfigCreator.sh but manually copy the generated config file to Cmd4 JASON Config. This option will only work if the jq issue reported earlier has been resolved. If so, do the following:

/var/lib/hoobs/cmd4bridge/node_modules/homebridge-cmd4-advantageair/ConfigCreator.sh "192.168.101.164"

Then answer "n" when asked Do you want to proceed? (y/n)

Then copy the entire content of file in the form of cmd4Config_AA_xxxxxxxx.json.yyyyyyyyy into Cmd4 JASON Config editor, and SAVE it.

Another option is for @QLDRiddler, if he does not mind to send us (via private email), his "getSystemData" and we can generate the full config file needed.

Cheers, Ung

mitch7391 commented 1 year ago

@uswong I thought QLDRiddler was having issues with running the Config Creator from the the command line? It appears that I am also on my HOOBs setup.

I had forgot to suggest it but I had also thought to myself we can manually create QLDRiddler’s config for them and sent it back via email for them to copy/paste; assuming no other install issues exist…

uswong commented 1 year ago

/var/lib/hoobs/cmd4bridge/node_modules/homebridge-cmd4-advantageair/ConfigCreator.sh "192.168.101.164" In the process of creating the Cmd4 configuration file for your AdvantageAir system(s). It may take up to 2 minutes.... Fetching and processing data from your AdvantageAir system (192.168.101.164).... /var/lib/hoobs/cmd4bridge/node_modules/homebridge-cmd4-advantageair/ConfigCreator.sh: line 812: jq: command not found

yes, @QLDRiddler managed to run ConfigCreator from his command line but run into the problem of jq command not found error.

mitch7391 commented 1 year ago

@QLDRiddler if the side issue is that we are suspecting 'jq' is not installed properly; could I please get you to run the following command from your terminal?

curl -s http://192.168.0.173:2025/getSystemData | jq '.aircons.ac1.zones.z01.measuredTemp'

Please replace my IP address above with the IP address of your Advantage Air system. This command will run separate of cmd4 or our plug-in and just use 'jq' itself to parse the information directly from your Advantage Air system. If you do not have temperature sensors it will just return 0.0 but if you do have them it should return the value displayed on your tablet for zone 1 (most likely your constant zone).

QLDRiddler commented 1 year ago

That command completed successfully and returned a value of 22 (I'm a frugal man and dont let the wife turn the heating up too much!!)

On Sat, 20 Aug 2022 at 16:54, Mitch Williams @.***> wrote:

@QLDRiddler https://github.com/QLDRiddler if the side issue is that we are suspecting 'jq' is not installed properly; could I please get you to run the following command from your terminal?

curl -s http://192.168.0.173:2025/getSystemData | jq '.aircons.ac1.zones.z01.measuredTemp'

Please replace my IP address above with the IP address of your Advantage Air system. This command will run separate of cmd4 or our plug-in and just use 'jq' itself to parse the information directly from your Advantage Air system. If you do not have temperature sensors it will just return 0.0 but if you do have them it should return the value displayed on your tablet for zone 1 (most likely your constant zone).

β€” Reply to this email directly, view it on GitHub https://github.com/mitch7391/homebridge-cmd4-AdvantageAir/issues/70#issuecomment-1221246015, or unsubscribe https://github.com/notifications/unsubscribe-auth/A2RODL4YLBKYXRV2HUIT7ZDV2B6KRANCNFSM56UQCGDQ . You are receiving this because you were mentioned.Message ID: @.***>

mitch7391 commented 1 year ago

I was like that until we got solar panels @QLDRiddler last year lol thanks for confirming this! So we have confirmed that your β€˜jq’ install is correct and working.

I think the issues still sit with our script working in HOOBS directories and file paths. I spent my whole day yesterday battling my own instal of HOOBS and will continue to do so until I have a success. I won’t get you to run anymore tests until then :) so please sit right until then and sorry this has been such a workaround!

QLDRiddler commented 1 year ago

No worries, I’m happy to help. I’ve got 10.7Kw of panels but there’s about 1 week of the year between the wife wanting the heating on because she’s too cold to needing the AC on because she’s too hot! I did run up a node-red project a couple of years back that pinged the Fronius inverter for its stats and rendered them into some charts on a screen. That’s when I first started investigating the json capabilities of the Advantage Air system to see if I could incorporate it into the dashboard - that then segued into an interest in homebridge which is how I ended up with Hoobs - and here we are!!!


From: Mitch Williams @.> Sent: Sunday, August 21, 2022 12:39:26 PM To: mitch7391/homebridge-cmd4-AdvantageAir @.> Cc: QLDRiddler @.>; Mention @.> Subject: Re: [mitch7391/homebridge-cmd4-AdvantageAir] [Support] HOOBS Installation Issue (Issue #70)

I was like that until we got solar panels @QLDRiddlerhttps://github.com/QLDRiddler last year lol thanks for confirming this! So we have confirmed that your β€˜jq’ install is correct and working.

I think the issues still sit with our script working in HOOBS directories and file paths. I spent my whole day yesterday battling my own instal of HOOBS and will continue to do so until I have a success. I won’t get you to run anymore tests until then :) so please sit right until then and sorry this has been such a workaround!

β€” Reply to this email directly, view it on GitHubhttps://github.com/mitch7391/homebridge-cmd4-AdvantageAir/issues/70#issuecomment-1221454305, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A2RODL6B4H7UTXDOVNA4BDDV2GJF5ANCNFSM56UQCGDQ. You are receiving this because you were mentioned.Message ID: @.***>

mitch7391 commented 1 year ago

I love it lol it is funny how quickly an obsession can develop for this sort of stuff! I have not delved into node-red myself yet but it has always been the plan... This project took so much of my time a few years back (I knew nothing about coding and still kind of don't haha) and then as I have taken a bit of a step back recently while John and Ung Sing have helped take on a lot of the work for this project; I find that life is even busier as the years go by and I still have not delved into advance automations yet! One day!

mitch7391 commented 1 year ago

@QLDRiddler just to give you a little update that we have had some success! We just need to finalise a few things before we can do the roll out; but just wanted to show you that I now have this working on my HOOBS RPi and we can get you sorted out soon :)

image

QLDRiddler commented 1 year ago

That’s awesome. Is the UI different on Hoobs to native Homebridge?


From: Mitch Williams @.> Sent: Monday, August 22, 2022 8:37:14 PM To: mitch7391/homebridge-cmd4-AdvantageAir @.> Cc: QLDRiddler @.>; Mention @.> Subject: Re: [mitch7391/homebridge-cmd4-AdvantageAir] [Support] HOOBS Installation Issue (Issue #70)

@QLDRiddlerhttps://github.com/QLDRiddler just to give you a little update that we have had some success! We just need to finalise a few things before we can do the roll out; but just wanted to show you that I now have this working on my HOOBS RPi and we can get you sorted out soon :)

[image]https://user-images.githubusercontent.com/40288237/185901520-aca3d8d1-8e09-4328-b7c6-c0ce06d03bd7.png

β€” Reply to this email directly, view it on GitHubhttps://github.com/mitch7391/homebridge-cmd4-AdvantageAir/issues/70#issuecomment-1222170004, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A2RODL7W4Q2QVUXPG574EY3V2NJ5VANCNFSM56UQCGDQ. You are receiving this because you were mentioned.Message ID: @.***>

mitch7391 commented 1 year ago

Oh very different, Here is the dashboard:

image

image

I never use this next page as I only control from HomeKit itself and mostly Siri:

image

We have all the screenshots you see on the README; we now have a nice UI for the plug-in configuration (that HOOBS does not use at all):

image

To be honest, the new version of HOOBS 4 is better than it was at 3; but I still prefer the look and what I can do with Homebridge. I will look into how we can get a nice UI integration going for HOOBS like that last screenshot, but it will be some time and HOOBS users will have to use the terminal commands until then.

mitch7391 commented 1 year ago

Hey @QLDRiddler sorry this has taken so long; I am currently on leave before starting a new job and life has been crazy busy trying to juggle this fix on the side. Ung Sing and I have put a lot of work into this and I think we are ready for you to beta test it :D

Here is a step by step of how to install the beta version through HOOBS UI and then how to run the ConfigCreator through your terminal. Sorry if I am over explaining things you already know how to do; it just saves some time on back and forth sometimes.

  1. In your HOOBS UI dashboard, navigate to our plug-in.

image

  1. Once you have the plug-in UI opened, click 'Versions' and then click the little arrow next to the beta. Note it will say the wrong beta version; I think this is a bug from HOOBS grabbing the wrong beta tag off my npm page. You will notice as it installs it will reference the correct beta tag v3.6.0-beta.2 and you can cross reference after on the right hand side.

image

  1. Reboot HOOBS for good measure.
  2. Open your terminal.
  3. Copy and paste the following command:
    config1=$(find /var/lib/hoobs -name ConfigCreator.sh 2>&1|grep -v find|grep -v System|grep -v cache|grep node_modules|grep cmd4-advantageair|grep ConfigCreator.sh)
  4. Copy and paste the following command:
    echo "$config1"
  5. a) If it returns only one file path that looks like:

    /var/lib/hoobs/cmd4bridge/node_modules/homebridge-cmd4-advantageair/ConfigCreator.sh

    Then continue with the following command:

    $config1

    Follow all prompts on your terminal and happy days.

    b) If multiple file paths are found, copy and paste the following command:

    config2=$(echo "${config1}"|sed -n 1p)

    If you want to use the second file path, then change 1p in the above command to 2p, and so on.

    Copy and paste the following command:

    echo "$config2"

    If it returns only one file path that looks like:

    /var/lib/hoobs/cmd4bridge/node_modules/homebridge-cmd4-advantageair/ConfigCreator.sh

    Then continue with the following command:

    $config2

    Follow all prompts on your terminal and happy days.

If you experience any errors or anything not detailed in the steps above, please let us know and we will try guide you further. We are pretty confident this will work based on our extensive testing. Fingers crossed!

QLDRiddler commented 1 year ago

Sorry to be the bearer of bad news but still no joy. Here's the screenshot of the versions before I attempted the upgrade:

[image: image.png]

And here's the screengrab of processing:

[image: image.png]

In case that screengrab doesnt come through, the process failed with these errors:

@.:~ $ config1=$(find /var/lib/hoobs -name ConfigCreator.sh 2>&1|grep -v find|grep -v System|grep -v cache|grep node_modules|grep cmd4-advantageair|grep ConfigCreator.sh) @.:~ $ echo $config1 /var/lib/hoobs/cmd4bridge/node_modules/homebridge-cmd4-advantageair/ConfigCreator.sh @.***:~ $ $config1 Please enter your AdvantageAir system IP address (xxx.xxx.xxx.xxx): 192.168.101.164 Please enter your second AdvantageAir system IP address (xxx.xxx.xxx.xxx) if any. Just hit 'enter' if none:

In the process of creating the Cmd4 configuration file for your AdvantageAir system(s). It may take up to 2 minutes.... Fetching and processing data from your AdvantageAir system (192.168.101.164)....

Cmd4 configuration file has now been created successfully: cmd4Config_AA_MyPlace.json.1661491119

This newly created config can be copied to Homebridge config.json automatically The existing Cmd4 configuration pertaining to AdvantageAir system(s) will be overwritten by this new one Do you want to proceed? (y/n) y

Homebridge config.json:

ERROR: no Homebridge config.json found! INFO: the created cmd4Config_AA_MyPlace.json.1661491119 was unable to be copied to Homebridge-Cmd4 JASON Config Editor!

On Thu, 25 Aug 2022 at 14:05, Mitch Williams @.***> wrote:

Hey @QLDRiddler https://github.com/QLDRiddler sorry this has taken so long; I am currently on leave before starting a new job and life has been crazy busy trying to juggle this fix on the side. Ung Sing and I have put a lot of work into this and I think we are ready for you to beta test it :D

Here is a step by step of how to install the beta version through HOOBS UI and then how to run the ConfigCreator through your terminal. Sorry if I am over explaining things you already know how to do; it just saves some time on back and forth sometimes.

  1. In your HOOBS UI dashboard, navigate to our plug-in.

[image: image] https://user-images.githubusercontent.com/40288237/186569673-1c069416-a99b-4e9e-ab35-03d0298212a8.png

  1. Once you have the plug-in UI opened, click 'Versions' and then click the little arrow next to the beta. Note it will say the wrong beta version; I think this is a bug from HOOBS grabbing the wrong beta tag off my npm page. You will notice as it installs it will reference the correct beta tag v3.6.0-beta.2 and you can cross reference after on the right hand side.

[image: image] https://user-images.githubusercontent.com/40288237/186570169-0cf44354-a975-4131-a06b-a46d70c6cff4.png

1.

Reboot HOOBS for good measure. 2.

Open your terminal. 3.

Copy and paste the following command:

config1=$(find /var/lib/hoobs -name ConfigCreator.sh 2>&1|grep -v find|grep -v System|grep -v cache|grep node_modules|grep cmd4-advantageair|grep ConfigCreator.sh)

4.

Copy and paste the following command:

echo $config1

5.

a) If it returns only one file path that looks like:

/var/lib/hoobs/cmd4bridge/node_modules/homebridge-cmd4-advantageair/ConfigCreator.sh

Then continue with the following command:

$config1

Follow all prompts on your terminal and happy days.

b) If multiple file paths are found, copy and paste the following command:

config2=$(echo "${config1}"|cut -d" " -f1)

Copy and paste the following command:

echo $config2

If it returns only one file path that looks like:

/var/lib/hoobs/cmd4bridge/node_modules/homebridge-cmd4-advantageair/ConfigCreator.sh

Then continue with the following command:

$config2

Follow all prompts on your terminal and happy days.

If you experience any errors or anything not detailed in the steps above, please let us know and we will try guide you further. We are pretty confident this will work based on our extensive testing. Fingers crossed!

β€” Reply to this email directly, view it on GitHub https://github.com/mitch7391/homebridge-cmd4-AdvantageAir/issues/70#issuecomment-1226747616, or unsubscribe https://github.com/notifications/unsubscribe-auth/A2RODL6A65SZ4QZQ57APPZ3V23WHJANCNFSM56UQCGDQ . You are receiving this because you were mentioned.Message ID: @.***>