<div dir="ltr"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Díky, to je super. Vidím tam toto:</div><div><br></div><div><span class="gmail-jss561" tabindex="-1" style="box-sizing:inherit;outline:none;height:14px;margin:1px 0px;display:inline-block;padding:1px 4px 0px;line-height:1em;border-radius:4px;color:rgba(0,0,0,0.87);font-family:Arial;font-size:13.3333px;letter-spacing:0.14994px;background-color:rgb(250,250,250)"><span class="gmail-jss563" style="box-sizing:inherit;overflow:hidden;font-weight:bold">homeassistant</span></span><span class="gmail-jss566" style="box-sizing:inherit;clear:both;display:block;margin-left:12px;color:rgba(0,0,0,0.87);font-family:Arial;font-size:13.3333px;letter-spacing:0.14994px;background-color:rgb(250,250,250)"><div class="gmail-jss556" style="box-sizing:inherit;width:1120px;padding:1px 0px 0px;overflow:hidden;text-overflow:ellipsis"><span class="gmail-jss561" tabindex="-1" style="box-sizing:inherit;outline:none;height:14px;margin:1px 0px;display:inline-block;padding:1px 4px 0px;line-height:1em;border-radius:4px"><span class="gmail-jss564" style="box-sizing:inherit;color:rgb(34,34,34);padding-right:2px">▶</span><span class="gmail-jss563" style="box-sizing:inherit;overflow:hidden;font-weight:bold">binary_sensor</span><span class="gmail-jss565" style="box-sizing:inherit;color:rgba(0,0,0,0.54)"> (6 topics, 6 messages)</span></span></div><div class="gmail-jss556" style="box-sizing:inherit;width:1120px;padding:1px 0px 0px;overflow:hidden;text-overflow:ellipsis"><span class="gmail-jss561" tabindex="-1" style="box-sizing:inherit;outline:none;height:14px;margin:1px 0px;display:inline-block;padding:1px 4px 0px;line-height:1em;border-radius:4px"><span class="gmail-jss564" style="box-sizing:inherit;color:rgb(34,34,34);padding-right:2px">▶</span><span class="gmail-jss563" style="box-sizing:inherit;overflow:hidden;font-weight:bold">button</span><span class="gmail-jss565" style="box-sizing:inherit;color:rgba(0,0,0,0.54)"> (1 topic, 1 message)</span></span></div><div class="gmail-jss556" style="box-sizing:inherit;width:1120px;padding:1px 0px 0px;overflow:hidden;text-overflow:ellipsis"><span class="gmail-jss561" tabindex="-1" style="box-sizing:inherit;outline:none;height:14px;margin:1px 0px;display:inline-block;padding:1px 4px 0px;line-height:1em;border-radius:4px"><span class="gmail-jss564" style="box-sizing:inherit;color:rgb(34,34,34);padding-right:2px">▶</span><span class="gmail-jss563" style="box-sizing:inherit;overflow:hidden;font-weight:bold">select</span><span class="gmail-jss565" style="box-sizing:inherit;color:rgba(0,0,0,0.54)"> (5 topics, 5 messages)</span></span></div><div class="gmail-jss556" style="box-sizing:inherit;width:1120px;padding:1px 0px 0px;overflow:hidden;text-overflow:ellipsis"><span class="gmail-jss561" tabindex="-1" style="box-sizing:inherit;outline:none;height:14px;margin:1px 0px;display:inline-block;padding:1px 4px 0px;line-height:1em;border-radius:4px"><span class="gmail-jss564" style="box-sizing:inherit;color:rgb(34,34,34);padding-right:2px">▶</span><span class="gmail-jss563" style="box-sizing:inherit;overflow:hidden;font-weight:bold">sensor</span><span class="gmail-jss565" style="box-sizing:inherit;color:rgba(0,0,0,0.54)"> (14 topics, 14 messages)</span></span></div><div class="gmail-jss556" style="box-sizing:inherit;width:1120px;padding:1px 0px 0px;overflow:hidden;text-overflow:ellipsis"><span class="gmail-jss561 gmail-jss559" tabindex="-1" style="box-sizing:inherit;outline:none;height:14px;margin:1px 0px;display:inline-block;padding:1px 4px 0px;line-height:1em;border-radius:4px;background-color:rgb(144,164,174)"><span class="gmail-jss564" style="box-sizing:inherit;color:rgb(34,34,34);padding-right:2px">▶</span><span class="gmail-jss563" style="box-sizing:inherit;overflow:hidden;font-weight:bold">switch</span><span class="gmail-jss565" style="box-sizing:inherit;color:rgba(0,0,0,0.54)"> (1 topic, 1 message)</span></span></div><div class="gmail-jss556" style="box-sizing:inherit;width:1120px;padding:1px 0px 0px;overflow:hidden;text-overflow:ellipsis"><span class="gmail-jss561" tabindex="-1" style="box-sizing:inherit;outline:none;height:14px;margin:1px 0px;display:inline-block;padding:1px 4px 0px;line-height:1em;border-radius:4px"><span class="gmail-jss564" style="box-sizing:inherit;color:rgb(34,34,34);padding-right:2px">▼</span><span class="gmail-jss563" style="box-sizing:inherit;overflow:hidden;font-weight:bold">sonoff</span></span><span class="gmail-jss566" style="box-sizing:inherit;clear:both;display:block;margin-left:12px"><div class="gmail-jss556" style="box-sizing:inherit;width:1108px;padding:1px 0px 0px;overflow:hidden;text-overflow:ellipsis"><span class="gmail-jss561" tabindex="-1" style="box-sizing:inherit;outline:none;height:14px;margin:1px 0px;display:inline-block;padding:1px 4px 0px;line-height:1em;border-radius:4px"><span class="gmail-jss564" style="box-sizing:inherit;color:rgb(34,34,34);padding-right:2px">▼</span><span class="gmail-jss563" style="box-sizing:inherit;overflow:hidden;font-weight:bold">garaz11</span></span><span class="gmail-jss566" style="box-sizing:inherit;clear:both;display:block;margin-left:12px"><div class="gmail-jss556" style="box-sizing:inherit;width:1096px;padding:1px 0px 0px;overflow:hidden;text-overflow:ellipsis"><span class="gmail-jss561" tabindex="-1" style="box-sizing:inherit;outline:none;height:14px;margin:1px 0px;display:inline-block;padding:1px 4px 0px;line-height:1em;border-radius:4px"><span class="gmail-jss564" style="box-sizing:inherit;color:rgb(34,34,34);padding-right:2px">▼</span><span class="gmail-jss563" style="box-sizing:inherit;overflow:hidden;font-weight:bold">1</span></span><span class="gmail-jss566" style="box-sizing:inherit;clear:both;display:block;margin-left:12px"><div class="gmail-jss556" style="box-sizing:inherit;width:1084px;padding:1px 0px 0px;overflow:hidden;text-overflow:ellipsis"><span class="gmail-jss561" tabindex="-1" style="box-sizing:inherit;outline:none;height:14px;margin:1px 0px;display:inline-block;padding:1px 4px 0px;line-height:1em;border-radius:4px"><span class="gmail-jss563" style="box-sizing:inherit;overflow:hidden;font-weight:bold">stat</span><span class="gmail-jss562" style="box-sizing:inherit;padding:0px;overflow:hidden;text-overflow:ellipsis"> = off</span></span><span class="gmail-jss566" style="box-sizing:inherit;clear:both;display:block;margin-left:12px"></span></div><div class="gmail-jss556" style="box-sizing:inherit;width:1084px;padding:1px 0px 0px;overflow:hidden;text-overflow:ellipsis"><span class="gmail-jss561" tabindex="-1" style="box-sizing:inherit;outline:none;height:14px;margin:1px 0px;display:inline-block;padding:1px 4px 0px;line-height:1em;border-radius:4px"><span class="gmail-jss563" style="box-sizing:inherit;overflow:hidden;font-weight:bold">debug</span><span class="gmail-jss562" style="box-sizing:inherit;padding:0px;overflow:hidden;text-overflow:ellipsis"> = {"UID": Sonoff_C8B949, "WiFi RSSI": -62dBM, "Topic": homeassistant/sonoff/garaz11/1, "Ver": kssc_v1.00}</span></span><span class="gmail-jss566" style="box-sizing:inherit;clear:both;display:block;margin-left:12px"></span></div><div class="gmail-jss556" style="box-sizing:inherit;width:1084px;padding:1px 0px 0px;overflow:hidden;text-overflow:ellipsis"><span class="gmail-jss561" tabindex="-1" style="box-sizing:inherit;outline:none;height:14px;margin:1px 0px;display:inline-block;padding:1px 4px 0px;line-height:1em;border-radius:4px"><span class="gmail-jss563" style="box-sizing:inherit;overflow:hidden;font-weight:bold">heartbeat</span><span class="gmail-jss562" style="box-sizing:inherit;padding:0px;overflow:hidden;text-overflow:ellipsis"> = OK</span></span><span class="gmail-jss566" style="box-sizing:inherit;clear:both;display:block;margin-left:12px"></span></div></span></div></span></div></span></div><div class="gmail-jss556" style="box-sizing:inherit;width:1120px;padding:1px 0px 0px;overflow:hidden;text-overflow:ellipsis"><span class="gmail-jss561" tabindex="-1" style="box-sizing:inherit;outline:none;height:14px;margin:1px 0px;display:inline-block;padding:1px 4px 0px;line-height:1em;border-radius:4px"><span class="gmail-jss563" style="box-sizing:inherit;overflow:hidden;font-weight:bold">status</span><span class="gmail-jss562" style="box-sizing:inherit;padding:0px;overflow:hidden;text-overflow:ellipsis"> = online</span></span></div></span></div></div></div></div><br><div>on / off se krásně mění podle stavu relé na sonoff (ruční ovládání tlačítkem). Konfiguraci jsem upravil takto, <b>ale HA to pořád nevidí</b>. V configuration.yaml mám teď toto, restart jsem provedl:</div><div><br></div><div>switch:<br>  - platform: mqtt<br>    name: "garaz11"<br>    state_topic: "homeassistant/sonoff/garaz11/1/stat"<br>    command_topic: "homeassistant/sonoff/garaz11/1"<br>    qos: 0<br>    payload_on: "on"<br>    payload_off: "off"<br>    retain: true<br></div><div><br></div><div>Je ten switch dobře? Nemá to být třeba button nebo sensor?</div><div><br></div><div>Díky,</div><div><br></div><div>HP</div><div><br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">st 31. 1. 2024 v 8:53 odesílatel Petr Zapadlo <<a href="mailto:zapik@email.cz">zapik@email.cz</a>> napsal:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  
    
  
  <div>
    <p>Stáhněte si:</p>
    <p><a href="https://mqtt-explorer.com/" target="_blank">https://mqtt-explorer.com/</a></p>
    <p>a podívejte se co na brokeru přesně chodí a jak, A podle toho
      principiálně upravte konfiguraci v HA.</p>
    <p>Jinak si myslím, že to máte dobře,  Jen není zřetelné co tam to
      zařízení přesně posílá a jestli je to jen string a nebo třeba
      json.</p>
    <p>Ten Explorer to krásně ozřejmí.</p>
    <p>Petr<br>
    </p>
    <div>Dne 31. 01. 24 v 8:32 Jan Půhoný
      napsal(a):<br>
    </div>
    <blockquote type="cite">
      
      <div dir="ltr">
        <div dir="ltr">Tak s MQTT brokerem to normalne komunikuje, jen
          nechapu, jak to dostat do HA. Jine MQTT zarizeni tam vidim,
          takze komunikace mezi HA a MQTT brokerem je spravne.
          <div><br>
          </div>
          <div>1706686156: Received PUBLISH from Sonoff_C8B949 (d0, q0,
            r0, m0, 'home/sonoff/garaz11/1/debug', ... (94 bytes))<br>
            1706686156: Received PUBLISH from Sonoff_C8B949 (d0, q0, r0,
            m0, 'home/sonoff/garaz11/1/heartbeat', ... (2 bytes))<br>
            1706686159: Received PINGREQ from 2eBx1TUy4lpqs1MJm7ok6e<br>
            1706686159: Sending PINGRESP to 2eBx1TUy4lpqs1MJm7ok6e<br>
            1706686161: Received PINGREQ from Sonoff_C8B949<br>
            1706686161: Sending PINGRESP to Sonoff_C8B949</div>
          <div><br>
          </div>
          <div>Takto mam nastaveny ten senzor v configuration.yaml v HA.
            Je tam neco spatne?</div>
          <div><br>
          </div>
          <div>switch:<br>
              - platform: mqtt<br>
                name: "Garaz1-1"<br>
                state_topic: "home/sonoff/garaz11/1/stat"<br>
                command_topic: "home/sonoff/garaz11/1"<br>
                qos: 0<br>
                payload_on: "on"<br>
                payload_off: "off"<br>
                state_on: "on"<br>
                state_off: "off"<br>
                retain: true<br>
          </div>
          <div><br>
          </div>
          <div>Je potreba ten topic nekde jinde definovat, aby to bylo
            videt v HA?</div>
          <div><br>
          </div>
          <div>Díky,</div>
          <div><br>
          </div>
          <div>HP</div>
        </div>
        <br>
        <div class="gmail_quote">
          <div dir="ltr" class="gmail_attr">út 30. 1. 2024 v 19:19
            odesílatel Jan Půhoný <<a href="mailto:konference@puhy.cz" target="_blank">konference@puhy.cz</a>>
            napsal:<br>
          </div>
          <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
            <div dir="auto">Aha to me nenapadlo. Nekdo tady psal ze Tuya
              local uz nefunguje. Nezkousel jsem to.</div>
            <div dir="auto"><br>
            </div>
            <div dir="auto">Variantou je Tasmota? </div>
            <div dir="auto"><br>
            </div>
            <div dir="auto">Nebo mate nekdo neco vyzkouseneho s tim
              sonof basic wifi?<br clear="all">
              <br clear="all">
              <div dir="auto">
                <div dir="ltr" class="gmail_signature">
                  <div dir="ltr">
                    <div>
                      <div dir="ltr">
                        <div dir="auto">HP</div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
            <div><br>
            </div>
            <div><br>
              <div class="gmail_quote">
                <div dir="ltr" class="gmail_attr">út 30. 1. 2024 v 19:03
                  odesílatel ajtservis <<a href="mailto:info@ajtservis.cz" target="_blank">info@ajtservis.cz</a>>
                  napsal:<br>
                </div>
                <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">tyhle komponenty
                  sonoff nam doma chodi v HA bez flashnuti.<br>
                  a v locale, bez cloudu.<br>
                  proc je dobre tam menit fw. ?<br>
                  t.<br>
                  <br>
                  Dne 30.01.2024 v 18:35 Jan Půhoný napsal(a):<br>
                  > Dobrý večer,<br>
                  > <br>
                  > tak Zigbee mi už funguje, teď jsem zkusil
                  flashnout do SONOF BASIC R2 <br>
                  > WIFI tento fw:<br>
                  > <br>
                  > <a href="https://github.com/KmanOz/KmanSonoff" rel="noreferrer" target="_blank">https://github.com/KmanOz/KmanSonoff</a>
                  <<a href="https://github.com/KmanOz/KmanSonoff" rel="noreferrer" target="_blank">https://github.com/KmanOz/KmanSonoff</a>><br>
                  > <br>
                  > Connecting to 192.168.XXX.XXX Broker . . DONE<br>
                  > <br>
                  > ----------------------------  Logs
                   ----------------------------<br>
                  > <br>
                  > mqtt broker connection . . . . . . . . . . OK<br>
                  > Relay . . . . . . . . . . . . . . . . . . OFF<br>
                  > Relay . . . . . . . . . . . . . . . . . . ON<br>
                  > mqtt broker connection . . . . . . . . . . OK<br>
                  > mqtt broker connection . . . . . . . . . . OK<br>
                  > mqtt broker connection . . . . . . . . . . OK<br>
                  > mqtt broker connection . . . . . . . . . . OK<br>
                  > <br>
                  > K MQQT brokerovi se připojí, ale v HA ji nevidím.<br>
                  > <br>
                  > Do configuration.yaml jsem přidal:<br>
                  > <br>
                  > switch:<br>
                  >    - platform: mqtt<br>
                  >      name: "Garaz1-1"<br>
                  >      state_topic: "home/sonoff/garaz11/1/stat"<br>
                  >      command_topic: "home/sonoff/garaz11/1"<br>
                  >      qos: 0<br>
                  >      payload_on: "on"<br>
                  >      payload_off: "off"<br>
                  >      retain: true<br>
                  > <br>
                  > a restartoval HA.<br>
                  > <br>
                  > Co ještě musím udělat abych ten switch viděl?<br>
                  > <br>
                  > Díky,<br>
                  > <br>
                  > HP<br>
                  <br>
                </blockquote>
              </div>
            </div>
          </blockquote>
        </div>
      </div>
      <br>
      <fieldset></fieldset>
      <pre>_______________________________________________
HW-list mailing list  -  sponsored by <a href="http://www.HW.cz" target="_blank">www.HW.cz</a>
<a href="mailto:Hw-list@list.hw.cz" target="_blank">Hw-list@list.hw.cz</a>
<a href="http://list.hw.cz/mailman/listinfo/hw-list" target="_blank">http://list.hw.cz/mailman/listinfo/hw-list</a>
</pre>
    </blockquote>
  </div>
_______________________________________________<br>
HW-list mailing list  -  sponsored by <a href="http://www.HW.cz" rel="noreferrer" target="_blank">www.HW.cz</a><br>
<a href="mailto:Hw-list@list.hw.cz" target="_blank">Hw-list@list.hw.cz</a><br>
<a href="http://list.hw.cz/mailman/listinfo/hw-list" rel="noreferrer" target="_blank">http://list.hw.cz/mailman/listinfo/hw-list</a><br>
</blockquote></div>