ST code to hubitat

Trying to migrate a ST app over to Hubitat. This is the only line I am struggling with converting:

settings?.stHub?.getLocalIP()

Suggestions?

Try this:

location.hubs[0].data["localIP"]

That did not work. :frowning: Still get a null result.

The following WiKi post has many tips for porting code to Hubitat. It can also be edited by community members if you find anything new to add.

Try
location.hubs[0].getDataValue("localIP")

1 Like

Worked! Thank you!

Is this for the sense port :hushed:

Yeah but finding there is a LOT of coding that needs to be changed. Maybe @tonesto7 can assist as he has a forked version.

1 Like