I got a Eagle 3 from my power provider, I want to try and connect it to my Home Assistant but it wont add
I am able to post the following and get basic sensor data out of it
<DeviceList>
<Device>
<Name>Power Meter</Name>
<HardwareAddress>0x001350030011a0fb</HardwareAddress>
<Manufacturer>Generic</Manufacturer>
<ModelId>electric_meter</ModelId>
<Protocol>Zigbee</Protocol>
<LastContact>0x69f6d1d7</LastContact>
<ConnectionStatus>Connected</ConnectionStatus>
<NetworkAddress>0xffff</NetworkAddress>
</Device>
<Device>
<Name>Smart Plug 1</Name>
<HardwareAddress>0x187a3efffe1cf2ce</HardwareAddress>
<Manufacturer>Dusun</Manufacturer>
<ModelId>DSP-061-3</ModelId>
<Protocol>Zigbee</Protocol>
<LastContact>0x69f6d1da</LastContact>
<ConnectionStatus>Connected</ConnectionStatus>
<NetworkAddress>0x2c16</NetworkAddress>
</Device>
</DeviceList>
However I cant control the smart switch or read the power data
this commands like get_summation i just get the response
<Error>
<Description>Duplicate message</Description>
</Error>
Full code ran from power shell
# Device credentials
$cloudId = "XXXX"
$installCode = "XXXX"
$authString = "${cloudId}:${installCode}"
# Encode Basic Auth
$encodedAuth = [Convert]::ToBase64String(
[Text.Encoding]::ASCII.GetBytes($authString)
)
# XML request body
$xml = @"
<Command>
<Name>get_summation</Name>
</Command>
"@
# Send request
$response = Invoke-WebRequest `
-Uri "http://192.168.1.107:80/cgi-bin/post_manager" `
-Method Post `
-Headers @{
Authorization = "Basic $encodedAuth"
"Content-Type" = "text/xml"
} `
-Body $xml
# Output raw response
$response.Content
