MQTT mosquito

You use automations for scheduling things.

What exactly are you using HA for?

The screenshots that is higher up is from the section where I control my aquarium. I also control lights in my house.
Visually I did not see any card that integrates tastmota to be able to configure on off a plug

Stop focusing on ‘integrating tasmota’

You have a SWITCH in HA now. You control the SWITCH, not Tasmota

Okay i have a switch controled with mqtt.
Is there a card that I can choose when a switch is turned on or off at different times?

You use automations for this. There isn’t some magical card that does all the things you think of. You have to configure your HA system for AUTOMATION of things

Have a look at this thread:

but with an iFrame I could do it and visually look for a ha card. The only thing I can not achieve is that mosquitto works in a safe place.
As seen in the above image works well. Modifies the data of the switch sending commands by mqtt

Alright, man. If you aren’t going to do things the Home Assistant way, I can’t help you. You are trying to reinvent the wheel here.

I’m not reinventing anything. If there is an iFrame it is to use it. So I had it at the beginning but it was very limited and it occupied a lot on the screen.
I use everything that is integrated and what I do not try to use in any other way. If I want to switch on and off a switch 8 times a day I would not enter the configuration on the screen. In this way, everything is on a single card.

Using iFrames to control devices that are ALREADY connected to HA is completely the wrong mentality for Home Assistant.

This doesn’t make any sense.

Why not? I have dosifiers that add chemicals several times a day. I have the lights that turn on at different times.

And you can 100% do that directly from Home Assistant. I still don’t understand why you are going about this backwards.

You say that this is the same as doing what you showed me multiplied by 4?
In addition to having to use a slider to set the time when there are more friendly objects. already did it and it did not seem functional or aesthetic. As long as there is not a card that does what I need, I resolve it in this way. The conversation ended being existential and my question was technical. I do not understand the anger that I want to use something that home assistant allows. In fact some use graphana to show graphics having a card that does it.

There is no anger here.

grafana is used to DISPLAY statistics and graphs. It isn’t used to CONTROL things.

Since I don’t understand 100% what you want, and am only going off the bits and pieces you have been giving us…yes. Based on what I understand you want, you can 100% replicate this in Home Assistant.

You haven’t really been giving us any real information, except that you want to control through an iframe, a device for which you ALREADY have in Home Assistant.

Before the climate card existed, it was done in a traditional way and with automation. now everything is resolved on a card.

I do not speak English, it is difficult to express what I want to explain.

I do it this way only because I find it visually more attractive and only with a line I send all the data together and I do not have to automate anything since the switch does it.

The only thing I can not solve for lack of knowledge is how to use a mosquito on an https site

What are you trying to use mosquitto for? Do you understand what MQTT is?

HA can handle MQTT directly as well…so I am still confused at what you are trying to do with MQTT.

I understand why you want to use an iframe to display an existing web-interface. The web-interface already exists and, instead of creating its functions in Home Assistant, you want to save time by simply displaying the web-interface via an iframe.

In your last message you stated “how to use a mosquito on an https site”. What does that mean? How do you intend to use MQTT and https? How is this related to iframes and existing web-interfaces?

I appreciate the fact there is a language barrier that is making this process more difficult. Just so you understand, we are having a difficult time making sense of the information you have provided.

I know what is MQTT I use it on my page but http. Never use it on a https page.
The Sonoff switches can be changed to the firmware so they can be controlled by mqtt. In this case I use the tastmota firmware.
As there is no card that does exactly what I wanted, I made a web page that to be integrated into an iframe must be https and therefore it must also be configured as a mosquito for ssl.
The only thing I want to do is that a secure website works with a mosquito inside an iframe of home assistan. I promise that when there is integration with sonoff switch I stop using iframe, meanwhile it is the most attractive form I find for my ha.

Except he rewrote the entirety of the iframe source, and has spent more time working on trying to hack this in, than it would have taken him to just automate or set it up in HA.

So rather than just creating a card that does what you want, you are trying to go around the entire HA system so you can use an iframe?

You can create a custom card, using HA, and using MQTT and the control that HA already has capability to do. You ARE reinventing the wheel.

So you have an https site that you wrote. And you want the CLIENT framework to send data directly to the MQTT broker? You keep saying integrating mosquitto in iframe, when in reality you are trying to use a javascript mqtt client to control things.

What integration are you referring to? What exactly are you wanting integrated?

You have to understand how odd of a request you have from our stand point. You are asking for things that are completely out of the normal, and are trying to do something that is technically already implemented in HA. You could even send API calls to HA to handle the control of the switches from your iframe, instead of trying to talk to MQTT directly.

Sonoff switch can be used with the firmware that comes from home assistant?