Thanks. I have Home Assistant installed via HAOS on a Raspberry PI so maybe that is my issue. I cannot see the file in VSCode because I can only see the config directory.
I forked the pre-2FA repo and updated it to work with the current authentication requirements. If youāre interested, you can check it out at GitHub - indiefan/home_assistant_nanit: Docker container for mirroring nanit feed suitable for Home Assistant integration
Let me know if it doesnāt work for yāall.
Amazing, thank you. I have been using the Scrypted implementation recently but would prefer to go back to the local option. Iāll have a go at installing this tomorrow.
For ease of simplicity, do you know if this could be created as an HA add-on?
Has anybody figured out how to turn on/off the camera using put/post
Is there documentation on the Nanit camera some where out there?
Afaik only what folks have deduced from decompiling the app (e.g. https://github.com/indiefan/home_assistant_nanit/blob/af45ae21225b1dad234c84db973e0c232b71f43e/docs/developer-notes.md)
Thanks Indiefan for your great instructions, I managed to get the camera up and running, my only question is does your method include the sensors being published to MQTT?
I was able to get everything set up using the docker-compose method, including the MQTT sensors for temperature
, humidity
and is_dark
over the weekend. Working perfectly. Thanks @indiefan!
Excellent work @indiefan
I was able to set everything up for the stream and it works without issues.
What I do struggle with unfortunately are the sensors messages.
I believe I have MQTT setup correctly, because when I use the MQTT explorer I am receiving the correct data from the Nanit.
I also included this in my configuration.yaml (with the correct baby_uid, obviously)
sensor:
- name: "Nanit Temperature"
platform: mqtt
state_topic: "nanit/babies/{your_baby_uid}/temperature"
device_class: temperature
- name: "Nanit Humidity"
platform: mqtt
state_topic: "nanit/babies/{your_baby_uid}/humidity"
device_class: humidity
But where can I find the data in HA? What am I doing wrong?
Thank you!
Would like to give an update. Changed it to the following:
mqtt:
sensor:
- name: "Nanit Temperature"
unique_id: nanit_temperature
state_topic: "nanit/babies/{your_baby_uid}/temperature"
device_class: temperature
- name: "Nanit Humidity"
unique_id: nanit_humidity
state_topic: "nanit/babies/{your_baby_uid}/humidity"
device_class: humidity
and now it works for me. Only thing I am wondering, is there a way to change it from Celsius to Fahrenheit?
I would imagine the easiest way is to create a template sensor.
Thank you.
Added those 2 lines:
unit_of_measurement: "Ā°F"
value_template: "{{(value | float * (9/5) + 32) | round(0)}}"
Works great now!
Iāve been trying to get the Docker version running. I can get the container working no problem, but HA is giving me a Connection Refused
error. Specifically Error from stream worker: Error opening stream (ERRORTYPE_111, Connection refused) rtmp://xxx.xxx.xxx.xxx:1935/local/xxx
Anyone have any ideas?
Same! Not sure what to do.
Can you consume the stream using VLC?
I donāt think so b/c of this: The VLC media player integration , is currently only available for installations that are based on the Home Assistant Core in a Python virtual environment
Assuming I could, seems like thatād only get me audio?
If you havenāt already, double check the docker container logs and make sure the stream is up (e.g. you arenāt getting a Nanit connection error due to too many connections or anything like that). Also, feel free to file a bug on the github project if you suspect thereās something wrong with the docker side.
I think they were just asking in order to rule out a problem with the docker container, and I donāt think they meant the HA VLC integration, but just standalone VLC (if standalone VLC can connect to the stream, then itās definitely an HA problem, not a problem with your docker container).
Ah, misunderstood. That makes more sense. But just tried and no, I canāt open the stream using VLC. I have two Nanits in the house, if it helps debug? The stream is returning info for both. I thought maybe I had uuids flipped (even though I verified them using temperature and humidity ha), but neither works.
Double check the start-up logs for the container to see if there are any obvious/reported issues. If not, file a ticket on the github project with the (redacted) logs and Iād be happy to take a look!
I donāt use Docker much, so not sure what to expect, but RTMP server started addr=:1935
seems suspicious. Does that also need to be my camera address, or is port sufficient?