Tellstick NET local events and control devices

Moderator: Telldus

Post Reply
Neptune443
Posts: 3
Joined: Fri Mar 17, 2023 9:45 am

Tellstick NET local events and control devices

Post by Neptune443 »

Hello,

I've bought a starter kit with a Tellstick NET device. I want to capture events from sensors and automate turning on and off some plugs.
I don't want to use Telldus Live. I want to capture events and control devices locally. What are my options?
Masonit
Posts: 79
Joined: Fri Mar 17, 2023 9:45 am

Re: Tellstick NET local events and control devices

Post by Masonit »

I use powershell to control my devices.

http://forum.telldus.com/viewtopic.php?f=22&t=3367

\Masonit
Neptune443
Posts: 3
Joined: Fri Mar 17, 2023 9:45 am

Re: Tellstick NET local events and control devices

Post by Neptune443 »

Is it possible to receive events with the PowerShell cmdlets?
Neptune443
Posts: 3
Joined: Fri Mar 17, 2023 9:45 am

Re: Tellstick NET local events and control devices

Post by Neptune443 »

I have to issue an actual W.T.F. I even opened a call with Telldus about local events and they just referred to Telldus live. In fact local events are supported at least in firmware version 17.

What is needed is a UDP packet sent to port 42314 containing the text "B:reglistener"
Here is a PowerShell sample...

Code: Select all

$udpClient = [System.Net.Sockets.UdpClient]::new()
$data = [text.encoding]::ASCII.GetBytes("B:reglistener")
$async = $udpClient.SendAsync($data,$data.Length,[IPEndpoint]::new([ipaddress]"192.168.1.123",42314))
That's it then start receiving the packets from the Tellstick NET thingie:

Code: Select all

do {
    $res = $udpClient.BeginReceive($null,$null)
    while(-not $res.IsCompleted){Start-Sleep -Milliseconds 50}
    $r = $udpClient.EndReceive($res,[ref]$senderAddress)
    $r|Format-Hex
    $senderAddress
} while ($true)
Post Reply