I am trying to send JSON data as UDP packets to signal a device event. My json packet is
{"device":{"name":"Main","status":"Open"}}.
From this i want to signal a device called Main and set its status to open.
I set the Device Name Expression to ${ JSON(input, "device.name") }.
I set the Device Value Expression to ${ JSON(input, "device.status") }.
When i send the packet i get the following error in the log.
[UDP] [Big6 Plugin] [#PFL:UDPIn] An error happened on incomming message. ErrorMessage Value cannot be null. Parameter name: name on at HomeSeer.PluginSdk.Devices.FeatureFactory.WithName(String name) at HSPI_Big6.HSPI.UpdateOrAddDeviceFeatureValue(HsDevice hsDevice, Dictionary`2 featureNameValue) at HSPI_Big6.HSPI.HandleIncommingMessage(Big6Connection con, Big6Message msg, Big6Profile profile, Big6Type type)
[NULL] [Big6 Plugin] HS devices loaded or reloaded.
A plugin has requested a list of all of the devices in HomeSeer
[NULL] [Big6 Plugin] Loading HS devices...
[NULL] [Big6Connection] at Flee.PublicTypes.ExpressionContext.DoParse() at Flee.PublicTypes.ExpressionContext.Parse(String expression, IServiceProvider services) at Flee.InternalTypes.Expression`1.Compile(String expression, ExpressionOptions options) at Flee.InternalTypes.Expression`1..ctor(String expression, ExpressionContext context, Boolean isGeneric) at HSPI_Big6.Features.Big6Connection.EncodeStringForTransmissio n(String message, String input)
[Big6Connection] SyntaxError: unexpected character '$', on line: 1 column: 1 unexpected character '}', on line: 1 column: 31
[NULL] [Big6Connection] at Flee.PublicTypes.ExpressionContext.DoParse() at Flee.PublicTypes.ExpressionContext.Parse(String expression, IServiceProvider services) at Flee.InternalTypes.Expression`1.Compile(String expression, ExpressionOptions options) at Flee.InternalTypes.Expression`1..ctor(String expression, ExpressionContext context, Boolean isGeneric) at HSPI_Big6.Features.Big6Connection.EncodeStringForTransmissio n(String message, String input)
[NULL] [Big6Connection] SyntaxError: unexpected character '$', on line: 1 column: 1 unexpected character '}', on line: 1 column: 32
[UDP] [Big6 Plugin] [#PFL:UDPIn] [UdpConnection] [Raw message in]: {"device":{"name":"Main","status":"Open"}}
What am i doing wrong ?
What does locked do ?
What is difference between root Device Name Expression and feature Device Name Expression. I assumed that root name will be appended to feature name. But it throws errors if i add any "Name" in the root Device Name Expression field.
{"device":{"name":"Main","status":"Open"}}.
From this i want to signal a device called Main and set its status to open.
I set the Device Name Expression to ${ JSON(input, "device.name") }.
I set the Device Value Expression to ${ JSON(input, "device.status") }.
When i send the packet i get the following error in the log.
[UDP] [Big6 Plugin] [#PFL:UDPIn] An error happened on incomming message. ErrorMessage Value cannot be null. Parameter name: name on at HomeSeer.PluginSdk.Devices.FeatureFactory.WithName(String name) at HSPI_Big6.HSPI.UpdateOrAddDeviceFeatureValue(HsDevice hsDevice, Dictionary`2 featureNameValue) at HSPI_Big6.HSPI.HandleIncommingMessage(Big6Connection con, Big6Message msg, Big6Profile profile, Big6Type type)
[NULL] [Big6 Plugin] HS devices loaded or reloaded.
A plugin has requested a list of all of the devices in HomeSeer
[NULL] [Big6 Plugin] Loading HS devices...
[NULL] [Big6Connection] at Flee.PublicTypes.ExpressionContext.DoParse() at Flee.PublicTypes.ExpressionContext.Parse(String expression, IServiceProvider services) at Flee.InternalTypes.Expression`1.Compile(String expression, ExpressionOptions options) at Flee.InternalTypes.Expression`1..ctor(String expression, ExpressionContext context, Boolean isGeneric) at HSPI_Big6.Features.Big6Connection.EncodeStringForTransmissio n(String message, String input)
[Big6Connection] SyntaxError: unexpected character '$', on line: 1 column: 1 unexpected character '}', on line: 1 column: 31
[NULL] [Big6Connection] at Flee.PublicTypes.ExpressionContext.DoParse() at Flee.PublicTypes.ExpressionContext.Parse(String expression, IServiceProvider services) at Flee.InternalTypes.Expression`1.Compile(String expression, ExpressionOptions options) at Flee.InternalTypes.Expression`1..ctor(String expression, ExpressionContext context, Boolean isGeneric) at HSPI_Big6.Features.Big6Connection.EncodeStringForTransmissio n(String message, String input)
[NULL] [Big6Connection] SyntaxError: unexpected character '$', on line: 1 column: 1 unexpected character '}', on line: 1 column: 32
[UDP] [Big6 Plugin] [#PFL:UDPIn] [UdpConnection] [Raw message in]: {"device":{"name":"Main","status":"Open"}}
What am i doing wrong ?
What does locked do ?
What is difference between root Device Name Expression and feature Device Name Expression. I assumed that root name will be appended to feature name. But it throws errors if i add any "Name" in the root Device Name Expression field.
Comment