Re: [mh] Alexa Frustrations

Giles Godart-Brown <[email protected]>
Newsgroups gmane.comp.misc.misterhouse.user
Message-ID <[email protected]>
I also had this problem, but now its fixed after following the steps 
below (server is a Raspberry pi)

Giles

<snip>

Setting up Alexa when the Misterhouse port is not port 80 (8077 in my case).

Install socat

sudo apt-get update
sudo apt-get install socat

Create a service by creating /etc/systemd/system/80forward.service which 
contains the following (note /home/pi/mh/GGBdata is my data folder)

--------------
[Unit]
Description=forward port 80 to 8077
After=network.target

[Service]
ExecStart=/usr/bin/socat TCP-LISTEN:80,fork TCP:127.0.0.1:8077
WorkingDirectory=/home/pi/mh/GGBdata
StandardOutput=inherit
StandardError=inherit
Restart=always

[Install]
WantedBy=multi-user.target
----------------------

Test and install the service with;

systemctl start 80forward.service
systemctl status 80forward.service

Next check you can browse to your Misterhouse web pages without 
including your port number.

If all is well, enable the forwarding service at boot time;

sudo systemctl enable 80forward.service

Next get the latest alexa code from 
https://raw.githubusercontent.com/waynieack/misterhouse/AlexaBridge/lib/AlexaBridge.pm
cd ... /mh/lib
rm AlexaBridge.pm
wget 
https://raw.githubusercontent.com/waynieack/misterhouse/AlexaBridge/lib/AlexaBridge.pm

Edit your ini file to add;
---------------
alexaHttpPortCount = 0
alexaHttpPort = 80
debug=alexa:5
--------------

Run the Alexa App on the phone and delete all the previous devices by 
selecting the device and then clicking on the trash can
Next on the Alexa app select 'discover new devices' and select 'other 
device' (not Philips Hue or other manufacturer)
It should now find all of your devices, take any defaults and create 
groups if you want to.

</snip>
On 17/12/2019 00:54, Paul Onley wrote:
> Jon,
> Have you downloaded the new AlexaBridge.pm module linked in the 
> message just before yours?
>
> It sounds like the same problem that many had and Wayne did some 
> rework on the code to work with an apparent update that Amazon pushed 
> out to Alexa.
>
>
> On 12/10/19 2:12 PM, Jon Boehm wrote:
>> Looking for suggestions or anything obvious I'm doing wrong.
>>
>> Problem (see details below):
>>
>>   * Can't add new devices to my Alexa account.
>>       o Q: If I remove a single device via the Alexa Phone app should
>>         I be able to tell Alexa to rescan and find the item I
>>         just deleted without additional actions in my?
>>   * Can't get any devices on my wife's Alexa account.
>>       o Q: Can I scan in 2 peoples Alexa Accounts and have the
>>         devices show up in 2 accounts, or are devices tied to a
>>         single account?  As in is there a misterhouse limitation that
>>         only allows one Alexa account to 'own' a device?  Alexa
>>         expects each account in a household to re-scan for devices
>>         (stupid, I know).
>>
>>
>> Details:
>>
>>   * Successfully moved MH to port 80 and made Apache2 happy with MH
>>     on port 80 even thru a reverse proxy
>>   * Testing
>>       o Switched to my account. Default account on Alexa is my wife's
>>         account.
>>       o deleted all mh related smarthome devices via the phone Alexa
>>         app on my phone.
>>       o Told Alexa to scan for new devices. Alexa says things like
>>         "this might take a min" and "Put devices in pairing mode" etc.
>>       o Found all my devices
>>       o Yay, Alexa control works in my account
>>       o My wife is not home so I can't immediately switch
>>         accounts and scan for devices in her account too.  (REALLY
>>         STUPID that amazon doesn't share smarthome devices between
>>         Alexa accounts in the same Alexa-household)
>>   * 2 days later repeat in my wires account... no luck
>>       o Same thing.  Remove devices.
>>       o On rescan Alexa *DOES NOT* say "this might take a min" and
>>         "Put devices in pairing mode".  However, this could be
>>         because its in some kind of 'brief' mode were Alexa is less
>>         chatty.
>>       o No devices found.  ARGH. BTW I switching to *my *account on
>>         Alexa and I can still control the devices as normal
>>       o Next, in my account I delete a seldom used MH device from the
>>         Alexa app on my phone.
>>       o Rescan in my account Alexa says the same as last time
>>         "pairing mode" etc. However this time the rescan did NOT find
>>         the item I deleted a few minutes ago.
>>
>> Thanks for any ideas
>>
>>
>> ________________________________________________________
>> To unsubscribe from this list, go to:https://lists.sourceforge.net/lists/listinfo/misterhouse-users
>>
>
>
>
> ________________________________________________________
> To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users
>

________________________________________________________
To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.