Openhab2 mqtt items and sitemaps

  • Platform information:
    • Hardware: CPUArchitecture/RAM/storage
    • OS: what OS is used and which version
    • Java Runtime Environment: which java platform is used and what version
    • openHAB version:
  • Issue of the topic: please be detailed explaining your issue
  • Please post configurations (if applicable):
    • Items configuration related to the issue
    • Sitemap configuration related to the issue
    • Rules code related to the issue
    • Services configuration related to the issue
  • If logs where generated please post these here using code fences:

i want to control 8 channel relay by creating 8 switches with openhab please help me with the items and sitemaps creation or the code for items and sitemaps. iam using mqtt binding, please suggest the coding with mqtt included.

please anybody suggest me the solution.

Not only openhab can anybody suggest me how to create apache web controls for the relay. help me with the coding and other things.