Log throwing TvChannel = null error

Hi all

I’ve been scratching my head on this one all afternoon…

I have created a TV Device for a TV that I can control via Vera over http. All control works fine, except when i try to set a specific channel number and force the TvChannel.Name variable to adopt the actual name of the channel I want to watch… when I do that it throws a Tv.Channel = null error into the Log and I can’t fathom why…

My plugin code looks like this; - the offending line items that throw the error are 74 and 82

Any thoughts please? - thanks…

For the TvChannel capability you need to update the attributes like shown below. Pretty much any attribute containing a . needs to be set this way:

device["TvChannel.Name"] = "BBC One";
1 Like

Perfect… thanks @bill