# HomeAssistant emoncms component not sending to emoncms.org

**URL:** <https://community.openenergymonitor.org/t/homeassistant-emoncms-component-not-sending-to-emoncms-org/22932>\
**Category:** Emoncms\
**Tags:** homeassistant\
**Created:** [21 February 2023 15:53 UTC](https://community.openenergymonitor.org/t/homeassistant-emoncms-component-not-sending-to-emoncms-org/22932 "2023-02-21T15:53:37Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![redzer\_irl](https://community.openenergymonitor.org/letter_avatar_proxy/v4/letter/r/7ea924/32.png) [@redzer\_irl](https://community.openenergymonitor.org/u/redzer_irl)\
**Post date:** [21 February 2023 15:53 UTC](https://community.openenergymonitor.org/t/homeassistant-emoncms-component-not-sending-to-emoncms-org/22932/1 "2023-02-21T15:53:37Z")

</div>

Would you mind sharing your Emoncms config? I have set up emoncms\_history component in HA but am not familiar with the Emoncms side of things.

---

<div class="post-metadata">

**Author:** ![christian](https://community.openenergymonitor.org/letter_avatar_proxy/v4/letter/c/b2d939/32.png) [@christian](https://community.openenergymonitor.org/u/christian)\
**Post date:** [21 February 2023 22:48 UTC](https://community.openenergymonitor.org/t/homeassistant-emoncms-component-not-sending-to-emoncms-org/22932/2 "2023-02-21T22:48:41Z")

</div>

I added Emoncms History to my HA after I saw Glyn’s post above.

I followed the notes provided and sent to node 19 as I hadn’t used it before.

I had to do **nothing** in emonCMS itself to receive it, but then I just added some basic logging to create the feeds I required.

Hope this helps.

---

<div class="post-metadata">

**Author:** ![redzer\_irl](https://community.openenergymonitor.org/letter_avatar_proxy/v4/letter/r/7ea924/32.png) [@redzer\_irl](https://community.openenergymonitor.org/u/redzer_irl)\
**Post date:** [22 February 2023 08:18 UTC](https://community.openenergymonitor.org/t/homeassistant-emoncms-component-not-sending-to-emoncms-org/22932/3 "2023-02-22T08:18:11Z")

</div>

I had created the same in home assistant but saw nothing in emoncms  
 ![image](https://community.openenergymonitor.org/uploads/default/original/3X/7/8/784162d9321ff234bdc9eff7d2474b730775a998.png)

When you said you added some basic logging, did you have to create an Input?

If so, what device template needs to be chosen and do the location and device key fields need to be filled in?

 ![image](https://community.openenergymonitor.org/uploads/default/original/3X/8/5/859a33736c0d304013c3a169166b5487d9f76584.png)

---

<div class="post-metadata">

**Author:** ![christian](https://community.openenergymonitor.org/letter_avatar_proxy/v4/letter/c/b2d939/32.png) [@christian](https://community.openenergymonitor.org/u/christian)\
**Post date:** [22 February 2023 11:02 UTC](https://community.openenergymonitor.org/t/homeassistant-emoncms-component-not-sending-to-emoncms-org/22932/4 "2023-02-22T11:02:07Z")

</div>

I didn’t have to create any inputs, they just appeared when HA sent the data.

The only difference is my url is local, non-https i.e. [http://192.168.1.x](http://192.168.1.x)

---

<div class="post-metadata">

**Author:** ![borpin](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/borpin/32/193_2.png) [@borpin](https://community.openenergymonitor.org/u/borpin)\
**Post date:** [22 February 2023 12:22 UTC](https://community.openenergymonitor.org/t/homeassistant-emoncms-component-not-sending-to-emoncms-org/22932/5 "2023-02-22T12:22:08Z")

</div>

> [@redzer\_irl](#):
>
> I had created the same in home assistant but saw nothing in emoncms

Is it the Read/Write API key?

Any errors in the log?

{edit]  
Don’t worry about the ‘Devices’ bit. They should just appear in the Inputs as Node 19.

---

<div class="post-metadata">

**Author:** ![redzer\_irl](https://community.openenergymonitor.org/letter_avatar_proxy/v4/letter/r/7ea924/32.png) [@redzer\_irl](https://community.openenergymonitor.org/u/redzer_irl)\
**Post date:** [22 February 2023 21:14 UTC](https://community.openenergymonitor.org/t/homeassistant-emoncms-component-not-sending-to-emoncms-org/22932/6 "2023-02-22T21:14:23Z")

</div>

Yes, it’s the Read/Write API key. I’ve checked the home assistant logs and there doesn’t appear to be anything related to emoncms\_history.

Am I understanding correctly that no configuration should have to be done on the [emoncms.org](http://emoncms.org) side and the data should just “appear”?  
Would the fact that I have Cloudflare access set up for home assistant have any impact?

---

<div class="post-metadata">

**Author:** ![TheMiddle36uug](https://community.openenergymonitor.org/letter_avatar_proxy/v4/letter/t/a87d85/32.png) [@TheMiddle36uug](https://community.openenergymonitor.org/u/TheMiddle36uug)\
**Post date:** [22 February 2023 21:18 UTC](https://community.openenergymonitor.org/t/homeassistant-emoncms-component-not-sending-to-emoncms-org/22932/7 "2023-02-22T21:18:52Z")

</div>

Did you restart HomeAssistant?

---

<div class="post-metadata">

**Author:** ![redzer\_irl](https://community.openenergymonitor.org/letter_avatar_proxy/v4/letter/r/7ea924/32.png) [@redzer\_irl](https://community.openenergymonitor.org/u/redzer_irl)\
**Post date:** [22 February 2023 21:50 UTC](https://community.openenergymonitor.org/t/homeassistant-emoncms-component-not-sending-to-emoncms-org/22932/8 "2023-02-22T21:50:09Z")

</div>

I did once I made the change to the configuration.yaml file

---

<div class="post-metadata">

**Author:** ![borpin](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/borpin/32/193_2.png) [@borpin](https://community.openenergymonitor.org/u/borpin)\
**Post date:** [22 February 2023 22:53 UTC](https://community.openenergymonitor.org/t/homeassistant-emoncms-component-not-sending-to-emoncms-org/22932/9 "2023-02-22T22:53:21Z")

</div>

Anything in the logs?

[edit]  
You can increase the logging for a specific component (I don’t use the emoncms component)

```auto
logger:
  default: warn
  logs:
    homeassistant.components.emoncms: debug

```

Check the log on startup that `homeassistant.components.emoncms` is the correct component name.

---

<div class="post-metadata">

**Author:** ![borpin](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/borpin/32/193_2.png) [@borpin](https://community.openenergymonitor.org/u/borpin)\
**Post date:** [22 February 2023 22:57 UTC](https://community.openenergymonitor.org/t/homeassistant-emoncms-component-not-sending-to-emoncms-org/22932/10 "2023-02-22T22:57:42Z")

</div>

@bwduncan - anything you could point to?

---

<div class="post-metadata">

**Author:** ![bwduncan](https://community.openenergymonitor.org/letter_avatar_proxy/v4/letter/b/d78d45/32.png) [@bwduncan](https://community.openenergymonitor.org/u/bwduncan)\
**Post date:** [22 February 2023 23:58 UTC](https://community.openenergymonitor.org/t/homeassistant-emoncms-component-not-sending-to-emoncms-org/22932/11 "2023-02-22T23:58:34Z")

</div>

> [@borpin](#):
>
> Check the log on startup that `homeassistant.components.emoncms` is the correct component name.

Should be `homeassistant.components.emoncms_history` but the component doesn’t have any debug logging so I’d be surprised if the answer is there. It does log errors which you would see without configuring logging explicitly.

One thing to double check is whether the states you’re exporting can be represented as numbers. emoncms can only process numbers. The HA integration tries to convert everything to a number, so this can’t really be the problem, but it’s worth a look.

Double check API key

---

<div class="post-metadata">

**Author:** ![TheMiddle36uug](https://community.openenergymonitor.org/letter_avatar_proxy/v4/letter/t/a87d85/32.png) [@TheMiddle36uug](https://community.openenergymonitor.org/u/TheMiddle36uug)\
**Post date:** [23 February 2023 08:34 UTC](https://community.openenergymonitor.org/t/homeassistant-emoncms-component-not-sending-to-emoncms-org/22932/12 "2023-02-23T08:34:36Z")

</div>

![image](https://community.openenergymonitor.org/uploads/default/original/3X/4/0/40b7256ccb6ad74941c532fea470c49592971fc7.jpeg)

As above, once the node was initialised in EmonCMS I didn’t have to do anything to see the data in my Inputs screen.

I did have to change the names in the Feeds screen as the ‘.’ character is not allowed

---

<div class="post-metadata">

**Author:** ![redzer\_irl](https://community.openenergymonitor.org/letter_avatar_proxy/v4/letter/r/7ea924/32.png) [@redzer\_irl](https://community.openenergymonitor.org/u/redzer_irl)\
**Post date:** [23 February 2023 08:57 UTC](https://community.openenergymonitor.org/t/homeassistant-emoncms-component-not-sending-to-emoncms-org/22932/13 "2023-02-23T08:57:17Z")

</div>

I have checked the HA logs and there is nothing relating to emoncms\_history in there after a restart or after it has been running for a while

I only included one sensor as a test and it is a numeric value in HA. I also used a new inputnode.  
 ![image](https://community.openenergymonitor.org/uploads/default/original/3X/c/c/cc2b307a62ac1475323b82a5a0f2c1d6ceb223f7.png)

![image](https://community.openenergymonitor.org/uploads/default/original/3X/e/c/ecc172aa82e7c523be2f5096df8c77c08835f469.png)

I double checked the api\_key and it is the Read & Write API key  
 ![image](https://community.openenergymonitor.org/uploads/default/original/3X/7/c/7cb0f4d2091914da3af29e1d4dc4249037e76fb8.png)

I am still not seeing anything on the Inputs page unless I’m missing a step?

 ![image](https://community.openenergymonitor.org/uploads/default/original/3X/2/2/2281d6c4b6dc4c5a1fd0496292ebee3c33913563.png)

---

<div class="post-metadata">

**Author:** ![borpin](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/borpin/32/193_2.png) [@borpin](https://community.openenergymonitor.org/u/borpin)\
**Post date:** [23 February 2023 09:10 UTC](https://community.openenergymonitor.org/t/homeassistant-emoncms-component-not-sending-to-emoncms-org/22932/14 "2023-02-23T09:10:55Z")

</div>

> [@redzer\_irl](#):
>
> Would the fact that I have Cloudflare access set up for home assistant have any impact?

Possibly (or perhaps probably). Depends on how you have done it, but yes that could affect it (but don’t know how or how to fix).

It must be something to do with your setup. You can try the API Helper to create an input from your browser to prove it works outside of HA.

---

<div class="post-metadata">

**Author:** ![redzer\_irl](https://community.openenergymonitor.org/letter_avatar_proxy/v4/letter/r/7ea924/32.png) [@redzer\_irl](https://community.openenergymonitor.org/u/redzer_irl)\
**Post date:** [23 February 2023 09:28 UTC](https://community.openenergymonitor.org/t/homeassistant-emoncms-component-not-sending-to-emoncms-org/22932/15 "2023-02-23T09:28:30Z")

</div>

That worked so it must be an issue with the HA process

 ![image](https://community.openenergymonitor.org/uploads/default/original/3X/8/c/8c9386e1dad66e9b5f85c462abb33257602e15d0.png)

 ![image](https://community.openenergymonitor.org/uploads/default/original/3X/2/b/2b23de1bd55bd6ecceb67f999050731e59b3f1a2.png)

---

<div class="post-metadata">

**Author:** ![TheMiddle36uug](https://community.openenergymonitor.org/letter_avatar_proxy/v4/letter/t/a87d85/32.png) [@TheMiddle36uug](https://community.openenergymonitor.org/u/TheMiddle36uug)\
**Post date:** [23 February 2023 12:06 UTC](https://community.openenergymonitor.org/t/homeassistant-emoncms-component-not-sending-to-emoncms-org/22932/16 "2023-02-23T12:06:40Z")

</div>

> [@redzer\_irl](#):
>
> I only included one sensor as a test and it is a numeric value in HA.

Are you sure it’s not within another ‘block’ of some other code? Try moving it to the top of your config.yaml

---

<div class="post-metadata">

**Author:** ![redzer\_irl](https://community.openenergymonitor.org/letter_avatar_proxy/v4/letter/r/7ea924/32.png) [@redzer\_irl](https://community.openenergymonitor.org/u/redzer_irl)\
**Post date:** [23 February 2023 12:24 UTC](https://community.openenergymonitor.org/t/homeassistant-emoncms-component-not-sending-to-emoncms-org/22932/17 "2023-02-23T12:24:55Z")

</div>

It definitely wasn’t but moved it to the top and restarted just to test. Still nothing in HA logs or Emoncms.

---

<div class="post-metadata">

**Author:** ![redzer\_irl](https://community.openenergymonitor.org/letter_avatar_proxy/v4/letter/r/7ea924/32.png) [@redzer\_irl](https://community.openenergymonitor.org/u/redzer_irl)\
**Post date:** [23 February 2023 15:54 UTC](https://community.openenergymonitor.org/t/homeassistant-emoncms-component-not-sending-to-emoncms-org/22932/18 "2023-02-23T15:54:24Z")

</div>

Apologies, I have it working now. I think it was caused by an issue in Studio Code when I moved over to Cloudflare. I reinstalled Studio Code and now the data is coming into Emoncms.  
Thanks to everyone who offered assistance.
