Tv binding without state

Hi, with my harmony setup i can use openhab to open my TV. The only problem is I have no state. So I create one ! if tv receive command (toggle ) then tv = ON if tv = on and receive another command then tv = off

this was working fine but now i need to use 2 type off switch Toggle and ON/OFF switch so i want my toggle button to update my switch button

Finaly my tv take 20 sec to turn on and if the tv receive command in this 20 sec the command is ignore. can i deactivate my switches in this 20 sec so my status won’t be mess up if my tv receive command during this 20 sec ?

this is what i have so far :

rule “toggleTV” // TV is my Toggle Switch and toggletv is my on off switch
when
Item toggletv received command
then
if (toggletv.state!=ON) // item OFF or uninitialized
TV.sendCommand(ON)
// need to add 20 sec on disabling the switches
else
TV.sendCommand(OFF)
end

rule “TV”
when
Item TV received command
then
if (toggletv.state!=ON) // item OFF or uninitialized
postUpdate(toggletv, ON)
else
postUpdate(toggletv, OFF)
end