Setting Up Notifications
I am attempting to implement a solution to allow home assistant to send my windows PC notifications, I have installed HASS.agent client on my computer and have enabled the local API on port 5115, when I navigate to my internal IP & port I get 'HASS.Agent Active' however when I enter my hostname (internal ip) within home assistant it immediately says 'failed to connect'. I only mention it's immediate because when I specify an incorrect port/ip combination it takes some time before failing to connect. The home assistant instance is running in docker & has the HASS.Agent installed via HACS. Any help would be greatly appreciated (:
7 Replies
o/
is the local api an only option (asking about mqtt)?
did you perform the port reservation within HASS.Agent?
Yes I did perform port reservation, I wasn't sure how mqtt works especially considering 2fa
Is this computer expected to leave your house and still get notifications?
Or more what do you mean by 2fa, what is your need for that?
Mqtt is realistically considered safe assuming you already have it, it requires a username and password to be used and can only be used inside of your network.
no the computer will never leave the local network. I am just referring to the 2fa I have enabled on home assistant, since when I entered my home assistant username and password to setup mqtt it failed and never asked for a 2fa code. I think I just don’t understand what credentials it needs or how it functions.
Do you have an mqtt broker?
Which one?
That could be why its wasn't working 🥲, I do not have an MQTT broker installed. I checked out the following article https://everythingsmarthome.co.uk/how-to-install-an-mqtt-broker-mosquitto-install-config-on-debian-ubuntu-mint-fedora-raspbian/ however I am unsure whether this would work since my home assistant instance is running within a docker container. That's why I originally was opting for the local API as all I need is notifications, not any of the other features which require MQTT.
Everything Smart Home
How to install an MQTT Broker - Mosquitto Install/Config on Debian/...
If you’ve worked with any IoT (Raspberry Pi, Arduino, ESP, Zigbee, Z-wave etc)
devices, or any popular home automation software (Home Assistant, OpenHAB,
Domoticz) chances are you have heard of MQTT as a means of communicating between
devices.
Today we are going to install and configure an MQTT broker
Yep, so mqtt is basically a message system, very powerful and common in the home automation community
Presumably if you haven't heard of mqtt you are new to home automation so I can help you setup local API if that's what you want but we are looking at deprecating it and you will inevitably need to setup mqtt anyway. So if you want I could also help you setup mqtt on whatever hardware you are using, up to you?