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?
Tellstick NET local events and control devices
Moderator: Telldus
-
- Posts: 3
- Joined: Fri Mar 17, 2023 9:45 am
-
- Posts: 3
- Joined: Fri Mar 17, 2023 9:45 am
Re: Tellstick NET local events and control devices
Is it possible to receive events with the PowerShell cmdlets?
-
- Posts: 3
- Joined: Fri Mar 17, 2023 9:45 am
Re: Tellstick NET local events and control devices
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...
That's it then start receiving the packets from the Tellstick NET thingie:
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))
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)