Rules not showing in web interface

Hi, I have created rules file “/etc/openhab/rules/home.rules” and created a rule here
rule “TV”
Item TV changed
if(TV.state == ON{
And it’s not showing in rules on web page, I think that the file has no problems, so what could it be?

Assuming this is a direct copy-paste, you need to look closer at your code.

Also, make sure your rule doesn’t have any smart quotes. These are bad:

These are good, but you’re missing one:

It’s really easy to make simple mistakes when using text config files, so check your log when you save the files. It won’t always catch the errors, but when it does you’ll know exactly where to look.

Thank you, It’s working now