And is the fixed amount divided over the costs per day? And only at the beginning of the month? So a change in the fixed costs during the month will only be calculated at the beginning of the next month?
First of all you need to understand the difference between fixed costs for spot prices (DAP) and fixed costs for summarizers.
Fixed costs for DAP are added to the hourly kWh purchase price of electricity, after the variable costs are added as percentage. The result of purchace price, variable costs and fixed costs is the tariff per kWh. This tariff gets sent every hour to the summarizer devices.
For a summarizer you can also add fixed costs, e.g. the subscription fee your energy supplier charges every month. But it only makes sense to add that to 1 summarizer device, usually your main meter. There is a setting for monthly costs, daily costs and hourly costs. It is up to you which ones to use.
The fixed monthly costs I am talking about are (in Dutch): netbeheerkosten, vaste leveringskosten en vermindering energiebelasting. I add the costs per kWh to the daily prices.
But the costs/reduction you mention are independent on how much kWh you use. So you should not set them in the DAP device, but in your smart meter summarizer.
Thank you
v4.9.1 is ready for testing: Power by the Hour | Homey
- Show lowest/highest price/hour for the next 8H.
- Reordered capabilities for DAP E.
- Fix currency symbol migration.
This version fixes an issue with currency symbol migration introduced in v4.9.0. It also fulfills a feature request: [APP][Pro] Power by the Hour [Feature Requests] - #68 by Gruijter
@ralfvd you can have a look at this https://www.facebook.com/gw.dijkstra/videos/1385340055285683?idorvanity=2556406451241024
Since a day ago my Homewizard P1-meter is not updating PBTH. P1-meter is reporting correct.
I have restarted PBTH, created a new device, installed testversion and restarted Homey.
Other PBTH-devices are working.
Can you send an app diagnostics report?
I have sent it in a private message.
Is it possible to add the dynamic rates of various suppliers? For example ANWB energy. They get the daily prices via Epexspot.com. The current prices of the app do not match the prices in the ANWB energy app.
Thank you @Gruijter for fault finding effort. Homewizard P1 now works after reinstalling Homewizard app.
Already implemented. Almost all energy suppliers in EU are supported by PBTH. You just need to select the correct bidding zone (for ANWB that is NL), and enter the taxes and markups. You can get that info from the supplier.
I would like to use the data from PBTH in a homeyscript. When i take a look at the device capabilities. I get this information:
Gang Slimme Meter PBTH {
meter_kwh_last_hour: {
value: 2.182,
lastUpdated: '2022-12-11T09:00:00.360Z',
type: 'number',
getable: true,
setable: false,
title: 'kWh prev. hour',
desc: null,
units: 'kWh',
decimals: 4,
iconObj: {
id: 'c6e10bb4a4ded54c7f1a9a843e94c8fc',
url: '/icon/c6e10bb4a4ded54c7f1a9a843e94c8fc/icon.svg'
},
id: 'meter_kwh_last_hour',
options: {},
values: undefined
},
When i try this i get an error
var test = device.capabilitiesObj.meter_kwh_last_hour.value;
console.log(test)
Is there a way to use this in a homeyscript and how? The reason i want this is to store the data global. That way i can compare the data over months and years. And that way i have a backup of all the data
Edit:
The solution was simple, i used the wrong id.
var smartMeter_PBTH_Id = 'xx'
var gasMeter_PBTH_Id = 'xx'
var waterMeter_PBTH_Id = 'xx'
var smartMeter_PBTH = await Homey.devices.getDevice({ id: smartMeter_PBTH_Id });
var gasMeter_PBTH = await Homey.devices.getDevice({ id: gasMeter_PBTH_Id});
var waterMeter_PBTH = await Homey.devices.getDevice({ id: waterMeter_PBTH_Id});
var gasDay = gasMeter_PBTH.capabilitiesObj['meter_m3_this_day'].value;
var gasYesterDay = gasMeter_PBTH.capabilitiesObj['meter_m3_last_day'].value;
var gasMoneyYesterDay = gasMeter_PBTH.capabilitiesObj['meter_money_last_day'].value;
var gasMonth = gasMeter_PBTH.capabilitiesObj['meter_m3_this_month'].value;
var gasThisMonth = gasMeter_PBTH.capabilitiesObj['meter_m3_this_month'].value;
var gasPreviousMonth = gasMeter_PBTH.capabilitiesObj['meter_m3_last_month'].value;
var gasThisYear = gasMeter_PBTH.capabilitiesObj['meter_m3_this_year'].value;
var gasPreviousYear = gasMeter_PBTH.capabilitiesObj['meter_m3_last_year'].value;
console.log('gas today is: '+gasDay)
console.log('gas yesterday is: '+gasYesterDay)
console.log('gas money yesterday is: '+gasMoneyYesterDay )
console.log('gas this month is: '+gasThisMonth)
console.log('gas previous month is: '+gasPreviousMonth)
console.log('gas this Year is: '+gasThisYear)
console.log('gas previous Year is: '+gasPreviousYear)
I dont know. I never use Homey script. But you can use this app to archive all insights off all apps/devices. It stores the data in zip files in JSON and .csv format: [APP][Pro] Archive Insights - export all your Insights data to a NAS, FTP or web folder
Did som restarts of Homey and suddenly it show - value on this month and year… the lifetime power value of the energy device is correct. So must be something is off in Power By the Hour app when I restarted Homey… any clue what and why and how to fix it?
also right after homey reboot? are you sure it doesnt get a faulty value even for a brief period?
Iv rebooted the Homey a few times this evening without anything helping. It been this fault since first reboot. You can see total kW drop allt at two times today…
This is how it look now… still negative value but source energy is as it should be 29k kWh
yes, but can you share the same kWh graph for the source device (Easee)? Does that show a drop in kWh value after Homey reboot?