Elektroda.com
Elektroda.com
X

Home Assistant Tutorial - configuration, WiFi, MQTT, Zigbee, Tasmota

p.kaczmarek2 39657 47
This content has been translated flag-pl » flag-en View the original version here.
  • #31
    xury
    Automation specialist
    You can. For example with NodeRed
  • #32
    pablo_banita
    Level 12  
    piterek-23 wrote:
    I have a little question ...
    Is it possible to somehow transfer data (Xiaomi Mijia 2 sensor) from Home Assistant to another server? If so, how to bite it?


    In many ways...
    You gave little information (what target server?).
    For example, MQTT.
  • #33
    piterek-23
    Level 33  
    PHP server, and I would like to send the data like this:
    http: //IP_serwer/receiver.php? key = xxxx & id = 1; 2; 3; 4 & type = temp; humid; volt; battery & value = data_temp; data_wilg; data_voltage; battery_data & device = ip & name = MiJia1_ (the link pasted in the browser updates the database on my server)
    So I need data from HA:
    dane_temp - temperature
    data_wilg - humidity
    data_voltage - battery voltage
    data_bateria - battery capacity
    MiJia1_ - name of the sensor, each module is to have a different end: MiJia1_, MiJia1_ ... MiJiax_
  • #34
    pablo_banita
    Level 12  
    I've tried sending a reply about 10 times.
    An error was popping up and ...
    I got bored.

    It went in a private message!
  • #35
    bambek2005
    Level 11  
    Good morning, nice tutorial. So let me "give up" my problem because I see that you have quite extensive knowledge in the subject of HA, and I am looking, I am looking for and nowhere can I find a solution. When it comes to RPi there are lots of "uncles Good Advice" but about HA OS x86 ... Bida. Well: Home Assistant OS x86, installed "configured" on Dell Wyse. Everything is cool except time ... The system itself in the terminal shows the correct time (DELL in the BIOS is set to the correct time), Home Assistant Tutorial - configuration, WiFi, MQTT, Zigbee, Tasmota while all the rest (diary, esphome, zigbee etc.) Home Assistant Tutorial - configuration, WiFi, MQTT, Zigbee, Tasmota Home Assistant Tutorial - configuration, WiFi, MQTT, Zigbee, Tasmota Home Assistant Tutorial - configuration, WiFi, MQTT, Zigbee, Tasmota
    indicate + 2hours. I installed the CHRONY plugin (NTP server) which shows a good time, but it doesn't change anything ...
    The only thing I got to was editing the conf file /etc/systemd/timesyncd.conf and patting NTP servers at tempus1.gum.gov.pl tempus2.gum.gov.pl and returning to ntp.ubuntu.com (I also combined from 0.pl.pool.ntp.org - no effect).
    The problem, in my opinion, is that I cannot change the time zone from the terminal (timedatectl set-timezone Europe \ Warsaw) because I have a failed to set ntp error: file /etc/systemd/system/dbus.org.freedesktop.timesync1.service : Read-only file system. and so every time I try to change anything with timedatectl - is it to disable the NTP server where should I start or whatever. I even tried to edit the above mentioned dbus file .... manually with the VI command but it crashes that I cannot write read-only file.
    It's a trivial thing, but because of this little thing I can't start the TUYA integration - error 1013 (time synchronization) crashes, NodeRed freaks out and my hair is starting to grow in general ;-) with a nerve ...
    I will add that in the HA itself in config.yaml the time zone is set to Warsaw, but it does not change anything - I can change it to +/- 3/4/6 and it does not change anything in the logs or system operation ...
    Maybe someone / something has already encountered such a problem?
  • #36
    pablo_banita
    Level 12  
    Compare yourself with the picture below
    Home Assistant Tutorial - configuration, WiFi, MQTT, Zigbee, Tasmota
  • #37
    bambek2005
    Level 11  
    pablo_banita wrote:
    Compare yourself with the picture below
    Home Assistant Tutorial - configuration, WiFi, MQTT, Zigbee, Tasmota

    ok, but how to enable synchronization with the system clock? and how to change the timezone from the command line ... This is where I have a problem.
  • #38
    pablo_banita
    Level 12  
    It's hard for me to say what my friend messed up there ;-)

    1.The bios watch should be set to time UTC not on local time - this is the first to change

    2. Is the timezone set in the HA itself?

    Link
    homeassistant:
      name: Home
      latitude: 32.87336
      longitude: 117.22743
      elevation: 430
      unit_system: metric
      currency: USD
      time_zone: "America/Los_Angeles"
      external_url: "https://www.example.com"
      internal_url: "http://homeassistant.local:8123"
      allowlist_external_dirs:
        - "/usr/var/dumping-ground"
        - "/tmp"
      allowlist_external_urls:
        - "http://images.com/image1.png"
      media_dirs:
        media: "/media"
        recordings: "/mnt/recordings"
      legacy_templates: false
  • #39
    bambek2005
    Level 11  
    pablo_banita wrote:
    It's hard for me to say what my friend messed up there ;-)

    1.The bios watch should be set to time UTC not on local time - this is the first to change

    2. Is the timezone set in the HA itself?

    Link
    homeassistant:
      name: Home
      latitude: 32.87336
      longitude: 117.22743
      elevation: 430
      unit_system: metric
      currency: USD
      time_zone: "America/Los_Angeles"
      external_url: "https://www.example.com"
      internal_url: "http://homeassistant.local:8123"
      allowlist_external_dirs:
        - "/usr/var/dumping-ground"
        - "/tmp"
      allowlist_external_urls:
        - "http://images.com/image1.png"
      media_dirs:
        media: "/media"
        recordings: "/mnt/recordings"
      legacy_templates: false


    I cannot change / set the time zone in the BIOS ;-(
    Yes, the HA is set as I wrote in my "regret post"

    Home Assistant Tutorial - configuration, WiFi, MQTT, Zigbee, Tasmota
  • #40
    pablo_banita
    Level 12  
    We did not understand each other.

    Set the system time (in bios preferably) to universal time (-2 hours to ours).

    And show what you got at that point in HA
    Home Assistant Tutorial - configuration, WiFi, MQTT, Zigbee, Tasmota
  • #41
    bambek2005
    Level 11  
    pablo_banita wrote:
    We did not understand each other.

    Set the system time (in bios preferably) to universal time (-2 hours to ours).

    And show what you got at that point in HA
    Home Assistant Tutorial - configuration, WiFi, MQTT, Zigbee, Tasmota


    ;-)
    I guessed the time set back in the BIOS by two hours - hereinafter LYPA. I've been through it.
    Home Assistant Tutorial - configuration, WiFi, MQTT, Zigbee, Tasmota


    Home Assistant Tutorial - configuration, WiFi, MQTT, Zigbee, Tasmota

    Again, I quote myself - "my hair starts to grow from this nerve" - all over again ;-)

    Added after 4 [minutes]:

    The problem is that I don't know / can't change the zone, time or anything from the console level ... :-(
  • #42
    pablo_banita
    Level 12  
    I've never had a problem like this ...

    Try differently:
    leave the line "homeassistant:" and delete the line below completely.
    Save the configuration.
    Go to system / general and set your timezone there.
    Reboot and cross your fingers.
  • #43
    bambek2005
    Level 11  
    unfortunately, nothing came of it. I checked after the reboot if he added a line with the zone - strange, but not.
    But thank you for your willingness, maybe someone on the forum will be able to solve "my puzzle" ...
  • #44
    pablo_banita
    Level 12  
    bambek2005 wrote:
    if he added a ruler with a zone - strange, but no

    Where was he supposed to add?

    Look here
  • #45
    bambek2005
    Level 11  
    pablo_banita wrote:
    bambek2005 wrote:
    if he added a ruler with a zone - strange, but no

    Where was he supposed to add?

    - to configuration.yaml?
    thanks for the link but something I have the impression that it does not apply to me, i.e. in my configuration.yaml there is absolutely nothing and as you can see
    Home Assistant Tutorial - configuration, WiFi, MQTT, Zigbee, Tasmota
    he sets the zone with the GUI and now raises another question for MiSie - where, if not in configuration.yaml HA OS writes it?
    Maybe in this version of HA the configuration files are also named differently?
  • #46
    pablo_banita
    Level 12  
    bambek2005 wrote:
    pablo_banita wrote:
    to configuration.yaml?

    HA does not add anything to itself.
    I don't know why you think it doesn't concern you - it's about HA OS.
    Tell me if you have set the pin (your location).

    Do you have this system shared "on the city"?
  • #47
    bambek2005
    Level 11  
    pablo_banita wrote:
    HA does not add anything to itself.
    I don't know why you think it doesn't concern you - it's about HA OS.
    Tell me if you have set the pin (your location).

    Do you have this system shared "on the city"?


    Pin on the center of WrocLove - the place of the HA server, I don't really understand what you mean "shared to the city" ..
  • #48
    vanguard1990dk
    Level 1  
    I have this case:
    about 30 cables from external blinds, electric curtain rods, internal blinds released to my "server room". I would like to use Home Assistant and RaspberryPI. However, I have no idea how to connect these 30 cables to the server.

    In college, there was a semester about PLC controllers, but for now I see these connections only in theory. Cables -> PLC switches -> PLC -> RaspberryPI.

    Maybe some guide on how to connect it without wifi?