Skip to content
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
DwaltD

Dwalt

@Dwalt
  • Getting Started
  • Controller
  • Build
  • Hardware
  • Download/API
  • Forum
  • Store
About
Posts
218
Topics
6
Shares
0
Groups
0
Followers
2
Following
0

Posts

Recent Best Controversial

  • HA not receiving data passed through non-registered repeaters
    DwaltD Dwalt

    @martinhjelmare

    Thank you for responding to this. I finally had time to look at the HA log and found a number of other issues. I think I had a conflict with HA Bridge (originally setup to work with Vera) so I shut down that device but I am still seeing errors in the HA log but cannot identify the source.

    Here is the current home-assistant.log output:

    17-02-17 15:56:56 homeassistant.core: Error doing job: Future exception was never retrieved
    Traceback (most recent call last):
      File "/usr/lib/python3.4/concurrent/futures/thread.py", line 54, in run
        result = self.fn(*self.args, **self.kwargs)
      File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/notify/__init__.py", line 149, in platform_discovered
        setup_notify_platform(platform, discovery_info=info)
      File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/notify/__init__.py", line 89, in setup_notify_platform
        hass, p_config, discovery_info)
      File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/notify/mysensors.py", line 25, in get_service
        pres.S_INFO: [set_req.V_TEXT],
      File "/usr/lib/python3.4/enum.py", line 255, in __getattr__
        raise AttributeError(name) from None
    AttributeError: V_TEXT
    17-02-17 15:57:25 homeassistant.core: Error doing job: Task exception was never retrieved
    Traceback (most recent call last):
      File "/usr/lib/python3.4/asyncio/tasks.py", line 233, in _step
        result = coro.throw(exc)
      File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py", line 387, in _update_entity_states
        yield from update_coro
      File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/helpers/entity.py", line 216, in async_update_ha_state
        yield from self.hass.loop.run_in_executor(None, self.update)
      File "/usr/lib/python3.4/asyncio/futures.py", line 388, in __iter__
        yield self  # This tells Task to wait for completion.
      File "/usr/lib/python3.4/asyncio/tasks.py", line 286, in _wakeup
        value = future.result()
      File "/usr/lib/python3.4/asyncio/futures.py", line 277, in result
        raise self._exception
      File "/usr/lib/python3.4/concurrent/futures/thread.py", line 54, in run
        result = self.fn(*self.args, **self.kwargs)
      File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/light/hue.py", line 397, in update
        self.update_lights(no_throttle=True)
      File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/util/__init__.py", line 296, in wrapper
        result = method(*args, **kwargs)
      File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/util/__init__.py", line 296, in wrapper
        result = method(*args, **kwargs)
      File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/light/hue.py", line 207, in update_lights
        lightgroups[lightgroup_id].schedule_update_ha_state()
      File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/helpers/entity.py", line 290, in schedule_update_ha_state
        self.hass.add_job(self.async_update_ha_state(force_refresh))
    AttributeError: 'NoneType' object has no attribute 'add_job'
    17-02-17 15:57:56 homeassistant.core: Error doing job: Task exception was never retrieved
    Traceback (most recent call last):
      File "/usr/lib/python3.4/asyncio/tasks.py", line 233, in _step
        result = coro.throw(exc)
      File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py", line 387, in _update_entity_states
        yield from update_coro
      File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/helpers/entity.py", line 216, in async_update_ha_state
        yield from self.hass.loop.run_in_executor(None, self.update)
      File "/usr/lib/python3.4/asyncio/futures.py", line 388, in __iter__
        yield self  # This tells Task to wait for completion.
      File "/usr/lib/python3.4/asyncio/tasks.py", line 286, in _wakeup
        value = future.result()
      File "/usr/lib/python3.4/asyncio/futures.py", line 277, in result
        raise self._exception
      File "/usr/lib/python3.4/concurrent/futures/thread.py", line 54, in run
        result = self.fn(*self.args, **self.kwargs)
      File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/light/hue.py", line 397, in update
        self.update_lights(no_throttle=True)
      File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/util/__init__.py", line 296, in wrapper
        result = method(*args, **kwargs)
      File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/util/__init__.py", line 296, in wrapper
        result = method(*args, **kwargs)
      File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/light/hue.py", line 207, in update_lights
        lightgroups[lightgroup_id].schedule_update_ha_state()
      File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/helpers/entity.py", line 290, in schedule_update_ha_state
        self.hass.add_job(self.async_update_ha_state(force_refresh))
    AttributeError: 'NoneType' object has no attribute 'add_job'
    17-02-17 15:58:27 homeassistant.core: Error doing job: Task exception was never retrieved
    Traceback (most recent call last):
      File "/usr/lib/python3.4/asyncio/tasks.py", line 233, in _step
        result = coro.throw(exc)
      File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py", line 387, in _update_entity_states
        yield from update_coro
      File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/helpers/entity.py", line 216, in async_update_ha_state
        yield from self.hass.loop.run_in_executor(None, self.update)
      File "/usr/lib/python3.4/asyncio/futures.py", line 388, in __iter__
        yield self  # This tells Task to wait for completion.
      File "/usr/lib/python3.4/asyncio/tasks.py", line 286, in _wakeup
        value = future.result()
      File "/usr/lib/python3.4/asyncio/futures.py", line 277, in result
        raise self._exception
      File "/usr/lib/python3.4/concurrent/futures/thread.py", line 54, in run
        result = self.fn(*self.args, **self.kwargs)
      File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/light/hue.py", line 397, in update
        self.update_lights(no_throttle=True)
      File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/util/__init__.py", line 296, in wrapper
        result = method(*args, **kwargs)
      File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/util/__init__.py", line 296, in wrapper
        result = method(*args, **kwargs)
      File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/light/hue.py", line 207, in update_lights
        lightgroups[lightgroup_id].schedule_update_ha_state()
      File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/helpers/entity.py", line 290, in schedule_update_ha_state
        self.hass.add_job(self.async_update_ha_state(force_refresh))
    AttributeError: 'NoneType' object has no attribute 'add_job'
    

    The second error repeats every 31 seconds. If you know of any solutions for these errors, I would appreciate any help.

    As for the issue with MySensors nodes, I was wrong about the repeaters in that they are not the source of my problems, I think my GW is causing HA to lock up the MySensors component of HA. Whenever a node is restarted, repeater or non-repeater, my GW restarts (see below) and for some reason this freezes the MyS component in HA. I never noticed it before with Vera because these restarts doesn't appear to affect the stability of Vera plugin.

    This is from MYSController logging GW traffic:

    [2017-02-17 16:04:39.953 Info] RX	4;1;1;0;0;74.6
     [2017-02-17 16:04:40.041 Info] RX	4;2;1;0;1;29
     [2017-02-17 16:05:21.964 Info] RX	2;1;1;0;0;74.9
     [2017-02-17 16:05:38.689 Info] RX	2;1;1;0;0;74.8
     [2017-02-17 16:05:43.434 Info] RX	4;1;1;0;0;74.6
     [2017-02-17 16:05:43.534 Info] RX	4;2;1;0;1;29
     [2017-02-17 16:06:23.535 Info] RX	2;2;1;0;16;1
     [2017-02-17 16:06:24.462 Info] RX	2;1;1;0;0;74.9
     [2017-02-17 16:06:27.717 Info] RX	7;3;1;0;16;1
     [2017-02-17 16:06:41.173 Info] RX	2;1;1;0;0;74.8
     [2017-02-17 16:06:46.863 Info] RX	4;255;3;0;0;69
     [2017-02-17 16:06:47.032 Info] RX	4;1;1;0;0;74.6
     [2017-02-17 16:06:47.147 Info] RX	4;2;1;0;1;29
     [2017-02-17 16:06:53.637 Info] RX	2;2;1;0;16;0
     [2017-02-17 16:06:55.238 Info] CHILD	New child discovered, node id=6, child id=internal
     [2017-02-17 16:06:55.269 Info] RX	6;255;3;0;0;96
     [2017-02-17 16:06:57.727 Info] RX	6;3;1;0;16;1
     [2017-02-17 16:06:58.478 Info] RX	7;4;1;0;23;4
     [2017-02-17 16:06:58.493 Info] RX	7;3;1;0;16;0
     [2017-02-17 16:07:01.595 Info] DEBUG	Update child id=255, type=ARDUINO_NODE
     [2017-02-17 16:07:01.632 Info] RX	5;255;0;0;17;1.4
     [2017-02-17 16:07:01.632 Info] TX	5;255;3;0;6;
     [2017-02-17 16:07:01.663 Info] RX	5;255;3;0;6;0
     [2017-02-17 16:07:01.670 Info] RX	0;0;3;0;14;Gateway startup complete.
     [2017-02-17 16:07:02.682 Info] RX	0;0;3;0;14;Gateway startup complete.
     [2017-02-17 16:07:03.617 Info] DEBUG	Update child id=0, type=DIMMER
     [2017-02-17 16:07:03.655 Info] RX	5;0;0;0;4;1.4
     [2017-02-17 16:07:03.655 Info] RX	5;255;3;0;11;DimmableLED
     [2017-02-17 16:07:03.671 Info] RX	5;255;3;0;12;1.1
     [2017-02-17 16:07:03.702 Info] RX	5;0;2;0;3;1.1
     [2017-02-17 16:07:13.318 Info] RX	2;2;1;0;16;1
     [2017-02-17 16:07:14.272 Info] RX	2;1;1;0;0;74.9
     [2017-02-17 16:07:17.043 Info] RX	7;3;1;0;16;1
     [2017-02-17 16:07:29.377 Info] RX	6;3;1;0;16;0
     [2017-02-17 16:07:43.381 Info] RX	2;2;1;0;16;0
     [2017-02-17 16:07:47.838 Info] RX	7;3;1;0;16;0
    

    At 16:06:55, node 6 sent battery info for the first time and this did not upset the MYS component. At 16:07:01, I powered up a repeater node (node 5), it starts to present itself (sketch info, etc) and then suddenly it throws "0;0;3;0;14;Gateway startup complete", which I interpret as the GW resetting or re-initializing?!? This is also when HA stops updating MYS data, regardless of whether I restart a repeater node or normal node.

    My GW is somewhat inaccessible for direct serial connection so I have been monitoring it with MYSController which shows message traffic but not verbose debug info. I will try this weekend to hook up serial directly. To reestablish MySensors updating in HA, I have to restart HA. The repeaters are all actuators and do not transmit an initial state value to HA and thus are not discovered and never show up in HA. I assume I need to update their sketches for them to work with HA.

    Any thoughts on this problem? My gateway is MYS 1.4 (or 1.4.1) and MYS 2.0 may be more stable so perhaps it is time to upgrade. The GW has been working undisturbed for over two years with zero issues before this.

    Home Assistant

  • HA not receiving data passed through non-registered repeaters
    DwaltD Dwalt

    I am on the process of migrating from Vera to HA and have encountered problems with data sent from HA recognized (not sure of the proper term) sensors to the GW through repeaters. If the data is sent directly to my ethernet gateway, HA updates the sensors appropriately. If the data is routed through one of my repeating nodes (which are not yet recognized by HA, more on this below), HA does not update the sensor. I can verify that the data is arriving at the GW by MYSController (and Vera still updates the sensor). If I power down my repeaters, the sensors send the messages directly to the GW and HA resumes updating the sensors.

    Most of my nodes are still on MyS 1.4 and many of the repeaters are installed in hard to reach areas (e.g. inside of walls) so updating their sketches is difficult. To properly present these repeaters (which are all mains powered actuators) to HA, apparently an initial-state message needs to be sent at presentation for HA to recognize them and that would require updating their sketches (~Catch 22).

    Has anyone encountered anything similar with HA and MyS repeaters? I am trying to decide on path forward...

    Home Assistant

  • Dallas Temperature Sensor on MySensors 2.0 - Temperature Value not showed in Vera Controller
    DwaltD Dwalt

    @pndgt0

    Post your sketch using the </> tool.

    Troubleshooting

  • Sensebender micro as serial gateway: transmit data?
    DwaltD Dwalt

    @nsom67

    Yes, that is the serialGW sketch. In the development branch, the setup and loop are blank because everything is handled by the libraries in the background. To make a serialGW with sensors, you add the sensor specific code from the applicable sensor sketch to the defines, setup, presentation and loop sections of the GW sketch. In your case, you can even comment out the rf24 bits of the GW sketch and not attach the radio as you don't have anything for the gw to talk to.

    Upload the modified sketch and connect by serial adapter to your controller and test it out. Personally, I would wait and use a nano as a serial gateway and stick with the master branch until you get comfortable with MySensors.

    Troubleshooting

  • Sensebender micro as serial gateway: transmit data?
    DwaltD Dwalt

    @nsom67

    Are you interested in using a sensebender as a serial gateway or just interested in adding temp and humidity sensors to your gateway? The latter option is possible under the development branch by adding the coding bits regarding the temp/hum sensor to the Serial GW sketch. I would recommend against, however, as it could interfere with the gateway's primary function (e.g. missing messages) while processing sensor routines.

    The sensebender was designed for battery operation and it's use as a powered gateway would nullify the design innovations and would most likely require additional power regulation for stable operation. The only benefit, as I can see, would be the built-in ATSHA204 for security.

    Troubleshooting

  • Figaro TGS5042 Carbon Monoxide Sensor & Op Amp
    DwaltD Dwalt

    @Samuel235 said:

    ...does this count as the conductive mat

    Conductive foam is impregnated with carbon and is generally black in color and denser than styrofoam. The pink foam common in packaging is 'anti-static' but not conductive. Methinks that is simple packaging styrofoam. As a side note, conductive foam is very useful for making pressure sensors, never throw it away.

    Hardware figaro operational amplifier carbon monoxide op amp sensor

  • Node does not present sketch info?
    DwaltD Dwalt

    @Mark-Swift

    What version of MySensors are you using? You are using the development branch syntax:

    sendSketchInfo("MowerGarage", "1.8");

    instead of the traditional:

    gw.sendSketchInfo("MowerGarage", "1.8");

    but do not use the development ordering of:

    void setup()
    void presentation()
    void loop()

    Troubleshooting

  • Homini Complete Room Sensor Module?
    DwaltD Dwalt

    @Samuel235 Did you source a breakout version of the OPT3001? It is hard to find.

    Hardware ceiling motion sensors gas sensor light sensor homini humidity ceiling mount smoke detector temperature module complete room light

  • How do I connect/code to use a flex sensor?
    DwaltD Dwalt

    @Cliff-Karlsson

    No sure on the button force sensors, I have not used them.

    To test the force sensors under a mattress, I would wire them up to an Arduino with a sketch that simple reads the analog pin and serial prints the result. Place the sensor under the mattress and see what the serial monitor readings are when the bed is unoccupied and occupied. This would give you the unique range for you particular need. Might be tricky if your computer and bed are in different rooms. After you have the range, you could write a sketch with S_BINARY to trigger V_STATUS whenever the reading approached the high end of your tested range.

    If you cannot reach you bed while connected to serial, you could write a sample mySensors sketch to send the analog reading every few seconds to your controller as V_LEVEL. This video helps explain how to wire up the sensor and select the static resistor for the voltage divider. video

    Troubleshooting

  • How do I connect/code to use a flex sensor?
    DwaltD Dwalt

    @Cliff-Karlsson

    It might be easier if you explained your intended application.

    The code can be written to read the sensors continuously and only send when a significant change is detected, or it can read the sensors on a time interval and send the value as a percentage or custom value. If you want to continuously read the value at your controller, you will flood your wireless network with messages.

    I would suggest first hooking the sensor up to a Arduino and read the analog values of your sensor through the serial monitor to see what range and fluctuation your application generates.

    Troubleshooting

  • How do I connect/code to use a flex sensor?
    DwaltD Dwalt

    @Cliff-Karlsson

    A flex sensor is like an LDR, you would connect to an analog pin as part of a voltage divider. The senjor will give analog readings dependent on the voltage supplied and the range of flex in your application. How you code it would depend on what you are trying to sense. If you want to get an incremental measurement along the entire range of flex, you could use the map function to convert it from the analog read to a 1-100 scale as V_PERCENTAGE. If you were just looking for it to provide an alert when the sensor flexed past a certain level, you could set the level in your code and send it as a V_STATUS using S_BINARY or S_LIGHT. Either way, you need to determine the analog values of your sensor within the working environment of your application before you can finalize your code. E.g. What is the analog read when nothing is happening to the sensor and what is the reading when the sensor is at maximum expected flex.

    Troubleshooting

  • Confused node does not respond, except to commands sent to other nodes
    DwaltD Dwalt

    @Muxje

    It sounds like the device ID got mangled in upgrade to UI7. Check the ID#s for each device within Vera and look for duplicates between your 3 nodes. If this is the case, you may need to delete the confused node and reincluded it.

    Troubleshooting

  • New led light system.
    DwaltD Dwalt

    @giansiro

    Not sure how this is related to MySensors. I have a few of these and they work well and are stupid simple to install. I also have the model with the 5V USB charging port, keeps the kids from stealing relocating the phone charging bricks.

    Controllers

  • 💬 My simple RFM dongle for Serial GW
    DwaltD Dwalt

    Nice to see ATSHA204A included. Could this be used as a gateway on a USB port? I am not familiar within SAMD, but how does this work without USB to serial chip?

    OpenHardware.io usb lora atsha204a atsam rfm95 32bit rfm69 long range dongle

  • Domoticz as controller **and** a gateway for MySensor nodes running on a Raspberry Pi 2
    DwaltD Dwalt

    I have the two spares from my order. If anyone wants one, send me a private chat message with your postal address. I am in the US, so it could take a few extra days to arrive if you are unfortunate enough to live on the wrong side of the pond.

    My Project

  • Monitor if an outlet has power - send email
    DwaltD Dwalt

    If they are using another appliance in the home which trips the outlet, why would they need email?

    Power outage alarm?

    General Discussion

  • PIR am312
    DwaltD Dwalt

    Does anyone have any experience with this sensor?

    I exhausted my stock of panasonic PIRs and was looking for a replacement which was low powered and self contained (all components within the can) similar to the panasonics and ran across the am/hm PIR series from Senba Optics. The am312 is the only one I have seen in the wild - $13 on aliexpress but ~$2 from Banggood. I cannot find a non-chinese datasheet anywhere but some wholesalers have listed specs which look promising, specifically detection range and current.

    0_1460773129119_HT1ddoLFO0aXXagOFbXr.jpg

    Any thoughts?

    Hardware

  • Powering my node
    DwaltD Dwalt

    @Guilhem-Brouat

    I do not have direct experience with solar powered nodes but there are a few threads in the forum on this subject.

    Here
    And here
    And hardware designed for this

    Troubleshooting

  • MQTT gateway on an Arduino Yun
    DwaltD Dwalt

    @Lee-Groom

    Have you read this thread?

    Hardware

  • Powering my node
    DwaltD Dwalt

    @Guilhem-Brouat said:

    OK now I just have to order some boosters...

    For battery powered sensors, it might be better to invest in low power sensors such as the BMP280 and/or SI7021 which can be run below 2V. Save the DHT22 for a mains powered node.

    Troubleshooting
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular