There was this Blogpost about a simple way to create an web application which is connected to a Home-Assistant server using the MQTT Eventstream. I want to make a very simple Kivy application for the Raspberry Pi touch screen and I need a similar solution for this project. But instead of using the whole MQTT Eventstream I would like to configure only specifig sensors and switches to MQTT (without JSON format).
Something like this:
switch:
platform: rpi_gpio
ports:
11: Fan Office
mqtt: home/switches/raspberrypi/fan_office
binary_sensor:
platform: rpi_gpio
ports:
11: PIR Office
mqtt: home/sensors/raspberrypi/pir_office
Using my Kivy application I will then connect to the Hass MQTT broker and read/change the topics to control my hass-server