asantaga / lightwaverf_HA_EnergySensor

Home Assistant Sensor for the LightwaveRF energy monitor
MIT License
5 stars 3 forks source link

How to open ports on HASS.io on raspbery pi 4 #6

Closed gshoebridge closed 3 years ago

gshoebridge commented 4 years ago

I have HASS running on a Pi4 - what is the instruction to open the following?

Ensure port 9761/UDP is open on your linux server.

Thanks

asantaga commented 4 years ago

Alas I dont have a RPI to test this out, but I think ootb the raspberry pi doesnt have a pre installed firewall.. it might just work.

try it first..

if you want to install a firewall try ufw, See this link for details https://www.raspberrypi.org/documentation/configuration/security.md

let me know if it works

gshoebridge commented 4 years ago

Many thanks

Where I have the problem is that the integration just doesn't appear to work and if pi doesn't have a firewall then it should without issue

I was wondering whether this was working with other RPI users using the HASS OS. Alternatively I'm thinking about moving to LWave2 so it may become irrelevant

Guy Shoebridge Service Delivery Manager Ultima Business Solutions Ltd


From: Angelo Santagata notifications@github.com Sent: Wednesday, July 15, 2020 4:05:43 PM To: asantaga/lightwaverf_HA_EnergySensor lightwaverf_HA_EnergySensor@noreply.github.com Cc: gshoebridge gshoebridge@hotmail.com; Author author@noreply.github.com Subject: Re: [asantaga/lightwaverf_HA_EnergySensor] How to open ports on HASS.io on raspbery pi 4 (#6)

Alas I dont have a RPI to test this out, but I think ootb the raspberry pi doesnt have a pre installed firewall.. it might just work.

try it first..

if you want to install a firewall try ufw, See this link for details https://www.raspberrypi.org/documentation/configuration/security.mdhttps://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.raspberrypi.org%2Fdocumentation%2Fconfiguration%2Fsecurity.md&data=02%7C01%7C%7Cf01ccf8a911c4f20c86208d828d08d01%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637304223462799645&sdata=N4V7DOSQG8ADXSt06%2F%2FITCCrWE5oBqLR07O9xu7tN%2B0%3D&reserved=0

let me know if it works

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fasantaga%2Flightwaverf_HA_EnergySensor%2Fissues%2F6%23issuecomment-658820596&data=02%7C01%7C%7Cf01ccf8a911c4f20c86208d828d08d01%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637304223462809642&sdata=1XuGIuT%2FGf1kZPDodjR%2Bs8I2Hk7FMfYNaHLsckY6sRQ%3D&reserved=0, or unsubscribehttps://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAISWBJREVNS5PAMEYFFJBSTR3XAUPANCNFSM4OZRADOA&data=02%7C01%7C%7Cf01ccf8a911c4f20c86208d828d08d01%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637304223462819632&sdata=pDf6695imRLISF0FAxifTK8PxoO7QoNzBeV5%2FehwOro%3D&reserved=0.

asantaga commented 4 years ago

other users are using it but yes "the network" does cause issues.. its not that the integration doesnt work (although of course Id say that :-) ) but you need to make sure your on the same subnet etc otherwise the udp packets dont get through..

Can you connect your RPI to the same router/switch as the smartlink box?

asantaga commented 4 years ago

Checkout this github gist, it basically displays all the data the RPI is receiving on the right port, it waits up to 30 seconds (ignore the comment) for data..

https://gist.github.com/asantaga/308f3a2fc59172e9f272d52a29a25e5b