Integration with home assistant

626 views
Skip to first unread message

Jonas Bille

unread,
Mar 9, 2021, 5:49:59 AM3/9/21
to Wireless Sensor Tags
How does integration work, and can it be done with another bridge than the tag manager?

Timothy Young

unread,
Mar 17, 2021, 4:09:47 PM3/17/21
to Wireless Sensor Tags
I use mine in home assistant to track some temperature and humidity.

Home assistant configuration is SUPER easy:

wirelesstag:
  username: <login username>
  password: <login password>

And that is it.  Those logins are what you would use for the my.wirelesstag.net site.

As to configuration within HA once you've added the integration.  They're referred to as "sensor.wirelesstag_nameyouvecreated" so they're easy to find when creating cards or automations.

I only use the tag manager so I can't speak to "other" options.

daryl....@gmail.com

unread,
Mar 17, 2021, 5:46:22 PM3/17/21
to wireless-s...@googlegroups.com

Unfortunately, push notifications don’t currently work from wireless tags to Home Assistant, due to some authentication changes in Home Assistant quite a few months ago. The person that wrote the integration part for it is no longer doing anything with it so it is just remaining not working. Any chance wireless tags support could take over support of that integration? Currently, it can take up to 5 minutes for the polling to see a new state of a tag, eg Garage Open/Closed etc.

 

Kind Regards

 

Daryl Maunder

--
You received this message because you are subscribed to the Google Groups "Wireless Sensor Tags" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wireless-sensor-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wireless-sensor-tags/a61c8c58-e23e-4ea6-977a-88a3c42b4656n%40googlegroups.com.

Timothy Young

unread,
Mar 25, 2021, 12:13:17 PM3/25/21
to Wireless Sensor Tags
I'm no great coder, but I'd love to see what's up.  Is there a forum post over there about this?

Wireless Sensor Tag Support

unread,
Apr 9, 2021, 11:39:46 AM4/9/21
to Wireless Sensor Tags
Does the integration rely on URL calling?  Does the HA require a different URL format now to prevent URL calling to work?  If so you can easily try to call the URL yourself in a web browser and check how to change the URL format to make it work. 

Kimbray

unread,
Jul 7, 2022, 10:19:00 AM7/7/22
to Wireless Sensor Tags
All, I am struggling with getting an automation event to happen inside of HA with wirelesstag. I have the wirelesstag sensors showing up in HA with state information (my use case is light sensors with LX). I can see the entites inside of HA as sensors (sensor.wirelesstag_XXX as mentioned above). I am trying to create a TRIGGER in HA where I have a state or numaric state for the entity leveraging the unit of measurement attribute. However, I cannot get the trigger to fire. I think there is something I am missing on the HA side to do this. I have posted on their site as well but have not had any feedback so sending here as well.

In the end, I am looking for the following. When the wirelesstag sensor reaches a certain lx level it triggers and automation routing in HA then then closes/opens blinds in different rooms. I have the blind side of this working, but not the sensor trigger side. 

Here are the attributes I see in HA for the light sensors. When I try to add it again in yaml file for HA it fails (probably doing it wrong).
state_class: measurement 
battery_level: 94 
voltage: 3.00V 
signal_strength: -81dBm 
out_of_range: false 
power_consumption: 12.16% 
unit_of_measurement: lx 
device_class: illuminance 

Brian H

unread,
Dec 22, 2023, 10:05:29 AM12/22/23
to Wireless Sensor Tags
Can someone confirm that the HA integration still works.  I've never been able to get it to work.  I get an authentication error.

Logger: homeassistant.components.http.ban
Source: components/http/ban.py:129
Integration: HTTP (documentationissues)
First occurred: December 14, 2023 at 7:11:52 PM (7406 occurrences)
Last logged: 8:55:42 AM

Login attempt or request with invalid authentication from cao-tag-manager (192.168.8.36). Requested URL: '/api/events/wirelesstag_update_tags'. (None)


darby427

unread,
Dec 22, 2023, 11:33:50 AM12/22/23
to Brian H, Wireless Sensor Tags
Works for me..  I use the HA built in version which requires you to add to configuration.ymal


they then show up as entities..

wirelesstag:
  username: XXXX
  password: XXXX

sensor:
  - platform: wirelesstag
    monitored_conditions:
      - temperature
      - humidity

binary_sensor:
  - platform: wirelesstag
    monitored_conditions:
      - presence
      - door
      - battery



Scott McInness

unread,
Dec 22, 2023, 5:11:49 PM12/22/23
to Wireless Sensor Tags

Yes, it works for me too.

 

This is from my configuration.yaml. Enter the email and password exactly as you would log in to the website - e.g. without <> or quotes or similar.

wirelesstag:

  username: <my.wirelesstag.net email>

  password: <my.wirelesstag.net password>

 

binary_sensor wirelesstag:

  - platform: wirelesstag

    monitored_conditions:

      - presence

      - light

      - battery

 

sensor wirelesstag:

  - platform: wirelesstag

    monitored_conditions:

      - temperature

      - humidity

      - light

Message has been deleted

Brian H

unread,
Jun 3, 2024, 3:31:34 PM6/3/24
to Wireless Sensor Tags
Mine work, but I keep getting notification due to this in the log files...
So, not sure why, as it does appear to be working.
Login attempt failed

Login attempt or request with invalid authentication from cao-tag-manager (192.168.8.36). See the log for details


Zhiheng Cao

unread,
Jun 3, 2024, 6:41:43 PM6/3/24
to Brian H, Wireless Sensor Tags
I think the HA integration is written by a 3rd party user and is simply based on configuring the URL calling URLs inside the wireless tag web interface.  If HA changes their URL and the 3rd party user did not catch up to update their integration, what you described can happen.  Just check what URLs are configured automatically inside the URL calling menu in Wireless tag web interface and consult with HA to find out if they match with their new or updated URL. 

Brian H

unread,
Jun 4, 2024, 8:05:50 AM6/4/24
to Wireless Sensor Tags
I'm wondering if what you say about the url is right.  I actually have wirelesstag in 2 different homes.  One, I don't get any of these error messages, the other one I do.

The one I'm getting these messages I use Tag Manager url https://my.wirelesstag.net/eth/index.html.  Which I know is the older version.

The one I don't get these messages uses the https://www.mytaglist.com/eth/index.html#indexPage url.

It appears they both work, but the one using the  https://my.wirelesstag.net get's the login error.

Zhiheng Cao

unread,
Jun 4, 2024, 12:35:42 PM6/4/24
to Brian H, Wireless Sensor Tags
Both of these URLs point to the same IP address, so maybe it is that HA does some kind of caller hostname check (and rejects anything other than www.mytaglist.com).  Simply change the URL from "my.wirelesstag.net" to "www.mytaglist.com". 

Brian H

unread,
Jun 4, 2024, 1:04:56 PM6/4/24
to Wireless Sensor Tags
I'm not sure if my post posted.  I'll maybe have to submit a bug for the integration.  I'm not able to set the url that I know of from the integration.  Are you saying that I technically can use either url and doesn't really matter?  I'm wondering if the integration just uses one and maybe it's because it might be getting a certificate error?  So, I guess I could just ignore this error or see if the integration would be configurable?  I'll try to get some time to take a look at the code to see if I can see what the integration is using.

Scott McInness

unread,
Jun 5, 2024, 1:16:19 AM6/5/24
to Wireless Sensor Tags

The source code of the HA integration/component is here: https://github.com/home-assistant/core/tree/dev/homeassistant/components/wirelesstag, and the source code for the PyPI module it uses is here: https://github.com/sergeymaysak/wirelesstagpy. The URL in constants.py for the PyPI module is https://my.wirelesstag.net and isn’t configurable in Home Assistant (or in configuration.yaml).

 

The integration uses “cloud push”, so I assume it works the same as the Wireless Tag web UI. The author describes the way it works as:

# starts long running thread with getting updates from cloud immidiately when change happens.

# it is not a polling, but rather a similar to WebSockets get update logic

 

Someone else created a similar/same issue last year but it was auto-closed because none of the devs replied in 90 days: Persistent notification 'Login attempt failed' · Issue #94651 · home-assistant/core · GitHub

 

When you say: “The one I'm getting these messages I use Tag Manager url” and “The one I don't get these messages uses”, do you mean the URL you use in the browser? If so, I doubt this is the issue.

Brian H

unread,
Jun 5, 2024, 7:39:33 AM6/5/24
to Wireless Sensor Tags
Thanks for everyone's help/suggestions.  I think I figured out what was going on.  It's been a while since I implemented these.  I had forgotten I also integrated the Wirelesstags with my ISY setup.  Which included the early Polyglot implementation.  I'm not sure if this enabled the url calling.   As I've been using the HomeAssistant integration and other than the login errors, it appears to be working, I have now removed/shutdown the ISY/Polyglot integration.  I also unchecked the url calling in the tag manager, as it appears to be working in my other house without this enabled.
Reply all
Reply to author
Forward
0 new messages