Hello.
Hello, I am a newly owner of hubitat hub and I am just learning about its capabilities.
I know that it is possible to communicate using telnet. Is it possible to only listen, that is, only receive commands this way from another system?
Next question, in what language is the driver written.
Are there any examples of such driver, except for short article on this topic in the Documentation?
IIRC telnet is only available inside a custom driver, so how it functions is up to the device driver implementation; i.e. you can’t telnet into HE, but you can use it to communicate with an external device.
Just the opposite - HE can communicate with a third-party system that has a telnet daemon running.
If you want Hubitat to receive commands from another system, you have’ to use MakerAPI.
@dman2306’s Denon HEOS integration is a very nice example of telnet being used in a driver to communicate with an external device.
As long as the ‘other system’ is running a Telnet server, the Hubitat can make the initial connection, and the simply ‘listen’ to updates coming from that system. The connection is bidirectional, however Hubitat does not have to issue commands to the remote system after the initial connection. As @aaiyar mentioned, it is often simpler to have the remote system use the MakerAPI method of integrating with Hubitat, as that does not require any custom code on the Hubitat side.
Hubitat uses Groovy for its Apps and Drivers.
Thank you for your reply.
Thank you for your response. Now I understand how it works . The heos integration example illustrates it well.
Thanks. I see that the only right solution is the MakerAPI. And so a new language to learn.
So many great new things
MakerAPI is just an endpoint service, language on the Hubitat side is still Groovy although you could also interact with it using one of the rules engines.